Re: [Jsokoban-gamedevel] Load Level
Brought to you by:
texx
From: Matthias J. <M....@gm...> - 2002-02-27 15:43:13
|
hi. sorry i write so late back. (got a lot of work) i think thats a good solution for this problem. i'm working now on some problems with the about box ( license panel ). to the package: i also want to put it in the ui.util package but i forgot it before i check it in *g* i found another thing we should do. if you load a big level and the window of jsokoban is to small you don't get scroll bars. that must be fixed. ( i add it to the bug list today or tomorrow ) bye matthias > 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 > > > > > > _______________________________________________ > Jsokoban-gamedevel mailing list > Jso...@li... > https://lists.sourceforge.net/lists/listinfo/jsokoban-gamedevel > -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net |