 Thread Author
# 1

01-29-2010, 06:32 PM
|
| CrackBerry Newbie Device(s): 8900 (Curve) Carrier: T-Mobile | | Join Date: Jan 2010 Posts: 3 Likes Received: 0
Thanked 0 Times in 0 Posts
| |
Main game loop not updating?
Hey guys, I read forums.crackberry.com/f9/help-new-guy-making-game-264468/#post3072053 and am using that as a template for a game. The problem is in Code: public void paint(Graphics g) {
g.setColor(_random.nextInt();); // _random being a Random object already created
g.drawEllipse(25, 25, 25 + 10, 25, 25, 25 + 10, 0, 0);
} I basically just set a diff color for the ellipse each time paint is called, but it seems paint is only called once, so I was wondering if I'm doing it wrong. I basically copied everything from daveinsurgent's post, which is a great starting pt btw. |