Simple JGDF : Brick Breaker

Get help on issues related to the book here!
piercalca
Rank 2
Rank 2
Posts: 7
Joined: Sun May 17, 2015 7:45 am

Simple JGDF : Brick Breaker

Postby piercalca » Sat Jan 28, 2017 9:33 am

I was looking this youtube tutorial (Java Game Programming - Develop a Brick Breaker ) :
https://www.youtube.com/watch?v=K9qMm3JbOH0

The problem here is that there is no OOP at all and the code is implemented in one big messy class.
It uses timer to implement the game loop. The interesting part is the use of a two - dimensional array
to render the bricks and handle collision.
I translated it all , with some improvements(i hope) particularly in the collision detection , in the first version of the JGDF
(the one at page 148) :

Image


You can download the project here :
http://rg.to/file/84d8fc33108bc2bc274d0 ... ck_breaker).rar.html
Or here :
https://mega.nz/#!qQNlCIhC!7qjn8DAMZ8GH ... ojUbrXT2W0 (executable jar)
https://mega.nz/#!iRdkgDJC!ENBO-MviTT3W ... inQY_gx14w (full project)
I hope this could help the other beginners (like me) !

Return to “Book General Help”

Who is online

Users browsing this forum: No registered users and 1 guest