This is the default test that will run if you debug with Visual Studio, if you double-click the macOS bundle, or if you build an Android APK.
It shows some sprites randomly moving while you can move the camera around.
The camera used to be simulated by moving the sprites in the opposite direction of the input but it now supports the Viewport
and Camera
classes
Videos
Controls
- Pressing
W
/A
/S
/D
, dragging while pressing the left mouse button, touching with one finger, or moving the left gamepad stick will pan the camera - Pressing the left/right arrow keys, dragging horizontally while pressing the right mouse button or touching with two fingers, or moving the right gamepad stick left/right will rotate the camera
- Pressing the up/down arrow keys, dragging vertically while pressing the right mouse button or touching with two fingers, or moving the right gamepad stick up/down will zoom the camera
- Scrolling the mouse wheel will also zoom the camera
- Pressing
T
on the keyboard orX
on the gamepad will toggle between individual textures and a texture atlas (more chances for batching) - Pressing
V
on the keyboard or the right bumper on the gamepad will toggle between simulating a camera by moving sprites in the opposite direction or using aViewport
and aCamera
objects - Pressing
R
on the keyboard,Y
on the gamepad, or double-clicking/double-tapping will reset the camera position, rotation, and scale - Pressing
B
on the keyboard orA
on the gamepad will toggle batching - Pressing
C
on the keyboard orB
on the gamepad will toggle culling - Pressing
F
on the keyboard will toggle full screen - Pressing
P
on the keyboard orStart
on the gamepad will pause the application - Pressing
Escape
on the keyboard orGuide
on the gamepad will quit the application