Web
Analytics
Log In  

0

Cart [#57584#] | Copy | Code | 2018-10-05 | Link
0

P#57585 2018-10-05 20:27 ( Edited 2018-10-09 22:38)

::

Since we now have =3= people making a breakout game, I can only think that they all took the same tutorial.

That's fine. But to do it properly when the ball hits the paddle, the ball is affected depending upon WHERE the paddle is hit

1 2 3 4 5 6 7
█████████████

If the ball is hit at 4, the X acceleration and direction are unaffected, only the Y reverses.
If the ball hits 1 or 2, the X acceleration will gear more towards the left. (XA-=.25)
If the ball hits 6 or 7, the X acceleration will gear more towards the right. (XA+=.25)

Many players play breakout using this knowledge during play, even going so far as to deflect the ball right on the edge of the paddle to get an even greater degree of control over the ball's direction.

Without this important game element, the cart becomes pretty boring and is really more PONG than a thinking game of controlling the ball to hit bricks at exact locations.

Powerups are also a good idea.

One excellent breakout game I saw had an interesting idea of "Sudden Death" for the bricks where after the ball did not hit a break for a-while because it was too isolated, the last or next-to-last brick would suddenly start to beep and flash. After a short time it beeped and flashed faster and faster until it self-destructed in a nice display of particle explosion.

If that was the last brick for the level, and it usually was, you were greeted to the new level.

Hope This Helps !

P#57586 2018-10-05 20:48 ( Edited 2018-10-06 20:09)

::

Looking over the WIP carts, it seems these are all part of a school project.

Other issues the game has, in addition to what dw817 mentioned:

  • the game doesn't end once you get all the blocks. It is impossible to win; the ball just keeps bouncing around.
  • the paddle doesn't stop when it reaches the edge of the screen.
P#57673 2018-10-08 02:43 ( Edited 2018-10-08 02:50)

::

These guys are all working on learning how to program and just before this project, they were shown game states. Haven't made it to scores / finality yet. Very soon!

Also, yeah, the collision code can be improved. When I showed them the way to deal with collisions, I wanted to go back and edit it during a week on compression and tokens and editing code.

Thanks everyone, for commenting and your suggestions!

P#57764 2018-10-09 22:38

Log in to post a comment

user:
password:

New User | Account Help
:: New User
X
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2018-10-20 06:16 | 0.247s | 1572k | Q:20