Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. void move() {
  2. super.move();
  3. deltaV = -m_gravity * m_time;
  4. m_Vy += deltaV;
  5. println(deltaV);
  6. m_y -= m_Vy*m_time;
  7. if (m_y > m_groundPos) {
  8. m_y = m_groundPos;
  9. m_Vy= random(50, 80);
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement