H2D
Heap’s 2D API (H2D) defines a collection of classes for 2D graphics. The following sections covers its usage.
Introduction
Concepts.. Read moreAnimation
Creating an animated sprite in H2D is relative easy... Read moreDisplaying text
h2d.Text can be used to draw text using precomputed bitmap fonts... Read moreDrawable
H2D classes that can display something on screen usually extend the h2d.Drawable class... Read moreDrawing tiles
Tiles can be drawn with multiple approaches, some of which going to be covered by following example... Read moreEvents and interaction
Making objects interactive is done creating a h2d.Interactive instance. You provide it an interaction area and attach it to a sprite... Read moreFilters
Filters apply to the display tree, so can be used to create screen effects. You can assign a filter to a h2d.Sprite. .. Read moreDrawing 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... Read moreOptimizing bitmaps
Some tips:.. Read moreShaders
You can add a Shader in H2D using drawable.addShader... Read more
