improved color changing rules
authorAndrew Engelbrecht <sudoman@ninthfloor.org>
Wed, 22 Aug 2012 19:00:00 +0000 (15:00 -0400)
committerAndrew Engelbrecht <sudoman@ninthfloor.org>
Wed, 22 Aug 2012 19:00:00 +0000 (15:00 -0400)
commit39e1d8fe5618f1b03e7418a5bb9ad94b354967d3
treeb15a91d8a5bff36a8e9cbfc7b47fbd0d18a244a8
parent9865f174cf3140c31aeefe5683b47160c5dced95
improved color changing rules

now objects keep track of the last object they touched that changed
their color. this is so it can know whether it was recently re-touched
by the object, i.e. whether it is virtually maintaining contact.

if so, then the color will change to another color only if enough time
has lapsed, and is touched by an object of a different color.

when a small object touches a ship, it loses its color instanly, then
follows the above rules for regaining color.
include/spacedolphin.h
src/collide.c
src/shape.c