@syedahoorainali/minecraft
Version:
Delve into a text-based Minecraft adventure in this TypeScript CLI game. Battle foes, strategize, and explore the blocky landscape from your terminal.
22 lines (19 loc) • 437 B
text/typescript
export type Player = {
name: string;
score: number;
health: number;
attackDamage: number;
healthPotions: number;
healthPotionsHealAmount: number;
healthPotionsDropChance: number;
}
export type Enemy = {
names: string[];
health: number;
attackDamage: number;
}
export type Action = {
[key: string]: (frames: {
[key: string]: string[];
}) => Promise<void>;
};