TANKCRAFT
True fun and nostalgia.
The problem TANKCRAFT solves
It is a fun PvP game the merges two nostalgic mechanics of Minecraft and Tank stars game it is fun experience
Challenges we ran into
The Folder vs. File Mix-up: The scenes directory was accidentally created as a text file instead of a folder, which prevented us from organizing the scene files properly.
Missing Game Engine Dependency: Vite threw a dependency scan error because the Phaser engine wasn't actually installed in the new project folder. We had to pause and run npm install phaser.
The Missing Scenes Crash: main.ts was looking for 5 specific scene files to stitch the game loop together. Because MineScene.ts and BuildScene.ts were missing, and MenuScene.ts had a typo in the filename (MenuScenes.ts), the compiler threw 11 simultaneous errors.
The "White Screen of Death" (Unsaved Changes): The browser showed a blank white screen because the code was pasted into VS Code but not saved to the hard drive, leaving Vite trying to render empty files.
Ghost Errors (VS Code Lag): Even after saving, VS Code showed red squiggly lines under the imports. The TypeScript server was lagging behind the file system and had to be manually restarted (Ctrl + Shift + P -> Restart TS server) to catch up.
Accidental File Clones: Extra files named grid.ts and minescene.ts were accidentally created in the src folder, which confused the compiler and caused conflicting module errors until they were deleted.
Missing Exports: The TileType and WeaponType export lines were missing from the top of config.ts, causing state.ts to crash since it couldn't find the definitions for the grid cells.
Git Merge Conflict: While syncing with the team, GitHub injected a merge conflict into main.ts (<<<<<<< HEAD). It temporarily overwrote your Phaser setup with the default Vite starter code, forcing us to wipe the file and paste the correct engine code back in.
Tracks Applied (4)