How to use the arcade.run function in arcade

To help you get started, we’ve selected a few arcade 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 pvcraven / arcade / arcade / examples / view_screens_minimal.py View on Github external
def main():
    window = arcade.Window(WIDTH, HEIGHT, "Different Views Minimal Example")
    menu_view = MenuView()
    window.show_view(menu_view)
    arcade.run()
github pvcraven / arcade_book / source / chapters / 18_sprites_and_walls / step_3.py View on Github external
def main():
    """ Main method """
    window = MyGame()
    window.setup()
    arcade.run()
github pvcraven / arcade / arcade / examples / sprite_bullets_random.py View on Github external
def main():
    """ Main method """
    window = MyGame(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_TITLE)
    window.setup()
    arcade.run()
github pvcraven / arcade / examples / sprite_move_animation.py View on Github external
def main():
    """ Main method """
    window = MyGame(SCREEN_WIDTH, SCREEN_HEIGHT)
    window.setup()
    arcade.run()
github pvcraven / arcade / examples / sprite_collect_coins_move_bouncing.py View on Github external
def main():
    window = MyGame()
    window.setup()
    arcade.run()
github pvcraven / arcade / examples / pymunk_box_stacks.py View on Github external
def main():
    MyGame(SCREEN_WIDTH, SCREEN_HEIGHT)

    arcade.run()
github pvcraven / arcade / examples / sprite_enemies_in_platformer.py View on Github external
def main():
    window = MyGame()
    window.setup()
    arcade.run()
github pvcraven / arcade / arcade / examples / particle_stress.py View on Github external
self.frametime_plotter = FrametimePlotter()

    def on_update(self, delta_time):
        self.emitter.update()
        if self.emitter.can_reap():
            arcade.close_window()
        self.frametime_plotter.end_frame(delta_time)

    def on_draw(self):
        arcade.start_render()
        self.emitter.draw()


if __name__ == "__main__":
    app = MyGame()
    arcade.run()
    app.frametime_plotter.show()