Create grid layout for bricks
Closed this issue · 1 comments
wkeeling commented
Possibly create a function in rounds.base.py
grid_position(x, y, brick)
The function assumes a grid x bricks wide and y bricks tall. Calling the function will blit the brick to the screen at the given grid coord and update the brick's rect.
Such a function can act as a convenience when having to position bricks at specific locations.
wkeeling commented
This has been implemented: BaseRound._blit_brick(brick, x, y). The x and y are relative coordinates starting at 0,0 at the top left corner of the game area.