I think I'll keep going with my orignal code, the core of it works well.
Also, the multiple source thing is organised like it is for a reason: I have 4 source files, two of engine code, two of game code. The XY.bb file contains the raw essence of the engine, the code I wrote way-back-when. Then, there's Includes.bb, which contains functions and things that shouldn't be hidden in XY.bb. Then, you have Map.bb, which contains map objects, and Draw.bb, which contains graphics objects.
My current problem is, every time I try to write a NPC engine, it fails epicly. It should work this time (it's a good bit less ambitious than the NPC engine I had before) but, when I try to compile with a little talking smiley in the map code, it complains of incompatible variable types.
I should set up an SVN or something.
Here's the code:
http://www.mediafire.com/file/ymlmmoukgzy/XY Engine.zip
Also, the multiple source thing is organised like it is for a reason: I have 4 source files, two of engine code, two of game code. The XY.bb file contains the raw essence of the engine, the code I wrote way-back-when. Then, there's Includes.bb, which contains functions and things that shouldn't be hidden in XY.bb. Then, you have Map.bb, which contains map objects, and Draw.bb, which contains graphics objects.
My current problem is, every time I try to write a NPC engine, it fails epicly. It should work this time (it's a good bit less ambitious than the NPC engine I had before) but, when I try to compile with a little talking smiley in the map code, it complains of incompatible variable types.
I should set up an SVN or something.
Here's the code:
http://www.mediafire.com/file/ymlmmoukgzy/XY Engine.zip