-
Couldn't load subscription status.
- Fork 357
2D Camera
marcel euchner-martinez edited this page Jun 21, 2022
·
1 revision
In 2D the camera is implemented as h2d.Camera. This object is by default part of any h2d.Scene and can be accessed via camera as well as cameras which saves the whole array of cameras available to the current scene.
A sample that explains the h2d.Camera functionality in detail can be found in the github repository:
https://github.com/HeapsIO/heaps/blob/master/samples/Camera2D.hx
(Reminder: This file will already be on your local machine in the HaxeToolkit\haxe\lib\heaps\git\samples folder)
