utility and wrapper library
Posted: Fri Apr 04, 2014 12:12 am
this is my first proper post here, so i'm sorry if i derped anything.
i've made a few non-serious projects with love, and every single time i find myself rewriting the same boring utility and math functions. it's boring, time consuming, and sometimes frustrating. i present to you util.lua! it has a bunch of useful vector/angle functions, table deepcopy/merge/print, a full cron wrapper, a black and whitelistable traceLine function for HardonCollider, and some other useful crap that you've probably done a few times already!
there's no readme yet, but i'll get something up later tonight. the functions are all commented so it shouldn't be too difficult
Features
i've made a few non-serious projects with love, and every single time i find myself rewriting the same boring utility and math functions. it's boring, time consuming, and sometimes frustrating. i present to you util.lua! it has a bunch of useful vector/angle functions, table deepcopy/merge/print, a full cron wrapper, a black and whitelistable traceLine function for HardonCollider, and some other useful crap that you've probably done a few times already!
there's no readme yet, but i'll get something up later tonight. the functions are all commented so it shouldn't be too difficult
Features
- - wrapper for cron.lua by kikito
- traceLine() and findInRange() for HardonCollider by vrld
- angle to unit-vector and back
- angle lerping (with cross-product)
- requireDir() function
- canvas drawing function, with (centered) rotation
- table merging, copying, printing, and sorting
- centered and/or shadowed text drawing
- unique id generator
- asset loading (wip)
- some misc functions