Physics & Rendering "engines" decoupled
StickFighter - Map Creator » Devlog
- Refactor code for decoupling rendering & physics
- FPS shown in UI
- Limit FPS to 60 by default (could be set up manually using setFrameRate(number) in browser cli)
Why ?
It makes a fixed time steps by triggering physic processing each 18ms while rendering could be at 10,20,30 or 60 fps
Not decoupling both make the physics tweaked by the computer rendering capabilites. In the previous version, if the computer was runnning at 60fps the physics was triggered 60 times per sec, that made physics feels different than if it was triggered 30 times per sec.
In this version the physics is always triggered each 18ms while the fps can vary
Files
StickFighter_MapCreator.zip Play in browser
Sep 18, 2023
StickFighter - Map Creator
Status | Released |
Author | Quentin.Raymondaud |
Genre | Platformer |
Tags | 2D, aabb, collisions, creator, GameMaker, Physics, quadtree, Textures, Tilemap |
More posts
- Grounding mechanism fixedSep 24, 2023
- Roll animation, MOVABLE & BREAKABLE updateSep 22, 2023
- Move/Remove Blocks Optimisation & Rendering DebugSep 07, 2023
- Stickman Runing AnimationDec 31, 2022
- Opti & New FeatureNov 28, 2022
- New Feature - Clear Map & ReinitNov 28, 2022
- BUG FIXING - Slippery tiles and collisionNov 28, 2022
- UPDATE - Map Size, Buttons & prefilled mapNov 24, 2022
- BUG FIXING - Slippery tiles behavior fixedNov 21, 2022
Leave a comment
Log in with itch.io to leave a comment.