Jump to content




Brick Breaker


3 replies to this topic

#1 TheZipCreator

  • Members
  • 27 posts
  • LocationNew York, US

Posted 29 April 2018 - 05:33 PM

It's brick breaker.

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

Posted Image

To install
pastebin get BQhGfhFG brickbreaker
Cleancut Quick Install:
pastebin run 646cwnjj


#2 EveryOS

  • Members
  • 570 posts
  • LocationOver there ->

Posted 30 April 2018 - 03:45 PM

Nice game!

Some ideas:
  • Unique levels
  • Faster!
  • Multi-hit bricks

Edited by EveryOS, 30 April 2018 - 03:46 PM.


#3 GhastTearz

  • Members
  • 6 posts

Posted 08 May 2018 - 09: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.

#4 EveryOS

  • Members
  • 570 posts
  • LocationOver there ->

Posted 08 May 2018 - 10:52 PM

This version is much quicker





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users