Advertisement
Guest User

Untitled

a guest
May 13th, 2016
81
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Item *neighbors[20] = {
  2. this->world->getItem(x - 1, y - 1), this->world->getItem(x, y - 1),
  3. this->world->getItem(x + 1, y - 1), this->world->getItem(x + 2, y - 1),
  4. this->world->getItem(x - 1, y), this->world->getItem(x, y),
  5. this->world->getItem(x + 1, y), this->world->getItem(x + 2, y),
  6. this->world->getItem(x - 1, y + 1), this->world->getItem(x, y + 1),
  7. this->world->getItem(x + 1, y + 1), this->world->getItem(x + 2, y + 1),
  8. this->world->getItem(x - 1, y + 2), this->world->getItem(x, y + 2),
  9. this->world->getItem(x + 1, y + 2), this->world->getItem(x + 2, y + 2),
  10. this->world->getItem(x - 1, y + 3), this->world->getItem(x, y + 3),
  11. this->world->getItem(x + 1, y + 3), this->world->getItem(x + 2, y + 3),
  12. };
  13.  
  14. this->player->updatePhysics((RigidBody **)neighbors, 20);
Advertisement
RAW Paste Data Copied
Advertisement