This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Tag365's profile picture

Custom Breakout

Started by Tag365, 06 January 2016 - 05:25 PM
Tag365 #1
Posted 06 January 2016 - 06:25 PM
Play the breakout game on your ComputerCraft terminal.

Use pastebin get P6RHuZfH breakout to get the game.
Bomb Bloke #2
Posted 06 January 2016 - 11:21 PM
The ball moves a heck of a lot faster than the paddle does - even when using the mouse. Taking advantage of key_up events would allow you to have the keyboard controls work better, but really the ball needs to move a bit slower (possibly getting faster as the game progresses). Currently a level starts hard and gets easier (as you obtain larger paddles).

Sometimes the ball manages to go between targets that're right next to each other, potentially reaching all the way up to the top of the screen, or destroying panels that should be fully enclosed by other panels.

If the paddle only just saves the ball before it hits the bottom, then the ball may go through it anyway. In this case, you don't lose, but the ball may end up stuck bouncing between the bottom of the screen and the paddle until you move the paddle to free it.

If you have access to CC 1.76, this is the sort of game that'd really benefit from the expanded character set that version offers. For example, "\186" gets you a circle. You can check whether these characters are available (in order to maintain backwards compatibility) by checking whether the _HOST variable exists or not.

Overall, though, this is pretty good! :)/>