Refactored the way color works. improved comments
authorAndrew Engelbrecht <sudoman@ninthfloor.org>
Tue, 21 Aug 2012 15:58:14 +0000 (11:58 -0400)
committerAndrew Engelbrecht <sudoman@ninthfloor.org>
Tue, 21 Aug 2012 15:58:14 +0000 (11:58 -0400)
commit9962d2298f2db8035d6e3dbf39731fa7ccbf87e5
tree5d1be995ca849cc2b9064062b3b63ef5b344d79a
parentf31e3fa3f5c3a8b2c88a9a3c0404a0b0be4863bb
Refactored the way color works. improved comments

instead of setting color on a per-shape basis, new shapes are marked
with properties that determines its color. the color is stored in a hash
table and found through a lookup function.

i improved the commenting here and there throught the code.

i also made some helpful changes to variable names.
include/spacedolphin.h
src/collide.c
src/color.c [new file with mode: 0644]
src/draw.c
src/main.c
src/move.c
src/shape.c
src/time.c