Skip to content
vp.Ven Petrov
WorkAI demoWritingResourcesResume / CVAboutAt a glance
← Projects & notes
Warloop: Echoes of SolmaraProject story · 3 min read

Warloop: turning generated character art into a playable prototype

Good-looking character images became tiny figures, a backwards walk and misplaced bosses in the game. I worked through the gap between generated art and playable behavior.

Ven PetrovArchived game prototype

The downloaded character art looked good, but the figures were so small in the game that I could barely recognize them. Aurha also walked while facing the wrong way. Seeing those problems in a playtest changed the question from how to generate an image to how to make that image work as a character.

This was Warloop: Echoes of Solmara, a dark-fantasy 2D prototype based on a game-design document from a collaborator. I worked with Claude Code on phased implementation in TypeScript and Phaser, including generated character art and animations from Ludo.ai.

The prototype reached game scenes with those assets in use. It also left concrete problems to fix, from sprite geometry to bosses I could not find in later levels.

The image has to survive the move into the game

I cared about the art from the beginning and asked for a plan for high-quality assets. Aurha, the player character, became a visual reference for later characters. The intended look was detailed 2D dark fantasy, not pixel art.

A downloaded image and an in-game character need different checks. In the playtest, the images had good quality but the displayed characters were tiny. I asked to invert Aurha's facing direction, and at one point adjusted a boss's height manually.

Phaser reads a spritesheet as a set of animation frames. BootScene loads it with explicit frame dimensions and creates named animation sequences. Displaying it also requires a useful scale, the correct facing direction and a collision body that fits the character.

The development notes record frame-layout problems and body offsets after resolution changes. A successful generation request and a passing build could not establish whether the character looked or behaved correctly in a scene.

A defeated boss should stay defeated when the scene changes

Another problem sat between game state and animation. The boss code waited for a 1,500 ms visual death effect to finish before reporting the defeat. If the player died during that interval, a scene restart could cancel the effect. The completion callback would not run, so the defeat could be lost.

The revised BaseBoss.die() records the defeat first. It marks the boss dead, stops movement, disables collision, creates rewards and emits boss-defeated. Then it starts the visual effect. The final callback only destroys the sprite.

Defeat is recorded before the 1,500ms fade

  1. 01isAlive = falseIgnore a second defeat call
  2. 02Disable bodyStop movement and collisions
  3. 03boss-defeatedCreate rewards and emit the event
  4. 04Fade, destroyThe callback only removes the sprite
The event no longer depends on the tween completing. Other reported level and boss-placement problems remained unresolved.

The early dead-state check also prevents the same defeat being processed twice. The important state change no longer depends on the screen staying active until the effect finishes.

ZoneScene has related lifecycle work: reset the enemy list and boss reference when a scene starts, and remove the player-death and shadow-defeat listeners when it shuts down. That prevents an old scene from continuing to respond after it stops being active.

Leave the pitfalls for the next session

I asked for separate phase documents and session notes because the work would continue across conversations with limited context. As problems appeared, I also asked whether we had a file recording the pitfalls we were finding and fixing.

That record covers scene reuse, event listeners, delayed defeat reporting and sprite geometry. It gives a later session something concrete to resume: what was built, what failed and what still needs attention.

Vite builds passed during development, and generated characters and animations reached the Phaser prototype. Later playtesting still left bosses missing from several levels, and I asked for their placement to be checked. The saved material does not include a fresh complete playthrough or a verified resolution of those later placement problems. Those unresolved playability issues are part of its current result.

Project sources & checks
Starting brief

The user starts from a game-design document supplied to the project, suggests Phaser and asks for phased implementation, persistent session notes and a plan for high-quality art.

Art and playtest feedback

Actual Ludo.ai source operations and user feedback cover character art, animation integration, tiny in-game characters, reversed walking direction, a manual boss-height adjustment and later missing bosses.

Code example

BaseBoss.die records the defeated state, disables its body, creates rewards and emits boss-defeated before its 1,500 ms visual tween. ZoneScene resets state and removes its player-death/shadow listeners on shutdown.

Current limits

Successful historical Vite builds and selected archived source support the implementation. The original project folder is unavailable on this Mac, and there has been no fresh complete playthrough.

On this page
The image has to survive the move into the gameA defeated boss should stay defeated when the scene changesLeave the pitfalls for the next sessionSources & checks
TypeScriptPhaserLudo.aiState machinesGame development

Connected to this

All writing
Between Us · Project story

