badwing.scene module

class badwing.scene.Scene(name)

Bases: badwing.view.View

add_animated_layer(layer)
add_layer(layer)
close_dialog()
property controller
do_setup()
draw()
draw_dialog()
on_draw()

Called when this view should draw

on_key_press(key, modifiers)

Override this function to add key press functionality.

Parameters
  • symbol (int) – Key that was hit

  • modifiers (int) – Bitwise ‘and’ of all modifiers (shift, ctrl, num lock) pressed during this event. See keyboard_modifiers.

on_key_release(key, modifiers)

Override this function to add key release functionality.

Parameters
  • _symbol (int) – Key that was hit

  • _modifiers (int) – Bitwise ‘and’ of all modifiers (shift, ctrl, num lock) pressed during this event. See keyboard_modifiers.

on_mouse_press(x: float, y: float, button: int, modifiers: int)

Override this function to add mouse button functionality.

Parameters
  • x (float) – x position of the mouse

  • y (float) – y position of the mouse

  • button (int) – What button was hit. One of: arcade.MOUSE_BUTTON_LEFT, arcade.MOUSE_BUTTON_RIGHT, arcade.MOUSE_BUTTON_MIDDLE

  • modifiers (int) – Bitwise ‘and’ of all modifiers (shift, ctrl, num lock) pressed during this event. See keyboard_modifiers.

open_dialog(dialog)
pause()
pop_controller()
post_setup()
pre_setup()
push_controller(controller)
resume()
setup()
shutdown()
update(delta_time)

To be overridden