My request of you: Do everything you can to get yourself stuck, break the grappling, fall out of the level, or anything else that seems you should not be able to do it. I can't find any issues myself after much testing so hopefully you guys will try something I did not think of. I want to make sure these core mechanics are solid before I move on.
Have fun!
Controls:
- WADS or Arrows to move
- Left click to shoot
- Right click to grapple (a total of 3 clicks)
- E to open the editor (instructions in game)
UPDATE 9:
- Physics and collision tweaks.
- Level editor! Press E to invoke.
- Platform graphics now drawn with a spritebatch.
Previous Updates:
Code: Select all
UPDATE 8:
- Collision and physics completely reworked. Issues now are minimal to
non-existant. A super big thanks to TechnoCat for some 1 on 1 testing and
debugging.
- Player movement and physics now correctly and fully framerate independent.
- New level to play around in. Climb all the way to the top (it's not that hard)!
- Press R to reload the game at any time.
UPDATE 7:
- Collision detection is better than it has ever been.
- Movement is now correctly based on dt. Maximum dt is capped to prevent
oddities.
- Changed the shape of the arena.
- New color scheme, just for the hell of it.
UPDATE 6:
- Physics and collision tweaked yet again.
- Player can once again grapple everywhere. I changed it back because more
people prefer it.
- Camera movement now implemented, camera tracks player by default. Thanks
to Taehl for the help.
- Bullets now fire properly from the end of the gun instead of the player coods.
Thanks slime73 and SoggyWaffles!
- A proof of concept enemy has been added (I'm aware that it can be killed
before it pops up).
- Commented code! It might help people who look at my code...
UPDATE 5:
- Fixed the collision yet again. I think I have it fixed once and for all.
- Player now has a limited grappling distance. An indicator is shown when you begin
grappling.
- Player can now only grapple to specific grapple points.
- Physics are less bouncy when colliding with the side of a platform.
UPDATE 4:
- I foolishly took something out at the last moment which broke velocity based
movement and made platforms sticky on rare occasion. Fixed now.
UPDATE 3:
- Reworked collision detection, I have not managed to get stuck once in this newer
version. Big thanks to Kraftman for giving me a few ideas.
- Game now operates on dt, instead of relying on vsync. Slightly better physics due to
this, I tweaked them a lot.
UPDATE 2:
- Momentum is now preserved when driving off a cliff. This has a better feel than
falling straight down.
- Player can no longer move after the grappling sequence has started.
UPDATE 1:
- Fixed odd bullet issues by using a few conditional checks before the normal is
calculated for direction.
- Fixed an issue where the player could possibly get stuck in a wall.