here's the orignal in its entirety...
import java.awt.Color;
import java.awt.Graphi cs;
import javax.swing.JAp plet;
public class Worms extends JApplet
{
int y = 0;
public void paint(Graphics g)
{ //stairs
g.setColor(Colo r.BLUE);
g.drawLine(0,90 ,90,90);
g.drawLine(90,9 0,90,180);
g.drawLine(90,1 80,180,180);
g.drawLine(180, 180,180,270);...
User Profile
Collapse
-
Yeah, I will post the original, it may take me some time b/c it is pretty long, but I'll have it up soon, thanks 4 your help.Leave a comment:
-
-
Allright, here's what I have so far...it's the lines of code to draw the set of stairs and that's where I need help at, in drawing the bug and moving it up the stairs..
import java.awt.Color;
import java.awt.Graphi cs;
import javax.swing.JAp plet;
public class Test extends JApplet
{
public void paint (Graphics g)
{
//stairs
g.setColor(Colo r.BLACK);
g.drawLine(0,90 ,90,90);...Leave a comment:
-
I have already finished an application in which the caterpillar slinks down a set of stairs. I just need to make a different type of bug go UP the set. I'm having a lot of trouble with it so any help would be great.Leave a comment:
-
caterpillar application help!
Hi,
I am currently taking a Java Programming course and the assignment is to create an application (or applet) in which a caterpillar or any other type of bug goes up a set of steps. If anyone can help me out with some code, advice, etc, that would be very VERY helpful.
Thank you,
NewJack
No activity results to display
Show More
Leave a comment: