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

Report as inappropriate.

carlo_kho
carlo_kho presents ...

2011/5/25

sky_force

this is my first game using greenfoot.

it has 3 stages, every stage you must against the enemy..


press the navigation to move, space to shoot, n press "b" to out the missile

attention :
every stage only has 3 missile..

enjoy it... :)

1721 views / 425 in the last 7 days

Tags: game demo

Your browser does not support the canvas tag.
Busch2207Busch2207

2011/5/25

Hi! there is a problem with the stars, i think. You made an extra class for stars. It might be just more easier, if you import the Color class in the "World"-class with: import java.awt.color; You have to write this phrase in the line under import java. greeenfoot*; And then you just write in act(): GreenfootImage i=new GreenfootImage(getWidth(),getHeight()); i.setColor(Color.black); i.fillRect(0,0,getWidth(),getHeight()); i.drawImage(0,1,getBackground()); //if it moves to slow, you have to change the 1 if(Greenfoot.getRandomNumber(10)<=2) i.setColorAt(Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()),Color.white) setBackground(i); then there wont be so many Datas and it wont break. If an other user has a better idea, you can use his possibility. ;)
carlo_khocarlo_kho

2011/5/26

okay thax,, in my PC, my game can work, but after I upload the game, it can't work.. maybe there are some data can't uploaded.. I will try to repair it... :)

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

Who likes this?

No votes yet.