commandlinemaze

command module
v0.0.0-...-54dd4dc Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

README

Command-line 3D Maze

Moon over the maze

A naïve and, with one major exception, faithful port of JavidX9's OneLoneCoder/CommandLineFPS from C++ to Go.

Naïve because I made no attempt to rewrite this version as you would a Go program from scratch with behavioral interfaces and whatnot (this is my first real Go program, so I probably won't do it justice—but I will try it next!); rather, I wanted to keep the code as 1-1 with JavidX9's version as possible to highlight the purely language-level differences. Aside from adding the moon and starry skybox (fixed with respect to player rotation!) in a couple of places I've changed a type prefix on a variable name to match the corresponding Go type (e.g., rShade instead of nShade, since Go prefers dealing in unicode runes rather than bytes for characters)

Documentation

Overview

A naïve and, with one exception, faithful port of JavidX9's CommandLineFPS (https://github.com/OneLoneCoder/CommandLineFPS) from C++ to Go. Naïve because I made no attempt to rewrite this version as you would a Go program from scratch with behavioral interfaces and whatnot (this is my first real Go program, so I probably couldn't do it justice--but I will try it next!) ; rather, I wanted to keep the code as 1-1 with OLC's version as possible to highlight the purely language-level differences. The only exception is that in a couple of places I've changed a type prefix to match the corresponding Go type (e.g., rShade instead of nShade, since Go prefers dealing in unicode runes rather than bytes for characters)

Jump to

Keyboard shortcuts

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