I built a story game called "Minecraft Movie Adventure!". It is based off of the Minecraft Movie that just came out. Steve.
- HTML (
index.html): Web Page Structure. Tells the browser what all the parts of the game are. - CSS (
style.css): Makes the game look good. Controls things like the colors, the sizes of the boxes and buttons, and where things are on the screen. - JavaScript (
script.js): This is the main code of the game. It decides what story text to show, what happens when you click a button, keeps track of your hearts, and shows the cutscenes.
- **I used Gemini to write and edit code.
- **I tried others but none did it as well as Gemini.
What I did:
- I had the initial idea to build a game.
- I told the AI what kind of game I wanted (Minecraft-themed).
- I described how I wanted the game to work.
- I asked the AI specific questions and gave it instructions on what to build or fix.
- I organized the files and made sure they were in the right place.
- I tested the game in my web browser to see if it worked.
What AI helped with:
- Coming up with specific story ideas and writing the text for each part.
- Writing the HTML structure for the webpage.
- Writing the CSS to style all the different elements.
- Writing the JavaScript code to make the game logic work.
- Helping to center things on the screen and make the game look better.
That I got the game to have a start screen with a button that works.