Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var platforms;
- function create ()
- {
- this.add.image(400, 300, 'sky');
- platforms = this.physics.add.staticGroup();
- platforms.create(400, 568, 'ground').setScale(2).refreshBody();
- platforms.create(600, 400, 'ground');
- platforms.create(50, 250, 'ground');
- platforms.create(750, 220, 'ground');
- }
Add Comment
Please, Sign In to add comment