Build a high quality complete pixel style metroidvania game in the browser.
Platform and constraints: It should run in the browser. Graphics drawn using webgl. Gameplay engine built on top of webgl as well, no external libraries. you need to invent all the code to make and run the game great.
First part: Research. It needs to be a Metroidvania, so research on how they look like and what are the gameplay mechanisms, camera movements, world design, Techniques to build it. Webgl things to understand. study the existing games for some references. Read ENGINE section below for what more to research on that.
Second part: reference & Design. Use PIXELGAME.jpg in main-ref folder as the source of truth. Use available models on FAL MCP to generate more reference images as you need, or any video that you need. The first part of the process is to explore reference ideas and have a concrete plan of what to build, along with what it should look like. And the entire theme should be consistent across the game. generate more levels and different interconnected places, different lighting environemnts, enemies and gameplay constructs and beautiful parts as well. generate player design, generate player animation using video models for example to create each animation in motion, then using those frames to code that animaiton procedurally into the engine's character. same for animating other characters in game, enemies, game world objects etc. TO MAKE THE REFERENCES correctly, first design the game theme and story and characters, enemies, locations, and the whole world. build concrete ideas, generate refrences for them mulitple, select the ones which fit the theme of the world and lock them. use the locked references as input guides to generate any further ones and so on.
ENGINE: As said, naive browser engine on top of webgl, lightweight and extendable. It needs to be render the game as stylized pixels like in the PIXELGAME.jpg reference. Game is supposed to not be fixed sprites but everthing rendered as pixel elements. build tools to make the process easier and flexible. for example building assets and game parts exactly the same as relevant reference image, and making them able to have physics, motion, animation, colors, lights, etc. build a high quality and performant lighting/shadow system (so the refrence image lighting looks can be rendered rasterized and not fully hard coded). same for physics, animation, and whatever is needed for such games.
Building phase:
fan out subagents and ultracode. split the work among subagents. use builder agents to make things, specialist critic agents to verity exactness strictly against the references across metrics like style, design, motion, performance etc.
build tools to handle things, and upgrade/fix tools if they are not performing correctly perhaps.
Do multiple rounds of build -> review loops. After each round, diagnose what needs to be fixed and fix that in the next round along with other things which the critics have mentioned. Revert any changes which make things bad. Maintain a global status markdown file along with other relevant logging and tracking systems. So the entire history of what changes have been done by different agents is tracked. After every compaction or long rounds, read and write to the tracking files to maintain context.
Go back to research phase again, if builders are stuck with bad refrences or guides or some information is lacking to progress.