?

Log in

No account? Create an account
LiveJournal for chickenofbrista.

View:User Info.
View:Friends.
View:Calendar.
View:Memories.
You're looking at the latest 20 entries. Missed some entries? Then simply jump back 20 entries.

Friday, November 11th, 2005

Subject:Blogger.
Time:10:23 am.
I will be deleting this livejournal soon.

http://chickenofbristol.blogspot.com/

Please read my blogger account from now on. And thanks for all the fish. =P
Comments: Add Your Own.

Friday, October 21st, 2005

Subject:...Update
Time:11:15 pm.
I got straight A's this marking period And my comment submitted to slashdot was answer by sid meirs (the creator of the civilization games).

Look at question number 9.

<A HREF="http://interviews.slashdot.org/article.pl?sid=05/10/21/0550213&mode=nocomment&tid=11&tid=10">[Slashdot.org]</A>


Comments: Add Your Own.

Friday, September 30th, 2005

Subject:Random stuff
Time:8:44 pm.
My chemistry teahcer said that photons have a mass. Apparently this works:

Planks constant * Wavelength in hertz = mass of photon (kg) * speed of light ^2

So then

(Planks constant * Wavelength in hertz)/ speed of light ^2 = mass of photon

It comes out to

3.33 * 10^-37 kg

So E= 3.33 * 10^-37 * speed of light^2

Photons cannot travel at the speed of light and have a mass. Your thoughts?
Comments: Add Your Own.

Monday, September 5th, 2005

