This is a read-only mirror of https://gitea.it/1414codeforge/gear. Please direct any pull-request, issue or discussion to the main repo.
Go to file
Lorenzo Cogotti 9928899df1 [vec] Fix sqrdist* functions.
spec [spec/utils_spec.lua] Remove obsolete test.
.gitignore [*] Initial commit.
LICENSE [*] Initial commit.
README.ACKNOWLEDGEMENT [signal,timer,init] Add customized versions of signal and timer from vrld/hump.
README.md [README] Update ldoc usage.
algo.lua [algo] Improve documentation.
config.ld [config.ld] Add ldoc config.ld to project.
init.lua [init] Fix signal and timer entries, capitalize them since they are classes.
meta.lua [meta] Improve isinstance().
rect.lua [rect] Make rotatesincos() require() path safer.
shadowtext.lua [shadowtext] Add text with drop shadow utilities.
signal.lua [signal,timer,init] Add customized versions of signal and timer from vrld/hump.
strings.lua [strings] Add path utility functions, improve documentation.
timer.lua [signal,timer,init] Add customized versions of signal and timer from vrld/hump.
vec.lua [vec] Fix sqrdist* functions.

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.