69
66
if (ycol) {velocity.y = 0;}
76
69
//Scene::GetCamera()->position = position;
79
72
Creature::Creature() : Entity(),
84
77
sprite = new SpriteAnimation("creature.png", FILTER_NONE, 64, 64);
85
78
sprite->Add("idle", 0, 0, 0.35f);
86
sprite->Add("move", 1, 2, 4.0f);
91
83
SetCollider(new RectangleCollider(32, 32));
96
85
velocity = Vector2::Random() * ACCELERATION;
98
87
//set aiTime to random so creatures tick at different times