I honestly don't even have any idea what that means.
...I have a lot to learn. ^^'
Type: Posts; User: Dessy
I honestly don't even have any idea what that means.
...I have a lot to learn. ^^'
Well app is an integer that can have absolutely any value. At first I set karel as 0, but as an afterthought, I wrote it as a default instead, which makes more sense in my opinion. If I added four...
/**
* Defined direction for east (right).
*/
public static final int EAST = 0;
/**
* Defined direction for north (up).
*/
public static final int NORTH = 1;
...
What I have now is a really inefficient method of adding new sprites to be accessed by constructor methods.
Which image is displayed at any given point in time is dictated by two integers/arguments...
Not sure, actually. But I had something sort of similar to that. I have not actually found a way to use it, as I said. >:
This is true, but the values represent sets of icons. The specific icons are defined by another integer in the constructor that also aligns with an array. Those are directions. The one I just posted...
I think I was using it before to make a
private static String stringname = "/icons/" + appearance[app].toString() + "w.gif"; or something like that. int app is an argument used in the constructor...
public static final int karel = 0;
public static final int bm = 1;
static final int[] appearance = { karel,
bm
};
It was relevant in the original...
Well the way I have the program written (It works for sure now :3), I have to change the hunk of program I just showed to include all my new icons, as well as add a bunch more strings. I was hoping I...
I'm extremely new to Java. I'm in a very basic Java programming class that's really boring and tedious, and I highly doubt we're going to learn anything like this all year, but what I was wondering...