Beispiel #1
0
    def next_turn(cls):
        if not main_gui.MainUI.main_ui_active:
            return

        if pyxel.btnr(pyxel.KEY_N) or \
                (pyxel.btnr(pyxel.MOUSE_LEFT_BUTTON) and 210 < pyxel.mouse_x < 252 and 0 < pyxel.mouse_y < 8):
            cal.next_week()
            player.Player.growth_factor()
            player.Player.pop_change()
            consumption()
            production()
            construction()

        elif Turns.auto_play:
            if pyxel.frame_count % 45 == 0:
                cal.next_week()
                player.Player.growth_factor()
                player.Player.pop_change()
                consumption()
                production()
                construction()