50 likes | 151 Views
LightWeight Ninja. www.drengin.net www.stardock.net. Carolyn Begle December 13, 2000. Primary Classes. Character Guard (derived from Character) GameObject GameWorld Handler. Data Flow Diagram. Control Flow Diagram. void Character::PlayerRunning() { if (kKeysPressed.bLeft)
E N D
LightWeight Ninja www.drengin.net www.stardock.net Carolyn Begle December 13, 2000
Primary Classes • Character • Guard (derived from Character) • GameObject • GameWorld • Handler
void Character::PlayerRunning() { if (kKeysPressed.bLeft) { if (lDeltaX > 0) { intCurrAction = ACTION_SKIDDING; lDeltaX += -SKID_ACCELERATION; } else { intCurrAction = ACTION_RUNNING; lDeltaX += -2; } } … }