Using Red Horizon to build the Asteroids in Unity tutorial
Requires Java 25 and is tested on macOS Sequoia and Windows 11.
(I'll work on getting a pre-built binary version at some point, but for now you need to build the project to run it.)
- Clone this repository
- Then either open the project in an IDE and run the main method of the
Asteroidsclass, or from a terminal you can run./gradlew run.
The current control scheme is:
- The ship will rotate towards the mouse cursor, so use your mouse to steer
- Press
Wto move towards the cursor - Use either
SpaceorMouse button 1to fire - Press
Escto quit the game at any time
Debug controls:
Oto toggle a debug overlay which contains an FPS counterPto toggle all of the aboveVto cycle through vsync options- On Windows this will cycle through 1/1, 1/2, 1/3, 1/4, and no vsync
- On macOS this will only enable/disable vsync

