raycaster-go-demo

command module
v0.0.0-...-6dfeff5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL