How to use the melee.enums.ControllerStatus function in melee

To help you get started, we’ve selected a few melee examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github altf4 / libmelee / melee / gamestate.py View on Github external
return False
        if label == "stage_select_cursor_x":
            self.stage_select_cursor_x = unpack('I', mem_update[1])[0]
            temp = temp & 0x000000ff
            self.ready_to_start = not bool(temp)
            return False
        if label == "controller_status":
            temp = unpack('>I', mem_update[1])[0]
            temp = temp & 0x000000ff
            self.player[player_int].controller_status = enums.ControllerStatus(temp)
            return False
        if label == "hitbox_1_size":
            self.player[player_int].hitbox_1_size = unpack('
github altf4 / libmelee / melee / gamestate.py View on Github external
invulnerable = False
    invulnerability_left = 0
    hitlag_frames_left = 0
    hitstun_frames_left = 0
    charging_smash = 0
    jumps_left = 0
    on_ground = True
    speed_air_x_self = 0
    speed_y_self = 0
    speed_x_attack = 0
    speed_y_attack = 0
    speed_ground_x_self = 0
    cursor_x = 0
    cursor_y = 0
    coin_down = False
    controller_status = enums.ControllerStatus.CONTROLLER_UNPLUGGED
    off_stage = False
    transformed = False
    iszelda = False
    iasa = 0
    moonwalkwarning = False
    hitbox_1_size = 0
    hitbox_2_size = 0
    hitbox_3_size = 0
    hitbox_4_size = 0
    hitbox_1_status = False
    hitbox_2_status = False
    hitbox_3_status = False
    hitbox_4_status = False
    hitbox_1_x = 0
    hitbox_1_y = 0
    hitbox_2_x = 0