Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- landOnPlatform: function (player, platform) {
- if (platform.breakable) {
- interaction.breakPlatform(player, platform);
- }
- if (player.slamming) {
- player.slamming = false;
- action.shakeCamera();
- }
- if (player.jumping) {
- if (player.body.onFloor()) {
- audio.play_land();
- player.jumping = false;
- } else if (player.body.onCeiling()) {
- audio.play_sfx('head_block')
- }
- }
- },
- platforms.clear(true, true);
- doors.clear(true, true);
- water.clear(true, true);
- keys.clear(true, true);
- springs.clear(true, true);
- sliders.clear(true, true);
- slider_tracks.clear(true, true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement