File | Date | Author | Commit |
---|---|---|---|
.settings | 2012-11-29 |
![]() |
[ebc3e9] Initial commit. |
bin | 2012-12-08 |
![]() |
[dbd5b3] (Brick.java) Created brick class which extends ... |
data | 2012-11-30 |
![]() |
[99a09c] Added Bricks.png sprite sheet. Added a frame va... |
libs | 2012-12-09 |
![]() |
[a1a7b9] Added libs and natives into directory. |
res | 2012-11-29 |
![]() |
[ebc3e9] Initial commit. |
src | 2012-12-08 |
![]() |
[dbd5b3] (Brick.java) Created brick class which extends ... |
.classpath | 2012-12-09 |
![]() |
[a1a7b9] Added libs and natives into directory. |
.project | 2012-11-29 |
![]() |
[ebc3e9] Initial commit. |
LICENSE.txt | 2012-12-01 |
![]() |
[018497] Added GPL license. |
README.md | 2012-12-08 |
![]() |
[dbd5b3] (Brick.java) Created brick class which extends ... |
Brick Blaster
A brick blasting game in java. Anyone can contribute!
==========================================================
Change log:
==========================================================
12/08/12
(Brick.java) Created brick class which extends Entity class and has the ability to keep a hit count. (Entity.java) Added a set and get for ImageRenderComponent and animation. Deleted prevPosition variable. (Play.java) Converted Entity bricks into Brick bricks. Added ResetBall component to ball in order to reset position for testing purposes. Changed the starting x and y velocity of ball. Fixed redBrick4 animation bug. Added ImageRenderComponent irc to bricks when being created via map. This will help in changing the image of brick when it is hit by ball. Set brick hitCount to zero when brick is created via map. (BallCollisionWithBrick.java) Added collision functions to determine if ball is colliding with brick and which side of brick ball is colliding with. (BallMovement.java) Replaced old collision methods with new faster and more accurate collision method that can determine which third of the paddle was hit. This changes the ball's x velocity to emulate spin. (ResetBall.java) Created class to reset ball position and velocity with the space bar for testing purposes.
12/06/12
Created a collision detection method between ball and brick. (Entity.java) added a way to acquire entity previous position. (ImageRenderComponent.java) added a way to set image. Changed way of updating image render to owner.getImage()… (Play.java) added BallCollisionWithBrick component to ball. (BallCollisionWithBrick.java) Component that detects collision between ball and brick. Can determine which side of the brick was hit. Sets ball velocity reaction accordingly. (BallMovement.java) added a way to change the vertical velocity depending on how the ball was hit by the paddle (emulates spin). (PaddleMovement.java) changed paddle motion to x and y velocity.
11/30/12
Created a function to create maps based on String[][] input. Added getImage(), setImage(), and resetImage() to Entity.java. In play class initialized Entity bricks at start, created Entity[] allBricks to hold bricks, corrected redBrick3Anim name, created createMap function to make brick positioning and map creation easier, deleted renderLevel1 function as createMap overwrites it, had to use float x and float y then convert to Vector2f in order for Entity.setPosition() to work properly (cLocation was deleted).
11/29/12
Added Bricks.png sprite sheet. Added a frame variable to Entity and a getFrame() function. Added an animation constructor to ImageRenderComponent.java. Added brick entities, brick Animations, level1Map and added brick Images to init in Play.java added render bricks to render function in Play.java.