[ Click on to play the game~:) ]
implementation of Spaceship - program template for RiceRocks
|
|
globals for user interface
|
|
art assets created by Kim Lathrop, may be freely re-used in non-commercial projects, please credit Kim
Debris Images
debris images - debris1_brown.png, debris2_brown.png, debris3_brown.png, debris4_brown.png
debris1_blue.png, debris2_blue.png, debris3_blue.png, debris4_blue.png, debris_blend.png
|
|
nebula images - nebula_brown.png, nebula_blue.png
|
|
splash image
|
|
ship image
|
|
missile image
|
|
asteroid images
|
|
animated explosion
|
|
sound assets purchased from sounddogs.com
.ogg versions of sounds are also available, just replace .mp3 by .ogg
|
|
helper functions to handle transformations
|
|
Ship class
|
|
Sprite class
|
|
|
|
key handlers to control ship
|
|
|
|
mouseclick handlers that reset UI and conditions whether splash image is drawn
|
|
|
|
timer handler that spawns a rock
|
|
initialize stuff
|
|
initialize ship and two sprites
|
|
register handlers
|
|
get things rolling
|
|