Skip to content

Commit 9bb813e

Browse files
Template: improve camera in platformer 8 bits.
1 parent c601b1b commit 9bb813e

File tree

2 files changed

+3
-3
lines changed
  • source/phasereditor
    • org.json/bin
    • phasereditor.inspect.core.resources/templates/Main Templates/Platformer 8-bits/WebContent/js

2 files changed

+3
-3
lines changed

source/phasereditor/org.json/bin/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

source/phasereditor/phasereditor.inspect.core.resources/templates/Main Templates/Platformer 8-bits/WebContent/js/Level.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ Level.prototype.init = function() {
1414
this.load.pack("level", "assets/pack.json");
1515
this.scale.pageAlignVertically = true;
1616
this.scale.pageAlignHorizontally = true;
17-
// this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;
17+
this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;
1818
this.world.setBounds(0, 0, 1232, 272);
19+
// needed for smooth scrolling
20+
this.game.renderer.renderSession.roundPixels = true;
1921
};
2022

2123
Level.prototype.preload = function() {

0 commit comments

Comments
 (0)