package com.codegym.games.gameobjects;
public class GameObject {
public double x;
public double y;
public GameObject(double x, double y) {
this.x = x;
this.y = y;
}
}
package com.codegym.games;
import com.codegym.engine.cell.*;
public class SpaceInvadersGame extends Game {
public static final int WIDTH = 64;
public static final int HEIGHT = 64;
@Override
public void initialize() {
this.setScreenSize(WIDTH, HEIGHT);
this.createGame();
}
private void createGame() {
this.drawScene();
}
private void drawScene() {
this.drawField();
}
private void drawField() {
for(int y = 0; y < HEIGHT; y++) {
for(int x = 0; x < WIDTH; x++) {
this.setCellValueEx(x,y,Color.BLACK,"");
}
}
}
}