Jump to content
MakeWebGames

Changing game mechanics for quiz module


kingd12

Recommended Posts

Hi all,

I have installed the quiz module which functions like a basic multiple choice quiz game. However, I would like to make some changes to the game mechanics to make it more challenging and fun.

So far the module just shows a question, 4 choices, and checks the answer on submit. I want to add things like:

A timer for each question
Lives system, players lose a life on incorrect answer
Difficulty levels with different point values
Hints players can use
Bonus questions for extra points
However, I'm not sure where to start making these changes to the existing module code. Can anyone provide some guidance for how to edit the game mechanics and which files I should modify? Any tips for implementing things like a timer, lives system, scoring, and difficulties would be very helpful.

I have the following module files:

quiz.php (core logic)
quiz.inc.php (model)
quiz.hooks.php
quiz.tpl.php (templates)
quiz.styles.css
module.json
Any help getting me started would be greatly appreciated! Please let me know if you need any additional details or code examples.

Thanks in advance!

king

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...