Advertisement
kasper_k

sas

Dec 16th, 2021
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. if (objects[1].y >= window_height - objects[1].width / 2)
  2. {
  3.         objects[1].y = window_height - objects[1].width / 2;
  4.         onground = true;
  5. }
  6. else
  7. {
  8.         objects[1].velocity.y = objects[1].velocity.y + g * time;
  9.         objects[1].y = objects[1].y + objects[1].velocity.y * time;
  10.         objects[1].Move(objects[1].x, objects[1].y);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement