/love_snippets

LÖVE-oriented snippets that don't warrant their own repositories.

Primary LanguageLuaMIT LicenseMIT

love_snippets

LÖVE-oriented snippets that don't warrant their own repositories.

VERSION: 1.0.9

9slice

(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).

coloredtext_to_string

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.)

line_stipple

A function that draws stippled lines.

mod_key_state

An alternative to using love.keyboard.isDown() within love.keypressed() to check the state of modifier keys (ctrl, alt, etc.).

system_cursor_test

Gets copies of the system mouse cursors, and sets them as the mouse hovers over widgets (colored rectangles).

text_incremental

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.