Jump to content

tedroncal

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. Whenever i run the app it gives me a console error of Here is my code: class mainScene { preload() { this.load.image('player', 'assets/player.png'); this.load.image('coin', 'assets/coin.png'); } create() { var spriteBounds = Phaser.Geom.Rectangle.Inflate(Phaser.Geom.Rectangle.Clone(this.physics.world.bounds), -20, -20); for (var i = 0; i < 500; i++) { var pos = Phaser.Geom.Rectangle.Random(spriteBounds); var block = this.physics.add.sprite(pos.x, pos.y, 'player'); block.setVelocity(Phaser.Math.Between(50, 100), Phaser
×
×
  • Create New...