[Jsokoban-gamedevel] =?iso-8859-1?Q?Load_Level?=
Brought to you by:
texx
From: <gf...@bb...> - 2002-02-27 14:29:00
|
Hi: I'm trying to do the load level stuff, and i found a possible problem. In GamePanel.java , in the methods jbinit, nextlevel, and lastlevel you do this: m_lLevel.setFilePath(PropertyConstants.Level_Path); this forces the level to be in the default level directory. Then, if i want to load a level in other directory, this overrides the directory that i set. The solution that i think is to set de default path in the Level constructor, so it could be overrided. What do you think? bye! PS: I saw that you added to the CVS repository the files that i send. I think that the file LevelFileFilter.java should be in the package jsokoban.ui.util, not in the base.util , because it is only used with the JFileChooser dialog |