VISU - PHP Game Framework

CameraProjectionMode
in package

Table of Contents

Cases

orthographicScreen
Orthographic Screen
orthographicStaticWorld
Orthographic Static World
orthographicWorld
Orthographic World
perspective
Perspective projection mode

Cases

orthographicWorld

Orthographic World

Relies on screen resolution and content scale but 0,0 is always in the center of the screen

orthographicScreen

Orthographic Screen

Relies on screen resolution and content scale: 0,0 is always in the top left corner Y+ is always down.

orthographicStaticWorld

Orthographic Static World

World relies on $staticWorldHeight and aspect ratio is based on screen resolution This mode is what you want for 2D games where you want to have a fixed coordinate system For example side scrollers.


        
On this page

Search results