Draw

Board::Draw() is the other one of the two main procedures/functions in our game

void Board::Draw() const {

  1. if game is paused set shading to somewhat blue or green or whatever
  2. draw background
  3. for each tile starting from bottom
    • (We need to decide the order since we are doing board rotation to get the isometric view)
    • draw target area if necessary
    • draw the sprite for Sprite object
    • draw defenses for the wall
  4. draw danger indicators
  5. draw board messages
  6. draw user interface
  7. if game is paused draw the pause message or pause menu
  8. else draw contextual mouse cursor and hide the plain cursor

}

page_revision: 0, last_edited: 1160073316|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.