79
66
if (ycol) {velocity.y = 0;}
86
69
//Scene::GetCamera()->position = position;
89
72
Creature::Creature() : Entity(),
94
77
sprite = new SpriteAnimation("creature.png", FILTER_NONE, 64, 64);
95
78
sprite->Add("idle", 0, 0, 0.35f);
96
sprite->Add("move", 1, 2, 4.0f);
104
85
skitter1 = Audio::NewDeck(Assets::RequestAudio("skitter1.ogg"));
105
86
skitter1->SetLoops(0); //loop indefinitely
109
90
//set aiTime to random so creatures tick at different times
110
91
aiTime= (float(rand()) / float(RAND_MAX)) * 1.0f;