Javi Lopez ⛩️ Profile picture
Oct 31, 2023 11 tweets 7 min read Read on X
Midjourney, DALL•E 3 and GPT-4 have opened a world of endless possibilities.

I just coded "Angry Pumpkins 🎃" (any resemblance is purely coincidental 😂) using GPT-4 for all the coding and Midjourney / DALLE for the graphics.

Here are the prompts and the process I followed:
First of all, would you like to play the game?

Here's a link! (Currently, it doesn't work on mobile):

If you read the text below the game screen, which provides explanations, you'll see how you can create your own levels and play them! :) bestaiprompts.art/angry-pumpkins…
Image
💡 Introduction

I have to admit, I'm genuinely blown away. Honestly, I never thought this would be possible. I truly believe we're living in a historic moment that we've only seen in sci-fi movies up until now.

These new work processes, where we can create anything using just natural language, are going to change the world as we know it.

It's such a massive tidal wave that those who don't see it coming will be hit hard.

So... let's start riding the wave!
🎨 Graphics

This was the easiest part, after all, I've been generating images with AI for over a year and a half :) Here are all the prompts for your enjoyment!

👉 Title Screen (DALL·E 3 from GPT-4)

- "Photo of a horizontal vibrant home screen for a video game titled 'Angry Pumpkins'. The design is inspired by the 'Angry Birds' game aesthetic but different. Halloween elements like haunted houses, gravestones, and bats dominate the background. The game logo is prominently displayed at the center-top, with stylized pumpkin characters looking angry and ready for action on either side. A 'Play' button is located at the bottom center, surrounded by eerie mist."

👉 Backgrounds (Midjourney)

I used one image for the background (with several inpaintings):

- "Angry birds skyline in iPhone screenshot, Halloween Edition, graveyard, in the style of light aquamarine and orange, neo-traditionalist, kerem beyit, earthworks, wood, Xbox 360 graphics, light pink and navy --ar 8:5"

And another, cropped, for the ground:

- "2d platform, stone bricks, Halloween, 2d video game terrain, 2d platformer, Halloween scenario, similar to angry birds, metal slug Halloween, screenshot, in-game asset --ar 8:5"

👉 Characters (Midjourney)

- "Halloween pumpkin, in-game sprite but Halloween edition, simple sprite, 2d, white background"
- "Green Halloween monster, silly, amusing, in-game sprite but Halloween edition, simple sprite, 2d, white background"

👉 Objects (Midjourney)

I created various "sprite stylesheets" and then cropped and removed the background using Photoshop/Photopea. For small details, I used the inpainting of Midjourney.

- "Wooden box. Item assets sprites. White background. In-game sprites"
- "Skeleton bone. Large skeleton bone. Item assets sprites. White background. In-game sprites"
- "Rectangular stone. Item assets sprites. White background. In-game sprites"
- "Wooden box. Large skeleton bone. Item assets sprites. White background. In-game sprites"
- "Item assets sprites. Wooden planks. White background. In-game sprites. Similar to Angry Birds style"



Image
Image
Image
Image
🤖 Programming (GPT-4)

🔗 Full source code here:

Although the game is just 600 lines of which I haven't written ANY, this was the most challenging part. As you can see, I got into adding many details like different particle effects, different types of objects, etc. And to this day, we're still not at a point where GPT-4 can generate an entire game with just a prompt. But I have no doubt that in the future we'll be able to create triple AAA video games just by asking for it.

Anyway, back to the present, the TRICK is to request things from GPT-4 iteratively. Actually, very similar to how a person would program it: Starting with a simple functional base and iterate, expand, and improve the code from there.

Let's see some tricks and prompts I used:

👉 Start with something simple

- "Can we now create a simple game using matter.js and p5.js in the style of "Angry Birds"? Just launch a ball with angle and force using the mouse and hit some stacked boxes with 2D physics.

👉 And from there, keep asking for more and more things. And every time something goes wrong, clearly explain the mistake and let it fix it. Patience! Examples:

- "Now, I ask you: do you know how the birds are launched in Angry Birds? What the finger does on the screen? Exactly. Add this to the game, using the mouse."
- "I have this error, please, fix it: Uncaught ReferenceError: Constraint is not defined"
- "I would like to make a torch with particle effects. Can it be done with p5.js? Make one, please."
- "Now, make the monsters circular, and be very careful: apply the same technique that already exists for the rectangular ones regarding scaling and collision area, and don't mess it up like before. 😂"

👉 This part took us (GTP-4 and me) many iterations and patience.

- "There's something off with the logic that calculates when there's a strong impact on a bug. If the impact is direct, it works well, but not if it's indirect. For example, if I place a rectangle over two bugs and drop a box on the rectangle, even though the bugs should be affected by the impact, they don't notice it. What can we do to ensure they also get affected when things fall on top of a body they are under?"bestaiprompts.art/angry-pumpkins…

