Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (objects[1].y >= window_height - objects[1].width / 2)
- {
- objects[1].y = window_height - objects[1].width / 2;
- onground = true;
- }
- else
- {
- objects[1].velocity.y = objects[1].velocity.y + g * time;
- objects[1].y = objects[1].y + objects[1].velocity.y * time;
- objects[1].Move(objects[1].x, objects[1].y);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement