Hi,
I did this thing as a practical graduation exam (don’t get confused, I’m officially a graphic designer :P). It was a 10 days session where I wasted 7 of them by playing others to research competition (;)) thus its highly unfinished and whole mess, but the core is there!
There are many redundant classes as I didn’t catch up with the menu or the BitmapLoader class stayed unused as it couldn’t allow me to use alpha channel.
Some more info about it:
Its a platformer. :sure:
Its based on bitmaps as it uses them as the main way to display really anything. There are classes for player, enemies, sprites etc. All has its bitmap, to display on the stage. E.g. Player has an image, where there are all its states, and it returns only the right part of the image to be displayed based on walk cycle and direction values. If you want to display something, register it with the DisplayManager class first… it will handle it all just make sure that it implements Drawable.
Its tile-based. All levels are built of tiles. When a level loads, player, enemies, sprites and everything is placed into a grid 7 tiles high. When a player moves, it checks with TileManager (which checks with current loaded Map, which checks with a particular Tile) to see if it can move more or not. Other collision detection is made directly Player-Enemy or Player-Sprite.
If anybody wants further explanation on any part, I can provide it.
P.S.: I have never looked into any techniques of programming tile-based systems so I might get it wrong. If you have anything to say or add to this project, I would be glad. I’m also planning to optimize the code and rework it completely for our website so expect more updates to come.
Have fun exploring it… if possible and feel free to use it in any way
SWF: http://www.mumu.cz/game/game.html
ZIP: http://www.mumu.cz/game/game.zip