Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def main():
window = arcade.Window(WIDTH, HEIGHT, "Different Views Minimal Example")
menu_view = MenuView()
window.show_view(menu_view)
arcade.run()
def main():
""" Main method """
window = MyGame()
window.setup()
arcade.run()
def main():
""" Main method """
window = MyGame(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_TITLE)
window.setup()
arcade.run()
def main():
""" Main method """
window = MyGame(SCREEN_WIDTH, SCREEN_HEIGHT)
window.setup()
arcade.run()
def main():
window = MyGame()
window.setup()
arcade.run()
def main():
window = MyGame()
window.setup()
arcade.run()
def main():
MyGame(SCREEN_WIDTH, SCREEN_HEIGHT)
arcade.run()
def main():
window = MyGame()
window.setup()
arcade.run()
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()