create a array map
Answered
- Need more info
- Answered
- Working on it
in
Programming Questions
•
3 years ago
Hi i want to try to make a litle game with a array map.
For flash the code it's like this:
myMap = [
[1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 0, 0, 1],
[1, 0, 1, 0, 0, 0, 0, 1],
[1, 0, 0, 0, 0, 1, 0, 1],
[1, 0, 0, 0, 0, 0, 0, 1],
[1, 1, 1, 1, 1, 1, 1, 1]
];
Only i can't figure out how to get the simulair for processing.
I get errors like:
expecting 'DOT', found 'myMap'
cannot convert from int[] to int
1