World's Hardest Game is a browser-based remake of the classic skill game, built with TypeScript and HTML5 Canvas. Guide the yellow player square through increasingly difficult levels, dodging moving enemies and reaching the green goal zone. This project is ideal for:
- Players: Looking for a challenging, fast-paced puzzle game in the browser.
- Developers: Interested in learning about TypeScript game development, canvas rendering, and modular code structure.
- Educators: Demonstrating game loops, collision detection, and interactive UI in a modern web stack.
- Modular, well-documented TypeScript codebase
- Responsive HTML5 Canvas rendering
- Multiple challenging levels (easy to add your own)
- Main menu, how-to-play, and quit screens
- Keyboard and mouse controls
- Clean, modern UI overlays
- Play zone with visible barriers
- Clone or download this repository.
- Install dependencies (see below).
- Run the game in your browser (see below).
- Use the keyboard or mouse to navigate menus and play.
- Clone the repository:
git clone https://github.com/ConnorHardin/WorldsHardestGame.git cd WorldsHardestGame - Install dependencies:
npm install
Start the Vite dev server:
npm run devThen open your browser and go to the local server URL (usually http://localhost:5173).
npm run buildThe output will be in the dist/ folder. You can deploy this folder to any static web server.
- Move: Arrow keys or WASD
- Reset Position: R
- Menu Navigation: Arrow keys/WASD or mouse
- Select/Confirm: Enter, Space, or mouse click
- Back: Escape
WorldsHardestGame/
├── src/
│ ├── main.ts # Entry point
│ ├── Game.ts # Game loop, UI, state
│ ├── Player.ts # Player logic
│ ├── Enemy.ts # Enemy logic
│ ├── Level.ts # Level data and rendering
│ ├── level2.ts # Level 2 config
│ ├── level3.ts # Level 3 config
│ └── ...
├── index.html # Main HTML file
├── vite.config.ts # Vite config
├── tsconfig.json # TypeScript config
└── README.md # This file
- Add your own levels: Create new files in
src/(e.g.,level4.ts) following the structure inLevel.tsand import them inmain.ts. - Improve gameplay or UI: Fork the repo, make your changes, and submit a pull request.
- Report issues: Use the GitHub Issues page for bugs or feature requests.
- Game design and code: ConnorHardin
- Inspired by the original World's Hardest Game
Enjoy playing or hacking on the World's Hardest Game!