Categorygithub.com/mattemello/puzzle-game
repository
0.0.0-20250128141911-ebb0711e72db
Repository: https://github.com/mattemello/puzzle-game.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Puzzle game

A small project of a web game. It's a muzzle game, you spawn in a random position of the path and you have to find the portal to win. It's all created randomly, so you can find a path that's linear, or a block or a realy complicated.
The map scale based on your screen dimension, so the bigger your screen is the more the muzzle is.

If you want to make it start

first clone the repository

git clone https://github.com/mattemello/puzzle-game

Then you need to have go installed.
Extract the wasm file cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" THIS_REPOSITORY/assets/js (if it's not in $(go env GOROOT)/... you have to search it).

(you need to set a .env file for the port of the server)

Compile the wasm file:

cd src/wasm
GOOS=js GOARCH=wasm go build -o ../../assert/main.wasm
cd ../..
make server

And then you can go in the localhost port

Description

This is little game created by me. It's use golang, javascript and wasm.
The visualizatios it's menaged by the js.
The path, the hero, the arena it's created and menaged by the Golang file.
The server is a Golang server.

For moving you can use vim motion, wasd and the arrow keys.