Jump to content

Unity.Eve

From MindAttic Docs

Unity Eve

A Unity 6 proof of concept: a cel-shaded, hand-inked survival-horror RPG, built entirely from free assets, with Parasite Eve's real-time/pause Active Time Battle and an original perfect-dodge Focus mechanic.

Unity-6000.4.3f1-black.svg URP-17.4-blue.svg Input%20System-1.19-green.svg status-vertical%20slice-yellow.svg

Kat in the Mercer living room under a fixed corner camera: cel-shaded light pools, ink lines and comic hatching

It is a playable vertical slice: one night in Kingsport, from the bus stop through a neighbourhood of houses, a grocery store and a market square to a boss in the church, with objectives, payphone saves, music and an ending. Past the market square, two extra exterior districts, Ashgrove Park and Ashgrove School, are open to explore. You explore under fixed and CCTV cameras, enter buildings, rummage through drawers and fridges, and fight creatures with an Active Time Bar, a hexagon range dome, guns and a katana, PE abilities and grenades.

This is the Unity port of ExperimentEve (the same game in Three.js and Babylon.js), whose battle numbers, enemy rhythm, camera rules and outfit painter it reuses.

Why

  • Prove it can be made from free assets. Every model, sound and font is CC0 or OFL and committed to the repo. Gunshots and stingers are synthesized by code. Nothing is bought or ripped.
  • Recapture the PE1 battle. No open-source recreation of Parasite Eve's battle system existed, so this builds one: real time while the gauge fills, the world stops when you act, and the weapon's dome decides what you can hit.
  • Add ideas of its own. Focus rewards precise dodging the way Max Payne and Clair Obscur: Expedition 33 do, and a Max Payne-style airborne shootdodge lets her leap and fire untouchable — neither is ever required.
  • Built for PC with a controller. It is gamepad-first with keyboard fallback, and the HUD is laid out for a monitor, not a phone.

The night (vertical slice)

  1. Title. New Game, or Continue from your last payphone save.
  2. Ashgrove Street. Find out what happened to the Mercers. Their letter sends you to the side table for the shed key; the shed holds a shotgun.
  3. Market Square. Survivors were gathering at Saint Ansel's, but the church is barred. A note points to Frank's spare key at Kingsport Foods.
  4. Willow Lane and Kingsport Foods. Down a street of houses to the grocery. The register holds the storeroom key; the manager's desk holds the church key. The storeroom holds a Husk Brute.
  5. Saint Ansel's. Save in the vestibule, then face the Mito Mother in the nave. She whips the whole aisle with her tentacles and calls her brood as she weakens.
  6. Ending. The night's tally (time, creatures, saves, level), then back to the title.

Optional, off the Market Square through a gap in its old south-east wall: Ashgrove Park, with a cel-shaded fountain, and Ashgrove School, a fenced yard guarded by the armour-plated Husk Warden and the acid-spitting Bloat Spitter. Neither is on the path to the church.

The title screen over Ashgrove Street

Willow Lane: seeded houses, porches, fences, driveways and parked cars

The Kingsport Foods parking lot

The Mito Mother in the nave of Saint Ansel's

The current objective is always on screen; each new one is announced. Payphones (green light) save anywhere they stand: the bus stop, the Mercer house, Willow Lane, the square, the grocery and the church. Dying offers Continue from the last save, or a retry at the bus stop.

Features

