fix: editor no aplicava a memoria, soles a fitxer
This commit is contained in:
@@ -56,6 +56,11 @@ void Enemy::resetToInitialPosition(const Data& data) {
|
||||
sprite_->setVelX(data.vx);
|
||||
sprite_->setVelY(data.vy);
|
||||
|
||||
x1_ = data.x1;
|
||||
x2_ = data.x2;
|
||||
y1_ = data.y1;
|
||||
y2_ = data.y2;
|
||||
|
||||
applyFlipMirror(data.vx);
|
||||
|
||||
collider_ = getRect();
|
||||
|
||||
Reference in New Issue
Block a user