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
Escape
orF1
key to show demo settings menu (also to exit the game) - Move the mouse to rotate and pitch view
- Move and strafe using
WASD
orArrow Keys
- Click left mouse button to fire current weapon
- Use mouse wheel or press
1
or2
to select a weapon - Press
H
to holster/put away current weapon - Hold
Shift
key to move faster - Hold
C
key for crouch position - Hold
Z
key for prone position - Hold
Spacebar
for jump position - Hold
ALT
key to enter mouse move mode (vertical mouse moves position instead of pitch) - Hold
CTRL
key to release mouse cursor capture