This is a read-only mirror of https://gitea.it/1414codeforge/gear. Please direct any pull-request, issue or discussion to the main repo.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lorenzo Cogotti 6108f5cb28 [vec] Add parallax factor to toworldcoords() and toscreencoords() 4 months ago
spec [spec/utils_spec.lua] Remove obsolete test. 2 years ago
.gitignore [*] Initial commit. 2 years ago
.luarc.json [.luarc] Add lua-language-server config file. 6 months ago
LICENSE [*] Initial commit. 2 years ago
README.ACKNOWLEDGEMENT [README,camera] Add camera management module. 1 year ago
README.md [README] Update ldoc usage. 2 years ago
algo.lua [algo] Drop math functions (moved to mathx) 4 months ago
camera.lua [README,camera] Add camera management module. 1 year ago
color.lua [color] Add helper functions for HSV and HSL color conversion 4 months ago
config.ld [config.ld] Add ldoc config.ld to project. 2 years ago
init.lua [mathx,init] Add math utilities 4 months ago
mathx.lua [mathx,init] Add math utilities 4 months ago
meta.lua [meta] Improve isinstance(). 2 years ago
rect.lua [rect] Make rotatesincos() require() path safer. 2 years ago
shadowtext.lua [shadowtext] Add text with drop shadow utilities. 2 years ago
signal.lua [signal] Fix module name and summary. 1 year ago
strings.lua [strings] Add utility to test whether a path is absolute 8 months ago
timer.lua [timer] Minor style fix 4 months ago
vec.lua [vec] Add parallax factor to toworldcoords() and toscreencoords() 4 months ago

README.md

gear - The LÖVE Utility Gear

gear provides common functionality for LÖVE game development, including:

  • 2D vector algebra
  • Minimal 3D vector algebra
  • 2D bounds (axis-aligned rectangles)
  • General utility math functions
  • Common stateless algorithms

Code is reasonably biased towards speed, at the occasional expense of abstraction.

Documentation

Code is documented with LDoc.

Documentation may be generated running the command:

ldoc .

ldoc generates a doc directory, open doc/index.html with your favorite browser to read the documentation.

Test suite

The test suite uses busted.

Tests may be run with the command:

lua spec/utils_spec.lua

License

See LICENSE for details.