gamedev 

I was able to make a Breakout clone in SFML. It's just one level and I haven't even made a lose condition, but it's cool to finally have a game running on native machine code.

Follow

gamedev 

Now the bricks have different colors.

· · Web · 1 · 0 · 2

gamedev 

Now the ball resets when it falls off. I should probably change the collision detection to be angle based because the ball can just plow into the bricks as you can see in this video, but I will do that later.

gamedev 

And I've just noticed that one brick disappeared without the ball touching it (it was the right-most yellow brick). Ugh!

gamedev 

Reworked the ball physics. Now the ball's velocity changes on where it hits the paddle.

re: gamedev 

@xianc78 I notice the ball doesn't change directions when it hits the block side-on. I don't hate it bc you can get that massive combo but I wasn't sure if it was intentional

re: gamedev 

@Binkle It wasn't. I can't remember the last time I've played a Breakout-clone but I don't think that's supposed to happen. In order to change it, I need to have the ball move based on an angle and not on a vector, which it is now.

Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.