Docs: https://dekiengine.github.io/deki-2d/ (components and properties, generated from the code)
2D rendering components for the Deki Engine: sprites, sprite batches, text, animations, gradients, buttons, scrolling, rollers, clipping, and sorting groups.
Part of Deki Engine.
Types live in Deki2D. Scene files store the qualified name, and so does code:
using namespace Deki2D;
obj->AddComponent<SomeComponent>();Package Manager in the Deki Editor, or DekiEditor --packages-add deki-2d <project>.
| Dependency | Type |
|---|---|
deki-rendering |
Deki package |
deki-input |
Deki package |
deki-editor |
Deki editor DLL |
freetype |
External (FreeType License) |
SpriteBatchComponent draws many pieces of one sprite from one component, each
with its own place, frame, flips, tint and sorting order. The pixels are those
of as many sprite objects, with far less to go through each frame. Each piece
sorts on its own, so a character can pass in front of one and behind another.
Pieces are added from code (Add, SetPlace, SetFrameRect, SetVisible,
SetFlip, SetTint) and are not saved with the scene. The first-game guide's
soil and turnips are two batches.
A procedural sprite can have an outline all round and a band along its bottom under a shorter face: the raised look of a key or a HUD panel, in one sprite instead of three stacked shapes, and stretched in NineSlice mode. The Inspector's Raised section sets them.
Questions, ideas and what you made with Deki: the Deki Discord.
Apache 2.0. See LICENSE.
Third-party licenses are listed in NOTICE.