Block Breaker - Pixelart Edition!

Hey guys !

I made mine in, as usual, pixel art :slightly_smiling_face:
Block Breaker

You can find the souces codes on my github here : GitHub

Keep On Rockin’ !

3 Likes

Very cool! I love the pixel aesthetic and nostalgic arcade sounds! Adding the ability to reset the ball was smart. Have you made a game like this before?

Hey thanks for the feedback :slight_smile:

Actually it’s my first game that I finished the development of :stuck_out_tongue:
I usually start to make one then give up. This course encourage me. And that one of the best part of this all.

However I’m trying my best at pixel-art, I have some of my work there if your curious : http://wegpast-gallery.tumblr.com/

So th enext one, Laser Defender, will be so fun to make :slight_smile:

Are you taking this course too ? Have you posted your game(s) yet :smiley: ?

Very fun take on it! Pixel art does really fit the break-out theme.
Nice gameplay, nice graphics and nice music. Well done.

I’ve spent some time with your creation (and enjoyed it) until the ball unfortunately ended up in an endless left to right bounce.

Haha ! Yes, I’m aware of this bug (as I mentioned on my github :stuck_out_tongue: )

The thing is, I’ve never figured out how to get rid of this bug :confused:
That why I added the “suicidal” button (the “r” key action).
If you have any idea/solution about this bug, I’ll be glad to correct it and update my game !

That’s a good start if at least you’ve played and enjoyed it :slight_smile:

Thanks for the feedback !

I am not really skilled in programming, so i don’t have any advice in that direction.

I would GUESS :sunglasses: it’s due to a rounding issue which flattens out the bouncing angle.

I would try to add a small random variation to each bounce, which may on the other hand lead to strange bouncedirections, if too big?

Or i could imagine to keep track the coordinates of let’s say the last 5 to 10 bounce locations somehow, and if the x or y values stay the same on all samples, assuming the ball is locked into endless bouncing and generating a random change of direction to free the ball.

Sorry if that sound like gibberish, I am not a programmer, and english isn’t my first language, but well you asked for my ideas :slight_smile:

In the course, they say to add a “tweak” vector with a slightly randomized value to avoid “boring” situation like that. But I think the problem is different. I think of a collision problem.

But your right, it could be a good idea to track down the 5 to 10 last bounces and act in consequences…

Thanks for the advice.

And don’t worry for your english, which is not bad, it’s not my first language neither :wink: