Curt Posted August 30, 2021 Posted August 30, 2021 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. Quote
gamble Posted August 30, 2021 Posted August 30, 2021 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 Quote
Curt Posted August 31, 2021 Author Posted August 31, 2021 Thanks for the response. I will do a bit of research today and learn about JSON 🙂 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.