Commit 2e918b03 authored by 18류지석's avatar 18류지석

글자가 네모를 정확히 따라감

parent 99c6acbb
......@@ -80,6 +80,7 @@ var gameScene = new Phaser.Class(
update: function()
{
WordSpace.deltaTime = this.sys.game.loop.delta;
WordSpace.wordForcedGroup.forEach(function(element)
{
element.attract();
......
......@@ -104,8 +104,7 @@ class WordObject
}
this.physicsObj.setVelocity(accel.x, accel.y);
this.wordObj.setPosition(this.physicsObj.x, this.physicsObj.y);
this.wordObj.setPosition(this.physicsObj.x + (accel.x / 1000 * WordSpace.deltaTime), this.physicsObj.y + (accel.y / 1000 * WordSpace.deltaTime));
}
isEqualObject(_generationCode) { return _generationCode === this.generationCode; }
......
......@@ -23,6 +23,8 @@ WordSpace.CurrentPhase = WordSpace.Phase.READY;
WordSpace.playerTyping = 0;
WordSpace.playerTypingRate = 0;
WordSpace.deltaTime = 10;
WordSpace.delay =
{
WordSpawn: 3000,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment