Posted: 25th Dec 2004 08:55
As you may or may not know I am creating an 2D RPG Game. I will be working on writing a map editor this weekend but first i want some insight.
My first problem is that in my little test program (which only includes the screen tiled with 1 tile and a sprite for the walking character (either male or female). Everything there works fine, except when the midi comes to an end, then when it goes to loop the sprite pauses walking (walking is done via arrow keys) for a split second. Any way to fix this?
Secondly since i will be working on the map editor, i really want some insight into what you think would be the best way. First of all i dont want to be limited to 256 tiles per map, so im thinking of allowing 5 tilesets per map, with each tileset containing on average 300 tiles, but as many as 1000. The tilesets will be brought in as a single image (one per tileset). Im currently using PCX as the format, is there a format that dark basic handles faster.
Finally, and most importantly is the actual map format. I plan on having a single file contain basic info on the map, and quadrant info. Basically a map can be indefinite in size, so its split up into quadrants. 20x15 tiles in size (what can be put on a 640x480 screen at once). Each quadrant will occupy its own file. Each quadrant will have three files, the tile file (contains which tiles to use stores in the format of ascii characters 2 bytes per tile.) Then there is the use file (which stores what tile tpype it is, such as walkable, blocked, underneath, chest, special, high grass, etc, probably stored a single ascii character per tiles). Then finally the sprite file which will store info on building, characters, doors, warps, etc).
Basically program wise. The map is flowing, meaning the user will not see any transition between quadrants. 9 quadrants will be in ram at once, when the user exits the second quadrant say going down, quadrants 1(upper left),2(upper middle),3(upper right) will load from files the next quadrants in the dirrection the user is walking basically quadrants 10,11,12. The quadrants will not be resorted in RAM, but instead an index variable will keep track of them (much more effecient).
My questions, as this is my first testings with DarkBasic. Will it be able to handle the file reads, bitmap copies, and still keep the music flowing and graphics flowing. And can anyone think of a better way of doing this. This is my first RPG, so i have to past experience with map files.