Phil Frost retweeted
How to make Asteroids game with GPT-4
and your own A.I. generated textures.
1. Write this prompt in GPT-4: "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.org/ 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 (I used Midjourney) using these prompts:
asteroid prompt: "asteroid, single object, game asset, sci fi ship, items, rpg, d&d, dungeons and dragons, pathfinder, diablo, item sprite, icon, polished, 3d render, high quality, premium, unreal engine, medieval, amazing detail, high fantasy"
spaceship prompt: "spaceship, single object, game asset, sci fi ship, items, rpg, d&d, dungeons and dragons, pathfinder, diablo, item sprite, icon, polished, 3d render, high quality, premium, unreal engine, medieval, amazing detail, high fantasy"
galaxy prompt: "green nebula galaxy background, blurry --ar 3:2"
Use clipdrop.co/remove-backgroun… to remove backgrounds before uploading images to OpenProcessing
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"
I'm making a series of tutorials on how to make games and learn programming in a fun way with GPT-4 (first with p5.js and then Unity). In case it's hard for you to follow this instruction wait for my upcoming beginner's tutorial.
Phil Frost retweeted
This, out of #Ukraine, is 100% one of the most incredible videos I have ever seen.
This Russian POW has the heart of a lion 🦁
Phil Frost retweeted
I just fired myself from cleaning my house. I didn’t like my attitude ... and I got caught drinking on the job.
Phil Frost retweeted
‘They’re giving us a vaccine so they can track us!’ they post on Facebook via their iPhones.
Phil Frost retweeted
Wow, that didn't take long...
theguardian.com/science/2020…
Phil Frost retweeted
Picard and Data sing @RealMattLucas baked potato song, Please buy and download the original song from thankyoubakedpotato.com
#nhs #feednhs #mattlucas #ThankYouBakedPotato #nhsheroes #song
Phil Frost retweeted
.@TheEconomist nails it: “Britain’s death toll serves as confirmation of deeper-rooted problems: a political culture of hubris and exceptionalism; atrophied public services; inequality and poor health” economist.com/britain/2020/0…
#MyThreeBooks
1.) Any Asterix book
2.) The Honourable Schoolboy by John le Carré
3.) Flashman and the Angel of the Lord by George MacDonald Fraser
Professor Gilbert was terrific. I learnt more in 4 minutes about Covid-19 than I have in the last 4 months. #marr
Phil Frost retweeted
Now *this* is a better broom-based trick, @sidlowe
❌🧻Ni rollo de papel ni nada
👇🏽 Esto sí que es un reto, @marcosllorente
🤣🤣🤣🤣🤣
📽️ IG (@marcosllorente)
Phil Frost retweeted
So I was watching those Beyond Belief Fact or Fiction videos and someone in the comments mentioned how if you put it at .5 speed he sounds like a depressed drunk on the sidewalk trying to get your attention, & so I did, and I've been wheezing badly at this for the last 7 minutes


















