7 May 2008

Restructuring Stage Data File

Currently I am in the process of restructuring the stage's setup XML files. Before it has 2 files, one data file and one map file. Right now I am just going to combine them because they are seperated before only because of legacy left by development progression.
One thing that worth remembering is now I should allow the user to specify stage data (name, lights, etc) within the editor as well. Especially the light I should be able to use the editor to specify the locations etc.

2 May 2008

Stage Construct Visual Consideration

I have clean up a bit and fix some bugs in the editor. The good thing is I realize I have done a major change (in the visual) but with other editor logic intact. I don't need any heavy modification in the editor because of the change in the visual. The camera move button, the tile selection and addition of tiles, enemies, event points etc would stay the same.

A small function left that still require some implementation is I need to tell the visual logic (GameLogic) to load the proper stage. Right now it just load the first stage. Now the only big problem is, how to display the construction of the stage in the visual. There are 2 possibilities I can think of:

  1. Have some sort of temporary indication (icons etc) that indicate the user has put a tile there. Have a Refresh button that will just make the visual system reload and reconstruct the whole stage. Inefficient but implementation wise might be much easier.
  2. Start a bit more from scratch (not completely from scratch), implement dynamic tile checking and adding system in both the logic and visual. It's possible. If tile A is added, just have to recheck it's surrounding tile (16 or 26, depends on if I need to count the upper and lower corner tiles, most likely not). This way is more efficient and might trim out some large, less manageable codes in the stage constructions.
I will have to think about it and decide later.