Skip to content

airon90/Truth-or-Dare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

49 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Truth Or Dare

Codacy Badge License

Introduction

It's the classic game with an adult twist. It can be customized in settings for different type of game (with a softer version).

It can be played on desktop and phones through firefox with a webserver or online.

Screenshot

How to Play

  1. Download the game here

  2. Unzip the file

  3. Prepare your question using the input.csv template

  4. Start the game

    • Automatic:

      • Go into script and click on installAndStart.bat to launch the app automatically in Windows.
    • Manual:

      • Use the csv_to_json python script to transform the file into output.json
      • Click on the Index.html to use in your browser (We recommend Firefox or Chrome)
      • Or in a webserver setting the local to the src directory.
  5. Play the game! (click on truth or dare buttons)

If you have trouble with loading the file, you can load the json file directly into the settings tab (when clicking on the [more +] button in settings).

Create your questions

You have a template with the input.csv file (it can be opened with a spreadsheet software like excel or on Google Sheets).

  • The id column to identify each dare with a unique number (optional).
  • The level column is here to classify the truth or dare:
    • 0: Disgusting
    • 1: Stupid
    • 2: Normal
    • 3: Soft
    • 4: Sexy
    • 5: Hot
  • The type column specify the type
    • Truth
    • Dare
  • The summary column specify the content of the truth or Dare
  • The time column will be used to set the timer in the game in seconds.
  • The turns column will be used for the number of turns the Dare stays on.

Sources

The librairies included:

  • BootStrap CSS for the responsive design of the App
  • SweetAlert for the alerting in the app (file loading or failing)
  • JQuery for the Javascript "code less do more".

Other Features :

  • Local file handling to use the app when you don't know how or want to run a webserver.
  • Python v3.6 is used for the script to convert the .csv file to .json
  • A Batchfile to install Python and launch the app on a simple python webserver.