Code Interpreter in ChatGPT is incredible! Took me 5 mins to make this game.
You can make your own game assets with any AI generator and then ask GPT-4 with Code Interpreter to write code. If you have any problems you can ask it to fix the errors.
1. Write this prompt: “write p5.js code for Asteroids where you control a spaceship with the mouse and shoot asteroids with the left click of the mouse. If your spaceship collides with an asteroid, you lose. If you shoot down all asteroids, you win! I want to use my own textures for the spaceship and for asteroids.“
2. Go to Openprocessing website create and save sketch (you'll need to save it before uploading any texture files). Copy paste code from GPT-4
3. Generate texture files and remove backgrounds, for example in Clip Drop
4. Replace names of files with your filenames
5. Run the program
6. If something doesn't work ask GPT-4 to fix it (you can copy an error and paste in GPT-4) like you would ask a human programmer
7. To learn a bit of programming write these prompts to GPT-4: “Act as my programming teacher. Tell me an algorithm of Asteroids game in detail and make names of functions and explain what each of these functions will do. Don't write the code just yet.“ and then “ Can you describe the algorithm overall for a 10-year-old child“
You can make your own game assets with any AI generator and then ask GPT-4 with Code Interpreter to write code. If you have any problems you can ask it to fix the errors.
1. Write this prompt: “write p5.js code for Asteroids where you control a spaceship with the mouse and shoot asteroids with the left click of the mouse. If your spaceship collides with an asteroid, you lose. If you shoot down all asteroids, you win! I want to use my own textures for the spaceship and for asteroids.“
2. Go to Openprocessing website create and save sketch (you'll need to save it before uploading any texture files). Copy paste code from GPT-4
3. Generate texture files and remove backgrounds, for example in Clip Drop
4. Replace names of files with your filenames
5. Run the program
6. If something doesn't work ask GPT-4 to fix it (you can copy an error and paste in GPT-4) like you would ask a human programmer
7. To learn a bit of programming write these prompts to GPT-4: “Act as my programming teacher. Tell me an algorithm of Asteroids game in detail and make names of functions and explain what each of these functions will do. Don't write the code just yet.“ and then “ Can you describe the algorithm overall for a 10-year-old child“