This is a collection of classic arcade games rebuilt using JavaScript and TypeScript, bringing the nostalgia of retro gaming to modern web browsers.
- Pong - The classic table tennis-themed arcade game from 1972
- Snake - The famous Nokia-popularized game of growing serpents
- Space Invaders - The iconic shoot 'em up arcade game from 1978
- Dude Jump - A simple endless runner game with a jumping dude
- Tetris - The legendary tile-matching puzzle game from 1984
- Built with TypeScript for type safety and better development experience
- Canvas-based rendering for smooth gameplay
- Responsive design that adapts to different screen sizes
- Classic retro sound effects and visuals
-
Clone the repository:
git clone https://github.com/yourusername/retro-games-ts.git cd retro-games-ts
-
Install dependencies:
npm install
-
Start the development server:
npm start
- TypeScript
- HTML5 Canvas
- Web Audio API
Contributions are welcome! Feel free to:
- Add new retro games
- Improve existing game mechanics
- Fix bugs
- Enhance documentation
- Player 1: Mouse
- Arrow keys for direction
- Left/Right arrows to move
- Space to shoot
- Esc to pause
- Left/Right arrows to move
- Left/Right side of the touch screen to move
- Auto jump
- Esc/Leave to pause
- Left/Right arrows to move
- Up arrow to rotate
- Down arrow to speed up
This project is licensed under the MIT License - see the LICENSE file for details.
- Original game creators for the inspiration
- MDN Web Docs for Canvas API documentation
- OpenGameArt for retro game assets