golab

module
v0.0.0-...-4306f7c Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0

README

golab

Actions Status

This the reincarnation of my gophergala/golab game.

Introduction

Gopher's Labyrinth (or GoLab) is a 2D Labyrinth game where you control Gopher (who else) and your goal is to get to the Exit point. But beware of the bloodthirsty Bulldogs, the ancient enemies of gophers who are endlessly roaming the Labyrinth!

Controlling Gopher is very easy: just click with your left mouse button to where you want to move (there must be a free straight line to it). You may queue multiple target points forming a path. Right click clears the path. You may also use the arrow keys on your keyboard.

You may try out the game in your browser if it supports WebAssembly and WebGL here: https://icza.github.io/golab/

Screenshot

Under the hood

GoLab is written completely in Go. Go 1.13 or newer is required. The user interface and input handling is done with the gioui library, utilized in the view package.

The game model and game logic is placed in the engine package.

How to get it or install it

Of course in the "go way". You may quickly test it by initializing a new module in a folder by running:

go mod init test

And then run GoLab with:

go run github.com/icza/golab/cmd/golab

Or try it in your browser: https://icza.github.io/golab/

LICENSE

See LICENSE.

GoLab's Gopher is a derivative work based on the Go gopher which was designed by Renee French. (http://reneefrench.blogspot.com/). Licensed under the Creative Commons 3.0 Attributions license.

The source of other images can be found in the _images_/source.txt file.

Directories

Path Synopsis
cmd
Package engine is the game engien: it contains the game model and game logic.
Package engine is the game engien: it contains the game model and game logic.
Package view is the view of the game.
Package view is the view of the game.

Jump to

Keyboard shortcuts

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