Abhi
Abhi Author of Anicode.in. Passionate full-stack web developer.

Game in JavaScript!


Game in JavaScript!

Its all about interrogation is you are a suspect (in the game, obviously) and we will ask you some dozens of questions and you need to be loyal at every time.

if you lie then the game will over and a scorecard appears in. the more you remember the high will be the score!

Interrogation-game

This is a interrogation game that is made in pure javascript.

You can play the game at github

and the source code is available here

Alt Text

This game is created using javascript arrays and randomness mainly.

At the end i will show you how can easily make one with your theme.


intro

Is’nt amazing? It improves your memory give it a try!


Game basics

We ask you the question and you set each unique question’s answer then on the next time if that particular question appear you need to select the answer which you’d chosen first that’s ** within 10 seconds**.

The question will come in random sequence and the optons too.

Each questions option will too come in random sequence.

The timer ticks upto 10 seconds!

Be fast & LOYAL.

Purpose behind the game

well, i was just searching for games in JAVASCRIPT then, i thought to create this one.


Inspiration

Alt Text

I found this game in google play store Indefinite: Interrogation Game by Brandon li.

I found the game so interesting so, i thought it clone it in javascript the game he made was in flash which i came to know after de-assembling it by the file extensions etc.

What do you think about its JAVASCRIPT VERSION ? DO comment down.

BUILD YOUR OWN IN A MINUTE

There are some random question i picked a different theme you may pick any depending upon your imagination. and can easily tune it to make your own one.

This shows that you need to a assign a question as

1
2
quiz[index] = new Question("___your question_____", "__option1___", "___option2___", "___option3____" , "____option4____");

as

1
2
3
quiz[0] = new Question("What is your name?", "Ayush", "vicki", "mehul" , "kavya");

The game have 4 options and will appear in random.

In this way you can create easily. if you like this then give it a like.

Thanks.

comments powered by Disqus