Commit a727026b authored by Vũ Gia Vương's avatar Vũ Gia Vương

--init branch multi-core

parent 9638dab2
......@@ -136,6 +136,7 @@ async function passTower(socket: Socket, data: IRequestPassTower, user: User) {
// speed += (Math.min(towerNumber - MAX_TOWER, A_POWER) * DT);
// xDistance_ += speed * DT;
// }
const acceleration = Math.min(towerNumber - MAX_TOWER, A_POWER) * DT;
speed += data.step * acceleration;
......
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