This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
GUARDIAN-X
Central Nine, Franklin
Info
?
Followers
1
Following
0
Likes
0
About Me
Member since August 19, 2014
Age: 27
Following me is
I am following
No one
My favourites include
None
GUARDIAN-X's scenarios
Belt of Danger
Pardus Combat M...
GUARDIAN-X's collections
Space Games
space games
Recent Comments |
Show All
2014/10/24
Belt of Danger
import greenfoot.*; import java.awt.Color; public class Counter extends Actor { private int totalCount = 0; public Counter() { setImage(new GreenfootImage("Score: 0", 50, Color.WHITE, Color.BLACK)); } public void bumpSet(int amount) { totalCount = amount; setImage(new GreenfootImage("Score: " + totalCount, 50, Color.WHITE, Color.BLACK)); } public void bumpCount(int amount) { totalCount += amount; setImage(new GreenfootImage("" + totalCount, 50, Color.WHITE, Color.BLACK)); } }
2014/10/24
Belt of Danger
that isn't the right code, give me a moment...
X
Recent Comments | Show All
2014/10/24
Belt of Danger
2014/10/24
Belt of Danger