Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultMaxTPS = 60
)
Variables ¶
This section is empty.
Functions ¶
func DeltaTime ¶
func DeltaTime() float64
DeltaTime gets the fixed delta time based on the designed TPS divided by max TPS.
func DesignedTPS ¶
func DesignedTPS() int
DesignedTPS() returns the ticks-per-second that the game was designed to run at.
Default is 60
func SetDesignedTPS ¶
func SetDesignedTPS(tps int)
SetDesignedTPS is the ticks-per-second the game was initially designed to run at. ie. 30tps, 60tps, etc for example, if you're porting a Game Maker game that ran at 30 frames per second, you'd want this to be 30 so that translation of alarm logic works seamlessly.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.