H2D
Heap’s 2D API (H2D) defines a collection of classes for 2D graphics. The following sections covers its usage.
Introduction
Concepts..
Animation
Creating an animated sprite in H2D is relative easy...
Displaying text
h2d.Text can be used to draw text using precomputed bitmap fonts...
Drawable
H2D classes that can display something on screen usually extend the h2d.Drawable class...
Drawing tiles
Tiles can be drawn with multiple approaches, some of which going to be covered by following example...
Events and interaction
Making objects interactive is done creating a h2d.Interactive instance. You provide it an interaction area and attach it to a sprite...
Filters
Filters apply to the display tree, so can be used to create screen effects. You can assign a filter to a h2d.Sprite. ..
Drawing Graphics
Heaps offers an easy way to draw custom shapes and colors to the screen in the 2D context. Shapes can be filled with solid colors, gradients or custom bitmaps...
Optimizing bitmaps
Some tips:..
Shaders
You can add a Shader in H2D using drawable.addShader...