Image
And that's it. Happy Halloween! 🎃👻

Follow me at @javilopen for more posts like this. If you enjoyed this tutorial, a repost would be greatly appreciated and would encourage me to share more tutorials. Thanks! 👇

@jfdelnero Fixed now! :) If you find any other thing, let me know, please!
@fdousek By the way, I see you love maths. So you really can enjoy ChatGPT + javascript for creating visualizations like this one. Happy to help! :)

@0xSpiridono @EdgehogsNFT Hey, love the idea of putting the torches in pumpkins eyes!
@0xSpiridono @EdgehogsNFT Show me please scroll+exploding guy. I was planning to add also explosions, funnier thigs haha.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Javi Lopez ⛩️

Javi Lopez ⛩️ Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @javilopen

Feb 27
IT'S FINALLY HERE!

🔥 Mystic Structure Reference! 🔥

Generate any image controlling structural integrity ✨ Infinite use cases! Films, 3D, video games, art, interiors, architecture... From cartoon to real, the opposite, or ANYTHING in between!

Details & 12 tutorials 🧵👇
Available NOW at Magnific 🪄 for all users! 👇

magnific.ai
Super easy to find:

👉 Magnific > Mystic > Structure reference

Don't forget a good prompt to guide your generation!

ℹ️ Currently Style Ref and Structure Ref can't be used at the same time. We are working on that! Image
Read 24 tweets
Feb 18
⚡ Magnific on the big screen!

I CAN FINALLY TALK ABOUT THIS!

The VFX team of Here (directed by Robert Zemeckis and starring Robin Wright & Tom Hanks) used Magnific for their FX 🤯

To break it all down (+more), I interviewed VFX supervisor Kevin Baillie! 🧵👇
An incredibly exciting conversation where @kbvfx shares how he got started in the world of VFX, his career journey, what it’s been like working with directors like George Lucas and Robert Zemeckis, and the impact of generative AI in Hollywood plus much more! Image
So happy to finally be able to share the details!

I've been biting my nails for months but we weren’t allowed to make it public until NOW. Huge thanks to Kevin, finally!

As a co-founder of Magnific, seeing our creation used in a film directed by Robert Zemeckis (Back to the Future, Forrest Gump, etc.) is a dream come true.

We've always known that Magnific is a tool used by professionals (Dior, MrBeast, Adobe, Beeple, etc.), but seeing something this incredible with our own eyes makes it all feel so much more real.

You have no idea how happy this has made me. I don’t think I’ve felt this proud since that one time, by some miracle, I beat Emilio at Age of Empires.

Anyway, I won’t ramble on. Here are the questions Kevin was kind enough to answer, you won’t want to miss them!Image
Read 12 tweets
Feb 14
🪄 Magnific.

From $0 to $10M ARR in just one year with only two people.

This was supposed to be a secret, but I think even my grandma knows by now.

Yep, small teams are the future. Image
I wasn’t sure whether to post it or not, but since X’s algorithm has me in the shadows, no one’s gonna see it anyway. 😆
Ah! And PURE bootstrapping.

ZERO investment and ZERO debt.

Thanks to our loyal customers 😘😘😘
Read 5 tweets
Feb 3
🔴 A CONSCIOUS AI

Today, I’m going to talk about something we might be able to achieve, though maybe humanity should never even try:

A method for an AI to gain consciousness and reach the status of a superintelligence (ASI).

A theory I’ve been working on for months 🧵 Image
Image
Index – In case you want to jump straight to a section:

0️⃣ Introduction
1️⃣ The foundation of current AI models
2️⃣ What is consciousness?
3️⃣ How to create a self-aware AI?
4️⃣ Singularity / ASI
5️⃣ Moral implications
6️⃣ Risks
0️⃣ Introduction

I’ve been thinking about this idea for a long time, slowly working through its foundations.

Let me start by saying I am NOT a researcher a this is NOT a paper. While I’ve been close to the theory behind foundational AI models, my knowledge has its limits.

The idea I’m about to share is ridiculously simple and it could be VERY wrong.

But what if, against all odds, it really IS as simple as what I’m proposing?

Criticize the idea, not the person: I’d love to hear your thoughts and debate. Thanks!
Read 29 tweets
Dec 28, 2024
🍔💀 I'm NEVER eating a Whopper again.

This is just one of the many findings from Nat Friedman and his team during their testing of 100 everyday foods for the presence of plastic chemicals.

The study is brutal in every aspect, and the way it’s presented is masterful. 🧵👇 Image
Here you have the full report and the story behind it:

🔗 LINK: plasticlist.org/report
It all started with this tweet from @natfriedman: Image
Read 17 tweets
Dec 21, 2024
You are not ready for what's coming.

We, humans, struggle to understand exponential growth. Everything will move so fast that a lot of chaos will inevitably arise in the coming years.

It worries me. Image
Image
This is exponential growth. Image
This is exponential growth. Image
Read 9 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(