Here’s the latest version of the Ant Attack project – I’ve not had much time to spend on this over the last month or so, so I’ve decided to release it as is (unfinished of course).
The map data used in here is ripped directly from the spectrum original – see this website for an explanation of how the data is stored:
Inside the map class I read in this data and parse it into discrete blocks (total of 2650 of them) and then render the ones closest to the current camera position – this system isn’t great by any means, but does provide a simple enough algorithm and reasonable frame rate. (Would appreciate it if someone could test this on a 3GS device and let me know the frame rates achieved).
At the moment, the ‘ants’ in the map just run around at random, colliding with the map and making occasional direction changes.
The large button on the left is used to move, right button to jump – the button next to it currently does nothing (other than stop the jump sound playing). The red buttons allow zooming in and out – if you touch the middle of the screen (where your player block is) you can change the camera angle…
The sound code is basically taken from the 71Squared guys, the glu functions were found on Iphone Development (amongst others).
All opinions / comments / questions are welcomed…