Friday, May 28, 2010

Menu, Movement Rules and Fog of War

Today we added a permanent menu bar to the bottom of the screen where the user can issue units orders, end the turn and is presented with gameplay data (props to Gary, the menu is great). We then implemented movement rules that stop the player from moving any distance they want. We also made it so that the transparent box that shows where the unit will be moved to is not displayed anywhere it would not be possible for the unit to move. We then moved on to implement the Fog of War effect so that the player cannot see anywhere on the map that it would not be possible for their units to move to on the next turn. Unfortunately the game crashes before it ever displays anything on the screen, but I'm sure this will be resolved quickly next week and we'll have some sweet screenshots to show off. Until then...

2 comments:

  1. If all the current changes are submitted, I'll see if I can't take a look and get the crash to go away some time this weekend.

    ReplyDelete
  2. Bugs fixed. Crash removed. Completely rewrote visibility algorithm. Extensive changes everywhere. Recommend writing a visibility range into the game unit. Currently using move distance for movable units and a static value for non movable units. Gives me the idea of a scout unit that can move quickly, see further, but has really weak hp. One question I have for us as a group: is the fog of war the region you can currently see based on your units or once you visit a location it is permanently visible? As rewritten, once a location becomes visible it is permanently visible which is not very realistic or indicative of modern strategy games.

    ReplyDelete