Quiz Game in Phaser - https://quizgamemegadojo.herokuapp.com/
git clone https://github.com/alanblins/quizgame.git
cd quizgame
npm i
npm start
open in your browser
http://localhost:8080
Just edit www-root/data/questions.json
{
"question":"What is the chemical symbol for the element oxygen?",
"choices":[
"ox2",
"O",
"X",
"G"
],
"answer":1
},
"answer":1 - It means the second choice "O" is the correct answer.
- Copy the image to www-root/assets/images_questions/
- Insert the file name into the "image" key inside of questions.json like below:
{
"question":"What is the chemical symbol for the element oxygen?",
"choices":[
"ox2",
"O",
"X",
"G"
],
"answer":1,
"image":"atlantic.png"
},
- Then install again:
npm i