Last active
June 21, 2020 15:25
-
-
Save ModMaamari/9510dfc218710bc6861be657c73034b4 to your computer and use it in GitHub Desktop.
Player's Table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Attribute | Type | Description | |
---|---|---|---|
height | int | player's height | |
max_width | int | player's maximum width (must be less than field.width) | |
width | int | player's width (must be less than or equal to max_width and begger than 0) | |
x | int | player's x coordinate in the field | |
y | int | player's y coordinate in the field | |
speed | int | player's speed (how many horizontal units it moves per step) | |
body_unit | int ; float | the number used to represent the player in the array representation (in field.body) | |
body | np.array | the player's body | |
stamina | int ; float | player's energy (stamina) (when a player's energy hits zero the player dies) | |
max_stamina | int ; float | maximum value for player's stamina |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment