<Simple 2D Game Implemented Completely by ChatGPT Prompting

Simple 2D Game Implemented Completely by ChatGPT Prompting

Controls

A: Move Left

D: Move Right

S: Punch

Space: Jump

This game is a simple 2D fighting game featuring two fighters. The player controls Fighter 1, while Fighter 2 is controlled by an AI. The AI's behavior is determined by its aggressiveness attribute, which influences its strategy during the game. When the AI's health is high, it tends to be more defensive, focusing on dodging the player's attacks. However, as its health decreases, the AI becomes more aggressive, attacking more frequently and with greater intensity. This dynamic behavior makes the game more challenging and engaging for the player.

The game also features a beautiful gradient background that depicts a setting sun, complete with stars and clouds, adding to the overall aesthetic of the game. The fighters can move left and right, jump, and punch each other, with each successful punch reducing the opponent's health. The game ends when one of the fighters' health reaches zero.

This game was created through a unique collaboration between a user and ChatGPT, an AI developed by OpenAI. The user provided the initial idea and requirements for the game, and ChatGPT generated the code to implement these requirements. Throughout the process, the user provided guidance and feedback, helping to shape the final product. Approximately 95% of the game's code was produced by ChatGPT, demonstrating the potential of AI in the field of game development.

This game was created through a collaborative effort between a user and ChatGPT. The user provided the initial idea and requirements, and ChatGPT generated the code. Approximately 95% of the game's code was produced by ChatGPT, with the user providing guidance and feedback throughout the process.

Find more in blog post