slayer_in_the_shadows.game_view
#
Game View
Module Contents#
Classes#
Main application class. |
Functions#
|
Returns distance between the two entities |
|
Returns angle from entity_1 to entity_2 |
- class slayer_in_the_shadows.game_view.GameView[source]#
Bases:
arcade.View
Main application class.
- on_mouse_press(x: int, y: int, button: int, modifiers: int)[source]#
Override this function to add mouse button functionality.
- Parameters:
x (int) – x position of the mouse
y (int) – 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.
- on_mouse_release(x: int, y: int, button: int, modifiers: int)[source]#
Override this function to add mouse button functionality.
- Parameters:
x (int) – x position of mouse
y (int) – y position of 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.
- perform_attack(attack: slayer_in_the_shadows.sprites.attacks.AttackSpec)[source]#
ATTACK