Cart updating

ShopsvgYour cart is currently is empty. You could visit our shop and start shopping.

Now Reading: Creating a Zombie Shooter Game with AI: A Journey with ChatGPT, MidJourney, and AdobeFirefly


Creating a Zombie Shooter Game with AI: A Journey with ChatGPT, MidJourney, and AdobeFirefly

In the ever-evolving world of game development, artificial intelligence (AI) has emerged as a game-changer, opening up new possibilities and transforming the way games are designed and built.

Today, we’re going to take you on an exciting journey where we create a thrilling zombie shooter game, not by writing complex lines of code or spending hours drawing intricate assets, but by harnessing the power of AI with ChatGPT, MidJourney, and AdobeFirefly to do that work for you.

With these tools we don’t have to write any of the code ourselves! We don’t have to draw any art assets either! Thanks to AI.

Secret Sauce – The ChatGPT Prompt

Creating a good prompt for an AI like ChatGPT is an art in itself. It requires a clear understanding of your objectives and a knack for communicating them effectively. Here’s what makes a good prompt and how our chosen one fits the bill:

  1. Specificity: A good prompt is specific and detailed. It clearly outlines the desired outcome, leaving no room for ambiguity. Our prompt provides a detailed description of the game mechanics, the types of zombies, the shooting mechanism, the scrolling background, and the start/end menu.
  2. Clarity: Clarity is key in a good prompt. It should be easily understandable and free from jargon unless necessary. In our case, the prompt is written in simple language, making it easy for the AI to understand what is required.
  3. Purpose: The prompt should clearly state the purpose or goal. Our prompt clearly states that we want to create a 2D side-scrolling zombie shooter game, setting a clear goal for the AI.
  4. Feasibility: A good prompt should be feasible within the capabilities of the AI. Our prompt is well within the capabilities of ChatGPT, which is capable of generating Java code and explaining its functionality.
  5. Request for Explanation: Especially when dealing with complex tasks like coding, it’s beneficial to ask the AI to provide explanations for the generated output. This not only helps in understanding the code but also in debugging and further development. Our prompt specifically asks for explanations of the different parts of the code.

By adhering to these principles, we’ve crafted a prompt that effectively communicates our vision for the game to the AI, setting the stage for a successful game development process.

Use this prompt to help get you started on the zombie shooter game:

“I want to create a 2D side-scrolling zombie shooter game using Java and libGDX. The player character should be able to move up and down on the left side of the screen, and shoot bullets towards the right. The player should start with 100 health, and lose health if a zombie reaches them.

The game should keep track of how many zombies the player has killed. Zombies should spawn from the right side of the screen and move towards the player at different speeds. There should be three types of zombies: regular, fast, and crazy. Regular zombies move at a constant speed, fast zombies move faster, and crazy zombies move up and down as they advance.

The player should be able to shoot bullets by pressing a shoot button located on the right side of the screen. There should be a delay between shots to prevent the player from shooting too quickly.

The game should also have a scrolling background to give the illusion of movement. The game should start with a menu screen that displays the player’s last kill count and a button to start the game. When the player’s health reaches zero, the game should end and return to the menu screen.

Can you help me write the code for this game, and provide explanations for the different parts of the code?”

Cut to the Chase and Get Straight to the Source!

Ready to dive headfirst into the world of AI-powered game development? We’ve got just the thing for you! By simply entering your email in the form below, you can gain exclusive access to the source code of our thrilling zombie shooter game.

This is your chance to explore the nuts and bolts of the game, understand the intricacies of AI-generated code, and even tweak it to create your own unique gaming experience.

Whether you’re a seasoned developer or just starting out, this source code can be a treasure trove of learning and innovation. So, why wait? Cut to the chase, get straight to the source, and kickstart your own journey into AI-powered game development!

Go to the link below for access to the source code on GitHub!

How To Prompt MidJourney for Game Assets

Creating game assets with MidJourney is an exciting process that combines creativity with the power of AI. Here are some key points to keep in mind when crafting your prompts for MidJourney:

  1. Be Descriptive: MidJourney generates images based on the descriptions you provide. The more detailed and vivid your description, the better the AI can visualize and create your desired asset.
  2. Specify the Style: If you have a particular art style in mind, make sure to include it in your prompt. Whether you want a pixel art zombie or a realistic 3D player character, specifying the style can help guide the AI.
  3. Mention the Purpose: Let the AI know what the asset will be used for. Is it a background image, a character sprite, or an item icon? This can influence the size, level of detail, and orientation of the asset.
  4. Ask for Variations: One of the advantages of using AI is that you can easily generate multiple variations of an asset. Feel free to ask MidJourney for different versions of an asset to choose the one that fits best.
  5. Iterate and Refine: Don’t be afraid to refine your prompt based on the results. AI tools like MidJourney are great for rapid prototyping and iteration.

Now that you have these tips in mind, let’s take a look at the prompts used to generate the game assets for our zombie shooter game.

pixel human characters with guns sideview in the style of muted and subtle tones, colorized

pixel zombie characters sideview in the style of muted and subtle tones, colorized

Pixel art bullet multiple sprites game assets 2d

Vector drawable black crosshair icon

2d pixel particle explosion red and brownish

2D Pixel art sprite game background of apocalyptic street.

Unleashing Creativity with AdobeFirefly: Extending Game Backgrounds with AI

When it comes to game development, every detail counts, and the background is no exception. It sets the tone of the game and enhances the overall gaming experience. But what if you could extend your game’s background image effortlessly, using the power of AI? That’s exactly what we did using AdobeFirefly!

AdobeFirefly is an AI art generator that can create stunning visuals based on your prompts. One of its standout features is the Generative Fill, which we used to seamlessly extend the background image of our zombie shooter game. This AI-powered tool analyzed the existing background and generated additional content that matched the style and theme, resulting in a seamless and immersive gaming environment.

Thanks to this tool I was able to extend the apocalyptic city street background for the game and I didn’t have to draw anything myself!

Get started with Adobe Firefly here:

Wrapping Up: Unleashing the Power of AI in Game Development

As we reach the end of this thrilling journey, it’s clear that the landscape of game development has been revolutionized by the power of AI. The combination of ChatGPT, MidJourney, and AdobeFirefly has not only simplified the process but also opened up a world of creative possibilities.

We’ve walked you through the creation of a zombie shooter game, demonstrating how these AI tools can generate code, create stunning game assets, and even extend your game’s background. And the best part? You don’t have to write a single line of code or draw a single pixel yourself!

But the journey doesn’t stop here. We’ve shared with you the secret sauce – the powerful prompts that drive these AI tools. With these prompts, you can tweak, experiment, and create your own unique games.

And to make it even more exciting, we’re offering you exclusive access to the source code of our zombie shooter game. By signing up, you can dive deeper into the intricacies of AI-generated code, understand its workings, and even modify it to create your own gaming masterpiece.

So, don’t wait! Sign up now and get straight to the source. Unleash your creativity, explore the power of AI, and embark on your own game development journey. The world of AI-powered game development awaits you!


What do you think?

Show comments / Leave a comment

Leave a reply

Quick Navigation
  • 01

    Creating a Zombie Shooter Game with AI: A Journey with ChatGPT, MidJourney, and AdobeFirefly