Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#ActualKhatharr

Posted 03 December 2012 - 09:02 PM

The 'code' button actually uses 'source' tags to wrap your code.

Looking over what you posted, I still don't know what's representing a brick in your code.

Looking at your first post it seems like you're just using sprites and treating them like objects. If you want bricks that do things then you should make a class for bricks that encapsulates their behavior.

Separate your drawing from your logic: Do the logic for the frame and then draw the result.

#1Khatharr

Posted 03 December 2012 - 09:02 PM

The 'code' button actually uses 'source' tags to wrap your code.

Looking over what you posted, I still don't know what's representing a brick in your code.

Looking at your first post it seems like you're just using sprites and treating them like objects. If you want bricks that do things then you should make a class for bricks that encapsulates their behavior.

Separate your drawing from your logic: Do the logic and then draw the result.

PARTNERS