when running, just make sure all your files are in the proper directories.
i.e.
the sounds and images are referenced as
filepath = "sounds/soundfile"; filepath = "images/imagefile";
Feel free to let me know what you think!




Posted 28 December 2011 - 06:30 AM
filepath = "sounds/soundfile"; filepath = "images/imagefile";
Posted 28 December 2011 - 06:36 AM
Game and Files.zip (9.51K)
Posted 28 December 2011 - 06:56 AM
//checks to see if snake runs into itself
for(int i = 2; i < snakeBody.size(); i++)
{
switch(dir){
case 1: if (y - 15 == snakeBody.get(i).getY() && x == snakeBody.get(i).getX()) return true;
break;
case 2: if (x + 15 == snakeBody.get(i).getX() && y == snakeBody.get(i).getY()) return true;
break;
case 3: if (y + 15 == snakeBody.get(i).getY() && x == snakeBody.get(i).getX()) return true;
break;
case 4: if (x - 15 == snakeBody.get(i).getX() && y == snakeBody.get(i).getY()) return true;
break;
}
}
Posted 28 December 2011 - 07:03 AM
Quote
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
