Fixed map, tweaked gravity/jump, added puppy

This commit is contained in:
2021-01-31 14:29:29 -05:00
parent 3481c20e4f
commit 5d76cfe49c
12 changed files with 96 additions and 5 deletions

View File

@ -79,7 +79,7 @@ public:
}
Game::gravityOnPlayer = true;
sprite->Play("Jump");
transform->velocity.y = -1;
transform->velocity.y = -2;
break;
default:
break;

View File

@ -112,7 +112,7 @@ public:
animations.emplace("Walk", walk);
Animation jump = Animation(2,1,100);
animations.emplace("Jump", jump);
Animation fall = Animation(2,2,100);
Animation fall = Animation(3,1,100);
animations.emplace("Fall",fall);
Play("Idle");
}