Skip to content

Instantly share code, notes, and snippets.

@skilldeliver
Created June 26, 2024 02:39
Show Gist options
  • Save skilldeliver/b50dd9d6fb6758caf60e85a5c1546882 to your computer and use it in GitHub Desktop.
Save skilldeliver/b50dd9d6fb6758caf60e85a5c1546882 to your computer and use it in GitHub Desktop.
Use javascript to create a 2D space arcade game where the player controls a space shuttle navigating through an asteroid field. The game's objective is to avoid collisions with asteroids and satellites while traveling at high speeds. The player's shuttle is displayed at the bottom of the screen, moving vertically up through an endless space filled with obstacles.
The game interface should display the shuttle's speed in km/h at the top left corner and the current level of difficulty at the top right. Obstacles include differently sized asteroids and two types of satellites: one resembling typical modern satellites and another styled uniquely with multiple circular panels.
The background should be a simple, starry night sky to emphasize the shuttle and obstacles. The game should increase in difficulty by either increasing the speed of the shuttle or the density of the obstacles as the player progresses through levels.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment