AI-Driven Game Development: A Zero-Engine Technical Breakdown for a Bullet-Heaven Survival Game
This article examines how a 2D bullet-heaven survival game was built without a traditional game engine and with heavy AI assistance. It covers a WebGL/Canvas 2D rendering layer with fixed-timestep loops, batching, and post-processing; an ECS-based logic layer; death-driven gameplay, five elemental magic schools, and undead-army synergies; AI-generated art, shader-based animation, and generative music pipelines with quality control; desktop packaging and store SDK integration gaps; and the engineering boundaries behind “100% AI-driven” claims. It closes with practical recommendations for indie developers.
Introduction: From “Can AI Make a Game?” to “How Do We Use AI to Make a Game?”
Over the past year, the role of AI-generated content in game development has moved from marginal experimentation to engineering practice. A bullet-heaven survival game completed and released a free playable demo within three months, and its development process was described as “fully AI-driven”: art was produced with image generation models, animation was implemented through AI-assisted shaders, music was created with generative models, and code was completed with the ongoing participation of intelligent coding agents. This article does not focus on marketing claims. Instead, it breaks the path into reusable technical approaches and answers a practical question: without a traditional game engine, how can modern web and desktop technology be used to build a 2D bullet-heaven survival game, and how can AI become a real productivity tool rather than a gimmick?
Rendering Layer: Filling the Gaps Without a Traditional Engine
Traditional engines provide one-stop capabilities such as scene management, physics, animation, UI, and asset import. For a 2D bullet-heaven survival game, many of these capabilities can be carried by lighter-weight approaches. The project chose a rendering library compatible with WebGL/Canvas 2D as its drawing backend, and managed the rendering loop, scene tree, sprite batching, and asset lifecycle in-house.
The key gaps to fill include:
- Rendering loop: Use standard browser APIs to drive update and render, and apply a fixed timestep for logic updates to avoid inconsistent bullet speeds and collision results across different frame rates. A fixed timestep also provides a more stable logic foundation for replays, pause, and co-op synchronization.
- Batching: Bullet-heaven games often have hundreds or thousands of projectiles, enemies, and particles. Issuing an independent draw call for every draw triggers many state changes; prioritize merging all sprites with the same texture and blend mode into the same batch to reduce draw calls.
- Offscreen rendering and post-processing: Screen shake, vignette, frame freeze, and hit-flash effects can be implemented through offscreen canvas or texture post-processing; more complex distortion and ripple effects can be handled by fragment shaders, avoiding per-frame pixel data rebuilds.
- Resource organization: Use texture atlases to reduce texture switches and bitmap fonts to reduce text rendering overhead. The input system needs to support keyboard/mouse and gamepad mapping, and UI events should be decoupled from game logic.
An illustrative pseudocode example is shown below:
class GameLoop:while running:dt = clock.getDelta()while dt >= fixedStep:world.update(fixedStep)dt -= fixedSteprenderer.render(world.visibleEntities)
Logic Layer: How ECS Supports Complex Synergies
Traditional object-oriented inheritance trees can run into diamond inheritance and god objects as entity attributes grow. Entities in a bullet-heaven survival game need position, velocity, health, spell type, cooldown, faction, animation state, and other attributes at the same time. If every entity inherits from a gradually expanding base class, both code readability and performance will suffer.
ECS, or Entity-Component-System, separates data from behavior:
- Entity is only a unique ID.
- Component is pure data, such as position, velocity, cooldown, elemental attributes, and summon identity.
- System iterates over all entities that hold the relevant components and executes logic, such as movement, collision, and spell synergy systems.
The advantages of this architecture are:
- Composition over inheritance: Components can be combined quickly to create different types such as “player,” “skeleton soldier,” and “fire projectile,” instead of creating a class hierarchy for every unit type.
- Cache friendliness: Components are stored contiguously by type, which is friendlier to CPU caches during iteration and suits high-density projectile entities.
- Pluggable systems: Synergy effects are essentially multiple systems responding to component tags. For example, for a “necromancy + fire” combination, the damage settlement system can read an additional combination rule instead of relying on many conditional branches inside an entity class.
Gameplay Systems: Death Mechanics, Five Magic Schools, and the Undead Army
The game treats death as a core mechanic rather than a simple failure condition. In technical design, this means death is not a simple state-machine transition. It needs to be split into multiple phases: death trigger, death presentation, death settlement, post-death reward or penalty, and respawn or continue spectating. Each phase should expose independent events for UI, audio, and in-run build systems to listen to.
The five magic schools can be modeled as “element tags + a synergy rule table.” Each spell has fields such as base damage, trajectory, duration, and element type. Synergy effects should not be hard-coded by exhaustively listing every combination. Instead, rule matching can be used:
- Rule: when a damage event contains at least two element tags, trigger additional resolution.
- Example: undead summoned units do not directly produce synergy, but they can be enchanted by other elemental spells, creating a linkage where the undead army gains elemental bursts.
- Benefit: balance adjustments are concentrated in the rule table rather than scattered across numeric values.
High-density projectiles and undead army units create performance pressure. In practice, it is recommended to use object pools to reuse projectile entities, use spatial hashing or quadtrees for broad-phase collision detection, and then pass broad-phase results to exact geometric checks. Single-player mode emphasizes build strategy; co-op mode must also consider host/client models, state synchronization, and difficulty scaling.
AI-Generated Art, Animation, and Music: Pipeline and Quality Control
- Art: Generative image models can quickly produce concept art, character portraits, and UI assets. However, directly using generated images can cause style drift, inconsistent perspective, and slicing difficulties. In practice, teams need prompt templates, style reference images, local repainting, unified color grading, and manual cleanup, followed by integration through texture atlases or nine-slice slicing.
- Animation: The project used custom shaders to simulate a “wobble” effect. The implementation idea is to add time- and coordinate-based noise offsets in the vertex shader, or pass uniform parameters to sprites to control scale, rotation, and translation. This approach saves memory compared with frame-by-frame sprite sequences, but it requires consistent appearance across different resolutions.
- Music: Generative audio models can produce loop segments. Engineering work must handle seamless loop points, BPM and level-state transitions, and dynamic loudness for sound effects. If multi-track stems are generated, a mixing stage is also needed. AI-generated music can feel homogenized, so post-arrangement and sound design still require human involvement.
Desktop Packaging and Store Integration: Engineering Gaps After Bypassing a Traditional Engine
One hidden benefit of traditional engines is packaging, signing, updating, and platform SDK integration. The project’s technical path uses a desktop container solution to wrap the web technology stack into a desktop application. The benefits are fast development iteration and a unified debugging environment. The gaps include:
- Native window menus, icons, crash logs, and auto-update need to be implemented separately or integrated through generic capabilities.
- Interfaces for digital game stores, such as login, achievements, cloud saves, and download distribution, often require an additional adapter layer.
- Code signing and notarization processes differ across operating systems and are complex. This is especially important when releasing a free demo, because the store review environment needs to be verified in advance.
If developers choose this path, they should treat “store SDK adaptation” as an independent module that does not pollute core game logic, and use a CI build pipeline to automatically produce installers for each platform. Some developers report that this kind of “shell engineering” integration is less smooth than with a traditional engine, so at least one to two weeks of release buffer should be reserved.
The Engineering Boundaries Behind the “100% AI-Driven” Debate
The controversy around the “AI-generated” label is essentially about how to define the degree of generative-tool involvement versus human creative contribution. From an engineering practice perspective, AI-driven development does not mean zero human involvement:
- Intelligent coding agents require humans to describe requirements, review code, handle compilation errors, and debug runtime issues.
- Generated assets require human selection, repainting, retouching, and loop adjustments.
- Generated music requires human arrangement, loudness processing, and matching to gameplay rhythm.
- So-called “vibe coding” means the developer does not force themselves to memorize API details, but instead repeatedly describes the feel and observes runtime results to adjust code. AI agents handle a large amount of boilerplate code and context switching, reducing the developer’s mental load.
Therefore, “100% AI” is more a statement about the automation level of a production pipeline than an absolute exclusion of humans. For developers, the discussion should focus on which stages AI can reliably improve efficiency and which stages must retain human quality control.
Practical Recommendations for Indie Developers
- Start small, then expand: Begin with a minimal playable prototype, let AI agents produce modular code, and gradually add synergy gameplay.
- Establish asset standards: For generated images, standardize resolution, color palette, perspective, and naming rules; for animation, define baseline shader parameters.
- Test continuously: AI-generated code may look usable but lack edge cases; unit tests should cover damage settlement, death flow, and synergy rules.
- Keep rollback and version control: AI-assisted development produces frequent code changes, and every large-scale diff should be carefully reviewed.
- Pay attention to cloud collaboration: For multiplayer or multi-device collaboration, use object storage to save assets, logging services to track crashes, and message queues to pass build tasks, bringing AI-generated intermediate artifacts into a unified pipeline.
Conclusion
The development process of this game shows that, within a specific genre and clear boundaries, abandoning a traditional engine and deeply introducing AI assistance can complete a title with complete gameplay and a consistent visual style in a very short cycle. But speed is not the only metric; code maintainability, asset copyright, platform integration, and player experience remain key to whether a project can operate long term. The real sign of maturity for AI-driven development is not that all content is generated by machines, but that humans can focus more on defining gameplay, tuning experience, and protecting creative boundaries.
