public void kill() {
if(this.isAlive) {
isAlive = false;
super.setAnimatedView(int[][][] {
ShapeMatrix.KILL_PLAYER_ANIMATION_FIRST,
ShapeMatrix.KILL_PLAYER_ANIMATION_SECOND,
ShapeMatrix.KILL_PLAYER_ANIMATION_THIRD,
ShapeMatrix.DEAD_PLAYER});
}
}
Выражение синтаксически не верное..
файл com/javarush/games/spaceinvaders/part19/gameobjects/PlayerShip.java, строка 39, позиция 1360
в чем ошибка?
package com.javarush.games.spaceinvaders;
public class ShapeMatrix {
public static final int[][] ENEMY = new int[][]{
{7, 0, 7},
{7, 7, 7},
{0, 7, 0}
};
public static final int[][] BULLET = new int[][]{
{2},
{2}
};
public static final int[][] PLAYER = new int[][]{
{0, 0, 6, 0, 0},
{0, 6, 6, 6, 0},
{6, 6, 6, 6, 6}
};
public static final int[][] KILL_PLAYER_ANIMATION_FIRST = new int[][]{
{4, 4, 4, 4, 4},
{4, 4, 4, 4, 4},
{4, 4, 4, 4, 4}
};
public static final int[][] KILL_PLAYER_ANIMATION_SECOND = new int[][]{
{4, 0, 4, 0, 4},
{0, 4, 0, 4, 0},
{4, 0, 4, 0, 4}
};
public static final int[][] KILL_PLAYER_ANIMATION_THIRD = new int[][]{
{0, 4, 0, 4, 0},
{4, 0, 4, 0, 4},
{0, 4, 0, 4, 0}
};
public static final int[][] DEAD_PLAYER = new int[][]{
{0, 0, 0, 0, 0},
{0, 0, 0, 0, 0},
{0, 0, 0, 0, 0}
};
}