Hi all! I think this is complete as I can't fit any more code in.
You can also find this on github here.
(change style in options > mouse+music > control mode)
left, right - turn ship
up - thrust forward
down - point in the opposite direction of movement
z - open and close the pause/ship menu (use arrow keys to make selections]
x - fire weapon
Ship will rotate to face mouse cursor
right click thrusts forward
left click shoots
Tap and hold near the ship will rotate
Tap and hold far from the ship will thrust in that direction
- [x] Simple 2D Newtonian Flight Model - [x] Procedurally generated ships - [x] Procedurally generated planets - [x] 3D planet rotation (courtesy of gamax92) - [x] Simple autopilot - [x] Multicannons - [x] Explosions - [x] Ok AI - [x] Title screen (courtesy of EatMoreCheese) - [x] Homing missiles - [x] Off-screen targeting and missile impacts - [x] Better token optimization - [x] More planet types - [x] Shipyards - [x] Dogfights - [x] Sound Effects - [x] Music - [x] Gamepad, Mouse, or stylus control styles - [x] Configurable starfield graphics - [ ] Inventory with items and more weapons - [ ] Save games?
Out of date GIFs:
Defend your planet
Get blown up
Minimap and Overlay
Terran Planets (and more!)
Credit to @gamax92 for the 3D planet rotation!
I'm working on a space game with procedurally generated planets and thought others may benefit from the simplex noise functions I'm using.
This is ported the reference examples at:
The whitepaper can be found here:
Edit: That patent is for simplex noise