Skip to content

LucasBadico/go-make-game-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Game

A simple exercice to create an golang game using Raylib.

The main IDEA is to have all game related stuffs inside GAME package, child packages being:

  • scenes and scene manager
  • character
  • asset

The whole custom logic is suposed to run outside this layer, in any other package, I'm using hello-game as for now. But it could be on main.

Engine Interface and Raylib

Engine is the interface layer to the game engine. For now I'm using raylib, but in future interations, want to make ready for other game lib/engines that have bindings in golang.

The raylib package is the packages that implements the Engine interface to Raylib.

So all "ugly code" from the raylib o any other game engine, stays out of sigth.

Assets

Assets is anything that leaves and go to the memmory of the game. Needs the Enginge.Loader to put on memory and also the Engine.Unload to remove it.

Assets came with the AssetGroup helper. THat gives us collection operations, that the game uses to improve performance on loads and unloads.

HOW TO RUN

SETUP

LINUX - confirmed only on UBUNTU, please open an issue with instructions for other distros


sudo apt install libgl1-mesa-dev
sudo apt install libxi-dev
sudo apt install libxinerama-dev
sudo apt install libxrandr-dev
sudo apt install libxcursor-dev
sudo apt install libxkbcommon-dev
sudo apt install libwayland-dev

MACOS

Just need install xcode and its CLI tools

How to run locally

go run main.go

How to deploy

dont tested the build yet.

RESOURCES

You going to need the following assets on resource:

  • basic_charakter_spritesheet.png
  • bg-music.mp3
  • grass.png

Any image should do. I can't put those files here because I dont own them. I will try to find surrogates for it or create new ones myself. But for the time being, come to my discord server, and I can handle instructions on how to find the ones that I'm using currently.

https://discord.gg/Z37zumVp

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages