Jump to content
MakeWebGames

Recommended Posts

Posted

I noticed some other games have this feature. I looked around on the net and the best I found was this:
Deal or No Deal Game (codepen.io)
 

Is there anyone that can make this work with mccodes ? or give me some advice on how to approach this ? I suck when it comes to javascript and not sure how to implement communicating with the database.
deal_or_no_deal.gif.16977cdfa0b71161a39267ddcae63e07.gif

Posted

This wouldn't be too bad to implement with mccodes.

 

When it comes to interfacing with a database in JavaScript I would look into http requests. This will help because you can use JavaScript to request a page such as:

 

dealornodeal.php?action=open&case=2

 

You can then use php to update the database and send a response back. Keep in mind that the responses can only be JSON. Fortunately php and JavaScript both have JSON functions such as json_encode in php and JSON.parse() in JavaScript. If you need help feel free to send me a message

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...