Hello everyone! I've been lurking this forum for some time but never really had anything to post until now. This is my second "real" project with SFML(first one became an unmanagable mess of code which was really hard to keep building upon), and the one that actually resembles a game the most.
It's a pretty simple platformer, you control a guy in a rocket who can shoot a hook at walls which you can swing on (kind of like spiderman or attack on titan, if you will).
The goal is to touch the "finish line"-looking blocks of each level in order to get to the next one.
Some levels may also have some handicap like "you are not allowed to use the rope/steering wheel/fuel".
You can accelerate with W, rotate with A or D, and throw the hook by clicking with the mouse.
I used box2d for physics, which made it really easy to implement the rope mechanics.
As of right now the game has no sound nor any kind of "complicated" visual effects and needs some polishing, but it's playable.
If you hit a wall, depending on
whatever box2d feels like how hard the impact is, the player might die, resetting the level (there's no dying animation yet, I'd like it to be like N-The way of the ninja, which is pretty awesome and fun to watch).
The maps are loaded from png files, where each pixel color equals a certain object (black equals wall, green equals player, etc), makes it pretty easy to make and edit maps but also pretty limiting since not a whole lot of data can be stored in 32 bits while also keeping colors distinguishable from each other.
This SICK DRIFT TRICK took way more tries than I'm willing to admit.
the stunning graphics are all by me.
It was pretty fun working on it. And it really helped to develop my understanding of SFML in general.
I intend to add a 2 player race mode with split screen, but without the Hook since there's only one mouse
, (unless I make it like twin stick games where a certain key equals shooting in a certain direction, I'll see).
I'll upload an executable soon.
You can look at the code
here and try compiling it yourself, (as I said, you need box2d and SFML), you don't really want to, though, it's a mix of spanish and english that wasn't intended to be read by other humans
.
Hope you guys like it !
I'll update the post when I have something new.