Demo project for using raycaster-go engine as a module.
To see it in action, see the demo video on YouTube.
The demo is now available to try in the browser: https://harbdog.github.io/raycaster-go-demo/
- The browser version may run much slower than running locally as an application, and may not run very well on old or slow machines. It also requires a mouse and keyboard, see the controls listed below.
To run the demo from source locally:
- Download, install, and setup Golang https://golang.org/dl/
- Clone/download the demo project locally.
- From the demo project folder, use the following command to run it:
go run main.go
NOTE: Depending on the OS, the Ebitengine game library may have additional dependencies to install.
- Press
EscapeorF1key to show demo settings menu (also to exit the game) - Move the mouse to rotate and pitch view
- Move and strafe using
WASDorArrow Keys - Click left mouse button to fire current weapon
- Use mouse wheel or press
1or2to select a weapon - Press
Hto holster/put away current weapon - Hold
Shiftkey to move faster - Hold
Ckey for crouch position - Hold
Zkey for prone position - Hold
Spacebarfor jump position - Hold
ALTkey to enter mouse move mode (vertical mouse moves position instead of pitch) - Hold
CTRLkey to release mouse cursor capture
