Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.57 KB

README.md

File metadata and controls

42 lines (30 loc) · 1.57 KB

raycaster-go-demo

Demo project for using raycaster-go engine as a module.

To see it in action, see the demo video on YouTube.

Screenshot

How to try

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.

How to run

To run the demo from source locally:

  1. Download, install, and setup Golang https://golang.org/dl/
  2. Clone/download the demo project locally.
  3. 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.

Controls

  • Press Escape or F1 key to show demo settings menu (also to exit the game)
  • Move the mouse to rotate and pitch view
  • Move and strafe using WASD or Arrow Keys
  • Click left mouse button to fire current weapon
  • Use mouse wheel or press 1 or 2 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