treesummaryrefslogcommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatrick Schönberger2020-09-30 20:27:07 +0200
committerPatrick Schönberger2020-09-30 20:27:07 +0200
commitde5af31aee6d829d1e088e0a530b1a54e2275ecd (patch)
treeef19e0df0b8ecd0b58ae0b739bfae9383c9f8364 /src
parent65c153e4938bad79bacef69dc23aa383772ec4e9 (diff)
downloadnpengine-de5af31aee6d829d1e088e0a530b1a54e2275ecd.tar.gz
npengine-de5af31aee6d829d1e088e0a530b1a54e2275ecd.zip
Revert "pre revert"
This reverts commit 65c153e4938bad79bacef69dc23aa383772ec4e9.
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index cabe3de..f6d131b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -95,7 +95,7 @@ struct Player {
x += x_vel;
y += y_vel;
if (!collision_y(1) && y_vel < 9)
- y_vel += 0.001;
+ y_vel += 1;
if (abs(x - x_screen) >= 1 || abs(x - x_screen) >= 1) {
clear();
draw();
@@ -295,7 +295,7 @@ int WinMain(HINSTANCE a0, HINSTANCE a1, LPSTR a2, int a3) {
if (key_down(Key::Right) && !player.collision_x(1))
player.move(+1, 0);
if (key_pressed(Key::Jump) && player.collision_y(1))
- player.y_vel = -0.001;
+ player.y_vel = -5;
player.update();