Discord

Preparing your files

Please wait until the download is ready.

Luka's Scripting Utilities

Luka's Scripting Utilities

by Luka S.J.

A pack full of various scripting utilities to ease your development!

v4.1.135,194
Download144 KB

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 value
  • LUTS::Concerns::Floatable — track sub-pixel float values for smooth motion
  • LUTS::Concerns::Shaderable — attach and manage GLSL shaders
  • LUTS::Concerns::BlockConstructor — accept a configuration block in new
  • LUTS::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 the SpriteHash manager.
  • Drawing & Bitmaps — bitmap drawing helpers and the polygon renderer.
  • Mouse Input — the Mouse module 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.

This package is a dependency. You normally install it because
another plugin requires it, but every utility documented here is free to use in
your own scripts.