Commit Graph

33 Commits

Author SHA1 Message Date
28eb4149ee Change background to black, paddle to white 2018-11-22 17:31:00 +04:00
53feedf407 Pass spritebatch instance to all entity's render methods
Scale spritebatch and shaperenderer projections to PIXEL_PER_METER,
no longer have to scale in each entity's render method
Use a separate spritebatch for font rendering
Dispose the texture atlas
2018-11-22 15:44:13 +04:00
70f142c2fa Render bricks and ball using sprites instead of constructed polygons
Changed field width to 10 blocks instead of 11
2018-11-22 14:55:13 +04:00
f70dc67878 Begin adding support for rendering different shaped bricks 2018-11-15 20:09:48 +04:00
0abae880d3 Add MenuState, start with it and switch back when a game is finished 2018-11-13 17:58:42 +04:00
1fe82cb5b2 Change viewport to FitViewport, board height/width to 4K
Enable font anti-aliasing
2018-11-13 17:14:33 +04:00
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
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
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
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
d3eb876960 Refactor powerups, move to new package. Decrease long paddle chance to 8% 2018-11-12 11:33:22 +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
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
81fc6e91c9 Refactor Block to Brick 2018-11-11 18:48:57 +04:00
0a071e40d2 Render bricks first 2018-11-11 18:20:21 +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
4c3add8378 Removed hard-coded values, shrunk ball 2018-11-11 11:55:50 +04:00
74b96990c5 Added blocks and paddle and part of ball movement. 2018-11-11 11:40:03 +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
dd6aa7da5f Basic setup 2018-11-10 21:32:04 +04:00
8f00390eed First commit 2018-11-10 20:24:31 +04:00