Initialcommit

This commit is contained in:
2023-12-05 19:52:03 +01:00
commit 59acbd0a6d
5 changed files with 449 additions and 0 deletions

12
Tank.ts Normal file
View File

@@ -0,0 +1,12 @@
export interface ITank {
name: string;
health: number;
attackDelay: number;
}
type BuildTank = (name: string) => ITank;
export const buildTank: BuildTank = (name) => ({
name,
health: 100,
attackDelay: 0,
} as ITank);