Search:

Type: Posts; User: Norm

Search: Search took 0.14 seconds.

  1. Replies
    21
    Views
    2,202

    [SOLVED] Re: more help with snake game

    Now you see the problem you should be able to fix it.

    Done for tonight. Back tomorrow.
  2. Replies
    21
    Views
    2,202

    [SOLVED] Re: more help with snake game

    Sorry, its your code. You should be able to see where it changes the x & y values for the SnakeBody objects.
    What are the x and y values set to in the follow() method?
  3. Replies
    21
    Views
    2,202

    [SOLVED] Re: more help with snake game

    Where in the code are the values changed so that they are on top of each other?
  4. Replies
    21
    Views
    2,202

    [SOLVED] Re: more help with snake game

    Are you saying that all the drawing is done on top of each other?
  5. Replies
    21
    Views
    2,202

    [SOLVED] Re: more help with snake game

    Time for more debugging: add the x,y values to the printlns in the SnakeBody draw() method so you can see where the draw method is putting the rectangles. Also print out the width and height values.
  6. Replies
    21
    Views
    2,202

    [SOLVED] Re: more help with snake game

    Is it working now?
  7. Replies
    21
    Views
    2,202

    [SOLVED] Re: more help with snake game

    Why isn't it being drawn? Does the println statement in its draw() method print out?


    When you create a new SnakeBody object, is it added to the GUI so it will be seen when its drawn?
    Are you...
  8. Replies
    21
    Views
    2,202

    [SOLVED] Re: more help with snake game

    Try debugging the code by printing out the values of the variables that control the drawing of the body. Are their values changing and causing the code to stop drawing the body?
Results 1 to 8 of 8