Search:

Type: Posts; User: finalfantasyfreak15

Search: Search took 0.16 seconds.

  1. help with using multiple classes

    Hi,

    I'm trying to figure out how to use another class as a scanner for a text analyzer class. I've pasted the class which scans the words and the class which calls the scanner. I'm just not...
  2. Re: arraylists to store coordinates for a snake applet

    Hi,

    I'm sorry I've been posting so much code, but I did get the arraylist set up. My new problem is how to get the different coordinates of the new pieces to be different. (The most recent,...
  3. Re: arraylists to store coordinates for a snake applet

    package assignment04;

    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.Image;
    import java.awt.Point;
    import java.awt.event.ComponentEvent;
    import...
  4. Replies
    6
    Views
    8,213

    Re: Snake Game

    i'm also making a snake game and i've heard that i needed to use an arraylist to store the coordinates.
  5. Re: arraylists to store coordinates for a snake applet

    ok so i've figured out how to get the array going. it adds new coordinate data for new pieces, unfortunately it is using the exact same coordinates for every piece so they are being drawn right on...
  6. Re: arraylists to store coordinates for a snake applet

    Oh no! I'm sorry I didn't format my code properly...I've read the announcement and here is my code again with the proper formatting. Sorry.



    package assignment04;

    import java.awt.Color;...
  7. arraylists to store coordinates for a snake applet

    Hi,

    I'm trying to make a snake game for my CS class, but I can't figure out how to use an arraylist to store the x and y coordinates. I was thinking I should use two lists; one for x and one for...
Results 1 to 7 of 7