Ajout des fichiers de lucky + quelques corrections mineures sur l'auth (2FA) et le flow pour le user

This commit is contained in:
batche
2022-12-07 11:50:39 +01:00
parent f8095c7ec6
commit f835f74443
84 changed files with 2450 additions and 15 deletions

View File

@@ -0,0 +1,21 @@
import { Vector, VectorInteger } from "./Vector.js";
interface Component {
pos: VectorInteger;
}
interface GraphicComponent extends Component {
ctx: CanvasRenderingContext2D;
color: string;
update: () => void;
clear: (pos?: VectorInteger) => void;
}
interface Moving {
dir: Vector;
speed: number; // pixel per second
move(delta: number): void;
}
export {Component, GraphicComponent, Moving}