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.
Conversation
Notices
-
xianc78@gameliberty.club's status on Tuesday, 20-Dec-2022 02:44:53 JST xianc78 -
xianc78@gameliberty.club's status on Tuesday, 20-Dec-2022 03:50:42 JST xianc78 Now the bricks have different colors.
-
xianc78@gameliberty.club's status on Tuesday, 20-Dec-2022 04:12:53 JST xianc78 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.
-
Binkle (binkle@sleepy.cafe)'s status on Tuesday, 20-Dec-2022 04:17:22 JST Binkle @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 -
xianc78@gameliberty.club's status on Tuesday, 20-Dec-2022 04:17:22 JST xianc78 @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.
-
xianc78@gameliberty.club's status on Tuesday, 20-Dec-2022 04:19:55 JST xianc78 And I've just noticed that one brick disappeared without the ball touching it (it was the right-most yellow brick). Ugh!
-
xianc78@gameliberty.club's status on Thursday, 22-Dec-2022 03:08:30 JST xianc78 Reworked the ball physics. Now the ball's velocity changes on where it hits the paddle.
-