I'm really glad and thankful because our professor gave us another chance to finish this program until Monday next week, the sad thing is he gave us another homework which will be look like a Battle...
Type: Posts; User: Totel
I'm really glad and thankful because our professor gave us another chance to finish this program until Monday next week, the sad thing is he gave us another homework which will be look like a Battle...
I really can't do it. I gave up already, I think this is enough maybe my professor
will still grade my program even with a below passing grade could be a consideration
from the effort I did, Hehe....
It doesn't matter now I did a trial and error in my program and I knew now the use of it.
I don't get what Norm said
I will declare this ?
static Direction direction = Direction.NONE;
I don't know the use and I don't know where to put this
It will become like this ?
Declaration :
static boolean left = false;
static boolean right = true;
static boolean up = false;
static boolean down = false;
Do I need to declare a bolean
boolean left = false;
boolean right = true;
boolean up = false;
boolean down = false;
And add this code under public void...
Until now I can't get it, It sucks :x
1436
If you will see in the First Drawing Snake bents and the head is always in front to eat the food, while in the 2nd Drawing that's actually kinda same as mine I just used Oval in my codes...
Yes I want the head always be in front every time I eat the random food.
can be done in paintComponent() ? how is that :O
Try to run my code and you'll understand what I am trying to explain, I'm sorry I have bad English grammar. I actually don't know how do you want me to explain it. If you ran my code, you will notice...
I stated my new question in my first post including my new code please help :P
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.util.Random;
import java.io.*;
import java.awt.Color;
import java.awt.event.ActionEvent;
public class Snakes...