Parasite Eve battle

  • No screen transition. Walking into an encounter zone makes the creatures materialize where you stand and seals the area with invisible walls.
  • Active Time Bar. The gauge fills in real time while you move and dodge, using PE1's formula (50 + ActiveTime) x gun multiplier (pistol 1.0, shotgun 0.8).
  • World pause. With a full gauge, Confirm stops time and opens Attack / PE / Item / Equip / Escape.
  • Range dome. Choosing Attack raises a faint wireframe shell of hexagons sized to the weapon's range. Only enemies inside it can be targeted. In rooms smaller than the range, the shell shows faintly through the walls.
  • Katana. Kat carries a katana alongside her gun. The Blade command offers three arts:
    • Slash: a heavy cut that hits the target and anything beside it in a 110° arc, within 2.4 m.
    • Rush (PE): locks onto a target up to 8 m away and dashes through it, cutting every creature along the line. She is untouchable mid-dash.
    • Line Rush (PE): the same dash and cut, aimed by hand — rotate the line with the stick, confirm to cut everything it crosses.
  • Shove. A free melee (Interact, in battle): a short-reach punch that knocks back and stuns whatever's in front of her, no ATB cost and no ammo, on a cooldown.
  • Shootdodge. A Max Payne leap (right shoulder / Left Ctrl, gun weapons only): she dives in the stick's direction, untouchable and able to fire until she lands.
  • Weapons. A pistol, pump shotgun, SMG and bolt-action rifle, each with its own clip and ammo type.
  • Weapon behaviour from PE1:
    • Rate of fire: two rounds at 60% each.
    • Burst: the shotgun hits everything in range.
    • Active reload: holding Reload can hit a sweet spot sweeping across the bar to finish instantly (Gears of War-style); missing it, or never trying, still reloads normally — a bonus, never a requirement.
    • Ammo lives in a slot-limited bag, so bullets compete with medicine for space.
  • Parasite Energy. Heal, Energy Shot, Haste, Slow and Barrier. PE regenerates during battle, but each cast slows the regeneration, as in PE1.
  • Items.
    • Grenade: thrown on an arc, damages everything within 3 m.
    • Flash grenade: stuns everything within 3.5 m.
    • Medicine, Cola and Mito Tonic: restore HP or PE.
  • Readable enemy attacks (from ExperimentEve). Each enemy cycles close → windup → strike → recover. During the windup it glows, and the pause freezes it mid-telegraph. At most two enemies commit to an attack at once.
  • Creatures that take turns. The pack shares attack tokens, so one creature engages at a time (two in big packs), with a breather between turns. The engaged one stalks in or flanks toward Kat's back, rears up with a growl and a red glow, charges at a burst of speed, strikes, then retreats and hands the turn on. The rest keep to a ring around her: idling, pacing, glowing violet to enrage themselves (harder hits, faster tempo), or backing off if she gets close. Temperament shapes it: rats are eager, spiders and serpents flank, the Drain Coil hangs back and buffs.
  • Escape succeeds more often against weaker packs. EXP, level-ups and Bonus Points feed Active Time, so the gauge fills faster as you grow.

The paused command menu over the Mercer kitchen fight

Katana Slash: the blade drawn from her back, a heavy cut with a light trail

Focus (new)

  • Dodge (B / Space) so that a strike lands within 0.3 s of starting the dodge. Time drops to 15% for 2.4 real seconds and three free moves appear, none of which spends ATB:
    • Quick Heal: a small heal.
    • Target Vitals: a guaranteed x3 weak-point shot at the attacker.
    • Riposte: a guaranteed full-damage counter-strike that knocks the attacker back and stuns it.
  • Missing the timing still evades through i-frames, and the window expires on its own. Players who never time a dodge lose nothing: the ATB menu alone wins every fight.

Focus: a perfect dodge in the Mercer kitchen slows time and offers three free moves

Exploration

  • A believable neighbourhood. Willow Lane is lined with detached houses generated from a seed: lawns, porches, gable roofs, garages and driveways, picket fences or hedges, mailboxes you can search, trees and cars. Kingsport Foods sits at the south end behind a striped parking lot, with an interior of checkout lanes, stocked aisles, freezers and a staff storeroom. Benches, lamps and dumpsters all face the way they should.
  • Random encounters on return. Coming back to a screen after being somewhere far can start a fight from that screen's own pack; stepping back and forth across a boundary never does.
  • Fixed cameras with camera zones that hard-cut like classic survival horror. Overlapping trigger volumes give hysteresis, so the camera doesn't flicker at boundaries.
  • CCTV cameras stay mounted in place and servo-pan to follow you within yaw/pitch limits (the street, the alley, a kitchen nanny-cam). A rail camera slides along the street with you.
  • Direction latch. While the stick is held, "up" keeps its meaning across camera cuts. The basis rotates to the new camera after a short grace period, so a cut never reverses you.
  • Obstacle-aware movement. A soft warning collider around Kat eases her run speed before she actually hits a wall, bench or parked car, so she settles against it instead of jittering. Stepping back from someone she just attacked, within the window, plays a backpedal instead of a turn-and-walk.
  • Cover. Benches, streetlamp posts and mailboxes are read as real geometry: a fan of rays from the attacker to Kat's silhouette measures how much of her they actually block, and that fraction cuts the damage she takes.
  • Doors fade to black and move you between the street, the Mercer house and the shed. The shed is locked until you find its key.
  • Rummaging. Hold Interact to search dumpsters, fridges, drawers, coat pockets, a medicine cabinet and tool chests. A glint marks anything still worth searching; bigger containers keep paying out over several digs (up to three items) before they're empty.
  • Story beats. Notes, posters and a TV broadcast tell it in one line each. Glinting pickups mark items in the open, and the shotgun waits in the shed.

The alley, watched by a CCTV camera that pans to follow Kat

Presentation

  • Cel-shaded, inked render (Borderlands / Parasite Mutant). Light falls in flat, anti-aliased bands and hard-edged pools, and tiled textures are flattened toward painted colour. A full-screen ink pass draws clean, even outlines at silhouettes and creases. Floors seen at a grazing angle never streak, and lines thin with distance and sink into the fog. The world renders at full window resolution with 4x MSAA, and the HUD uses comic panels and Bangers lettering. Hard cuts, fog and flickering bulbs complete the mood.
  • Kat is a Quaternius Universal Base Character on the Universal Animation Library skeleton. Both share the same 65-joint rig, so the meshes are rebound by bone name with no retargeting. Her jeans, boots and tank top are painted into her albedo by a C# port of ExperimentEve's outfit painter.
  • Feel and sound. Every event has a sound. Hits, crits, dodges and explosions add gamepad rumble and camera shake.

Quick start

Prerequisites:

  • Unity 6000.4.3f1 with Windows build support
  • .NET SDK 10 (for the fast rules tests)
git clone https://github.com/mindattic/Unity.Eve.git
cd Unity.Eve

Open the folder in Unity Hub, then open Assets/UnityEve/Scenes/Demo.unity and press Play. The scene and all generated content are committed, so there's nothing to build first.

Controls:

Action Gamepad Keyboard
Move Left stick WASD / arrows
Walk Left stick click Left Shift
Battle command (gauge full) / confirm A Enter / Z
Dodge / back B Space / X
Interact (hold to search; shove in battle) X E
Shootdodge Right shoulder Left Ctrl
Focus moves X / Y / A 1 / 2 / 3
Menu (items, equip, controls) Start Esc / Tab
Menu navigation D-pad / stick Arrows / WASD

Commands

./tools/test.ps1                 # pure-C# rules under dotnet test (seconds, no Unity)
./tools/test.ps1 -Compile        # + batch-mode Unity compile check
./tools/test.ps1 -EditMode       # + the Unity EditMode suite, headless (add -Filter Name to narrow both)

# Regenerate every generated asset and the Demo scene from code
./tools/unity.ps1 -Method Unity.Eve.Editor.DemoContentBuilder.BuildAll -Log content

# Build the Windows player (Build/Windows/Unity.Eve.exe)
./tools/unity.ps1 -Method Unity.Eve.Editor.UnityEveBuild.BuildWindows -Log build -Graphics

# Self-play: tour, rummage, fight all three encounters, screenshot every beat, then quit.
# Batch mode renders offscreen, so no window opens. Exit code 0 = PASS.
Build/Windows/Unity.Eve.exe -batchmode -demo -artifacts artifacts/demo -logFile artifacts/demo.log

# The same tour in a window, to watch it play (it still screenshots, then quits PASS/FAIL).
Build/Windows/Unity.Eve.exe -demo

# A video from launch to quit, at native resolution (MindAttic.Media.Capture, Assets/StreamingAssets/capture.json
# turns it on). Production builds are capture-free by design; this build has it compiled in.
./tools/unity.ps1 -Method MindAttic.Media.Capture.Unity.Editor.CaptureBuild.BuildWindows -Log capture-build
Builds/Capture/Unity.Eve.exe -demo -artifacts artifacts/demo

# The standard launcher: build Debug and Release into R:\MindAttic\Apps\Unity.Eve\{Debug,Release}
./run.ps1                # menu: 1 Redeploy, 2 Run Debug, 3 Run Release (13 = Deploy & Run); run.bat opens the same
./run.ps1 -Redeploy -RunRelease

# Deploy, then offer Normal Play / Demo + Capture / Quit from a menu (double-clickable as launch.bat)
./tools/launch.ps1
./tools/launch.ps1 -Sound   # opt into audio; every other launch.ps1 choice is muted by default

Headless launches

For scripted testing (off by default), ./run.ps1 -Headless runs the installed Release copy (R:\MindAttic\Apps\Unity.Eve\Release; add -Redeploy to build and deploy first) with no window through the shared launcher (..\Unity.Shared\tools\Start-Headless.ps1: --headless -batchmode -nographics) and waits for the MINDATTIC_HEADLESS_READY log line. Eve has no main menu (it loads straight into the demo scene), so there is nothing further to skip. Without --headless nothing changes.

Muted launches

tools/launch.ps1 launches muted by default: it sets MINDATTIC_CLI_MUTED=1 and passes -muted to whichever choice you pick, so a CLI or agent launching the game for development never plays sound. Pass -Sound to launch with audio instead. Either switch works on its own when you start Unity.Eve.exe (or the Editor) yourself:

