int image_for_type()

in procgen/src/games/jumper.cpp [120:135]


    int image_for_type(int type) override {
        if (type == PLAYER) {
            // if (jump_delta < 0) {
            //     return PLAYER_JUMP;
            // } else
            if (fabs(agent->vx) < .01 && action_vx == 0 && has_support) {
                return PLAYER;
            } else if (facing_right) {
                return (cur_time / 5 % 2 == 0 || !has_support) ? PLAYER_RIGHT1 : PLAYER_RIGHT2;
            } else {
                return (cur_time / 5 % 2 == 0 || !has_support) ? PLAYER_LEFT1 : PLAYER_LEFT2;
            }
        }

        return BasicAbstractGame::image_for_type(type);
    }