Using AI To Build A Game From Scratch (Zero Experience)

Описание к видео Using AI To Build A Game From Scratch (Zero Experience)

Paste the prompt on an Interactive Dev Environment (IDE) - we used Replit. It’s free.

ChatGPT Prompt :

"Please generate a classic snake game where the player controls a snake to eat food and it grows longer. The game should have a score count.
The game should be styled to have a dark aesthetic with tiles. The snake should be gray in color with each tile of the body using a different shade of gray and slim black borders. Add a background shadow with gray color. The food of the snake should be neon green in color with shadows.
It should be a web-based game and use only HTML, CSS, and JavaScript. It should also be responsive and placed in the center of the screen.
Please provide all the code in one file and give steps to run it."

Disclaimer : GPT generates a new response everytime you prompt it so you may find that in some cases the code throws an error. In such cases, do either or both of the following steps to debug :

1. Copy paste the code back to ChatGPT and ask it to debug it and re-run.
2. Prompt the same prompt above again to generate a new response.

Siddhant’s Socials -   / geeksiddhant  

Комментарии

Информация по комментариям в разработке