audio
+ client prediction
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import {gc} from "./global.js";
|
||||
import * as d from "./draw.js";
|
||||
import {handleInput} from "./handleInput.js";
|
||||
|
||||
@@ -19,7 +20,7 @@ function gameLoop()
|
||||
handleInput(delta_time);
|
||||
|
||||
// prediction
|
||||
// gc.ball.moveAndBounce(delta_time, [gc.wallTop, gc.wallBottom, gc.playerLeft, gc.playerRight]);
|
||||
gc.ball.moveAndBounce(delta_time, [gc.wallTop, gc.wallBottom, gc.playerLeft, gc.playerRight]);
|
||||
|
||||
d.draw();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user