Logo


search API (or start typing anywhere)


App

snow.App defined in ``

The default type of snow application, with variable delta, update limit, render limit, timescale and more. See the App Guide for complete details.


class
meta: @:allow(snow)


 

Members


app
app : snow.Snow
use this to access the api features. i.e app.assets.text(_id)
fixed_alpha
fixed_alpha : Float
the alpha time for a interpolating between frame updates
fixed_delta
fixed_delta : Float
if this is non zero this will be passed in
fixed_frame_time
fixed_frame_time : Float
fixed simulation update speed
fixed_overflow
fixed_overflow : Float
the overflow of the updates. This is used internally, for you, to calculate the alpha time for rendering interpolation as follows alpha = overflow / fixed_frame_time;
fixed_timestep
fixed_timestep : Bool
use a “fix your timestep approach”
frame_delta
frame_delta : Float
The amount of time the last frame took
frame_max_delta
frame_max_delta : Float
the maximum frame time
frame_start
frame_start : Float
The time at the start of this tick
frame_start_prev
frame_start_prev : Float
The time at the start of the previous frame
sim_delta
sim_delta : Float
the simulated time the last frame took to run, relative to scale etc
sim_time
sim_time : Float
the current simulation time
tick_delta
tick_delta : Float
The amount of time the last tick took
tick_start
tick_start : Float
The time at the start of this tick
tick_start_prev
tick_start_prev : Float
The time at the start of the previous tick
timescale
timescale : Float
the scale of time
update_rate
update_rate : Float
if this is non zero, updates will be forced to this rate

Methods


new
new() : Void