Usually we humans tend to overemphasise healthy eating and fitness during New Year and the craze fades away gradually. Which is mostly due to the increasing fast and unhealthy junk foods which are glamorous. Junk Food Attack is a fast paced shooter game where the players battle waves of junk food enemies in an epic quest to protect their health bar. Packed with serene visuals, dynamic gameplay, and real time leaderboards and offers an immersive experience for even the casual gamers.
FROM PYTHON TO JAVASCRIPT
I began developing this game with Pygame in python which was easy and created the game assets using canva. But Amazon Q recommended to migrate the game to javascript for hassle free deployment in S3 and CloudFront. That was the initial setback but with the help of AI assistants like Amazon Q and o1 navigated it.
FRIEND IN-NEED
I had quite a few game assets in my game, which would have taken a long time if I did it manually. Thankfully Amazon Q helped me with an upload_assets.py script to create an S3 Bucket and upload all my gaming assets into it. Also it gave me a script to automatically create an S3 Bucket, configure CloudFront and upload my game into it. I honestly was fascinated by this level of customisation from Amazon.
NIGHTMARE IN DB SELECTION
I wanted to use Redis for the real time gaming dashboard, but not sure so I asked Amazon Q and realised using Cognito was the most professional way to store the username and password. Then with a token using DynamoDB to store the highest score for each user. Figured out the best possible solution for my application. Yay!!
CHALLENGES
I wanna point out writing lambda trigger to auto-confirm the user was the hardest task. I fell into two traps. First one is misconfiguring the Cognito Pool with no proper access to DynamoDB and creating a faulty Lambda function. I had trouble in figuring out where I went wrong then with the help of o1 (which is by the way very efficient) I figured the mistake I had two DynamoDB :( Then Amazon Q gave me a working lambda trigger then I tested and deployed it. It took me a whole night with hundreds of iterations. I'm so glad I came out of the loop. Gameplay Junk Food Attack
BOUNTY TIME
Thank you for making it till the end! Congratulations you win a chance to play the ultimate retro Junk Food Attack . Have a good and healthy life make sure to iterate from your mistakes. Â