Skip to content

2D Camera

marcel euchner-martinez edited this page Jun 21, 2022 · 1 revision

2D Camera

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.

Sample

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)

screenshot_of_camera_2d

Clone this wiki locally