Skip to content

Tsanta96/SpaceRacer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpaceRacer

Live Demo

SpaceRacer is a space themed game inspired by "Protect Your Car". The goal is to survive the flight from the Sun to Pluto without crashing into an asteroid as the levels become increasingly difficult.

Technologies

SpaceRacer was built entirely with pure Javascript and styled with CSS. I make extensive use of the HTML Canvas API as this provides the ability to animate by continuously redrawing objects and rendering new frames.

Features

The Game!

The main feature is obviously the game itself. I built the game to have 4 evenly sized lanes in the middle of the screen that you can navigate between by using your 'left' and 'right' arrow keys on your keyboard. Depending on the level, the speed and amount of asteroids vary and the goal is to avoid these asteroids as they approach.

GamePlay

Main Menu

From the Main Menu you can access the "Info" page which displays a short motivating story for why you are hightailing it out of our solar system, as well as the "High Scores" page which displays the top 10 best local high scores.

MainMenu

Map

There is a map at the bottom of the screen that allows you to see which level (planet) you're currently on by highlighting the respective planet in a purple aura.

LevelIndicator

Sound Toggle

There is a speaker button that allows you to toggle the soundtrack on and off and when the game is initially started the soundtrack automatically plays.

SoundToggle

Future Features

  • Add Global High Scores

About

Vanilla JS Arcade Style Game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published