How to ask
The AI does better when the request says what to build and how to check it. The examples below can be copied and adapted; swap the names for those in your project.
Ready-made requests
Section titled “Ready-made requests”Create something and validate:
Create an enemy that chases the player in fase_1. Use the project names (obj_, spr_)and validate the project at the end.Run and find errors:
Run the game for 300 frames in the fase_2 room and tell me the errors, with file and line.If there are any, fix them and run again.Check the visuals:
Take a screenshot of fase_1 after 120 frames and check that the score showsin the top corner.Adjust an interface:
The Pausa interface is misaligned. Render the preview, adjust it and render againuntil the buttons are centered.Look up the API before changing anything:
Look up the camera API before changing anything. Make the camera follow the playerwith smoothing and validate.Understand a project:
Read the project with project_info and explain how the rooms and objects connect.Do not change anything.Export:
Validate the project and export for Linux, with the data packed, to the ../out folder.- Ask it to validate after each change.
validateis fast and catches broken references and syntax errors before running. - Use the screenshot for visuals. Position, color and overlap problems do not show up in a log. Say which room and after how many frames to look.
- Save in the editor before asking. The AI reads and writes the files in the folder: what is only on the editor screen it cannot see.
- Use Git. The project is text and works well with Git. Commit before a big change and undo it if you do not like it.
- The editor reloads what changes outside. If the AI edits a file while the project is open, the editor updates; you do not need to close and reopen it.
- Pass the room and the number of frames. For a boss that appears after 20 seconds, ask for a high
framesand the rightroom. Too many frames make the call slow. - Tell it to look up the API. The AI gets Brasa functions right more often when it uses
lua_apithan when it recalls them from memory.
What the AI still cannot do
Section titled “What the AI still cannot do”- See the game running live in the editor. It runs the game separately, for a number of frames, and sees the last one.
- Play. It does not press keys. To test a movement, the game has to move on its own (an enemy walking, a camera following) or you check the result yourself.
- Run C++ projects that are not compiled. The game has to be compiled first (Play in the editor or
brasa_cli build). - Run C++ projects on Linux. On Linux, only Lua projects run.
If something does not work, see Problems.
