Skip to content

DavidCanHelp/Starfield

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Starfield

A 3D first-person starfield flight game. Dodge asteroids, chase the void.

Successor to a starfield simulator written in 1990.

Play Now

Controls

Mobile — tilt your device to steer

Desktop — arrow keys or WASD

Space/Enter — launch / relaunch

Features

  • First-person flight through an infinite asteroid field
  • Speed increases over time — how far can you go?
  • Procedural asteroids with varied size, shape, and color
  • Particle explosions on impact
  • Score, speed, and distance tracking with best score
  • Tilt controls on mobile (DeviceOrientation API with iOS permission handling)
  • Keyboard controls on desktop
  • Single HTML file, no build step
  • Three.js (r128) from CDN

Technical

Single index.html. Three.js loaded from cdnjs. Stars are recycled BufferGeometry point clouds. Asteroids are deformed icosahedra with flat shading. Collision is sphere-based distance check. The starfield wraps infinitely — stars and asteroids behind the camera respawn ahead.

History

The original Starfield was a DOS starfield simulator written in 1990. This is its spiritual successor, 36 years later, running in a browser on your phone.

License

MIT

About

A 3D first-person starfield flight game. Tilt your phone or use your keyboard. Dodge asteroids, chase the void. Successor to a 1990 starfield simulator.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages