server reconciliation OK (a little rubberbanding)
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
import * as c from ".././constants.js"
|
||||
|
||||
class GameArea {
|
||||
keys: string[];
|
||||
interval: number = 0;
|
||||
keys: string[] = [];
|
||||
handleInputInterval: number = 0;
|
||||
gameLoopInterval: number = 0;
|
||||
canvas: HTMLCanvasElement;
|
||||
ctx: CanvasRenderingContext2D;
|
||||
constructor() {
|
||||
this.keys = [];
|
||||
this.canvas = document.createElement("canvas");
|
||||
this.ctx = this.canvas.getContext("2d") as CanvasRenderingContext2D;
|
||||
this.canvas.width = c.CanvasWidth;
|
||||
|
||||
Reference in New Issue
Block a user