Skip to content

Commit b626c66

Browse files
Fixes PreloadText component.
1 parent 34b46a5 commit b626c66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/PreloadText.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class PreloadText extends UserComponent {
1212

1313
this.scene.load.on(Phaser.Loader.Events.PROGRESS, p => {
1414

15-
this.gameObject.text = (p * 100) + "%";
15+
this.gameObject.text = Math.floor(p * 100) + "%";
1616
});
1717

1818
/* END-USER-CTR-CODE */

0 commit comments

Comments
 (0)