Skip to content

Instantly share code, notes, and snippets.

@ModMaamari
Created June 21, 2020 19:06
Show Gist options
  • Save ModMaamari/ece07cfe30afc66ca3f0a64c3b02f461 to your computer and use it in GitHub Desktop.
Save ModMaamari/ece07cfe30afc66ca3f0a64c3b02f461 to your computer and use it in GitHub Desktop.
Wall Attributes
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