Time:2:11 pm.
Mood:determined.
This school year is going to be really fucking hard. 5 honors classes at any given time (because I have m and t days of two honors classes) Those classes alternate days, but go on for the entire year. So then my finals for my first semester will be easy as pie (that doesn't make any sense). I got back from my trip to alderney in the Channel Islands, so beautiful. I'll post some pictures later. Muse kicks ass.
Comments: Add Your Own.

Tuesday, July 19th, 2005

Subject:"Leftists" run for the hills
Time:3:13 pm.
I suppose it's that time of year again, where we as Americans can sit back and watch in horror, as our news reporters scare us until we poop ourselves. And what better way to begin the propaganda than to infect the minds of our youth, (me included), and possibly the minds of a few 30-somethings who sadly missed the whole EMO craze. Yes indeed, for we shall follow blindly along with people who lie and decieve for a living, who hold this to be self-evident: 'if we lie enough, the lies become truth'. What better way than to buy up MySpace.com, the poorly-designed piss-poor excuse for "social networking". I never thought a bunch of angst-filled pussies, who take pictures of themselves (that make me want to kill indiscrimanately), and wait for a responce from their so-called "buddies" (aka a group of semi-retarded, psuedo- interesting[insert sarcasm], assfucks, is worth a half a billion dollars. But who am I to judge? I ask one thing from the American public, please care, please don't watch news (which brings up my favorite question, How can Fox News be 'fair and balanced' when they have a giant american flag waving in the top-left corner?), please realize that politicion lie to us, and the only way to make them stop; is to stop accepting their 'Americans rule the world, and we can do whatever we want, and if someone that lives here doesn't believe it, they should be instantly labeled as red/leftist, and are wrong-wrong-wrong-wrong-wrong (repeating to [paralleling exactly what the 24 hour news stations do]).

Run for the hills, the bullshit is coming.
Comments: Add Your Own.

Friday, July 15th, 2005

Subject:Image of game
Time:1:31 pm.
Here is the image of the game I made for computer Science.


Comments: Add Your Own.

Wednesday, June 29th, 2005

Subject:My comp sci final project
Time:9:39 pm.
Check out the source:

//Benjamin Civiletti
//Pac Man final project

import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.Timer.*;
import java.util.Random;

public class PacManGame extends Applet
{
Image buffer;
Graphics bufferG;

Random generator = new Random();
private final int APPLET_WIDTH = 500;
private final int APPLET_HEIGHT = 500;
int JUMP = 3;
int MORE = 2;
private final int IMAGE_SIZE = 25;
private Image right,left,up,down,upLeft,downLeft,upRight,downRight,book,pickup,pacmanUp,pacmanDown,pacmanLeft,pacmanRight,direction,win,lose,splashScreen,loseLife;
Image[] SHdirection = new Image[8];
private int x, y,x3,y3,radii,diameter,points=0,space = 250;
double [] distance = new double [2520];
int [] x2 = new int[2520];
int [] y2 = new int[2520];
int [] newDiameter = new int[2520];
int [] Dotnew = new int[2520];
int [] SHX= new int [4];
int [] SHY= new int [4];
int loop;
String stringDot,stringPoints,StringTime,Stringbonus;
int time =0,Timebonus;
boolean Stop = false, won = false,reSet = false,go =false,fast=false,go2=true;
int presentDiDot=5,DotsCollected=0,bookX=400,bookY=400,lives = 2;
int ONE_SECOND=100;
int more,AIChoice,pickupX,pickupY,livesX=430,livesY=470;
double roundTime=0,startTime=0;
static Random randGen = new Random();
AudioClip loopClip,portal,bookSound,getDot;

//init of game
public void init()
{
buffer = createImage(getWidth(), getHeight());
bufferG = buffer.getGraphics();
requestFocus();
loopClip = getAudioClip(getDocumentBase(),"pacmania3.mid");
portal = getAudioClip(getDocumentBase(),"AKINALO.wav");
bookSound = getAudioClip(getDocumentBase(),"BLIPPLE.wav");
getDot = getAudioClip(getDocumentBase(), "SCORE1.wav");
loopClip.loop();
setBackground (Color.black);
addKeyListener (new DirectionKeyListener());
addMouseMotionListener (new DirectionMouseListener());
addMouseListener (new DirectionMouseListener());

AI();
placeSH ();
reSet();

x = 240;
y = 240;
diameter = 25;
setSize (APPLET_WIDTH, APPLET_HEIGHT);

//random x,y of pickup
pickupX = randGen.nextInt(300) + 150;
pickupY = randGen.nextInt(250) + 150;

//get pics
right= getImage (getCodeBase (), "SHright.gif");
left = getImage (getCodeBase (), "SHleft.gif");
up = getImage (getCodeBase (), "SHup.gif");
down = getImage (getCodeBase (),"SHdown.gif");
upLeft = getImage (getCodeBase (),"SHdiagUpLeft.gif");
upRight = getImage (getCodeBase (), "SHdiagUpRight.gif");
downRight = getImage (getCodeBase (), "SHdiagDownRight.gif");
downLeft = getImage (getCodeBase (), "SHdiagDownLeft.gif");
book = getImage (getCodeBase (), "book.gif");
pickup = getImage (getCodeBase (), "cherry.gif");
pacmanUp = getImage (getCodeBase (), "pac-manUp.gif");
pacmanDown = getImage (getCodeBase (), "pac-manDown.gif");
pacmanLeft = getImage (getCodeBase (), "pac-manLeft.gif");
pacmanRight = getImage (getCodeBase (), "pac-manRight.gif");
lose = getImage (getCodeBase (), "lose.jpg");
win = getImage (getCodeBase (), "Win.jpg");
splashScreen = getImage (getCodeBase (), "pacmanX.jpg");
loseLife = getImage (getCodeBase (), "SHinTank.jpg");

//diameter array for eating dots
for (int i =0; i< 2520;i=i+20)
{
if (i <= 2501)
newDiameter[i] = presentDiDot;
else
newDiameter[i] = 9;
}
//set first pacman/SH direction
direction = pacmanLeft;
for (int i = 0; i < 4; i++)
{
SHdirection[i] = up;
}
repaint();
}
public void update (Graphics g)
{
paint(g);
}

public void paint (Graphics page)
{
bufferG.setColor (Color.black);
bufferG.fillRect (0,0,getWidth(), getHeight());

portal();
drawDots();

//draw Stephen Hawking
for(int i = 0; i < 4; i++)
{
bufferG.drawImage (SHdirection[i],SHX[i],SHY[i],this);
}
//draw pacman, timer, pickups
bufferG.drawImage (direction,x,y,this);
bufferG.drawRect (8,445,80,50);
bufferG.setColor (Color.orange);
StringTime = String.valueOf((int)roundTime);
bufferG.drawString (StringTime + " Seconds",270,490);
bufferG.drawImage (pickup,pickupX,pickupY,this);

//drawLives
if (lives == 2)
{
bufferG.drawImage (pacmanRight, livesX,livesY,this);
bufferG.drawImage (pacmanRight, livesX + 30,livesY,this);
}
else if (lives == 1)
{
bufferG.drawImage (pacmanRight,livesX,livesY,this);
}
//Do you get a time bonus?
if (won == true && roundTime < 1000)
{
Timebonus = (200- (int)roundTime) * 20;
bufferG.setColor (Color.red);
Stringbonus = String.valueOf(Timebonus);
bufferG.drawString (Stringbonus + " Time Bonus points",250,440);
points += Timebonus;
}

//init drawing score
if (DotsCollected ==0)
{
bufferG.setColor (Color.red);
bufferG.drawString ("0" + " Dots" ,10,480);
bufferG.setColor (Color.yellow);
bufferG.drawString ("0"+ " Points",10,460);
}

//distance formula for pacman and his lunch
for (int i =0; i < 2520; i ++)
{
if (x>3 && y>3)
{
distance[i] = Math.sqrt((Math.pow( x - x2[i],2)) + (Math.pow (y - y2[i],2)));
}

}
bufferG.setColor (Color.white);

for (int i =0; i < 2520; i=i+20)
{
bufferG.fillOval (x2[i],y2[i],newDiameter[i],newDiameter[i]);
}

bufferG.setColor (Color.blue);
bufferG.fillRect (APPLET_WIDTH-50,200,50,10);
bufferG.fillRect (APPLET_WIDTH-50,250,50,10);
bufferG.fillRect (APPLET_WIDTH-500,200,50,10);
bufferG.fillRect (APPLET_WIDTH-500,250,50,10);
bufferG.fillRect (APPLET_WIDTH/2 - 30,APPLET_HEIGHT/2-60,100,5);
bufferG.fillRect (APPLET_WIDTH/2 -30,APPLET_HEIGHT/2-60,5,100);
bufferG.fillRect (APPLET_WIDTH/2 -30,APPLET_HEIGHT/2+40,100,5);
bufferG.drawImage(book,bookX,bookY,this);

// pacman dissapears
if (Stop == true)
{
x = 1000;
y = 1000;
bufferG.drawImage (pacmanUp,x,y,this);
bufferG.drawImage (lose,60,100,this);
if (go==true)
New();
}

if (go == false)
{
bufferG.drawImage (splashScreen,0,75,this);
}
else
{
bufferG.drawImage (splashScreen,0,500,this);
}

if (go2 == false)
{
bufferG.drawImage (loseLife,60,100,this);
}
else
{
bufferG.drawImage (loseLife,0,500,this);
}

//Have you collected all the dots?
if (DotsCollected == 125)
{
bufferG.drawImage (win,60,100,this);
won = true;
New();
}
//Collect the book!
if (x <= bookX +25 &&x >= bookX - 25 && y <=bookY+25 && y >= bookY - 25)
{
bookX = 95;
bookY = 460;
points += 1000;
bufferG.setColor (Color.yellow);
stringPoints = String.valueOf(points);
bufferG.drawString (stringPoints + " Points",10,460);
//make SH go fast for 5 seconds
startTime = 0;
fast = true;
bookSound.play();
}

//collect the pickup
if (x <=pickupX +25 &&x >= pickupX - 25 && y <=pickupY+25 && y >=pickupY - 25)
{
pickupX = 600;
pickupY = 600;
bufferG.drawImage (pickup,pickupX,pickupY,this);
points = points + 500;
bufferG.setColor (Color.yellow);
stringPoints = String.valueOf(points);
bufferG.drawString (stringPoints + " Points",10,460);
}

//make SH go fast for 5 seconds
if (fast == true)
MORE= 4;
if (startTime > 5)
MORE = 2;

//Delete circles when pacman goes over them,keeps score too
for (int i = 0; i<2520; i=i+20)
{
radii = (newDiameter[i]/2) + (diameter/2);
if (distance[i] < radii && Dotnew[i] == 0 && x>3 && y >3)
{
newDiameter[i] = 0;
bufferG.fillOval (x2[i],y2[i],newDiameter[i],newDiameter[i]);
Dotnew[i] = 1;
DotsCollected ++;
points = points + 20;
stringDot = String.valueOf(DotsCollected);
stringPoints = String.valueOf(points);
getDot.play();
}


else if (Dotnew[i] ==1 && x> 0 && y >0)
{
bufferG.setColor (Color.red);
bufferG.drawString(stringDot + " Dots",10,480);
bufferG.setColor (Color.yellow);
bufferG.drawString (stringPoints + " Points",10,460);

newDiameter[i] = 0;
bufferG.fillOval (x2[i],y2[i],newDiameter[i],newDiameter[i]);
}
}
page.drawImage (buffer,0,0,this);
}

//Key code
private class DirectionKeyListener implements KeyListener
{
public void keyPressed (KeyEvent event)
{
if (Stop == false && won ==false)
{
switch(event.getKeyCode())
{
case KeyEvent.VK_UP:
if (x>=2 && x<=47 && y == 211 || x>= 0 && x<=120 && y>= 420 && y<=500)
{
}
else if (y>4)
{
direction = pacmanUp;
y -= JUMP;
repaint();
}
break;
case KeyEvent.VK_DOWN:
if (x>=2 && x<=50 && y == 175 || x>= 0 && x<=120 && y>= 415 && y<=500)
{
}
else if (y
[Error: Irreparable invalid markup ('<applet_height [...] &&>') in entry. Owner must fix manually. Raw contents below.]

Check out the source:

//Benjamin Civiletti
//Pac Man final project

import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.Timer.*;
import java.util.Random;

public class PacManGame extends Applet
{
Image buffer;
Graphics bufferG;

Random generator = new Random();
private final int APPLET_WIDTH = 500;
private final int APPLET_HEIGHT = 500;
int JUMP = 3;
int MORE = 2;
private final int IMAGE_SIZE = 25;
private Image right,left,up,down,upLeft,downLeft,upRight,downRight,book,pickup,pacmanUp,pacmanDown,pacmanLeft,pacmanRight,direction,win,lose,splashScreen,loseLife;
Image[] SHdirection = new Image[8];
private int x, y,x3,y3,radii,diameter,points=0,space = 250;
double [] distance = new double [2520];
int [] x2 = new int[2520];
int [] y2 = new int[2520];
int [] newDiameter = new int[2520];
int [] Dotnew = new int[2520];
int [] SHX= new int [4];
int [] SHY= new int [4];
int loop;
String stringDot,stringPoints,StringTime,Stringbonus;
int time =0,Timebonus;
boolean Stop = false, won = false,reSet = false,go =false,fast=false,go2=true;
int presentDiDot=5,DotsCollected=0,bookX=400,bookY=400,lives = 2;
int ONE_SECOND=100;
int more,AIChoice,pickupX,pickupY,livesX=430,livesY=470;
double roundTime=0,startTime=0;
static Random randGen = new Random();
AudioClip loopClip,portal,bookSound,getDot;

//init of game
public void init()
{
buffer = createImage(getWidth(), getHeight());
bufferG = buffer.getGraphics();
requestFocus();
loopClip = getAudioClip(getDocumentBase(),"pacmania3.mid");
portal = getAudioClip(getDocumentBase(),"AKINALO.wav");
bookSound = getAudioClip(getDocumentBase(),"BLIPPLE.wav");
getDot = getAudioClip(getDocumentBase(), "SCORE1.wav");
loopClip.loop();
setBackground (Color.black);
addKeyListener (new DirectionKeyListener());
addMouseMotionListener (new DirectionMouseListener());
addMouseListener (new DirectionMouseListener());

AI();
placeSH ();
reSet();

x = 240;
y = 240;
diameter = 25;
setSize (APPLET_WIDTH, APPLET_HEIGHT);

//random x,y of pickup
pickupX = randGen.nextInt(300) + 150;
pickupY = randGen.nextInt(250) + 150;

//get pics
right= getImage (getCodeBase (), "SHright.gif");
left = getImage (getCodeBase (), "SHleft.gif");
up = getImage (getCodeBase (), "SHup.gif");
down = getImage (getCodeBase (),"SHdown.gif");
upLeft = getImage (getCodeBase (),"SHdiagUpLeft.gif");
upRight = getImage (getCodeBase (), "SHdiagUpRight.gif");
downRight = getImage (getCodeBase (), "SHdiagDownRight.gif");
downLeft = getImage (getCodeBase (), "SHdiagDownLeft.gif");
book = getImage (getCodeBase (), "book.gif");
pickup = getImage (getCodeBase (), "cherry.gif");
pacmanUp = getImage (getCodeBase (), "pac-manUp.gif");
pacmanDown = getImage (getCodeBase (), "pac-manDown.gif");
pacmanLeft = getImage (getCodeBase (), "pac-manLeft.gif");
pacmanRight = getImage (getCodeBase (), "pac-manRight.gif");
lose = getImage (getCodeBase (), "lose.jpg");
win = getImage (getCodeBase (), "Win.jpg");
splashScreen = getImage (getCodeBase (), "pacmanX.jpg");
loseLife = getImage (getCodeBase (), "SHinTank.jpg");

//diameter array for eating dots
for (int i =0; i< 2520;i=i+20)
{
if (i <= 2501)
newDiameter[i] = presentDiDot;
else
newDiameter[i] = 9;
}
//set first pacman/SH direction
direction = pacmanLeft;
for (int i = 0; i < 4; i++)
{
SHdirection[i] = up;
}
repaint();
}
public void update (Graphics g)
{
paint(g);
}

public void paint (Graphics page)
{
bufferG.setColor (Color.black);
bufferG.fillRect (0,0,getWidth(), getHeight());

portal();
drawDots();

//draw Stephen Hawking
for(int i = 0; i < 4; i++)
{
bufferG.drawImage (SHdirection[i],SHX[i],SHY[i],this);
}
//draw pacman, timer, pickups
bufferG.drawImage (direction,x,y,this);
bufferG.drawRect (8,445,80,50);
bufferG.setColor (Color.orange);
StringTime = String.valueOf((int)roundTime);
bufferG.drawString (StringTime + " Seconds",270,490);
bufferG.drawImage (pickup,pickupX,pickupY,this);

//drawLives
if (lives == 2)
{
bufferG.drawImage (pacmanRight, livesX,livesY,this);
bufferG.drawImage (pacmanRight, livesX + 30,livesY,this);
}
else if (lives == 1)
{
bufferG.drawImage (pacmanRight,livesX,livesY,this);
}
//Do you get a time bonus?
if (won == true && roundTime < 1000)
{
Timebonus = (200- (int)roundTime) * 20;
bufferG.setColor (Color.red);
Stringbonus = String.valueOf(Timebonus);
bufferG.drawString (Stringbonus + " Time Bonus points",250,440);
points += Timebonus;
}

//init drawing score
if (DotsCollected ==0)
{
bufferG.setColor (Color.red);
bufferG.drawString ("0" + " Dots" ,10,480);
bufferG.setColor (Color.yellow);
bufferG.drawString ("0"+ " Points",10,460);
}

//distance formula for pacman and his lunch
for (int i =0; i < 2520; i ++)
{
if (x>3 && y>3)
{
distance[i] = Math.sqrt((Math.pow( x - x2[i],2)) + (Math.pow (y - y2[i],2)));
}

}
bufferG.setColor (Color.white);

for (int i =0; i < 2520; i=i+20)
{
bufferG.fillOval (x2[i],y2[i],newDiameter[i],newDiameter[i]);
}

bufferG.setColor (Color.blue);
bufferG.fillRect (APPLET_WIDTH-50,200,50,10);
bufferG.fillRect (APPLET_WIDTH-50,250,50,10);
bufferG.fillRect (APPLET_WIDTH-500,200,50,10);
bufferG.fillRect (APPLET_WIDTH-500,250,50,10);
bufferG.fillRect (APPLET_WIDTH/2 - 30,APPLET_HEIGHT/2-60,100,5);
bufferG.fillRect (APPLET_WIDTH/2 -30,APPLET_HEIGHT/2-60,5,100);
bufferG.fillRect (APPLET_WIDTH/2 -30,APPLET_HEIGHT/2+40,100,5);
bufferG.drawImage(book,bookX,bookY,this);

// pacman dissapears
if (Stop == true)
{
x = 1000;
y = 1000;
bufferG.drawImage (pacmanUp,x,y,this);
bufferG.drawImage (lose,60,100,this);
if (go==true)
New();
}

if (go == false)
{
bufferG.drawImage (splashScreen,0,75,this);
}
else
{
bufferG.drawImage (splashScreen,0,500,this);
}

if (go2 == false)
{
bufferG.drawImage (loseLife,60,100,this);
}
else
{
bufferG.drawImage (loseLife,0,500,this);
}

//Have you collected all the dots?
if (DotsCollected == 125)
{
bufferG.drawImage (win,60,100,this);
won = true;
New();
}
//Collect the book!
if (x <= bookX +25 &&x >= bookX - 25 && y <=bookY+25 && y >= bookY - 25)
{
bookX = 95;
bookY = 460;
points += 1000;
bufferG.setColor (Color.yellow);
stringPoints = String.valueOf(points);
bufferG.drawString (stringPoints + " Points",10,460);
//make SH go fast for 5 seconds
startTime = 0;
fast = true;
bookSound.play();
}

//collect the pickup
if (x <=pickupX +25 &&x >= pickupX - 25 && y <=pickupY+25 && y >=pickupY - 25)
{
pickupX = 600;
pickupY = 600;
bufferG.drawImage (pickup,pickupX,pickupY,this);
points = points + 500;
bufferG.setColor (Color.yellow);
stringPoints = String.valueOf(points);
bufferG.drawString (stringPoints + " Points",10,460);
}

//make SH go fast for 5 seconds
if (fast == true)
MORE= 4;
if (startTime > 5)
MORE = 2;

//Delete circles when pacman goes over them,keeps score too
for (int i = 0; i<2520; i=i+20)
{
radii = (newDiameter[i]/2) + (diameter/2);
if (distance[i] < radii && Dotnew[i] == 0 && x>3 && y >3)
{
newDiameter[i] = 0;
bufferG.fillOval (x2[i],y2[i],newDiameter[i],newDiameter[i]);
Dotnew[i] = 1;
DotsCollected ++;
points = points + 20;
stringDot = String.valueOf(DotsCollected);
stringPoints = String.valueOf(points);
getDot.play();
}


else if (Dotnew[i] ==1 && x> 0 && y >0)
{
bufferG.setColor (Color.red);
bufferG.drawString(stringDot + " Dots",10,480);
bufferG.setColor (Color.yellow);
bufferG.drawString (stringPoints + " Points",10,460);

newDiameter[i] = 0;
bufferG.fillOval (x2[i],y2[i],newDiameter[i],newDiameter[i]);
}
}
page.drawImage (buffer,0,0,this);
}

//Key code
private class DirectionKeyListener implements KeyListener
{
public void keyPressed (KeyEvent event)
{
if (Stop == false && won ==false)
{
switch(event.getKeyCode())
{
case KeyEvent.VK_UP:
if (x>=2 && x<=47 && y == 211 || x>= 0 && x<=120 && y>= 420 && y<=500)
{
}
else if (y>4)
{
direction = pacmanUp;
y -= JUMP;
repaint();
}
break;
case KeyEvent.VK_DOWN:
if (x>=2 && x<=50 && y == 175 || x>= 0 && x<=120 && y>= 415 && y<=500)
{
}
else if (y<APPLET_HEIGHT - IMAGE_SIZE)
{
direction = pacmanDown;
y += JUMP;
repaint();
}
break;
case KeyEvent.VK_LEFT:
if (x==51 && y>= 179 && y <=207 || x>= 0 && x<=120 && y>= 420 && y<=500)
{
}
else if (x>4)
{
direction = pacmanLeft;
x -= JUMP;
repaint();
}
break;
case KeyEvent.VK_RIGHT:
if (x< APPLET_WIDTH - IMAGE_SIZE)
{
direction = pacmanRight;
x += JUMP;
repaint();
}
break;
default:
}
}
else
{
}
repaint();
}
public void keyTyped (KeyEvent event) {}
public void keyReleased (KeyEvent event) {}
}

private class DirectionMouseListener implements MouseListener, MouseMotionListener
{
public void mouseMoved (MouseEvent event)
{
repaint();
}

public void mouseEntered(MouseEvent event) {}
public void mouseReleased (MouseEvent event) {go = true; go2 = true;}
public void mouseDragged (MouseEvent event) {}
public void mouseClicked (MouseEvent event) {}
public void mousePressed (MouseEvent event) {}
public void mouseExited (MouseEvent event) {}
}

public void reSet()
{
if (reSet ==true)
{
x = 240;
y = 240;

for (int i=0; i <4; i++)
{
if (i==0)
{
SHX[i] = 10;
SHY[i] = 170;
}
else if (i==1)
{
SHX[i] = 10;
SHY[i] = 350;
}
else if (i==2)
{
SHX[i] =350;
SHY[i] = 10;
}
else if (i==3)
{
SHX[i] = 350;
SHY[i] = 350;
}
reSet=false;
}
}
}

public void AI ()
{
//AI timer
javax.swing.Timer timer = new javax.swing.Timer(ONE_SECOND, new ActionListener()
{
public void actionPerformed(ActionEvent evt)
{
time++;
repaint();
if (won == false && Stop ==false && go == true && go2 == true)
{
roundTime +=.1;
startTime +=.1;
}

// Which bot will follow you?
if (x>=0 && x<=250 && y >=0 && y <=230)
{
AIChoice = 0;
}
else if (x>=0 && x<=250 && y >=230 && y <= 460)
{
AIChoice = 1;
}
else if (x>= 251 && x<=500 && y >=0 && y <= 210)
{
AIChoice = 2;
}
else if (x>= 250 && x<=500 && y>= 210 && y<=460)
{
AIChoice =3;
}
for(int i = AIChoice; i < AIChoice+1;i++)
{
//if statement for AI (follows pacman everywhere)

if (won == false && Stop == false && go == true && go2== true)
{
if ( x == SHX[i] && y == SHY[i] || x >= SHX[i] -25 && x <= SHX[i] +25 && y <= SHY[i] + 25 && y >= SHY[i] -25)
{
lives = lives - 1;

if (lives==1)
{
go2 = false;
reSet=true;
reSet();
}

if (lives ==0)
{
Stop = true;
}
}
if (x < SHX[i] && y < SHY[i])
{
SHdirection[i] = upLeft;
SHY[i] = SHY[i]-MORE;
SHX[i] = SHX[i]-MORE;
}
else if (x > SHX[i] && y > SHY[i])
{
SHdirection[i] = downRight;
SHX[i] = SHX[i]+MORE;
SHY[i] = SHY[i]+MORE;
}
else if (x < SHX[i] && y> SHY[i])
{
SHdirection[i] = downLeft;
SHX[i] = SHX[i]-MORE;
SHY[i] = SHY[i]+MORE;
}
else if (x > SHX[i] && y < SHY[i])
{
SHdirection[i] = upRight;
SHX[i] = SHX[i]+MORE;
SHY[i] = SHY[i]-MORE;
}
else if (x == SHX[i] && y > SHY[i])
{
SHdirection[i] = down;
SHY[i] = SHY[i]+MORE;
}
else if (x == SHX[i] && y < SHY[i])
{
SHdirection[i] = up;
SHY[i] = SHY[i]-MORE;
}
else if (x > SHX[i] && y == SHY[i])
{
SHdirection[i] = right;
SHX[i] = SHX[i]+MORE;
}
else if (x < SHX[i] && y == SHY[i])
{
SHdirection[i] = left;
SHX[i] = SHX[i]-MORE;
}
}
repaint();
}
//Makes guard bot go back to respawn
for (int i=3;i<4;i++)
{
if (AIChoice != 3)
{
if (SHX[i] > 350)
{
SHdirection[i] = right;
SHX[i] -= MORE;
}
else if (SHX[i] < 350)
{
SHdirection[i] = left;
SHX[i] += MORE;
}
else if (SHY[i] > 350)
{
SHdirection[i] = up;
SHY[i] -= MORE;
}
else if (SHY[i] < 350)
{
SHdirection[i] = down;
SHY[i] += MORE;
}
repaint();
}
}
}
});

//Start/Stop AI timer, Time bonus?
if (Stop == true)
{
timer.stop();
}
else if (won == true)
{
timer.stop();
}
else if (Stop == false)
{
timer.start();
}
}

public void placeSH ()
{
for (int i=0; i <4; i++)
{
if (i==0)
{
SHX[i] = 10;
SHY[i] = 170;
}
else if (i==1)
{
SHX[i] = 10;
SHY[i] = 350;
}
else if (i==2)
{
SHX[i] =350;
SHY[i] = 10;
}
else if (i==3)
{
SHX[i] = 350;
SHY[i] = 350;
}
}

}

public void drawDots()
{
//init x,y of pacman and circles, draws dot map
for (int i =0; i < 2520; i=i+20)
{
if (go == true)
{
if (i >= 0 && i <= 250)
{

x3 = 60;
y3 =i+100;
x2[i] = x3;
y2[i] = y3;
}
else if (i >= 250 && i <= 500)
{
x3 = 95;
y3 = i-150;
x2[i] = x3;
y2[i] = y3;
}
else if (i >= 500 && i <=750)
{
x3 = 130;
y3 = i-400;
x2[i] = x3;
y2[i] = y3;
}
else if (i >= 750 && i<= 1000)
{
x3 = 350;
y3 = i-650;
x2[i] = x3;
y2[i] = y3;
}
else if (i >= 1000 && i<= 1250)
{
x3 = 385;
y3 = i-900;
x2 [i] = x3;
y2[i] = y3;
}
else if (i >= 1250 && i <=1500)
{
x3 = 415;
y3 = i-1150;
x2[i] = x3;
y2[i] = y3;
}
else if (i >=1500 && i <= 1750)
{
x3 = i-1370;
y3 = 40;
x2[i] = x3;
y2[i] = y3;
}
else if (i >=1750 && i <=2000)
{
x3 = i-1625;
y3 = 60;
x2[i] = x3;
y2[i] = y3;
}
else if (i>=2000 && i <=2250)
{
x3 = i-1820;
y3 = 365;
x2[i] = x3;
y2[i] = y3;
}
else if (i>= 2250 && i <=2499)
{
x3 = i-2200;
y3 = 395;
x2[i] = x3;
y2[i] = y3;
}
else if (i>=2501 && i <=2520)
{
x3 = i-2300;
y3 = 420;
x2[i] = x3;
y2[i] = y3;
}
}
}
}
public void portal()
{
//Code for the portal on either side of the map
if (x >= 464 && x <= 485 && y >= 211 && y <= 233)
{
x =5;
y = 219;
portal.play();
}
else if (x <= 4 && x >=0 && y >= 211 && y <= 233)
{
portal.play();
x = 451;
y = 219;
}
}

public void New ()
{
Stop=false;
go=false;
lives=2;
points = 0;
won = false;
reSet = false;
fast=false;
go2=true;
fast = false;
presentDiDot=5;
bookX=400;
bookY=400;
lives = 2;
livesX=430;
livesY=470;
JUMP = 3;
roundTime=0;
ONE_SECOND=100;
x = 240;
y = 240;
diameter = 25;
go = true;
drawDots();
for (int i =0; i < 2520; i=i+20)
{
bufferG.fillOval (x2[i],y2[i],newDiameter[i],newDiameter[i]);
}
stringDot = String.valueOf(DotsCollected);
stringPoints = String.valueOf(points);
bufferG.setColor (Color.red);
bufferG.drawString(stringDot + " Dots",10,480);
bufferG.setColor (Color.yellow);
bufferG.drawString (stringPoints + " Points",10,460);

placeSH ();
reSet();
portal();
go = false;
}
}
Comments: Read 2 orAdd Your Own.

Monday, April 11th, 2005

Subject:Radnom stuff.
Time:6:38 pm.
I have been meaning to do this for a long time.

 I think this is a parody of that Honda commercial:     http://killermookie.org/video/Cog_Missing.wmv

Get perdendicular!----  http://www.hitachigst.com/hdd/research/recording_head/pr/PerpendicularAnimation.html

Insane Dyson people:  http://www.dyson.com/media/tvad.asp?sinavtype=menu

The most retarded thing (be happy because I looked through 5 pages of a forum, twice):  http://sweb.uky.edu/~gvhall2/buddyhall_net_videos
Someone noted: be prepared to refund people their 3.5 minutes. LMAO.  (just a warning)


K, done people.  {insert another stupid matrix quote}
Comments: Add Your Own.

Tuesday, April 5th, 2005

Subject:Quick update.
Time:7:26 pm.
Mood:busy.
Operation "Drink up Miss Nancy" be underway soon.

If you want to donate funds we need:

-A large truck "Room for an emu!" I think it's the post-keeping up appearences era, oh well!
-Some firearms, maybe some mp5 k's with grenade launchers
-A magic carpet
-A stardard garden house
-Magic mushrooms (if you catch my drift)
-tranquilizers and darts (lots and lots of darts)
-Shitty camera (simply to post some pictures on my server)
-Sperm guard for my keyboard (I just want one)


Ok, done children.
Comments: Read 2 orAdd Your Own.

Thursday, March 24th, 2005

Subject:It's better to reign in hell.
Time:7:35 pm.
Mood:drained.
Updated my picture, as that Miss Nancy Emu thing.  Brett, you outbid everyone one else; congrats (I will expect my money on Teusday.)  ALL 10 CENTS OF IT. 

We should make an "All your base" song, incorperating the "Miss Nancy" Emu in it.


Play me in CS:S? 

Tag: " =-[DS]-=Chickenofbristol" (no quotes)

I usually play on the LAN FUSION server Pub #1 in Madison New Jersey.

Will post Ip, when I'm not so lazy and exausted.  *Will also post some pics on my computer*  I'm hoping to get a thermaltake silent boost soon, the stock cooling is just not cutting it for me anymore.

Plus * Is anyone else getting random freezups/blank screens/ looping sounds in CS:S?*  It's starting to piss me off.

Maybe is has something to do with my specs:

athlon 64 3000+ socket 754
1 gig pc 3200 (512 x 2) single channel
9600xt 256mb non-overclocked
msi neo kt800 mobo

im only running CS:S at 1024*768 with everything on high, no AA or AF, seems to freeze up more with those settings on.  Also it freezes alot in 1200*1024.

Comments: Add Your Own.

Wednesday, March 23rd, 2005

Subject:Post = new random.generator(*2) + 1();
Time:3:33 pm.


                           "Drink up Miss Nancy!"

Yeah it scared me too:
www.valdosta.edu/ ~kdgibson/ebook.html


The bidding for BF1942 ends tomorrow, I think iv'e got 10 cents so far.  COME ON PEOPLE.  And again, I am serious, you will be getting the real cd's to the game, and I will expect my money.  "I spent 14 years designing a bumpy yellow piece of plastic".

Google for dyson vacuum, its hilarious.

Cheers.
Comments: Add Your Own.

Monday, March 21st, 2005

Subject:Random thoughts....
Time:9:43 pm.
I was watching TV at about 4 a.m., and I saw this shitty commercial for a vacuum cleaner (you know, the sort of one where the announcer has a shitty British cockney accent, and he used his "charm" and "intelligence" to trick you in to buying expensive stuff that you could do just as easily; and albeit easier than with a pig. He was like al-ite, pieces of fucking shit (he didn't say that, but I know he wanted to say it), let's take a look at this bloody yellow piece of shit shall we? It looked like someone was going for the World record for the biggest bong. "Look at it, its bloody brilliant" (then it cuts to some shitty black and white shit of some people trying to vacuum with a leader brand or whatever), "What in the fuck will you do when your vacume loses all its fucking suction?" "Well not will the bloody -insert name here-. it has the suction power 50,000 times that of gravity" YEAH GOOD FUCKING ONE, I GUESS NO ONE KNOWS THAT GRAVITY IS THE WEAKEST FORCE IN THE UNIVERSE, GOOD ONE ASSHOLE. AND I LIKE THE WAY YOU SAY GRAVITY, LIKE THE FORCE IS NOT RULED BY ANYTHING, BUT LIKE ITS CONSTANT OR SOMETHING, WHAT A DOUCHEBAG. Oh, and by the way, if you weren't such a piece of shit; you would pick up a book and realize that gravity can only pull... who said it has suction power? What does that have to do with it? Dick head. If you see that commercial, beat a cat to death with a meat tenderizer.
Comments: Read 1 orAdd Your Own.

Wednesday, March 16th, 2005

Subject:Oh my god.
Time:7:33 pm.
Hide your women and children, run for cover....


Yay.

I am auctioning off a 2 year old copy of battlefield 1942.  The starting bid was for 5 cents, so keep them coming... oh, yes I am serious.  Ian just gave the cd's back to me after 2 years of borrowing them, lol.
Comments: Read 3 orAdd Your Own.

Thursday, March 10th, 2005

Subject:Holy fuck, FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK.....
Time:2:04 pm.
Holy fucking shit: these fucking religious fucks have gone way way way to far.

http://objective.jesussave.us/kidz.html

WTF WTF WTF WTF WTF WTF WTF WTF WTF WTF WTF WTF WTF

"What should you do if you find an Atheist?

If you find an Atheist in your neighborhood,
TELL A PARENT OR PASTOR RIGHT AWAY!

You may be moved to try and witness to
these poor lost souls yourself, however
AVOID TALKING TO THEM!

Atheists are often very grumpy and bitter and will lash out at children or they may even try to trick you into neglecting God's Word.

Very advanced witnessing techniques are needed for these grouches. Let the adults handle them."

HOLY SHIT, WHAT THE FUCK IS WRONG WITH THESE PEOPLE? HERE'S ANOTHER ONE ABOUT AN INDIAN:

Hey, Habu...
How many gods do you have?

Habu says: 'I don't know... I lost count!'

Wouldn't you rather have just one God who loves you a bunch than a bunch of gods that don't love you at all?

Jesus loves everybody, even the unsaved like Habu! Remember to pray for Habu and others like him that they may find Jesus and accept Him into their hearts!



AND THEN SOME BULLSHIT ABOUT SOME PROFESSOR THING (IT IS JAVA I COULDN'T COPY IT, SEE THE LINK ABOVE)

Hey professor! Havn't dinos been around for millions of years?

Wrong little buddy, dinosaurs still walk on land and swin in the seas! And the earth is less than 10,000 years old!



OK I HAVE DECIDED, I AM GOING TO KILL MYSELF, BUT FIRST MURDER ANY ONE ELSE THAT I SEE.

PLEASE, THE PAIN COULDN'T BE WORSE THEN WHAT I AM EXPIERIENCING RIGHT NOW.

WHAT IS A VERY ADVANCED WITNESSING TECHNIQUE ANYWAY?
Comments: Read 3 orAdd Your Own.

Saturday, February 26th, 2005

Subject:German version of the Sims allows you to command a concentration camp!
Time:8:38 am.
Here is a shot of the box:


Yay for socializm!  Next week: The features of the sims game, and possibly another posts about EMO kids, because I always do a good job with that. 

If you can name the other nazi's in the photograph, I'll send you a picture of more nazi's.  And if you can name them, I'll send you some more. 
Comments: Read 1 orAdd Your Own.

Tuesday, February 22nd, 2005

Subject:I hate people. Bush is an asshole.
Time:3:26 pm.
First off, I would like to apologize because I haven't done a rant in a long time.  Let the insanity begin......again...




*Bush meeting with Secretary General Jaap de Hoop Scheffer, to "repair" bruised relations between the United States and some European allies embittered over the war in Iraq*


Yeah nice one, like we all didn't see that shit coming.  Let's recap:

1) Invade random country, make sure the only people in this country that support the war, cannot even spell the name of the country we're invading.
    Check!
2) Lie like a blubbering douche bag
    Check!
3) Go to countries that hate you, and pretend your getting along like good little children.
    Check!


Later in that interview he denies that the US is planning to go to war with Iran people of nuclear threats.  If I were George, I would answer in this manner:

Cunt Reporter: "Is it true that the US is thinking of invading Iran because of their nuclear programs?"
George: "You know what?  Fuck it.  Hell yeah we fucking are, those pussies; I'm gonna personally beat the living tar out of any indivisual that comes in my parameter!"
Cunt Reporter: "Fair enough."

See, it's much easier.  And besides, that's fucking good television.

Ok, next topic.  ///* What if Goerge Bush was on a TV sitcom?  \\\*



 

Comments: Add Your Own.

Tuesday, January 18th, 2005

Subject:Aryan Linux.
Time:4:31 pm.
I was searching around for alternitives for Windows, and I encountered a new Linux Distro. It sounded kind of, shall I say: white. But I gave it a try, and let me tell you, it will blow your mind. The best GUI ever, who would have thought of slavery and opression to be a focal point of the Graphical User Interface. I ordered 10 live cd's from their site. It's so great. Ps: I am not a racist, this is a joke, please do not get offended.

This is a nice shot of the box:


More Aryan madness coming soon.
Comments: Read 2 orAdd Your Own.

Sunday, January 9th, 2005

Subject:Ok.....tomorrow....
Time:9:22 pm.
I don't have time right now, been busy, yada-yada-yada. Seriosly, TOMORROW, I will put a funny entry on here. The holiday season always makes mw lose track of time.

I am writing this from my new computer, it's awesome. Can play games like a bitch.

Title of next entry: "Aryan Linux!"
Comments: Add Your Own.

Tuesday, December 28th, 2004

Subject:It's been a while sorry....
Time:10:41 pm.
Next "funny" entry very very soon, school has been a bitch.

I did however order the parts for my UBER COMPUTER!

AMD Athlon 64 3000+ w/512mb L2 CACHE memory ^.^
120GB Hard drive with 8MB buffer
1 Gig of ddr400 corsair RAM ^.^
POWMAX midtower case w/ acrylic side panel and 450watt psu
Sapphire 9600xt 256mb graphics card
DVD burner
Kick ass speakers w/ subwoofer
21 Inch CRT monitor

Beat that bitches!
Comments: Read 2 orAdd Your Own.

Sunday, December 19th, 2004

Subject:Got the first part of my computer...
Time:8:15 pm.
Went to a computer show in Edison, with Andrew and Jeff. I bought a massive 21 inch CRT monitor, it's friggin' awesome. I pretty much stole the thing, $40 I got if for. New ones cost like $400, I 1600*1200 resolution is amazing, I can view Yahoo.com all at once, with this beast. It's big, but it's really not that heavy, probably 35 pounds, and it's made by ATI, ^.^

I can't belive it's almost christmas, It seems like Thanksgiving was two days ago, argh. Don't feel like typing anything funny right now, maybe in a few weeks, after finals, and I'll finally be out of Honors Biology, god I hate that friggin' teacher. What an asshole, these are the assingment that I have to do before Thursday:

1) Stupid cell project thing
2) 27, yeah I'm serious, assignments.
3) study for protein synthesis test
4) Some other random project
5) Stupid cell lab, where I have to cut out 32 deoxyribose things, and tape them together in some random sequence.
6) On top of that I have to read two books over the winter break for Honors English, next semester.

Yay for me, I would be depressed if the screen that I'm looking at right now, was so friggin' massive.

Ps. I'm not sure if this is safe, But I have my homebuilt computer, and the 21 inch monitor all on a card-table. I wouldn't think that it would hold that much, I'm pretty sure it was made in China, from the 50 pounds it's holding, although, it's a bit wobbly.
Comments: Add Your Own.

LiveJournal for chickenofbrista.

View:User Info.
View:Friends.
View:Calendar.
View:Memories.
You're looking at the latest 20 entries. Missed some entries? Then simply jump back 20 entries.