works now,
my snake moves, the old gets deleted, it can eat apples, they get randomly generated ect...
Type: Posts; User: kitube
works now,
my snake moves, the old gets deleted, it can eat apples, they get randomly generated ect...
i did this now:
int y = 0;
int x = 0;
if (move == '8'){
y++;
}
if (move == '5'){
y--;
you mean like this:
switch (move){
case "a": x--;
break;
case "w": y++
break;
case "d": x++
break;
hi,
when you have this for example:
String[][] table = new String[4][4];
table[0][0] = ". ";
table[0][1] = ". ";
table[0][2] = ". ";
table[0][3] = ". ";
table[1][0] = ". ";