Spaceship Escape
Starting to find my game on arcade style game. Control an adventurous spaceship seeking for treasures on a mysterious cave.
The original version did not include touch control nor the “fire” button on the top right. This have been added to be possible to play the game on a mobile
Demo
This demo is a more recent adaptation to be embedded on the website. Some features were removed to adapt with this format.
Controls
- mouse (or touch) / Up Arrow Keys
- Move the spaceship up
- Down Arrow Key
- Move the spaceship down
- Space
- Shoot laser (touch the button on the top right on mobile)
- S
- Toggle the sound
- R
- Restart
Gallery
Trivia
Although it’s simplicity, there is actually a lot of complexity in this game which started to use more advanced programming concepts.
Like most of the previous games, it focuses on having the best score. There is 3 different kind of collectibles for this:
- Coin (10 points): can be anywhere in a cave section, will lead to a safe path. It will be destroyed in contact of the spaceship laser
- Diamond (150 points): only spawn above a cave block (with 1/16 chance)
- Gem: found in harder to reach places in cave section. There is 6 different gems that can spawn:
- Blue Sapphire (200 points): 50/182 chance
- Red Ruby (250 points): 40/182 chance
- Purple Pearl (300 points): 40/182 chance
- Green Emerald (400 points): 30/182 chance
- Gray Diamond (500 points): 20/182 chance
- Multicolor Opal (1000 points): 2/182 chance
From a game design point of view, I had this idea of different cave section chosen randomly with a same start/ending for a smooth transition. There is a total of 10 different caves (with one unfinished and unused) chosen randomly.
Another system that I was pretty proud of is the mechanic to calculate the distance travelled. Basically there is a hidden vertical bar that follow the spaceship vertically and move backward whenever the spaceship touch it which increase the distance.
Some blocks are a bit lighter, similar to Smiley Adventure where touching this blocks will destroy them, here you simply go through it which can lead you to secret path with gems
I also add a complex system of “deactivation”. Some objects such as coins are deactivated when outside the camera view to avoid using too much resources. My first step towards optimisation in my games.