Events
observedDirty(instance:Settings, fromSerializedField:Bool):Void
Event when any observable value as changed on this instance.
preventDefaultMouseWheelChange(current:Bool, previous:Bool):Void
Event when preventDefaultMouseWheel field changes.
preventDefaultTouchesChange(current:Bool, previous:Bool):Void
Event when preventDefaultTouches field changes.
Variables
observedDirty:Bool = false
targetWidth:Int = 0
Target width. Affects window size at startup (unless windowWidth
is specified)
and affects screen scaling at any time.
Ignored if set to 0 (default)
targetHeight:Int = 0
Target height. Affects window size at startup (unless windowHeight
is specified)
and affects screen scaling at any time.
Ignored if set to 0 (default)
read onlywindowWidth:Int = 0
Target window width at startup
Uses targetWidth
as fallback if set to 0 (default)
read onlywindowHeight:Int = 0
Target window height at startup
Uses targetHeight
as fallback if set to 0 (default)
targetDensity:Int = 0
Target density. Affects the quality of textures being loaded. Changing it at runtime will update texture quality if needed. Ignored if set to 0 (default)
targetFps:Int = -1
Target FPS. Using default FPS if value < 1 or try to match the given value if >= 1.
maxDelta:Float = 0.1
Maximum app update delta time.
During app update (at each frame), app.delta
will be capped to maxDelta
if its value is above maxDelta
.
If needed, use app.realDelta
to get real elapsed time since last frame.
overrideDelta:Float = -1
Override app update delta time. This can be used to ignore completely the actual elapsed time between frames and replace it with an explicit delta time of your choice. This will affect timers, tween, systems update etc... Use with caution.
preventDefaultMouseWheel:Bool = true
If set to true
(default). Default mouse wheel events
will be prevented. This is relevant when running the ceramic
app from an iframe
inside a page that can scroll.
preventDefaultTouches:Bool = true
If set to true
(default). Default touch events
will be prevented. This is relevant when running the ceramic
app from an iframe
inside a page that can scroll,
on a touchscreen device.
read onlyorientation:ScreenOrientation = NONE
Setup screen orientation. Default is NONE
,
meaning nothing is enforced and project defaults will be used.
Methods
inlinetargetSize(targetWidth:Int, targetHeight:Int):Void
Target width and height. Affects window size at startup and affects screen scaling at any time. Ignored if set to 0 (default)
Parameters:
targetWidth | Target width |
---|---|
targetHeight | Target height |