summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-10-20Refactored code, fixed motion when collidex true:talha
- Created a timer struct with helper functions to clean things up - Removed some redundant and duplicate variables - Fixed the issue where if a player presses horizontal movement key, even though we are colliding, the player will still move once it is not colliding, even though they are not pressing a key.
2024-10-20Added RGB as a Vec3 alias typetalha
2024-10-20Framerate capping now works:talha
This prevents movement being very fast on high refresh rate displays
2024-10-19Motion+Collision now work:talha
- Collisions are checked for each side, to let us know how to proceed - Equations of motion seem to work fine, except that they don't play well with time_delta, and are framerate dependant.
2024-10-08Saving draft, added collision detection so fartalha