Commit Graph

102 Commits

Author SHA1 Message Date
a56d721050 Move away from using pixel coordinates to "board coordinates"
Changed aspect ratio from 4:3 to 9:16
2018-11-13 15:58:01 +04:00
1c7e20f8e9 Move any stuck balls along with paddle when shields get added/removed 2018-11-13 12:54:09 +04:00
7588a0986b Refactored to use states
Various other refactoring, no functional differences
2018-11-13 11:51:00 +04:00
3fad2085b6 Refactor power up chance to be a variable 2018-11-13 10:21:05 +04:00
70ece88a89 Allow shields to stack.
Refactor Ball.render to keep a local instance of BrickBuster
2018-11-12 21:46:02 +04:00
a199c82fd8 Fixed ball DEFAULT_SPEED being used when BOOST_SPEED should have been 2018-11-12 21:24:02 +04:00
c34610b3e3 Keep a global ShapeRenderer instance rather than an instance per entity 2018-11-12 21:22:16 +04:00
219622ff53 Add shield powerup 2018-11-12 21:11:40 +04:00
393b2fae58 Use a weighted random choice for powerup selection, 15% of power up 2018-11-12 20:39:59 +04:00
4694947a08 Added multi ball powerup 2018-11-12 19:15:24 +04:00
4a7c9215dd Use brick.hit() as a check for whether the brick should be removed. 2018-11-12 18:20:56 +04:00
e1c7fbb53f Move ball speed boost check to Brick's hit() method 2018-11-12 18:19:19 +04:00
1ee5a5a36c Allow ball to fall "out" of screen 2018-11-12 18:13:48 +04:00
83e270062b Refactor to support multiple balls 2018-11-12 18:12:42 +04:00
ed8c90be1a Add debug info to bottom left of screen 2018-11-12 17:15:27 +04:00
5e3f71f236 Replace snake_case to camelCase 2018-11-12 15:46:47 +04:00
d89a20134b Only check for paddle collision when ball position <= paddle height. 2018-11-12 11:50:50 +04:00
d3eb876960 Refactor powerups, move to new package. Decrease long paddle chance to 8% 2018-11-12 11:33:22 +04:00
88428fded9 Keep speed of ball when hitting sticky paddle 2018-11-12 11:18:26 +04:00
a736229c18 Only reset ball speed to default when launching normally 2018-11-12 11:08:09 +04:00
ac27cc5e90 Make sure paddle reaches screen edge 2018-11-12 11:07:04 +04:00
e8901d2ed4 Added longer paddle powerup, fixed issues with sticky paddle bouncing 2018-11-12 11:02:26 +04:00
1f9c2e6db0 Decrease chance of glue powerup dropping from 50% to 8%
Increase default ball speed to 350px/sec
Change paddle speed control to time-based, 375px/sec
2018-11-12 09:54:07 +04:00
3e0d4657f2 Add PowerUp logic + GluePowerUp 2018-11-12 09:28:12 +04:00
28e0ed27f3 Entity take float in constructor instead of int 2018-11-12 09:27:29 +04:00
353afe1cee Update velocity based on time delta 2018-11-11 21:53:18 +04:00
c5642f7050 Change rows of blocks from 10 to 7, increase height padding 2018-11-11 21:53:00 +04:00
711a5548ef Added speed boost after a certain amount of bricks remain
Reset board after all bricks are destroyed
2018-11-11 21:50:30 +04:00
78d0a72217 Rename ball -> new_pos
Fix paddle reset
2018-11-11 21:25:09 +04:00
659fde4622 Use a Vector2 to track entity position. 2018-11-11 20:56:58 +04:00
3feca300be Shrink ball, increase brick height, improve paddle collision, add brick collision 2018-11-11 20:42:25 +04:00
a0b0753c5e Remove redundant .nor() in nearestPoint() 2018-11-11 20:41:01 +04:00
81fc6e91c9 Refactor Block to Brick 2018-11-11 18:48:57 +04:00
053ec9829f Proper paddle collision, and slowed down the paddle 2018-11-11 18:44:43 +04:00
0a071e40d2 Render bricks first 2018-11-11 18:20:21 +04:00
8f788851b2 Add paddle collision detection
Change tracking of entity positions from int to float
2018-11-11 18:20:07 +04:00
5756c9077c Reset ball on top of battle when hitting bottom edge of screen
Render paddle from bottom-left
Change screen-edge reflection checks
Remove use of 'this' where not needed
Make BrickBuster entities private
2018-11-11 15:51:39 +04:00
ec28b8bd99 Only launch the ball if not already playing 2018-11-11 15:09:51 +04:00
79f4334cd7 Add screen edge reflection. 2018-11-11 15:07:29 +04:00
66bd930e2e Merge remote-tracking branch 'origin/master' 2018-11-11 13:13:05 +04:00
b127c62bb4 Set launch angle 2018-11-11 13:12:09 +04:00
adadca7c50 Speed up paddle 2018-11-11 12:02:22 +04:00
733f75830f Moved paddle down 2018-11-11 12:00:08 +04:00
203e3311b7 Shrunk ball again 2018-11-11 11:57:21 +04:00
4c3add8378 Removed hard-coded values, shrunk ball 2018-11-11 11:55:50 +04:00
ace35e1a2c Added paddle boundary 2018-11-11 11:47:21 +04:00
74b96990c5 Added blocks and paddle and part of ball movement. 2018-11-11 11:40:03 +04:00
6c6d5b34bf Remove badlogic.jpg 2018-11-10 23:38:37 +04:00
bb6ecf2923 Add ball and paddle 2018-11-10 22:30:23 +04:00
c9fda66879 Add update loop 2018-11-10 21:40:13 +04:00