Jump to content

Rainbow Buster

Recommended Posts

happy to be appreciated with the feedback. 
I am not into the developing so it is just a stupid question i am afraid but, could maybe use a closed racket helps? :p


or it is another kind of problem?

Link to comment
Share on other sites

Someone told me a long time ago, the only "stupid questions" are the one we don't ask. :)


The racket is a sprite to the computer so the shape we see does not matter. Only the dimensions of the racket which is a square made of 4 characters. 


It all has to do with how you detect "coincidence" between the ball and the racket and then how make sure that the ball has moved away from the racket before you test for coincidence again. The "devil is in the details" as we say in English. It looks like I am detecting again before the ball has been moved far enough away.


It means I will have to test some different methods. 

I think I have a better method now but will play with it more before releasing another version. 

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Ok I think I made it better. Now the ball takes over after a collision and moves itself clear of the thing it hit before we re-enter the primary game loop. 

New files are at the top of the thread.


Seems to play more reliably. 

I actually won 1 game at "gamer speed". That's a first. 


Updated source is here

CAMEL99-ITC/BREAKOUT.FTH at master · bfox9900/CAMEL99-ITC · GitHub


Big changes are in the words WALL-CLR and PADDLE-CLR which move the ball several pixels after a collision. 

  • Like 5
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...