Skip to content

colonbrack3t/ArcadeRacingGame

Repository files navigation

ArcadeRacingGame

4 hour coding challenge

  • To run, simply download the project and open the html file into any browser

  • To play, up arrow to accelerate, left and right arrows to turn

image

This arcade-like car game is actually just tricks of geometry. Interestingly, the track is just an array of distance and curvature pairs, describing sections of the track. The game feels like it is moving through a track using visual cues like the grass and clips "moving", whilst actually theyre just oscilating from a sin function. Curvature in the track is expressed by moving the centre of the track. This naturally makes the player drift to the side of the track by creating descrepancy between track and player curvature, forcing them to turn.

About

4 hour coding challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages