Objective : Testing the AI Agent to write games in python (both client and web version)
Please refer to my previous article where I made the Graphics, Audio and music.
Here is my previous game playable on web written in Godot: https://misterm.itch.io/bloodbullets-ai-generated-game
In this project you will need to :
Install Python in your system
Install Visual Studio Code
Have Github Copilot
Make some Graphics and sounds to start
I put the assets from my previous project in an Asset folder Then I open the project folder with Visual Studio Code.

Now that I am ready, I am going to the menù View>>Chat
Select the Agent Mode and Leave Claude 3.7 Sonnet.
I wrote this prompt
I would like to create a 2D game in python, resolution should be 800x600 and should work on a web page.
- Check the assets folder you will find music, sfx and images for your game
- I need a intro with images and background music
- A menu with buttons
- Play : start the game
- Settings : open a popup where I can enable/disable music and effects
- Credits : open a popup with the game credits
- Score list : Top score list
- Exit - Quit the game
- When the game start is a bullet game moving from top to bottom
- You are moving a spaceshit that shoot a lot of bullets
- From the top arrive ships of different type with different difficulty
- Starting from 10 enemies, when all are dead I go to next level and have more and more.. there is no end.
Each level increase the enemies and difficulty.. more and more bullets.
- Also I need powerup to pickup randomly and increase my power bombs and speed of shooting
- I have 3 lives, If I loose all the life game over.
- Sometimes there is a powerup that give lives.. but I cannot get more that 5 lives.
- Also every enemi increase the points
- At the end of the game check the score if is it in 10 position ask for name and save it to the game memory (should remember to next game). Then he started to analyze the request and asked me to install some dependencies

I click continue (I should add a venv but I was ok to install on my test machine)
when installation was finished it wrote

Then

And then, by the Power of the agents he started to create the python files for his own adding to my project

It took few minutes and show me

First try.. didn't work, i got a
from intro_scene import IntroScene , ImportError: cannot import name 'IntroScene' from partially initialized module 'intro_scene' (most likely due to a circular import)I put the error on the prompt and wait for it

Thanks.. it was you...

For each change change on the files the system will ask to keep or not the change . You cannot leave the Agent alone (yet!), you have to follow the steps.
In this case he made a change in one file, and I can confirm the change with the "Keep"

The games works very. Much better than the Godot game in my previous article.
Running python main.py give me a nice game.
He was shooting all the time, and space use the bomb, saving the name doesn't work. Powerups work .

But I requested a game that should run also on web:
python build_web.pydidn't start and had many issues, that I requested to solve.
After some changes:

The game was working "ok" on web but without sounds.. still the writing the player name didn't work well.
But then I found out that the game doesn't work anymore with Python main.py.
I requested to make both modality to work and he did.
Now works both for Web and as a client.
To Recap the AI develop a game starting from the graphics in 20 minutes, did few mistakes and the AI solved after I gave the error. Also the game has few issues that I don't really care right now..
With python works much better that with Godot.
I have attached the whole project to the article BloodBulletsSource.zip
The way we use to develop is changing and we have to find a way to use it for our projects.
Hope you enjoy the article.



