Search:

Type: Posts; User: ykolin

Search: Search took 0.21 seconds.

  1. Re: game Snake in the applet, how to execute methods from different classes?

    i tried different points, and did not see anything out of ordinary.

    should i println() in other classes as well?
    could you tell me what i'm i looking for in the output?

    I'm not sure if i need...
  2. Re: game Snake in the applet, how to execute methods from different classes?

    when i execute the StartingClass.java or Snake.java i have a game Snake. when the head of the Snake hits its body then i have an output on Console with error on line 136:

    x= number
    y= number...
  3. Re: game Snake in the applet, how to execute methods from different classes?

    yes, output is

    value of Point p = x=140, y=140

    and

    this is the point addPoint p= x=130, y=140
  4. Re: game Snake in the applet, how to execute methods from different classes?

    I have a separate Point.java class in the same package, maybe it would be of help



    package exam1;

    /**
    * Just a simple object that represents a point in the game
    *
    *
  5. Re: game Snake in the applet, how to execute methods from different classes?

    this is the print output from line 120

    this is the point p - :exam1.Point@64b28abf

    if( p != null && ( score % difficulty ) == 0 ) {
    addPoint( p );
    System.out.println ("this is the point...
  6. Re: game Snake in the applet, how to execute methods from different classes?

    Norm,

    Thank you for your reply, unfortunately i have no idea what i'm looking at these lines.

    any other guidance?
  7. Re: game Snake in the applet, how to execute methods from different classes?

    so far this is my code in my class for steps 3, 4 and 5.


    import exam1.GameException;
    import exam1.Snake;

    import java.util. Scanner;

    public class MyclassA06 { // 2. Create a class named...
  8. Re: game Snake in the applet, how to execute methods from different classes?

    "You need to create an object of the class in which your method to be called is present."

    i thought that i have created an object with parameters of 200, 200, 800, 600, am i wrong?
    Snake Snake1 =...
  9. Re: I'm impressed with this Forum.Yes I'm new here, and hope to get some guidelines and help.

    Thank you Greg,
    i will try my best to follow all guidance
  10. game Snake in the applet, how to execute methods from different classes?

    I'm simply looking for any guidance for resolution to a project i was given. Any help is greatly appreciated. please let me know if i need to show StartingClass and Snake classes for more info.
    ...
  11. I'm impressed with this Forum.Yes I'm new here, and hope to get some guidelines and help.

    Greetings to all.

    Not sure what is the point of this introduction, but i hope people read and reply to them.

    My native language is russian thou for the past 12 years i have been using english...
Results 1 to 11 of 11