78
74
footsteps->Pause(); //Stop()?
82
76
//Scene::GetCamera()->position = position;
85
79
Creature::Creature() : Entity(),
90
84
sprite = new SpriteAnimation("creature.png", FILTER_NONE, 64, 64);
91
85
sprite->Add("idle", 0, 0, 0.35f);
92
sprite->Add("move", 1, 2, 4.0f);
100
92
skitter1 = Audio::NewDeck(Assets::RequestAudio("skitter1.ogg"));
101
93
skitter1->SetLoops(0); //loop indefinitely
105
97
//set aiTime to random so creatures tick at different times
106
98
aiTime= (float(rand()) / float(RAND_MAX)) * 1.0f;