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