Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

itch.ioitch.io logo & titleitch.io logo

Browse GamesGame JamsUpload GameDeveloper LogsCommunity
Log inRegister
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
Coin Hunter »Comments

Viewing post inCoin Hunter comments

https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame

Instead of forcing an update every frame, you can instead use requestAnimationFrame(), and then calculate the fps to get your delta time for updating the game. I see that the game is minified and obfuscated so I can’t see how you do things, so I’m afraid I can’t help much more with this.

I'm actually using requestAnimationFrame() and delta to calculate the frame difference, and I've used the same algorithms in other games. I'm sorry I can't be of more help, but if I come up with a solution, I'll be sure to share it.

itch.io on Twitteritch.io on Facebook
AboutFAQBlogContact us
Copyright © 2025 itch corp ·Directory ·Terms ·Privacy ·Cookies

[8]ページ先頭

©2009-2025 Movatter.jp