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

Brick Breaker

Started by TheZipCreator, 29 April 2018 - 04:33 PM
TheZipCreator #1
Posted 29 April 2018 - 06:33 PM
It's brick breaker.

Controls:
Left Arrow - Move paddle left
Right Arrow - Move paddle right



To install
pastebin get BQhGfhFG brickbreaker
Cleancut Quick Install:
pastebin run 646cwnjj
EveryOS #2
Posted 30 April 2018 - 04:45 PM
Nice game!

Some ideas:
  • Unique levels
  • Faster!
  • Multi-hit bricks
Edited on 30 April 2018 - 02:46 PM
GhastTearz #3
Posted 08 May 2018 - 10:15 PM
Nice game, I was surprised how short the actual program was!

I wrote up some comments on your code which is here https://pastebin.com/yz04DK7e
and a modified version demonstrating what changes I'm talking about
can be found here https://pastebin.com/he0RFX0m

The modified version is still glitchy, but I hope you can learn something from it.

The biggest problem with your code is the drawing function. Computercraft can't draw fast
enough, and by drawing the whole screen every time you get a game that is very flickery.
For games it is much better to change things character by character instead of just
printing out the whole screen every time.

Some suggestions for improved versions would be starting the ball from a random direction
and in a random location, improving the brick breaking mechanics, and perhaps changing
the direction of the ball based on where the ball hits the paddle to give the player a little more control.
EveryOS #4
Posted 08 May 2018 - 11:52 PM
This version is much quicker