65 lines
9.8 KiB
Markdown
65 lines
9.8 KiB
Markdown
# Kernel Panic
|
||
|
||
A Unity card battler about Linux distributions and programming languages. Native cards resolve immediately; Python uses a FIFO queue and Haskell a LIFO stack.
|
||
|
||
## Open and run
|
||
|
||
Use Unity **6000.4.8f1**, with Windows build support. Open this directory through Unity Hub, let the complete package set import, and start `Assets/Scenes/MainMenuScene.unity`. New profiles learn the game in a three-wave tutorial, including Cron Job's countdown and a Daemon miniboss. New normal runs have a ten-wave campaign ending with the Kernel Overseer. After clearing wave 10, bank your rewards or continue the same build into endless survival at wave 11.
|
||
|
||
Keep Unity `.meta` files alongside their assets in version control. `Library`, `Temp`, `Logs`, builds and local recovery scenes are excluded. Do not delete or regenerate metadata to resolve missing references.
|
||
|
||
## Test and build
|
||
|
||
Run the EditMode tests from Unity's **Window > General > Test Runner** window.
|
||
|
||
Build the game through **File > Build Profiles**, using the scenes configured in the project. The editor entry point `KernelPanic.Editor.PlayerBuild.BuildWindows` is also available for batch-mode Windows development builds; its default output is `Builds/Windows/KernelPanic.exe`.
|
||
|
||
For seeded balance measurements, use the editor entry point `KernelPanic.Editor.BalanceComparison.RunBatch`. These are bot measurements, not human win rates.
|
||
|
||
## Current run decisions
|
||
|
||
C balance tuning: C damage now has a 35% critical chance (down from 50%); critical damage remains 1.5x. Each C overkill jump transfers 50% of the remaining excess, rounded down, after the previous target's defenses. For example, 11 excess damage spills 5; if that target consumes 2, the next jump carries 1. Java still transfers all remaining excess, and Rust's overkill-to-Shield is unchanged. Base card damage and segfault rules are unchanged.
|
||
|
||
- Waves 2–9 offer connected route stops before their seed-selected encounters; wave 10 converges on the boss. Elite detours add a Daemon with a disclosed modifier and award eight Bits plus a draw rider on the first eligible card after clearing the wave (16 Bits total if no card is eligible); repairs restore up to six Uptime. Patch workshops improve a card, sacrifice altars exchange one card for a stronger upgrade, recyclers remove a card for Bits, and caches grant Bits. Previewing routes consumes no combat or shop randomness.
|
||
- After waves 2, 4, 6, and 8, choose a magnitude upgrade, a first draw rider on a chosen card, or eight Bits. Rewards last for the current run. The choice and its claim state survive repository saves.
|
||
- During normal combat, **prefetch** spends two Cycles to draw one card, once per turn. It requires two free RAM so any possible card fits. It does not bypass the draw order, corruption or card locks.
|
||
- Combat sounds have a volume/mute control in Settings. Audio observes events and has no effect on gameplay timing or randomness.
|
||
- Daemons hide a fresh action each round: Surge (8–10 damage), Harden (6–8 Shield), or Bypass (3–4 damage through Shield). Damage, including Shield-only hits, reveals the committed action for that round without rerolling it.
|
||
|
||
Focusing a hand card reveals its name and Cycles cost, including when its rules are taller than the hand viewport. Cards fit the available hand width on narrow screens; the rules remain freely scrollable.
|
||
|
||
Checkpoint versions 1–3 still load; older campaigns retain their original encounter timing and wave-five completion choice. New saves use envelope schema 8 and checkpoint version 4, including route topology, event results, and travel history. Seeded retries require the same game content and action sequence.
|
||
|
||
## Daily quests
|
||
|
||
The main menu's compact `[ cron.daily ]` widget sits below neofetch. The entire widget is clickable and reports the reset countdown, completed/claimed counts, three task progress readouts, and the exact number of unclaimed rewards in amber. Its terminal action highlights on hover/focus and switches from `> inspect tasks` to `> claim available rewards` when appropriate. Click it or focus it and press Enter to inspect descriptions and claim individual rewards in a terminal overlay. Escape or the close control restores previous focus. The existing prompt also accepts `cat /etc/cron.daily/quests`, including Tab completion; no extra navigation tab is added. Claims and daily resets update both views immediately. The widget and overlay have no animations.
|
||
|
||
The wider detail modal keeps its terminal command, reset countdown, and completion summary above the scrolling task list. Fixed-width ASCII bars and aligned numerical progress accompany subdued `[ in progress ]`, amber `> CLAIM REWARD`, or muted-green `[ CLAIMED ]` controls. A successful atomic save produces a two-line `[ OK ]` confirmation with the actual deposited currencies; failed saves never announce success. Focus moves to Close after claiming so repeated Enter does not advance into another reward.
|
||
|
||
Focus restoration distinguishes input methods: mouse-opened details return to the menu without a persistent widget focus highlight; keyboard-opened details restore the prior keyboard target, and the command alias returns to the prompt. Escape can release the widget's keyboard focus. Selecting a primary command with arrows or pointer hover also releases the widget, keeping Enter consistent with the selected command. Ordinary hover highlighting remains while the pointer is over the widget. This follow-up passes 78 relevant tests (`Logs/daily-quest-focus-tests.xml`), a zero-error Windows build (`Logs/daily-quest-focus-build.log`), and isolated mouse/keyboard player checks at 1280x720 and 390x844 (`Logs/DailyQuestFocusSmoke-16bd1b818f1046de9bbc6780170b64f2/`).
|
||
|
||
The main menu shows three distinct quests randomly selected from eight options: clear 3 waves, play 25 cards, deal 200 Uptime damage, block 40 damage with Shield, play 15 Native cards, deal 60 damage to enemy Shields, survive 8 enemy rounds, or clear wave 5. Each 24-hour reset picks a new set and never repeats the exact previous trio. The saved selection survives reopening the game and does not consume combat or shop randomness. Existing fixed quests keep their progress and claim status until their next reset.
|
||
|
||
Progress accumulates across normal runs and is saved as you play. Tutorial combat and self-damage do not count. Shield damage and Uptime damage advance their respective objectives; surviving rounds requires reaching Garbage Collection alive after the enemy phase. Only the three active quests can progress or pay rewards.
|
||
|
||
Each completed quest has an individual claim button. Rewards scale with the objective's difficulty and expected effort:
|
||
|
||
| Objectives | Bandwidth | Entropy |
|
||
| --- | ---: | ---: |
|
||
| Play 25 cards; play 15 Native cards | 75 | 25 |
|
||
| Deal 200 Uptime damage; block 40 damage with Shield | 100 | 50 |
|
||
| Clear 3 waves; deal 60 damage to enemy Shields; survive 8 enemy rounds | 150 | 75 |
|
||
| Clear wave 5 | 250 | 125 |
|
||
|
||
Quest details and payouts use the same reward table. Existing progress and claimed flags are preserved; already-claimed quests do not pay again when rewards change. Both currencies and the claim flag are saved together, so repeated clicks or saving retries cannot pay twice. Claim rewards before the countdown expires: progress and unclaimed rewards reset every 24 hours, anchored to the first quest initialization using the computer's UTC clock. Closing the game does not pause or restart the countdown.
|
||
|
||
Validation: `Logs/daily-quests-tests.xml` records 672 passing EditMode tests, including reset boundaries, save/reload, failed-save recovery, reward claims, gameplay events, and menu layouts at standard/large text sizes.
|
||
|
||
Difficulty reward validation: `Logs/daily-quest-difficulty-tests.xml` records 76 passing EditMode tests, including exact payouts for all eight objectives, duplicate-claim prevention after reload, preservation of previously claimed flat rewards, currency overflow checks, displayed reward amounts, and responsive quest layouts.
|
||
|
||
Final UI polish validation: `Logs/daily-quest-polish-tests.xml` records 77 passing tests covering all three states, claim counts, keyboard/mouse activation, alias dispatch, focus restoration, save-failure feedback, duplicate claims, countdown/reset updates, and standard/large text layouts. All three quests plus confirmation fit at the requested desktop sizes, including a 1024x576 logical viewport representing 1280x720 at 125% display scaling. Short viewports retain scrolling with a fixed header. `Logs/daily-quest-polish-build.log` records a successful Windows development build with zero errors. Five isolated player checks passed at 1920x1080, 1366x768, 1280x720, 960x400, and 390x844; captures and results are under `Logs/DailyQuestPolishFinal-a25f067715164a92a6b0632f62d06264/`.
|
||
|
||
Random selection validation: `Logs/daily-quest-variety-tests.xml` records 55 passing focused tests, including 120 daily selections, reload stability, fixed-quest migration, new combat objectives, inactive-quest rejection, and layouts covering all eight quest options.
|
||
|
||
The `[ cron.daily ]` redesign passes 66 focused tests in `Logs/cron-daily-final-tests.xml`, covering the compact/expanded layouts, mouse and Enter activation, Tab/Shift-Tab, Escape and focus restoration, command completion/dispatch, claims, and live countdown/reset updates. `Logs/cron-daily-final-build.log` records a successful development build. Isolated quest UI player checks passed at 1280x720 and 390x844, with visually inspected captures under `Logs/CronDailyFinal-c61dd55e9648437f81a5d9586900c144/`. Run this focused player check with `--kernel-panic-smoke --kernel-panic-quest-ui-smoke --kernel-panic-save-path <absolute-unused-path>`; it creates a quest fixture only in that isolated save. Earlier full-run smoke passed wide but stopped at the tutorial's `finish-zombie` target on narrow, before reaching quests; the focused quest check avoids that unrelated automation path.
|