Wednesday, 21 January 2015

[Game Maker] Slope Physics Engine UPDATE v1.4.0.0

Finished! Not the final release, but the entire engine is in working order! All bugs are fixed, all features are added, all that is left is code cleanup and packaging!Of course I expect there to be a few bugs found later on (almost all to do with the moving platforms (uggh...)), but any that arise should be easy to fix, and shouldn't be game breaking.

Source code (.gmz):
Physics+engine+1.4.0.0.gmz

Windows (.exe):
Physics-Engine-Default-1.4.0.0.exe


Update logs:

1.3.0.1 log:
New Features:
    - Dynamic/dynamic collisions

Tweak: Moving platforms now have better velocity calculation in some situations.

Note: Just some minor changes, the dynamic/dynamic collisions still need better velocity calculation.
1.0.3.2 log:
New Features:
    - Dynamic/dynamic collision physics
    - More directional-through platform options

Bug Fix: Platforms now allow full slope calculation if created with dual axis collisions (can collide from right and top, left and top, right and bottom, etc.)

Note: Very close to final release, just need to fix some bugs and it's done!
1.4.0.0 log:
New Features:
    - Even more directional-through platform options

Tweak: Better dynamic/dynamic collision physics (friction with dynamic/dynamic)

Bug Fix: Platforms now allow full slope calculation if created with dual axis collisions (can collide from right and top, left and top, right and bottom, etc.

Note: Code is still a mess, but the engine works the way it should.

Friday, 16 January 2015

[Game Maker] Slope Physics Engine UPDATE v1.3.0.0

Added some new platforms, one-way and moving (both in one case). The moving non-one-way platform still has some problems, but it works.

The code has gotten quite messy, and I need to do quite a bit of housekeeping, but I'm intending to do that after I've finished the engine (after I have finished the moving non-one-way platform and added dynamic/dynamic object interaction).

Source code (.gmz):
Physics+engine+1.3.0.0.gmz

Windows (.exe):
Physics-Engine-Default-1.3.0.0.exe


Update logs:

1.0.2.6 log:
New Features:
    - Bouncing
    - Better walking force (Obeys the laws of friction better, still not the best, though)
    - Automatic view zoom


Bug Fix: Fixed bad vector change when going down a hill or off a cliff (would angle player right into the ground).
Bug Fix: Bad collision check when on the ground (wouldn't detect the ground if vertical speed was low, and wouldn't calculate angles right when colliding with a wall).

Note: The hardest part about this update was adjusting collision detection, since game_maker's place_meeting function would check collisions with fractions of pixels, which screwed up what was counted as a collision and what wasn't.

1.0.3.0 log:
New Features:
    - one-way through platforms

1.3.0.0 log:
New Features:
    - Moving platforms

Bug Fix: One-way platforms only effect the axis that dynamic objects collide with.

Note: The moving platforms don't work the best (bad speed calculations), plan on fixing in the next update.