This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

lomza_t
lomza_t presents ...

2010/10/31

kentpong-simple

No description.

1817 views / 540 in the last 7 days

Tags: game

Your browser does not support the canvas tag.
DonaldDuckDonaldDuck

2010/10/31

Cool graphics! How'd you do the smoke?
lomza_tlomza_t

2010/11/15

Sry for such a late answer, DonaldDuck... Well, first I saw it in a Breakout scenario and it interested me. There's nothing difficult with this smoke actually... You make it as a subclass of Actor and you have only two private fields: image of GreenfootImage class and a fade. Your fade will change as ball moves and you need to use getRandomNumber in this case and have few methods like act() and shrink() for instance, which will change the picture. And then I create an object of a Smoke type in Ball class and call it from makeSmoke method and then call it from my act() method. And that's all I think. =) Good luck!
DonaldDuckDonaldDuck

2010/11/15

Yes, I noticed after I posted that how easy it might be :) Thanks for your answer :)

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.