WIP: Spaced!

Monkey Archive Forums/Monkey Projects/WIP: Spaced!

degac(Posted 2011) [#1]
This is a little game I'm writing to understand monkey.
Here you can play the latest HTML5 version
Here my first attempt to port it on an Android device.

Of course is still a WIP, some thing doesnt' work (ie: shield)


Some notes on Android version:
- when you exit the application, the monkey game is still running in background: please close it manually - at the moment I've not implemented any 'exit' system
- about the FPS:
WITHOUT 'touch/accel' controls enabled I get 119/120 fps
WITH 'touch/accel' controls enabled I get 79/80 fps (and some jerky movements...)
- there are NO SOUNDs AT ALL (in any version)

Enjoy!


therevills(Posted 2011) [#2]
Hi degac, just tried your Spaced game on my droid.

How is your FPS calculated? There seems to be a slight skipping happening with the movement of the sprites without touching the screen.

Oh BTW if you want your app to be full screen and locked to landscape, just change your manifest:

<activity android:name="MonkeyGame"
          android:label="@string/app_name"
          android:screenOrientation="landscape"
          android:theme= "@android:style/Theme.NoTitleBar.Fullscreen">



degac(Posted 2011) [#3]
This is the source code


by the way I think I used your method (grabbed from Pong...)

and a little change in the DeltaTimer method: see Rockout example for the 'average thing'

Thank for the manifest file: I really need it!


therevills(Posted 2011) [#4]
Thanks - Ill have a good look tonight. Looks a lot like my code :P