Nemesis Protocol: Adaptive AI in a 3D Arena ShooterNemesis Protocol: Adaptive AI in a 3D Arena Shooter
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
I keep building hobby projects to learn, and this is the fourth one. It's called Nemesis Protocol: a 3D arena shooter where, after every wave, an AI analyzes how you play and evolves the enemies to counter your style.
Rely on the pistol and they come back armored. Fight with the sword and they learn to shoot you from a distance. The screen shows you what changed and why.
The biggest lesson wasn't calling the model. It was everything around it that makes an AI work inside a real-time game:
- A LangGraph workflow: Claude proposes the evolution and a reviewer validates it. If something is wrong, it sends the errors back and asks for a fix. In one real run, Claude tried to set armor to 5 when the cap was 0.5, and the reviewer caught it. - Structured outputs with LangChain and Pydantic-validated contracts. The AI never touches the game directly. - Hard limits and a plan B: with no network or a failing model, my own rules decide, and the game keeps running. - No frozen frames: the AI thinks on a background thread during the break between waves. - Observability with LangSmith: every decision is traced. - Automated tests that cover every AI path without spending tokens. - Bilingual: Spanish and English, including the explanations the AI writes.
Stack: Python, Ursina, LangGraph, LangChain, Claude, LangSmith, Pydantic and pytest.
Every project makes it clearer to me that integrating AI well is an engineering problem, not just a prompting one. If you want to see the code, or you have a project where this could help, reach out.
#AI #LangGraph #LangChain #Python #GameDev #Claude #Portfolio
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started