@Override
    public void render(Screen screen) {
        switch (dir) {
            case NONE:
                sprite = Sprite.player;
                break;
            case UP:
                sprite = Sprite.playerUp;
                break;
            case RIGHT:
                sprite = Sprite.playerRight;
                break;
            case DOWN:
                sprite = Sprite.playerDown;
                break;
            case LEFT:
                sprite = Sprite.playerLeft;
                break;
        }

        if (damaged) sprite = sprite.tinted(0xffff2222);

        int halfSprite = sprite.size / 2;
        int yp = location.getY() - halfSprite;
        screen.renderText(location.getX(), yp - sprite.size / 3, name, TextAlign.CENTER);
        screen.render(location.getX() - halfSprite, yp, sprite);
    }