gamelib

module
v0.0.0-...-d4fbba4 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MIT

README

Golang Gamelib

Provides functions that may or may not be useful when making games in Golang, in particular ones using the Ebiten library.

Overview

github.com/csmith/gamelib/math (general purpose)
  • Linear interpolation functions (lerp)
  • Easing functions
github.com/csmith/gamelib/sprite (Ebiten specific)
  • Sprite sheets
  • Text rendering for sprite-based fonts
github.com/csmith/gamelib/structure (Ebiten specific)
  • Scene-based Game implementation
  • Layer rendering
github.com/csmith/gamelib/text (Ebiten specific)
  • Text drawing with shadows

Potential future additions

  • RNG with bad luck prevention
  • Animation helper
  • Input utilities (click hotspots, key binds)
  • Sound playback (global volume control, looping, etc)
  • Template for WASM games
  • Cross-compilation helper + glibc shim
  • Tiled importer
  • Sprite sheets with non-standard sizes (Aseprite importer?)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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