$env:MINDATTIC_CLI_MUTED = '1'; .\Build\Windows\Unity.Eve.exe
.\Build\Windows\Unity.Eve.exe -muted

The mute is the shared com.mindattic.unity.shared session mute (added in U.EVE-T31): read before the first scene loads, it sets Unity.Shared.Core.Profiles.SessionMuted, and Unity.Eve's own SessionAudio (Assets/UnityEve/Runtime/Audio/SessionAudio.cs) zeroes AudioListener.volume for that run only, silencing AudioService and MusicDirector alike. The player's saved settings.json (once Eve has one) is never written. -batchmode runs (-demo, CompileCheck) play nothing audible and don't need it.

MindAttic.Media.Capture also auto-starts in plain Editor Play sessions and dev builds (not gated by -capture). Currently disabled project-wide: "enabled": false in capture.json. Flip it to true (or remove the key) to re-enable.

Unity batch mode needs the Editor closed on this project; tools/unity.ps1 refuses to run if it's open, and run.ps1 -Redeploy builds in batch mode too.

How it's built

Assets/UnityEve/
  Core/        Unity.Eve.Core (noEngineReferences)   ATB, PE, damage, Focus, enemy attack cycle,
                                                   inventory, loot, camera-zone selection, movement basis
  Runtime/     Unity.Eve.Runtime                     MonoBehaviours: BattleDirector, EnemyActor, PlayerController,
                                                   CameraDirector/Shot/Zone, interactables, GameHud (UI Toolkit),
                                                   WorldTime, GameInput (Input System), Autopilot
  Editor/      Unity.Eve.Editor                      DemoContentBuilder (data, prefabs, animators, scene),
                                                   WavSynth, OutfitPainter, build entry points
  Art/         CC0 models, sounds, OFL font (see CREDITS.md)
  Generated/   output of DemoContentBuilder: ScriptableObjects, materials, clips, prefabs, audio
  Scenes/      Demo.unity (generated)
Tests/         Core.Tests: NUnit against Assets/UnityEve/Core compiled as netstandard2.1
tools/         unity.ps1 (batch mode), test.ps1 (the gate), launch.ps1 (deploy via ../run.ps1, then play)
docs/          BIBLE.md (design canon), USER_STORIES.md (status + evidence)
Layer Rule
Core Pure C#, no UnityEngine, seeded Rng only. Every rule is unit-tested in seconds.
Runtime Thin MonoBehaviours over Core. Presentation never decides a rule. One owner of Time.timeScale (WorldTime).
Content Weapons, items, PE abilities, enemies, loot and sounds are ScriptableObjects, editable in the Inspector. DemoContentBuilder regenerates them, the prefabs and the scene deterministically.
Verification dotnet test for rules; -demo drives the real game through every system and writes screenshots.

Limitations

  • It is a vertical slice: one night, about 20-40 minutes. Ashgrove Street, Ashgrove Heights (Willow Lane and Kingsport Foods), the Market district and five interiors, plus the optional Ashgrove Park and Ashgrove School (exteriors only, like Willow Lane's houses); eleven fixed encounters plus random re-entry encounters; fourteen creature types (seven mutated animals, six aliens, one boss).
  • Enemies move by transform with simple separation, not a navmesh. Arena walls keep fights contained.
  • Bonus Points are spent automatically on Active Time rather than through a menu.
  • No boss part/weak-point targeting yet; the Mito Mother is a single hittable body.
  • Music and all sound effects are synthesized in code; there is no recorded score.

Documentation

  • docs/BIBLE.md: what this is and isn't, its laws, architecture, glossary
  • docs/USER_STORIES.md: every feature with status and the test or autoplay step that proves it
  • CREDITS.md: asset sources and licenses
  • AGENTS.md: instructions for AI agents working in this repo

License

This repo has no LICENSE file, so all rights are reserved for the code. Third-party assets keep their own licenses (CC0 and OFL); see CREDITS.md.

Part of MindAttic. See more projects at github.com/mindattic. Related: ExperimentEve.

Pages in this repository

  • Unity Eve (UE): Bible — Unity Eve is a Unity 6 proof of concept showing that a cel-shaded, hand-inked survival-horror RPG can be built from free assets: walk a…
  • Unity Eve (U.EVE): Reconstruction of ExperimentEve — Unity.Eve's README calls it "the Unity port of ExperimentEve ... whose battle numbers, enemy rhythm, camera rules and outfit painter it…
  • Unity.Eve — Release charter — A Unity 6 proof of concept of the Eve survival-horror RPG: a cel-shaded vertical slice of one night in Kingsport with Parasite Eve's…
From Unity.Eve/docs/overview.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.