1 decade ago by reckzilla
Hello,
I am new to impactjs and currently trying to figure out the engine in general as I am pretty new to javascript.
we are trying to implement a "question and answer" interface in our game. So when the player goes near an object or a particular event occurs ( mouse click on an object ) or something, a new question dialog box appears on the screen. The dialog box has a question, an input box and a submit button.
We have around 5-6 questions for now and we are using mongodb database to store the questions with their id and solved state if the player answers the questions correctly and presses the submit button.
More specifically, how do I incorporate a framework such that with every other event a new question tagged to the question id in the database appears on the dialog box and how do I implement a submit button on the box?
As I am switching from c++, java to javascript where I have no idea how to implement this using classes and oop, how would you suggest us designing a framework for this sort of architecture?
Thank you!
I am new to impactjs and currently trying to figure out the engine in general as I am pretty new to javascript.
we are trying to implement a "question and answer" interface in our game. So when the player goes near an object or a particular event occurs ( mouse click on an object ) or something, a new question dialog box appears on the screen. The dialog box has a question, an input box and a submit button.
We have around 5-6 questions for now and we are using mongodb database to store the questions with their id and solved state if the player answers the questions correctly and presses the submit button.
More specifically, how do I incorporate a framework such that with every other event a new question tagged to the question id in the database appears on the dialog box and how do I implement a submit button on the box?
As I am switching from c++, java to javascript where I have no idea how to implement this using classes and oop, how would you suggest us designing a framework for this sort of architecture?
Thank you!