Overview
Luka's Scripting Utilities (LUTS) is a foundation library of small,
reusable utilities that the rest of Luka's plugins build on top of. It extends
the core RGSS/mkxp-z classes (Sprite, Viewport, Bitmap, Color,
Tone, …) and the Ruby built-ins (Array, Hash, String, Numeric, …)
with convenience helpers, and it ships a handful of standalone systems:
animation, shaders, a sprite manager, mouse input, a PBS compiler, and barcode
/ QR-code generators.
Most code lives under the LUTS namespace. The reusable building blocks are
mixin concerns under LUTS::Concerns:
LUTS::Concerns::Animatable — tween any property towards a target valueLUTS::Concerns::Floatable — track sub-pixel float values for smooth motionLUTS::Concerns::Shaderable — attach and manage GLSL shadersLUTS::Concerns::BlockConstructor — accept a configuration block innewLUTS::QuickAnimatable — declarative, array-driven sprite animations
These are already mixed into the standard classes for you (Sprite,
Viewport, Color, Tone, Rect), so the helpers documented in the rest of
these pages are available out of the box.
How the documentation is organised
- Core Extensions — the helpers added to Ruby and RGSS base classes.
- Components — the animation, float, shader and helper concerns.
- Sprites — the
Sprites::*family and theSpriteHashmanager. - Drawing & Bitmaps — bitmap drawing helpers and the polygon renderer.
- Mouse Input — the
Mousemodule and its object extensions. - Code Generators — UPC-A barcodes and QR codes rendered to bitmaps.
- Utilities — logging, math helpers, error messages and the 9-slice window.
- System — the PBS compiler and plugin-manager helpers.
another plugin requires it, but every utility documented here is free to use in
your own scripts.