Jump to content

Skuzzi

Members
  • Content Count

    2
  • Joined

  • Last visited

  1. var game = new Phaser.Game(672, 672, Phaser.AUTO, ''); var map; var layer; var player; var cursors; var mainState = { preload: function() { // Load in tilemap data game.load.tilemap('testmap', 'levels/pacmanlevel.json', null, Phaser.Tilemap.TILED_JSON); // Load in tileset game.load.image('tiles', 'assets/pacmansprite.png'); game.load.image('player', 'assets/pacman.png'); }, create: function() { game.time.advancedTiming = true; game.stage.backgroundColor = '#000000'; map = game.add.tilemap('testmap', 512, 512); map.addTilesetImage('pacmansprite', '
  2. I really liked Phaser and wanted to use it for game development but I find it to be impossible because of this issue. I'm using Chrome primarily and even with the most basic examples using just body.velocity to move a sprite around it is choppy at times. I can't figure out when and why it is choppy, but basically 30% of the time or so, the sprite is just moving choppily even at 60FPS. The issue also seems to be replicable when I switch back and forth between the tab the game is on and another random tab. I also encountered another issue where the game would just run at 30FP
×
×
  • Create New...