react-games Tailwind Templates

React Games

A collection of classic games rebuilt with modern web technologies - React, TypeScript, and Tailwind CSS.

šŸŽ® React Games Collection

A collection of classic games rebuilt with modern web technologies - React, TypeScript, and Tailwind CSS.

šŸŽÆ Overview

Four classic games reimagined using modern web technologies. Built for mobile, compatible with desktop. Perfect for learning React patterns and game development concepts. Features responsive design, touch support, and keyboard controls.

šŸŽ² Games Included

  • 2048: Slide and combine tiles to reach 2048
  • Bird Flapper: A flappy bird inspired game
  • Word Guesser: A Wordle-like word guessing game
  • Higher or Lower: A card guessing game

✨ Features

  • Modern Tech Stack: Built with React 18, TypeScript, and Tailwind CSS
  • Responsive Design: Playable on both desktop and mobile devices
  • Multiple Control Methods: Keyboard, touch, and click controls
  • Clean Architecture: Well-organized component structure
  • Type Safety: Full TypeScript implementation
  • Performance Optimized: Built with Vite for fast development and production builds

šŸš€ Quick Start

  1. Clone the repository:

    git clone https://github.com/WDibble/react-games
    
  2. Install dependencies:

    npm install
    
  3. Start the development server:

    npm run dev
    
  4. Open http://localhost:5173 in your browser

šŸ›  Tech Stack

  • Framework: React 18 with TypeScript
  • Styling: Tailwind CSS
  • Build Tool: Vite
  • Routing: React Router DOM
  • State Management: React Hooks

šŸ“ Project Structure

ā”œā”€ā”€ src/
│   ā”œā”€ā”€ pages/         # Game components
│   │   ā”œā”€ā”€ BirdFlapper.tsx
│   │   ā”œā”€ā”€ HigherOrLower.tsx
│   │   ā”œā”€ā”€ TwentyFourtyEight.tsx
│   │   └── WordGuesser.tsx
│   ā”œā”€ā”€ App.tsx       # Main app component
│   └── main.tsx      # Entry point

šŸŽ® Game Controls

2048

  • Arrow Keys: Move tiles
  • Touch: Swipe in any direction
  • On-screen Buttons: Click arrows to move

Bird Flapper

  • Space: Flap/Jump
  • Touch/Click: Tap to flap

Word Guesser

  • Keyboard: Type letters
  • Enter: Submit guess
  • Backspace: Delete letter

Higher or Lower

  • Buttons: Click Higher/Lower
  • Touch: Tap buttons to guess

Top categories

Loading Svelte Themes