Created
June 21, 2020 19:06
-
-
Save ModMaamari/ece07cfe30afc66ca3f0a64c3b02f461 to your computer and use it in GitHub Desktop.
Wall Attributes
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 | the wall's height | |
width | int | the wall's width ( the same value as the field's width) | |
hole_width | int | the hole's width (max value of hole_width should be field.width or wall.width) | |
y | int | the vertical coordinate of the wall (y axis) (max value of y should be field.height) | |
speed | int | speed of the wall (raw/step) | |
field | Field | the field that contains the wall | |
body_unit | int ; float | the number used to represent the wall in the array representation (in field.body) | |
body | np.array | the wall's body | |
out_of_range | bool | A flag used to delete the wall when it moves out of the field range. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment