gocastle

command module
v0.0.0-...-5198b88 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

README

GoCastle

Introduction

This project is my journey to creating a graphical game while learning Golang

Every session, I'll add an entry in this file telling what I did and what I learned (see developpement_diary/)

Prerequisites

sudo apt-get install golang gcc libgl1-mesa-dev xorg-dev

Also, for building releases, you need goreleaser and fyne-cross

go install github.com/fyne-io/fyne-cross@latest

For the development, you need to install Golangci-lint

Contributions

Contributions are welcome but I need you to follow a few rules:

  • the primary goal of this project is for me to learn Go while having fun (game dev is so much fun). Keep that in mind when asking / proposing modifications.
  • since I'm a beginner, my code quality can be improved and I've a lot to learn. Fixing my code where it's badly written or helping me learn better patterns is greatly appreciated, but please add a little context/explaination so I can grow from your contributions. See developpement_diary/ folder.
  • most of the future work for the game is written in the Issues of this project. You look at them and ask me if you can take those!
    • issues labelled "game design" are by default reserved to me (@zwindler) since this needs not only code but also thinking about how the game will work.
    • issues labelled "good first issues" are self explainatory ;-).
    • issues labelled "on hold" as well.
    • issues labelled "refactoring" need to be discussed first. I openned a Discord server for this, please ask me the details.

Most importantly, have fun!

Build, test, release

Build only

make build

Build and run (useful in dev)

make buildrun

Release (using goreleaser)

git tag -a 0.0.1 -m "0.0.1 release"
goreleaser --clean

Test release (against code not tagged)

goreleaser --snapshot --clean

Note: for darwin compilation, we need fyne-cross which requires having locally the XCode SDK, especially Command_Line_Tools_for_Xcode_12.4.dmg. Download it here. See fyne-cross documentation for more information.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
hp
hp is a package that provides a health point system with a maximum and current value.
hp is a package that provides a health point system with a maximum and current value.
mp
mp is a package that provides a mana point system with a maximum and current value.
mp is a package that provides a mana point system with a maximum and current value.
npc
pts
timespent
Package timespent provides functionality for working with time spent on tasks.
Package timespent provides functionality for working with time spent on tasks.

Jump to

Keyboard shortcuts

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