Skip to content

Gloomcaller/ToD-GHPD-Repo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Truth or Dare Game

Welcome to the Truth or Dare Game! This is a fun and interactive web-based game where you can play Truth or Dare with your friends or partner. Choose between Classic Mode and Couples Mode for a tailored experience.


How to Play

  1. Open the Game:

    • Open index.html in your browser to start the game.
  2. Choose a Mode:

    • Select Classic Mode for general truths and dares.
    • Select Couples Mode for romantic and spicy truths and dares.
  3. Play the Game:

    • Click Truth to answer a random truth question.
    • Click Dare to complete a random dare.
    • Keep playing until you’ve exhausted all the prompts!

Features

  • Two Modes: Classic and Couples.
  • Randomized Prompts: No repeats until all prompts are used.
  • Mobile-Friendly: Works seamlessly on both desktop and mobile devices.
  • Customizable: Easily add more truths and dares in the JSON files.

How to Run Locally

  1. Download the Project:

    • Clone or download the project files to your computer.
  2. Open the Game:

    • Open index.html in your browser to start playing.
  3. Run a Local Server (Optional):

    • Use a local server (e.g., Live Server in VS Code or Python’s HTTP server) for the best experience.

File Structure

/truth-or-dare
│
├── index.html          # Home page
├── classic.html        # Classic Mode
├── couples.html        # Couples Mode
├── styles.css          # Styles for the game
├── script.js           # Game logic
├── data/               # JSON files for truths and dares
│   ├── classic.json
│   └── couples.json
└── media/              # Background images and other assets
    └── background.jpg

Customization

  • Add More Prompts:

    • Edit the classic.json and couples.json files to add more truths and dares.
  • Change the Background:

    • Replace background.jpg in the media folder with your own image.