Code Monkey home page Code Monkey logo

1942-shooting-game-chatgpt's Introduction

1942-shooting-game-chatgpt

I build this using ChatGPT and Openprocessing without writing a single line of code.

Sorry that ChatGPT doesn't really like to write comment for its code, but guess what you can do? just paste the code to your ChatGPT and ask it to explain it to you.

my entire conversation with ChatGPT can be found here, including all the debugging discussion I had with it.https://gptsave.xyz/images?id=023af36d-c552-4629-b973-b20a72e76167

Steps to replicate this "devlopment"

1️⃣ Give ChatGPT some description of how you want to build the game, how to control it (keyborad or mouse), to determine some logics.

this is my prompt ”write a p5.js code for 1942, where the user use the keyboard to control his F35, with the arrow keys to move up, down, left and right. The user use the Space key to fire the bullet. There are enemy air forces randomly coming from the top edge of the screen and shooting missiles to the F35. If the F35's bullet hit the enemy planes, the user will get 1 point. If the F35 is hit by the enemy missiles, then the user lose the game. I want to use my own texture of the F35 jet plane and the enemy air force planes.” My whole conversation with ChatGPT can be found here:

2️⃣ Register an account in openprocessing.org, and create a sketch, save it. Then copy and paste your code into the editor. We want to make it customized and stunning, so use #Midjourney or other AI tool to create some pictures for your game assets and background. In the later part of my conversation with ChatGPT, I want to add some audio effect to it, so make sure you find some sound effects as well.

3️⃣ When you are ready, run it, if you face any bugs, paste it to ChatGPT to ask for a fix. The more complicated your code, the more bugs and missing logics in ChatGPT’s code. You can spend somewhere between 15 min to a few HOURS of back and forth conversation with ChatGPT.

1942-shooting-game-chatgpt's People

Contributors

xyd945 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.