Search:

Type: Posts; User: Totel

Search: Search took 0.10 seconds.

  1. Thread: [Snake]Help

    by Totel
    Replies
    23
    Views
    2,203

    Re: [Snake]Help

    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...
  2. Thread: [Snake]Help

    by Totel
    Replies
    23
    Views
    2,203

    Re: [Snake]Help

    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....
  3. Thread: [Snake]Help

    by Totel
    Replies
    23
    Views
    2,203

    Re: [Snake]Help

    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
  4. Thread: [Snake]Help

    by Totel
    Replies
    23
    Views
    2,203

    Re: [Snake]Help

    I will declare this ?


    static Direction direction = Direction.NONE;


    I don't know the use and I don't know where to put this
  5. Thread: [Snake]Help

    by Totel
    Replies
    23
    Views
    2,203

    Re: [Snake]Help

    It will become like this ?

    Declaration :


    static boolean left = false;
    static boolean right = true;
    static boolean up = false;
    static boolean down = false;
  6. Thread: [Snake]Help

    by Totel
    Replies
    23
    Views
    2,203

    Re: [Snake]Help

    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...
  7. Thread: [Snake]Help

    by Totel
    Replies
    23
    Views
    2,203

    Re: [Snake]Help

    Until now I can't get it, It sucks :x
  8. Thread: [Snake]Help

    by Totel
    Replies
    23
    Views
    2,203

    Re: [Snake]Help

    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...
  9. Thread: [Snake]Help

    by Totel
    Replies
    23
    Views
    2,203

    Re: [Snake]Help

    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
  10. Thread: [Snake]Help

    by Totel
    Replies
    23
    Views
    2,203

    Re: [Snake]Help

    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...
  11. Thread: [Snake]Help

    by Totel
    Replies
    23
    Views
    2,203

    Re: [Snake]Help

    I stated my new question in my first post including my new code please help :P
  12. Thread: [Snake]Help

    by Totel
    Replies
    23
    Views
    2,203

    [Snake]Help

    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...
Results 1 to 12 of 12