Skip to content

This is a list of known oldies video games built with JS and TS

License

Notifications You must be signed in to change notification settings

pmanikas/retro-games-with-ts

Repository files navigation

Retro Games with JS/TS

This is a collection of classic arcade games rebuilt using JavaScript and TypeScript, bringing the nostalgia of retro gaming to modern web browsers.

Table of Contents

Games

  • 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

Features

  • 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

Getting Started

  1. Clone the repository:

    git clone https://github.com/yourusername/retro-games-ts.git
    cd retro-games-ts
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm start

Tech Stack

  • TypeScript
  • HTML5 Canvas
  • Web Audio API

Contributing

Contributions are welcome! Feel free to:

  • Add new retro games
  • Improve existing game mechanics
  • Fix bugs
  • Enhance documentation

Game Features

Pong

  • Player 1: Mouse

Snake

  • Arrow keys for direction

Space Invaders

  • Left/Right arrows to move
  • Space to shoot
  • Esc to pause

Dude Jump

  • Left/Right arrows to move
  • Left/Right side of the touch screen to move
  • Auto jump
  • Esc/Leave to pause

Tetris

  • Left/Right arrows to move
  • Up arrow to rotate
  • Down arrow to speed up

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Original game creators for the inspiration
  • MDN Web Docs for Canvas API documentation
  • OpenGameArt for retro game assets