bLah.

Postby Kidd on Tue Feb 26, 2002 9:32 am

<p align=center><marquee>click the link</marquee><br><marquee behavior=alternate><a href="http://liquid2k.com/k1dd"><font face=arial color=ff0000 size=1>bLah.</a></marquee>

<font size=-1>[ This Message was edited by: kidd on 2002-02-26 09:33 ]</font>
Kidd
Newbie
 
Posts: 4
Joined: Sun Feb 24, 2002 4:00 pm

Postby Kidd on Wed Feb 27, 2002 9:31 am

<body>
import java.awt;
import java.applet;
public class PacMan extends Applet


{
public int x;
public int sweepAngle1;
public int sweepAngle2;
public int counter;
public boolean flag;

public void start()


{
x=45;
counter = 0;
sweepAngle1 = 25;
sweepAngle2 = 300;
flag = false;
}

public void paint (Graphics g)


{


if (x==180)
flag = false;
if (x==0)
flag = true;
g.setColor(Color.red);

if ((counter++ % 2 == 0) & (flag ==false))


{
x+=2;
g.fillArc(x++,15,55,55,sweepAngle1,sweepAngle2);
}
else
{ x+=2;
g.fillArc(x++,15,55,55,(sweepAngle1-25),(sweepAngle2+60));
}

if ((flag == true))


{
g.setColor(Color.blue);
if (counter-- % 2 == 0)


{
x-=2;
g.fillArc(x--,15,55,55,(sweepAngle1-180),(sweepAngle2-180));
}
else
{ x-=2;
g.fillArc(x--,15,55,55,(sweepAngle1-25),(sweepAngle2+60));
}
}


repaint(100);
}
}
</body>

<font size=-1>[ This Message was edited by: kidd on 2002-02-27 09:33 ]</font>
Kidd
Newbie
 
Posts: 4
Joined: Sun Feb 24, 2002 4:00 pm

Postby El Cid on Wed Feb 27, 2002 11:22 am

............

<font size=-1>[ This Message was edited by: El Cid on 2002-02-27 11:23 ]</font>
User avatar
El Cid
Regular Poster
 
Posts: 172
Joined: Fri Jan 01, 1999 4:00 pm
Location: Vegas


 

Return to Inside the Box



Who is online

Users browsing this forum: No registered users and 1 guest

cron