Skip to content

ultraq/redhorizon-unity-asteroids

Repository files navigation

Red Horizon Unity Asteroids

build

Using Red Horizon to build the Asteroids in Unity tutorial

screenshot

Installation

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.)

  1. Clone this repository
  2. Then either open the project in an IDE and run the main method of the Asteroids class, or from a terminal you can run ./gradlew run.

How to play

The current control scheme is:

  • The ship will rotate towards the mouse cursor, so use your mouse to steer
  • Press W to move towards the cursor
  • Use either Space or Mouse button 1 to fire
  • Press Esc to quit the game at any time

Debug controls:

  • O to toggle a debug overlay which contains an FPS counter
  • P to toggle all of the above
  • V to 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

screenshot-debug

About

Using Red Horizon to build the Asteroids in Unity tutorial

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages