2013

(no subject)

Still haven't gotten the town characters editor written yet but the logic (and code) for moving the characters has been done:

for every character...
  if the character type is MOVING then
    pick a random number between 1 and 5
    if the number is five then
      pick a random direction
    if it's not five then
      if the next tile along the current direction is within the map bounds and is not a solid object then
          if the old position is visible on the screen then
            restore the tile under it
          update the new position
  if new/current position is visible on the screen then draw it
  • Current Mood: content
  • Current Music: Tantric - "Breakdown"