π©Togame and Fps, Tick
sends data to game engine; engine ==> your code
Togame
togame = function(game){
if(game.paused) console.log("game paused")
if(game.resumed) console.log("game resumed")
}Paused and resumed
Fps and Tick
const fpscounter = new Text({
"name": "fpscounter",
"position": {
"x": 21,
"y": 38
},
"text": "Hello world!",
"font": "Sans-serif",
"color": "yellow",
"size": "20px"
});
Fpscounter = (FPS,tick) => {
fpscounter.update({text: `FPS: ${FPS} TICK: ${tick}`});
}

What is Fps
What is Tick
Difference between Fps and Tick
πOnloadYou can change Fps and Tick in onload.js
Last updated