LÖVE-oriented snippets that don't warrant their own repositories.
VERSION: 1.0.9
(Obsolete! See: quadSlice)
Draws a 9-Slice image (a 3x3 tiled graphic, where the edges and center stretch while the corners remain the same size).
Some basic functions for converting coloredtext
sequences to plain strings, and writing them to the terminal for debugging purposes. (They do not, unfortunately, print to terminal with the colors intact.)
A function that draws stippled lines.
An alternative to using love.keyboard.isDown()
within love.keypressed()
to check the state of modifier keys (ctrl, alt, etc.).
Gets copies of the system mouse cursors, and sets them as the mouse hovers over widgets (colored rectangles).
Incremental text printing, implemented with love.graphics.printf()
and LÖVE's coloredtext
tables. The text can be re-wrapped arbitrarily while still maintaining its progression state.