Improve gameplay
This commit is contained in:
parent
7412bc8af5
commit
793d9a81e8
27 changed files with 275 additions and 226 deletions
13
frontend/src/scripts/helper/pointer.ts
Normal file
13
frontend/src/scripts/helper/pointer.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { vec2 } from 'gl-matrix';
|
||||
|
||||
export class Pointer {
|
||||
private static displayPosition: vec2 | null = null;
|
||||
|
||||
public static setDisplayPosition(x: number, y: number): void {
|
||||
Pointer.displayPosition = vec2.fromValues(x, y);
|
||||
}
|
||||
|
||||
public static getDisplayPosition(): vec2 | null {
|
||||
return Pointer.displayPosition;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue