Search:

Type: Posts; User: nigerianmahogany

Search: Search took 0.44 seconds.

  1. Re: Method keeps looping and timer issues.

    Well it should restart the game when you press Replay and go to the Initialize method. It does that except when you press Replay, the pop up doesn't disappear and another pop up appears as well. The...
  2. Re: Method keeps looping and timer issues.

    Yeah they print out more frequently later once I slowed down the delay. It should have been false when it hit the end of the board but it didn't and they were all true. I have no idea how many timers...
  3. Re: Method keeps looping and timer issues.

    It prints something like this:



    aP @ 1403042040387 true
    aP @ 1403042040548 true
    aP @ 1403042040709 true
    aP @ 1403042040870 true
    aP @ 1403042041031 true
    aP @ 1403042041192 true
  4. Re: Method keeps looping and timer issues.

    Yeah it prints over and over constantly while I'm playing.
  5. Re: Method keeps looping and timer issues.

    Nope they print once every time I press the replay button. But I think the timer fires faster or something because every time I press Replay, the initial snake head moves faster and faster. It may...
  6. Re: Method keeps looping and timer issues.

    Complete program is as follows:

    runGame.java



    import java.awt.*;
    import javax.swing.*;
  7. Method keeps looping and timer issues.

    Alright this consists of two problems I have with my recreation of Snake game in GUI. The first is that when the game ends, I want a pop up that gives the users the option to replay or quit. However,...
  8. Replies
    1
    Views
    64

    Snake GUI Logic

    public class snake extends JPanel implements ActionListener {

    //declare variables used in the beginning. by making them private, they can be seen only by the classes they belong to
    //sets the...
  9. Replies
    5
    Views
    259

    Re: Java HSA Break To Part of Code

    Ok makes sense. Can you just give me a quick example of how to do that and calling the individual methods? We didn't learn this and it'd be helpful. Thanks.
  10. Replies
    5
    Views
    259

    Re: Java HSA Break To Part of Code

    It compiles but not successfully. When I put it with the rest of the code, it says that it can't break to door, blankwall, and haggis because they are undeclared labels.
  11. Replies
    5
    Views
    259

    Java HSA Break To Part of Code

    So in class, I have to do a text based game in HSA console. It's been alright except for one error. When the user inputs something the program doesn't understand, I want it to print "That command is...
Results 1 to 11 of 11