Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. landOnPlatform: function (player, platform) {
  2. if (platform.breakable) {
  3. interaction.breakPlatform(player, platform);
  4. }
  5. if (player.slamming) {
  6. player.slamming = false;
  7. action.shakeCamera();
  8. }
  9. if (player.jumping) {
  10. if (player.body.onFloor()) {
  11. audio.play_land();
  12. player.jumping = false;
  13. } else if (player.body.onCeiling()) {
  14. audio.play_sfx('head_block')
  15. }
  16. }
  17. },
  18.  
  19. platforms.clear(true, true);
  20. doors.clear(true, true);
  21. water.clear(true, true);
  22. keys.clear(true, true);
  23. springs.clear(true, true);
  24. sliders.clear(true, true);
  25. slider_tracks.clear(true, true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement