?用 DALLE3+ChatGPT4 ,完全用提示词制作游戏!
?游戏风格:
非常简单的2D游戏,主角和敌人随机出现
?制作步骤:
# DALLE3 游戏英雄、环境、背景图像生成提示词
1. Hero: “Pixel art chibi character set in a magical fantasy RPG context. Side view of a mage harnessing the power of wind. The mage's robes flutter as if caught in a gentle breeze. This side view captures the character's full profile from the tip of their nose to the back of their head. Front view shows the mage standing straight, looking forward, with wind swirling around them. Back view depicts the mage from the rear, with the design of the robes and hair flowing due to the wind magic they control.”
2. Enemy: “Pixel art chibi character set in a magical fantasy RPG context. Side view of an enemy designed to oppose the wind mage. This adversary harnesses the power of stone and earth. Their skin resembles rough, jagged rock. They are clad in armor made of compressed earth and gemstones, and their eyes glow a deep amber. Their stance is imposing, and they wield a heavy club made of dense stone. This side view captures the enemy's full profile from the tip of their nose to the back of their head, emphasizing their sturdy and unyielding nature.”
3. Background: “Pixel art seamless horizontal background for a magical fantasy RPG game. The landscape depicts a dense jungle environment. The ground is horizontal, flat, and even, ideal for a character to run on. Towering trees line the backdrop with vines hanging down, and occasionally there are ancient stone statues peeking through the thick foliage. The left and right borders of the jungle connect seamlessly, providing an endless running path.”
# GPT-4 生成游戏代码
首先,提示的技巧:
- 不要试图询问每一个细节和功能。首先尝试要求一个非常简单的游戏。
- 你可能会遇到一些错误。如果您不知道,请让 ChatGPT 为您解决。
- 不要尝试在开头添加图像。您可以将颜色方块作为您的角色。
一旦您有了第一个版本,您就可以开始添加图像和其他功能。
我添加了生命值条、敌人数量、游戏名称以及从左侧(不仅仅是右侧)跳跃和出现的敌人。
?提示词:
“您是一名专业软件开发人员,想要编写一个非常简单的 2D 游戏。【游戏详情】一步步思考开始编码。我将在以后的迭代中为您提供不同的图像。现在,你可以只使用不同颜色的方块来代表角色。”
You are an expert software developer and you want to code a very simple 2D game. [Details of the game]. Think step by step to start coding it. I will provide you in later iterations with the different images. For now, you can just use squares with different colors for the characters.
* 总结
AI在游戏制作中的应用为我们带来了无限的可能性。使用AI制作游戏,主要涉及以下几个方面:
-
图形设计:图像生成模型(如DALL•E)可以轻松创建游戏中的图形元素,比如角色、敌人和背景等。这样可以大大减少手工绘制图形的工作量。
-
编程:GPT-4可以帮助我们编写游戏的代码。通过向GPT提供提示,它可以生成游戏逻辑、行为和规则等方面的代码。这使得编写游戏代码变得更加快捷和高效。
创意启发:AI模型可以为我们提供创意启发,帮助我们设计新颖、有趣的游戏玩法和关卡设计。通过向AI提供相关的提示和问题,它可以产生与之相关的创意和建议,为游戏增加新的元素和挑战。
-
自动化测试和优化:AI可以用于自动化游戏测试和优化,帮助我们发现和修复游戏中的问题,提高游戏的质量和用户体验。
无论是独立开发者还是大型游戏公司,都可以利用AI的力量创造出令人惊叹的游戏作品。