Classes

developer »

gameProject »

pedestrianController »

playerPlatform »

punishment »

team »

Concepts

Libraries

Objects

set

Description

Applies the scaling to the view when rendering the world. Must be followed by camera:unset() after the rendering is finished.

Arguments

1 number xMult

the multiplier of the X axis translation. Defaults to 1.

2 number yMult

the multiplier of the Y axis translation. Defaults to 1.

3 number scaleX

the scaler on the X axis. Higher values means more zoom. Base point is 1. Should be kept in line with scaleY.

4 number scaleY

the scaler on the Y axis. Higher values means more zoom. Base point is 1. Should be kept in line with scaleX. number-posX-the X position to set the camera to.

5 number posY

the Y position to set the camera to.

Example

-- draw everything at a 2x scale on 500/1500 X/Y coordinates

camera:set(1, 1, 2, 2, 500, 1500)