You're talking like this is just another hacked together game, but hey this is really great! Very nice graphics and the scroll in/out effects are genius (how did you do that?)!
Given that I once tried to make a bomberman clone, which never really got finished, I'm just amazed by this - good job!
Btw you've link the image as "download" instead of the Dropbox download link.
The ending animation where it fades out, seems to hang a bit. Maybe you can optimize stuff there or it's just a general feeling while not actually being a performance issue.
Also how do you switch weapons?
That was quite a silly mistake
thanks for notifying that! (good thing I also linked to the blog eh?
)
The scroll in-and out effect was created on accident actually
It's done by dividing the screen into several horizontal strips and filling them gradually with sf::RectangleShapes (the rectangles got increasing height over time), but the lower strips gain thickness slower than the top ones
kinda looks like this:
loop for 0 to X ticks {
loop for the 0th to Yth strip (top to bot){
Rectangle's thickness=(X times some coefficient) - (Y times some coefficient)
(Rectangle thickness is limited between 0 and the strip's max thickness)
}
}
Reversing the process results in the scroll-out animation.
About the lag upon a player's death effect, it's fully intentional. Feels like it provides some kind of dramatic effect to the death
You change weapons with Q (player 1) and Right Ctrl (Player 2). An issue however is when the window isn't focused. Movements and weapon usage are based on sf::Keyboard while weapon changes are based on sf::event::keyreleased, so when the windows aren't focused you can still move but can't change weapons. I'm planning to implement an auto-pause system if the window went out of focus to fix this.
Glad you liked it!