public Enemy() {
        super(0, 0);
        initialDirection = Util.random(1, 4);

        int greenCondition = 10;
        int condition = Util.random(0, 100);
        if (Math.max(greenCondition, condition) == greenCondition || greenCondition == condition) type = GHOST_IMMORTAL;
        else type = GHOST_KILLABLE;

        speed = 5;
        velY = velX = 0;

        if (initialDirection == SPAWN_RIGHT) {
            x = -40;
            y = Util.random(10, WINDOW_HEIGHT - 30);
        }
        if (initialDirection == SPAWN_BOTTOM) {
            x = Util.random(10, WINDOW_WIDTH - 30);
            y = WINDOW_HEIGHT + 20;
        }
        if (initialDirection == SPAWN_LEFT) {
            x = WINDOW_WIDTH + 20;
            y = Util.random(10, WINDOW_HEIGHT - 30);
        }
        if (initialDirection == SPAWN_TOP) {
            x = Util.random(10, WINDOW_WIDTH - 30);
            y = -40;
        }
    }