martinohanlon / mayhem-pi

Mayhem, the classic Amiga game, ported to the Raspberry Pi
BSD 3-Clause "New" or "Revised" License
12 stars 8 forks source link

Change level data structures #16

Closed martinohanlon closed 8 years ago

martinohanlon commented 8 years ago

The level data is distributed over a few structures and constants at the moment and it is starting to get disjointed as new data is added (edges, collision maps, etc) and will only get more complicated as more features are added.

martinohanlon commented 8 years ago

Move all the 'platform data' (level1/2/3/4/5/6 edgedata1/5/6) from battle_sequence.cpp to platformdata.h

Create new 'level ship sprites' in platformdata.h to hold the location of ship sprites for that level.

Create new directory structure for assets, potentially: /asset/ /asset/default - common sprites, sounds, etc /asset/level# - level bmps, specific sprites, sounds, etc

martinohanlon commented 8 years ago

Done, there maybe future re-factoring needed, but this is sufficient for the moment.