Skip to content
Jonathan Schnee edited this page Jun 22, 2021 · 2 revisions

Starship

This example is about an endless car dodging game. The goal is to dodge cars and achieve a high score. The dodging can be done with the help of the controls or special items like invulnerability, a shield, laser and a timeslower. There is also a bonus points item, which give you points directly.

Starship Image

On GitHub Starship Example

Controls

  • AD or ← → Steer your own car to the left or right into another lane.
  • W or ↑ hop upwards.
  • S or ↓ duck
  • Enter Start/restart game

Endless Generation

There are diffrent Trenches with Cars, they are loaded in one after the other. If the Trench completely passes the Player car, they are deleted and recreated. The speed increases during the game so that it becomes more and more difficult to avoid.

Clone this wiki locally