An update for my physics engine. Might not seem like much of an update, but I fixed some key problems I had, and reconfigured the engine to make it much more manageable (to me, anyway).
FEEL FREE TO CHANGE THE OBJECT PROPERTIES OF OBJ_BLOCK AND OBJ_PLAYER IN CREATION EVENT. If you find any bugs, just leave a comment on this post.
Source code (.gmz):
Physics+engine+1.0.2.3.gmz
Windows (.exe):
Physics-Engine-Default-1.0.2.3.exe
Update log:
New Features:
- Friction
- Walking force (instead of constant air-forced walking)
- View, along with view-shake (screen shakes if you crash hard enough).
Bug Fix: Fixed bad calculation of slope when scr_slopecalculatex or scr_slopecalculatey were about to run into the wall(I made it so if they were about to collide, make the perpendicular dimension(trise or trun) longer, so that the slope takes into account the wall.
Bug Fix: Accelleration and speed now include fractions of pixel-units, instead of just increasing by integers(changed scr_movex and scr_movey so that it added on the fraction of the pixel not normally added (since it only added to the distance traveled if there was at least 1 whole pixel length (distx*stepxleft or disty*stepyleft) left).
Note: The hardest part about this update was the bad slope calculation, as I couldn't find out what was causing the error for the longest time, and it really frustrated me.
Friday, 12 December 2014
Tuesday, 9 December 2014
[Game Maker] Slope Physics Engine
After 11 months of time, 7 and a half hours concept thinking, 7 and a half hours problem thinking, 19 hours coding and debugging, or 34 hours total, I have finally finished my slope engine. It combines the accuracy of pixel-perfect collision, with the smooth and realistic momentum and velocity shift of angle calculation and implementation. For years I tried making 2d platform games with simple physics handlers or complex and accurate physics extensions, but both had major problems that rather ruined the entire game or caused too many bugs and glitches that made it useless. So I tried to make a hybrid.
Source code (.gmz):
Physics engine(presentation).gmz
Windows (.exe):
Platform RPG-Default-1.0.0.4.exe
Video:
[Game Maker Studio] - 2d Platformer Slopes (Physics Engine)
Source code (.gmz):
Physics engine(presentation).gmz
Windows (.exe):
Platform RPG-Default-1.0.0.4.exe
Video:
[Game Maker Studio] - 2d Platformer Slopes (Physics Engine)
Monday, 8 December 2014
Introduction
I have never run a blog before, I am not familiar with the process, but I felt it was a good way to distribute my projects and opinions that I have wanted to share. I haven't developed much so far, but I plan on developing whatever is beneficial to me and anyone else interested.
Subscribe to:
Posts (Atom)