Between Us: keeping control of a generated film

Ven PetrovSoftware engineer · Barcelona
GitHub ↗LinkedIn ↗Email ↗

Find a project or a note

18 results

Transfutur ERP · ExperienceERP for transport and logisticsAs the sole engineer, I built an ERP from zero for transport and logistics. It supported roughly €5–6 million in annual invoicing across two offices, and I kept it running for about a year.Finance evidence desk · Project storyCan an AI reviewer improve a financial explanation?A finance review needs the right explanation as well as the right numbers. I tested one AI analyst, an added reviewer and self-review on the same public report. The added review produced fewer supported answers.Financial review lab · Project storyWhat contributed to an $86 million rise in operating income?I built a financial-report explorer around a question I could check: how did seven income-statement movements add up to an $86 million increase? The same source now supports comparisons of sales, cash flow and reported versus core results.MNQ time-series research · ExperimentA time-series model that failed on later dataA model gained about $2,351 in the research simulation, then lost about $1,728 in three later windows. I followed the experiment from data acquisition and time intervals to costs, evaluation and the decision to reject it for trading.Crude-oil narrative tracker · Project storyFollowing crude-oil news without losing the market numbersI used a short personal experiment to follow global events alongside crude-oil prices and position values. The prototype calculates the numbers before asking Claude Code for an assessment and keeps a limited recent history.NQ/MNQ backtest engine · Technical noteYesterday’s short was blocking today’s trades in the simulatorWhen input stopped before the scheduled close, the strategy forgot a position but a shared counter kept counting it. Closing the old position before resetting the day restored the trade record and released the block.Small-cap edge research · Project storyWhat would make a small-cap price pattern worth testing?I built a Python and DuckDB prototype to turn trading ideas into named tests, compare their costs and revisit them in later periods. The candidates deteriorated under further checks, and the source exposed a misleading pass flag.Gadgeon Europe applications · ExperienceConnected-device dashboards and mobile apps at Gadgeon EuropeThe dashboards let people monitor energy use and control connected devices through data from several APIs. My work covered customized Ionic and Angular apps, integrations, store releases and maintenance.ctxforge · Project storyctxforge: turn “add search” into a task an agent can build“Add search” leaves decisions about data, matching and behavior unanswered. I built an editable toolkit that asks an LLM to uncover those requirements and show its assumptions before a coding agent starts.Sociedades Inactivas enquiries · Technical noteAn enquiry should survive a failed emailA failed notification should not make someone submit the same enquiry twice. The implemented form keeps the saved request and its reference while email delivery is retried; live activation is still pending.Astro local-services website · Project storyKeeping local service pages and their FAQs consistentA city page should only offer services enabled for that location. I used shared Astro templates with explicit availability rules, and one FAQ selection for both the visible page and its structured data.3D Spaces website migration · Project storyMoving 3D Spaces without moving its mailboxThe website could move to Next.js and Vercel, while email still depended on the old host. I carried over the pages, enquiry flow and analytics, then checked what the cutover had actually preserved.Capture CRM · Project storySave the listing now, connect the person when the details arriveA classified listing may arrive before its phone number or contact name. Capture CRM keeps those records separate, then lets a later capture complete the existing listing and bring contact status back to the browsing page.Product-description comparison bench · ExperimentWhere did the product description get that detail wrong?A product description can go wrong when the image is read or when the copy is written. This local bench exposes both steps, lets me switch models and records request measurements. A matched quality comparison is still unfinished.Between Us · Project storyBetween Us: keeping control of a generated filmA more emotional dialogue take still needed convincing acting and framing. I kept the alternatives, widened shots to reveal gestures and changed the workflow when its studio limited the films I wanted to make.Restaurant-service voice agent · ExperimentDesigning a restaurant-service call around the real offerThe first correction was the offer: a paid service had become a free visit in one draft. I then compared how the Spanish voice-agent prompts handled new speakers, technical limits and booking results.Vapi and Telnyx voice integration · Technical noteThe Vapi agent could speak, but it could not hear me clearlyI could hear the assistant, but it could not understand my distorted audio. Three codec tests changed the connection behavior and brought the greeting back; the caller-audio problem remains unresolved.Warloop: Echoes of Solmara · Project storyWarloop: turning generated character art into a playable prototypeGood-looking character images became tiny figures, a backwards walk and misplaced bosses in the game. I worked through the gap between generated art and playable behavior.
esc to close · Tab to move through results