Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. COIf this is about how the zorx1.java file is drawn with all those x's and y's all ridiculously, I received that code from the teacher and I'm guessing he made it hard to read like that on purpose. I suppose I should be rephrasing my question, but my problem is that I don't know how to use KeyListeners, bindings, or whatever and the examples that are usually around keep their graphics in the same class as the keylisteners and whatnot, which is something the teacher ordered us not to do. That is to say, we need to keep the aliens in separate .java files.
      singulars
    2. CO@JackSnyder: I'm not sure which code is yours and which is your teachers, but the ugly guessing code I'm mainly talking about is that which is in your 2nd class, your Animation class which looks to be all over the place. If this is your teacher's code, quit the class. Regarding separation, I'd recommend that you keep your Key Bindings with your drawing class to start with, and then once you get it working, refactor the code to separate them into separate classes. This is called the [Tracer Bullet](http://www.artima.com/intv/tracer.html) method of programming.
      singulars
    3. COWell, you were right about the ugly guessing part, because I really have no idea what I'm doing when it came down to basically anything there. The only things I knew what I was doing when I typed it in was the Zorx1.show(g); part. After that everything pretty much went to the wind. Anyways, when talking about the separation thing, I really have no idea how to do it because I don't know how to do this key bindings (or listening) thing so I'm already stuck on step 1.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload