5import java.awt.event.KeyEvent;
26 private List<BackgroundTile>
tiles =
new ArrayList<>();
51 for (
int i = 0; i < 9; i++) {
56 for (
int tx = -1; tx <= 1; tx++) {
57 for (
int ty = -1; ty <= 1; ty++) {
58 tile.
addCostume(
new Costume(tx +
"," + ty,
"jscratch_ws/assets/" + tx +
"," + ty +
".png", 240, 180));
76 int tcx = (int) Math.round((
double)-
x /
TILE_WIDTH);
81 for (
int dy = 1; dy >= -1; dy--) {
82 for (
int dx = -1; dx <= 1; dx++) {
83 int worldX = tcx + dx;
84 int worldY = tcy + dy;
void switchCostume(String n)
void addCostume(Costume c)
static Stage getInstance()
void superGoTo(int x, int y)