added animation
but not full in ADeditor
This commit is contained in:
@@ -24,7 +24,7 @@ void Aliens::addAlien(int srcId)
|
||||
al.path = gameData->map->createPath(al.pos.toPoint(),al.finish);
|
||||
al.pathIndex = 1;
|
||||
al.angle = 180.0f*(- std::atan2( al.pos.x() - al.path.at(al.pathIndex).x(),al.pos.y() - al.path.at(al.pathIndex).y()))/M_PI;
|
||||
al.animIndex = 0.f;
|
||||
al.animIndex = 0;
|
||||
if (al.path.isEmpty())
|
||||
{
|
||||
qCritical("ERROR create path");
|
||||
|
||||
Reference in New Issue
Block a user