c64-kb 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2082 -0
- package/LICENSE +29 -0
- package/README.md +559 -0
- package/VERSION +25 -0
- package/dist/cli/setup.js +66 -0
- package/dist/cli/setup.js.map +1 -0
- package/dist/cli-memorize-audit.js +97 -0
- package/dist/cli-memorize-audit.js.map +1 -0
- package/dist/cli.js +335 -0
- package/dist/cli.js.map +1 -0
- package/dist/config.js +83 -0
- package/dist/config.js.map +1 -0
- package/dist/context.js +53 -0
- package/dist/context.js.map +1 -0
- package/dist/domain/budget-notes.js +104 -0
- package/dist/domain/budget-notes.js.map +1 -0
- package/dist/domain/budget.js +417 -0
- package/dist/domain/budget.js.map +1 -0
- package/dist/domain/game-design.js +77 -0
- package/dist/domain/game-design.js.map +1 -0
- package/dist/domain/timing.js +39 -0
- package/dist/domain/timing.js.map +1 -0
- package/dist/graph/apply.js +132 -0
- package/dist/graph/apply.js.map +1 -0
- package/dist/graph/claims.js +231 -0
- package/dist/graph/claims.js.map +1 -0
- package/dist/graph/extract/archetype.js +118 -0
- package/dist/graph/extract/archetype.js.map +1 -0
- package/dist/graph/extract/common.js +69 -0
- package/dist/graph/extract/common.js.map +1 -0
- package/dist/graph/extract/failure.js +37 -0
- package/dist/graph/extract/failure.js.map +1 -0
- package/dist/graph/extract/game-design.js +189 -0
- package/dist/graph/extract/game-design.js.map +1 -0
- package/dist/graph/extract/hardware.js +124 -0
- package/dist/graph/extract/hardware.js.map +1 -0
- package/dist/graph/extract/pitfall.js +62 -0
- package/dist/graph/extract/pitfall.js.map +1 -0
- package/dist/graph/extract/raster-band.js +56 -0
- package/dist/graph/extract/raster-band.js.map +1 -0
- package/dist/graph/extract/recipe.js +71 -0
- package/dist/graph/extract/recipe.js.map +1 -0
- package/dist/graph/extract/technique-entities.js +180 -0
- package/dist/graph/extract/technique-entities.js.map +1 -0
- package/dist/graph/extract/technique.js +179 -0
- package/dist/graph/extract/technique.js.map +1 -0
- package/dist/graph/extract/toolchain.js +67 -0
- package/dist/graph/extract/toolchain.js.map +1 -0
- package/dist/graph/extract/types.js +3 -0
- package/dist/graph/extract/types.js.map +1 -0
- package/dist/graph/extract/vocabulary.js +65 -0
- package/dist/graph/extract/vocabulary.js.map +1 -0
- package/dist/graph/extract.js +43 -0
- package/dist/graph/extract.js.map +1 -0
- package/dist/graph/kernal-clobbers.js +64 -0
- package/dist/graph/kernal-clobbers.js.map +1 -0
- package/dist/graph/machine-variants.js +208 -0
- package/dist/graph/machine-variants.js.map +1 -0
- package/dist/ingest/files.js +99 -0
- package/dist/ingest/files.js.map +1 -0
- package/dist/ingest/passes.js +104 -0
- package/dist/ingest/passes.js.map +1 -0
- package/dist/ingest/points.js +50 -0
- package/dist/ingest/points.js.map +1 -0
- package/dist/ingest/report.js +140 -0
- package/dist/ingest/report.js.map +1 -0
- package/dist/ingest/tally.js +81 -0
- package/dist/ingest/tally.js.map +1 -0
- package/dist/ingest/verified-on.js +43 -0
- package/dist/ingest/verified-on.js.map +1 -0
- package/dist/ingest.js +135 -0
- package/dist/ingest.js.map +1 -0
- package/dist/schemas/cost-basis.js +5 -0
- package/dist/schemas/cost-basis.js.map +1 -0
- package/dist/schemas/machine-variant.js +25 -0
- package/dist/schemas/machine-variant.js.map +1 -0
- package/dist/schemas/plan-budget.js +121 -0
- package/dist/schemas/plan-budget.js.map +1 -0
- package/dist/schemas/tool-outputs.js +526 -0
- package/dist/schemas/tool-outputs.js.map +1 -0
- package/dist/server/define-tool.js +52 -0
- package/dist/server/define-tool.js.map +1 -0
- package/dist/server/defined-only.js +9 -0
- package/dist/server/defined-only.js.map +1 -0
- package/dist/server/tools-briefings.js +70 -0
- package/dist/server/tools-briefings.js.map +1 -0
- package/dist/server/tools-lookup.js +180 -0
- package/dist/server/tools-lookup.js.map +1 -0
- package/dist/server/tools-maintenance.js +116 -0
- package/dist/server/tools-maintenance.js.map +1 -0
- package/dist/server/tools-pitfalls.js +89 -0
- package/dist/server/tools-pitfalls.js.map +1 -0
- package/dist/server/tools-recipes.js +296 -0
- package/dist/server/tools-recipes.js.map +1 -0
- package/dist/server/tools-runtime.js +48 -0
- package/dist/server/tools-runtime.js.map +1 -0
- package/dist/server/tools.js +43 -0
- package/dist/server/tools.js.map +1 -0
- package/dist/server.js +95 -0
- package/dist/server.js.map +1 -0
- package/dist/services/analytics/schema.js +78 -0
- package/dist/services/analytics/schema.js.map +1 -0
- package/dist/services/analytics/statements.js +99 -0
- package/dist/services/analytics/statements.js.map +1 -0
- package/dist/services/analytics.js +195 -0
- package/dist/services/analytics.js.map +1 -0
- package/dist/services/bm25.js +158 -0
- package/dist/services/bm25.js.map +1 -0
- package/dist/services/chunker.js +81 -0
- package/dist/services/chunker.js.map +1 -0
- package/dist/services/embeddings.js +58 -0
- package/dist/services/embeddings.js.map +1 -0
- package/dist/services/falkor/base.js +85 -0
- package/dist/services/falkor/base.js.map +1 -0
- package/dist/services/falkor/links.js +361 -0
- package/dist/services/falkor/links.js.map +1 -0
- package/dist/services/falkor/nodes.js +183 -0
- package/dist/services/falkor/nodes.js.map +1 -0
- package/dist/services/falkor/params.js +45 -0
- package/dist/services/falkor/params.js.map +1 -0
- package/dist/services/falkor/schema.js +77 -0
- package/dist/services/falkor/schema.js.map +1 -0
- package/dist/services/falkor.js +100 -0
- package/dist/services/falkor.js.map +1 -0
- package/dist/services/qdrant.js +238 -0
- package/dist/services/qdrant.js.map +1 -0
- package/dist/services/versions.js +73 -0
- package/dist/services/versions.js.map +1 -0
- package/dist/services/vice-bin.js +51 -0
- package/dist/services/vice-bin.js.map +1 -0
- package/dist/tools/briefings/archetype.js +174 -0
- package/dist/tools/briefings/archetype.js.map +1 -0
- package/dist/tools/briefings/budget.js +177 -0
- package/dist/tools/briefings/budget.js.map +1 -0
- package/dist/tools/briefings/build-order.js +135 -0
- package/dist/tools/briefings/build-order.js.map +1 -0
- package/dist/tools/briefings/build.js +185 -0
- package/dist/tools/briefings/build.js.map +1 -0
- package/dist/tools/briefings/discovery.js +290 -0
- package/dist/tools/briefings/discovery.js.map +1 -0
- package/dist/tools/briefings/plan-pitfalls.js +69 -0
- package/dist/tools/briefings/plan-pitfalls.js.map +1 -0
- package/dist/tools/briefings/render.js +151 -0
- package/dist/tools/briefings/render.js.map +1 -0
- package/dist/tools/briefings/rows.js +41 -0
- package/dist/tools/briefings/rows.js.map +1 -0
- package/dist/tools/briefings/toolchain.js +63 -0
- package/dist/tools/briefings/toolchain.js.map +1 -0
- package/dist/tools/briefings/why-proposed.js +69 -0
- package/dist/tools/briefings/why-proposed.js.map +1 -0
- package/dist/tools/briefings.js +44 -0
- package/dist/tools/briefings.js.map +1 -0
- package/dist/tools/feedback.js +97 -0
- package/dist/tools/feedback.js.map +1 -0
- package/dist/tools/hydrate.js +75 -0
- package/dist/tools/hydrate.js.map +1 -0
- package/dist/tools/intelligence.js +67 -0
- package/dist/tools/intelligence.js.map +1 -0
- package/dist/tools/lint/asm-decimal.js +86 -0
- package/dist/tools/lint/asm-decimal.js.map +1 -0
- package/dist/tools/lint/asm-rules.js +221 -0
- package/dist/tools/lint/asm-rules.js.map +1 -0
- package/dist/tools/lint/asm-shared.js +3 -0
- package/dist/tools/lint/asm-shared.js.map +1 -0
- package/dist/tools/lint/c-rules.js +215 -0
- package/dist/tools/lint/c-rules.js.map +1 -0
- package/dist/tools/lint/text.js +122 -0
- package/dist/tools/lint/text.js.map +1 -0
- package/dist/tools/lint/types.js +40 -0
- package/dist/tools/lint/types.js.map +1 -0
- package/dist/tools/lint.js +76 -0
- package/dist/tools/lint.js.map +1 -0
- package/dist/tools/memorization-mcp.js +111 -0
- package/dist/tools/memorization-mcp.js.map +1 -0
- package/dist/tools/pitfalls/bm25.js +53 -0
- package/dist/tools/pitfalls/bm25.js.map +1 -0
- package/dist/tools/pitfalls/format.js +58 -0
- package/dist/tools/pitfalls/format.js.map +1 -0
- package/dist/tools/pitfalls/graph.js +124 -0
- package/dist/tools/pitfalls/graph.js.map +1 -0
- package/dist/tools/pitfalls.js +134 -0
- package/dist/tools/pitfalls.js.map +1 -0
- package/dist/tools/prompts.js +81 -0
- package/dist/tools/prompts.js.map +1 -0
- package/dist/tools/query/compatibility/closure.js +62 -0
- package/dist/tools/query/compatibility/closure.js.map +1 -0
- package/dist/tools/query/compatibility/facts.js +28 -0
- package/dist/tools/query/compatibility/facts.js.map +1 -0
- package/dist/tools/query/compatibility/fetch.js +164 -0
- package/dist/tools/query/compatibility/fetch.js.map +1 -0
- package/dist/tools/query/compatibility/hard-rules.js +159 -0
- package/dist/tools/query/compatibility/hard-rules.js.map +1 -0
- package/dist/tools/query/compatibility/index.js +27 -0
- package/dist/tools/query/compatibility/index.js.map +1 -0
- package/dist/tools/query/compatibility/kernal-zp-rule.js +90 -0
- package/dist/tools/query/compatibility/kernal-zp-rule.js.map +1 -0
- package/dist/tools/query/compatibility/render.js +106 -0
- package/dist/tools/query/compatibility/render.js.map +1 -0
- package/dist/tools/query/compatibility/rules.js +337 -0
- package/dist/tools/query/compatibility/rules.js.map +1 -0
- package/dist/tools/query/compatibility/unit-rules.js +253 -0
- package/dist/tools/query/compatibility/unit-rules.js.map +1 -0
- package/dist/tools/query/game-design.js +83 -0
- package/dist/tools/query/game-design.js.map +1 -0
- package/dist/tools/query/lookups.js +220 -0
- package/dist/tools/query/lookups.js.map +1 -0
- package/dist/tools/query/plan-budget.js +266 -0
- package/dist/tools/query/plan-budget.js.map +1 -0
- package/dist/tools/query/recipes.js +214 -0
- package/dist/tools/query/recipes.js.map +1 -0
- package/dist/tools/query/retrieval.js +128 -0
- package/dist/tools/query/retrieval.js.map +1 -0
- package/dist/tools/query/shared.js +121 -0
- package/dist/tools/query/shared.js.map +1 -0
- package/dist/tools/query/techniques.js +331 -0
- package/dist/tools/query/techniques.js.map +1 -0
- package/dist/tools/query/timing.js +106 -0
- package/dist/tools/query/timing.js.map +1 -0
- package/dist/tools/query/types.js +11 -0
- package/dist/tools/query/types.js.map +1 -0
- package/dist/tools/query.js +21 -0
- package/dist/tools/query.js.map +1 -0
- package/dist/tools/resources.js +186 -0
- package/dist/tools/resources.js.map +1 -0
- package/dist/tools/run-game.js +249 -0
- package/dist/tools/run-game.js.map +1 -0
- package/dist/tools/selfimprovement.js +367 -0
- package/dist/tools/selfimprovement.js.map +1 -0
- package/docker-compose.yml +35 -0
- package/docs/ARCHITECTURE.md +164 -0
- package/docs/CONVENTIONS-archetypes.md +158 -0
- package/docs/CONVENTIONS-failures.md +46 -0
- package/docs/CONVENTIONS-game-designs.md +75 -0
- package/docs/CONVENTIONS-hardware-reference.md +184 -0
- package/docs/CONVENTIONS-pitfalls.md +91 -0
- package/docs/CONVENTIONS-recipes.md +106 -0
- package/docs/CONVENTIONS-techniques.md +309 -0
- package/docs/CONVENTIONS-toolchain-reference.md +89 -0
- package/docs/ONTOLOGY.md +655 -0
- package/docs/art/art-production-reference.md +157 -0
- package/docs/art/asset-pipelines.md +586 -0
- package/docs/c64-failure-patterns.md +693 -0
- package/docs/demo-design/demo-composition.md +349 -0
- package/docs/demo-design/demo-design-philosophy.md +320 -0
- package/docs/demo-design/intro-cracktro-patterns.md +435 -0
- package/docs/figures/ctm-spd-embed-probe.png +0 -0
- package/docs/figures/dot-flag-mid-5000000.png +0 -0
- package/docs/figures/dot-flag-no-erase-12000000.png +0 -0
- package/docs/figures/edges.json +1 -0
- package/docs/figures/fig6-architecture.png +0 -0
- package/docs/figures/fig7-ontology.png +0 -0
- package/docs/figures/screen-dissolve-mid-frame25.png +0 -0
- package/docs/figures/screen-dissolve-wipe-frame25.png +0 -0
- package/docs/figures/spindle-two-parts-part1.png +0 -0
- package/docs/figures/spindle-two-parts-part2.png +0 -0
- package/docs/figures/starters/action-puzzle.png +0 -0
- package/docs/figures/starters/adventure.png +0 -0
- package/docs/figures/starters/beat-em-up.png +0 -0
- package/docs/figures/starters/demo.png +0 -0
- package/docs/figures/starters/platformer.png +0 -0
- package/docs/figures/starters/shmup-vertical.png +0 -0
- package/docs/figures/tape-kernal-master-ntsc.png +0 -0
- package/docs/figures/tape-kernal-master-pal.png +0 -0
- package/docs/figures/tape-turbo-loader-ntsc.png +0 -0
- package/docs/figures/tape-turbo-loader-pal.png +0 -0
- package/docs/figures/tape-turbo-master-ntsc.png +0 -0
- package/docs/figures/tape-turbo-master-pal.png +0 -0
- package/docs/figures/tech-tech-pad2-12000000.png +0 -0
- package/docs/figures/tech-tech-pad4-12000000.png +0 -0
- package/docs/figures/tech-tech-seven-12000000.png +0 -0
- package/docs/figures/twister-mid-5000000.png +0 -0
- package/docs/figures/twister-straight-12000000.png +0 -0
- package/docs/figures/vector-balls-nosort-ntsc.png +0 -0
- package/docs/figures/vector-balls-nosort.png +0 -0
- package/docs/formats/c64-file-formats.md +1212 -0
- package/docs/formats/iec-disk-reference.md +754 -0
- package/docs/game-design/c64-game-archetypes.md +273 -0
- package/docs/game-design/designs/falling-blocks.md +54 -0
- package/docs/game-design/designs/platformer-scaffold.md +48 -0
- package/docs/game-design/designs/simple-shmup.md +27 -0
- package/docs/game-design/enemy-behaviour-and-difficulty.md +349 -0
- package/docs/game-design/game-design-patterns.md +1189 -0
- package/docs/game-design/game-structure.md +354 -0
- package/docs/game-design/production-planning.md +349 -0
- package/docs/game-design/reference-game-sources.md +90 -0
- package/docs/hardware/6502-illegal-opcodes.md +1353 -0
- package/docs/hardware/6510-cpu-reference.md +2112 -0
- package/docs/hardware/c64-memory-map.md +3184 -0
- package/docs/hardware/c64-registers-reference.md +996 -0
- package/docs/hardware/cia-reference.md +1281 -0
- package/docs/hardware/kernal-routines-reference.md +1836 -0
- package/docs/hardware/pal-ntsc-reference.md +813 -0
- package/docs/hardware/sid-reference.md +1137 -0
- package/docs/hardware/vic-ii-reference.md +1714 -0
- package/docs/music/music-production-reference.md +403 -0
- package/docs/pitfalls/banking.md +1067 -0
- package/docs/pitfalls/cia.md +1147 -0
- package/docs/pitfalls/cpu.md +874 -0
- package/docs/pitfalls/input.md +282 -0
- package/docs/pitfalls/kernal-and-io.md +1615 -0
- package/docs/pitfalls/loader.md +1191 -0
- package/docs/pitfalls/logic.md +94 -0
- package/docs/pitfalls/maths.md +187 -0
- package/docs/pitfalls/raster-and-badline.md +721 -0
- package/docs/pitfalls/region-timing.md +660 -0
- package/docs/pitfalls/scroll.md +207 -0
- package/docs/pitfalls/sid.md +738 -0
- package/docs/pitfalls/sprite.md +979 -0
- package/docs/pitfalls/text-mode-render.md +1172 -0
- package/docs/recipes/cc65/cartridge-8k.md +398 -0
- package/docs/recipes/cc65/hello-world-conio.md +76 -0
- package/docs/recipes/cc65/memory-layout.md +312 -0
- package/docs/recipes/cc65/screenshots/README.md +14 -0
- package/docs/recipes/cc65/screenshots/cartridge-8k-ntsc.png +0 -0
- package/docs/recipes/cc65/screenshots/cartridge-8k.png +0 -0
- package/docs/recipes/cc65/screenshots/hello-world-conio.png +0 -0
- package/docs/recipes/cc65/screenshots/memory-layout-ntsc.png +0 -0
- package/docs/recipes/cc65/screenshots/memory-layout.png +0 -0
- package/docs/recipes/kickassembler/basic-float-calls.md +578 -0
- package/docs/recipes/kickassembler/basic-wedge.md +398 -0
- package/docs/recipes/kickassembler/big-font-scroller.md +620 -0
- package/docs/recipes/kickassembler/charset-copy-rom-to-ram.md +623 -0
- package/docs/recipes/kickassembler/cia-revision-detect.md +366 -0
- package/docs/recipes/kickassembler/colour-cycling.md +343 -0
- package/docs/recipes/kickassembler/colour-fade.md +303 -0
- package/docs/recipes/kickassembler/compare-16bit-signed.md +1007 -0
- package/docs/recipes/kickassembler/cracktro-template.md +526 -0
- package/docs/recipes/kickassembler/crt-banked.md +276 -0
- package/docs/recipes/kickassembler/dos-error-codes.md +466 -0
- package/docs/recipes/kickassembler/dot-flag.md +576 -0
- package/docs/recipes/kickassembler/drive-job-queue.md +667 -0
- package/docs/recipes/kickassembler/drive-via-probe.md +690 -0
- package/docs/recipes/kickassembler/dycp-scroller.md +568 -0
- package/docs/recipes/kickassembler/dypp-sprite-scroller.md +681 -0
- package/docs/recipes/kickassembler/dysp.md +670 -0
- package/docs/recipes/kickassembler/easyflash-save.md +800 -0
- package/docs/recipes/kickassembler/eight-way-scroll.md +1484 -0
- package/docs/recipes/kickassembler/file-io-roundtrip.md +546 -0
- package/docs/recipes/kickassembler/fire-effect.md +420 -0
- package/docs/recipes/kickassembler/fld.md +414 -0
- package/docs/recipes/kickassembler/fli-image.md +336 -0
- package/docs/recipes/kickassembler/four-player-read.md +672 -0
- package/docs/recipes/kickassembler/headless-verify.md +228 -0
- package/docs/recipes/kickassembler/hello-world.md +98 -0
- package/docs/recipes/kickassembler/high-score-insert.md +660 -0
- package/docs/recipes/kickassembler/hires-plot-line.md +723 -0
- package/docs/recipes/kickassembler/irq-chain.md +316 -0
- package/docs/recipes/kickassembler/irq-owns-port.md +668 -0
- package/docs/recipes/kickassembler/isometric-room.md +1145 -0
- package/docs/recipes/kickassembler/light-pen-read.md +926 -0
- package/docs/recipes/kickassembler/logic-rate-decoupling.md +670 -0
- package/docs/recipes/kickassembler/mci-interlace.md +543 -0
- package/docs/recipes/kickassembler/memory-layout.md +277 -0
- package/docs/recipes/kickassembler/mouse-1351-read.md +801 -0
- package/docs/recipes/kickassembler/nmi-timer-tick.md +562 -0
- package/docs/recipes/kickassembler/own-keyscan.md +881 -0
- package/docs/recipes/kickassembler/paddle-read.md +751 -0
- package/docs/recipes/kickassembler/palette-cells.md +219 -0
- package/docs/recipes/kickassembler/pseudo-3d-road.md +930 -0
- package/docs/recipes/kickassembler/pwm-digi.md +463 -0
- package/docs/recipes/kickassembler/raster-bars.md +264 -0
- package/docs/recipes/kickassembler/reu-dma.md +1019 -0
- package/docs/recipes/kickassembler/runtime-relocation.md +743 -0
- package/docs/recipes/kickassembler/screen-dissolve.md +545 -0
- package/docs/recipes/kickassembler/screen-wipe.md +408 -0
- package/docs/recipes/kickassembler/screenshots/README.md +72 -0
- package/docs/recipes/kickassembler/screenshots/basic-float-calls-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/basic-float-calls.png +0 -0
- package/docs/recipes/kickassembler/screenshots/basic-wedge-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/basic-wedge.png +0 -0
- package/docs/recipes/kickassembler/screenshots/big-font-scroller-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/big-font-scroller.png +0 -0
- package/docs/recipes/kickassembler/screenshots/charset-copy-rom-to-ram-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/charset-copy-rom-to-ram.png +0 -0
- package/docs/recipes/kickassembler/screenshots/cia-revision-detect-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/cia-revision-detect.png +0 -0
- package/docs/recipes/kickassembler/screenshots/colour-cycling-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/colour-cycling.png +0 -0
- package/docs/recipes/kickassembler/screenshots/colour-fade-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/colour-fade.png +0 -0
- package/docs/recipes/kickassembler/screenshots/compare-16bit-signed-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/compare-16bit-signed.png +0 -0
- package/docs/recipes/kickassembler/screenshots/cracktro-template.png +0 -0
- package/docs/recipes/kickassembler/screenshots/crt-banked-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/crt-banked.png +0 -0
- package/docs/recipes/kickassembler/screenshots/dos-error-codes-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/dos-error-codes.png +0 -0
- package/docs/recipes/kickassembler/screenshots/dot-flag-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/dot-flag.png +0 -0
- package/docs/recipes/kickassembler/screenshots/drive-job-queue-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/drive-job-queue.png +0 -0
- package/docs/recipes/kickassembler/screenshots/drive-via-probe-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/drive-via-probe.png +0 -0
- package/docs/recipes/kickassembler/screenshots/dycp-scroller-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/dycp-scroller.png +0 -0
- package/docs/recipes/kickassembler/screenshots/dypp-sprite-scroller-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/dypp-sprite-scroller.png +0 -0
- package/docs/recipes/kickassembler/screenshots/dysp-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/dysp.png +0 -0
- package/docs/recipes/kickassembler/screenshots/easyflash-save-ntsc-run2.png +0 -0
- package/docs/recipes/kickassembler/screenshots/easyflash-save-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/easyflash-save-run2.png +0 -0
- package/docs/recipes/kickassembler/screenshots/easyflash-save.png +0 -0
- package/docs/recipes/kickassembler/screenshots/eight-way-scroll-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/eight-way-scroll.png +0 -0
- package/docs/recipes/kickassembler/screenshots/file-io-roundtrip-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/file-io-roundtrip.png +0 -0
- package/docs/recipes/kickassembler/screenshots/fire-effect-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/fire-effect.png +0 -0
- package/docs/recipes/kickassembler/screenshots/fld-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/fld.png +0 -0
- package/docs/recipes/kickassembler/screenshots/fli-image.png +0 -0
- package/docs/recipes/kickassembler/screenshots/four-player-read-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/four-player-read.png +0 -0
- package/docs/recipes/kickassembler/screenshots/headless-verify-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/headless-verify.png +0 -0
- package/docs/recipes/kickassembler/screenshots/hello-world.png +0 -0
- package/docs/recipes/kickassembler/screenshots/high-score-insert-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/high-score-insert.png +0 -0
- package/docs/recipes/kickassembler/screenshots/hires-plot-line-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/hires-plot-line.png +0 -0
- package/docs/recipes/kickassembler/screenshots/irq-chain-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/irq-chain.png +0 -0
- package/docs/recipes/kickassembler/screenshots/irq-owns-port-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/irq-owns-port.png +0 -0
- package/docs/recipes/kickassembler/screenshots/isometric-room-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/isometric-room.png +0 -0
- package/docs/recipes/kickassembler/screenshots/light-pen-read-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/light-pen-read.png +0 -0
- package/docs/recipes/kickassembler/screenshots/logic-rate-decoupling-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/logic-rate-decoupling.png +0 -0
- package/docs/recipes/kickassembler/screenshots/mci-interlace-average.png +0 -0
- package/docs/recipes/kickassembler/screenshots/mci-interlace-frame-b.png +0 -0
- package/docs/recipes/kickassembler/screenshots/mci-interlace-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/mci-interlace.png +0 -0
- package/docs/recipes/kickassembler/screenshots/memory-layout-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/memory-layout.png +0 -0
- package/docs/recipes/kickassembler/screenshots/mouse-1351-read-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/mouse-1351-read.png +0 -0
- package/docs/recipes/kickassembler/screenshots/nmi-timer-tick-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/nmi-timer-tick.png +0 -0
- package/docs/recipes/kickassembler/screenshots/own-keyscan-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/own-keyscan.png +0 -0
- package/docs/recipes/kickassembler/screenshots/paddle-read-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/paddle-read.png +0 -0
- package/docs/recipes/kickassembler/screenshots/palette-cells-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/palette-cells.png +0 -0
- package/docs/recipes/kickassembler/screenshots/pseudo-3d-road-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/pseudo-3d-road.png +0 -0
- package/docs/recipes/kickassembler/screenshots/pwm-digi-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/pwm-digi.png +0 -0
- package/docs/recipes/kickassembler/screenshots/raster-bars.png +0 -0
- package/docs/recipes/kickassembler/screenshots/reu-dma-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/reu-dma.png +0 -0
- package/docs/recipes/kickassembler/screenshots/runtime-relocation-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/runtime-relocation.png +0 -0
- package/docs/recipes/kickassembler/screenshots/screen-dissolve-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/screen-dissolve.png +0 -0
- package/docs/recipes/kickassembler/screenshots/screen-wipe-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/screen-wipe.png +0 -0
- package/docs/recipes/kickassembler/screenshots/scroll-panel-split-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/scroll-panel-split.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sfx-in-player-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sfx-in-player.png +0 -0
- package/docs/recipes/kickassembler/screenshots/shadebobs-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/shadebobs.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sideborder-open.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sine-scroller.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sine-table-runtime-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sine-table-runtime.png +0 -0
- package/docs/recipes/kickassembler/screenshots/software-sprite-preshifted-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/software-sprite-preshifted.png +0 -0
- package/docs/recipes/kickassembler/screenshots/speedcode-generator-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/speedcode-generator.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-border-scroller-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-border-scroller.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-cache-flip-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-cache-flip.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-multiplex-24.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-multiplex-game-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-multiplex-game.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-priority-classes-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-priority-classes.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-sine-chain-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-sine-chain.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-stretcher-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprite-stretcher.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprites-only-screen-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sprites-only-screen.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sqrt-atan2-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/sqrt-atan2.png +0 -0
- package/docs/recipes/kickassembler/screenshots/stable-raster-irq-control.png +0 -0
- package/docs/recipes/kickassembler/screenshots/stable-raster-irq.png +0 -0
- package/docs/recipes/kickassembler/screenshots/tech-tech-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/tech-tech.png +0 -0
- package/docs/recipes/kickassembler/screenshots/tod-alarm-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/tod-alarm.png +0 -0
- package/docs/recipes/kickassembler/screenshots/topbottom-border-open.png +0 -0
- package/docs/recipes/kickassembler/screenshots/twister-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/twister.png +0 -0
- package/docs/recipes/kickassembler/screenshots/unit-test-driver-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/unit-test-driver.png +0 -0
- package/docs/recipes/kickassembler/screenshots/vector-balls-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/vector-balls.png +0 -0
- package/docs/recipes/kickassembler/screenshots/wireframe-ships-ntsc.png +0 -0
- package/docs/recipes/kickassembler/screenshots/wireframe-ships.png +0 -0
- package/docs/recipes/kickassembler/scroll-panel-split.md +381 -0
- package/docs/recipes/kickassembler/sfx-in-player.md +907 -0
- package/docs/recipes/kickassembler/shadebobs.md +522 -0
- package/docs/recipes/kickassembler/sideborder-open.md +338 -0
- package/docs/recipes/kickassembler/sine-scroller.md +321 -0
- package/docs/recipes/kickassembler/sine-table-runtime.md +815 -0
- package/docs/recipes/kickassembler/software-sprite-preshifted.md +725 -0
- package/docs/recipes/kickassembler/speedcode-generator.md +606 -0
- package/docs/recipes/kickassembler/sprite-border-scroller.md +696 -0
- package/docs/recipes/kickassembler/sprite-cache-flip.md +1071 -0
- package/docs/recipes/kickassembler/sprite-multiplex-24.md +326 -0
- package/docs/recipes/kickassembler/sprite-multiplex-game.md +986 -0
- package/docs/recipes/kickassembler/sprite-priority-classes.md +463 -0
- package/docs/recipes/kickassembler/sprite-sine-chain.md +338 -0
- package/docs/recipes/kickassembler/sprite-stretcher.md +501 -0
- package/docs/recipes/kickassembler/sprites-only-screen.md +550 -0
- package/docs/recipes/kickassembler/sqrt-atan2.md +1014 -0
- package/docs/recipes/kickassembler/stable-raster-irq.md +360 -0
- package/docs/recipes/kickassembler/tape-turbo-loader.md +875 -0
- package/docs/recipes/kickassembler/tech-tech.md +679 -0
- package/docs/recipes/kickassembler/tod-alarm.md +754 -0
- package/docs/recipes/kickassembler/topbottom-border-open.md +407 -0
- package/docs/recipes/kickassembler/twister.md +518 -0
- package/docs/recipes/kickassembler/unit-test-driver.md +314 -0
- package/docs/recipes/kickassembler/vector-balls.md +545 -0
- package/docs/recipes/kickassembler/wireframe-ships.md +2324 -0
- package/docs/recipes/oscar64/actor-activation-window.md +807 -0
- package/docs/recipes/oscar64/adventure-engine.md +1094 -0
- package/docs/recipes/oscar64/attract-replay.md +465 -0
- package/docs/recipes/oscar64/beat-em-up-lanes.md +563 -0
- package/docs/recipes/oscar64/bfs-distance-map.md +723 -0
- package/docs/recipes/oscar64/bitmap-koala-viewer.md +355 -0
- package/docs/recipes/oscar64/car-contact.md +950 -0
- package/docs/recipes/oscar64/cave-scan.md +609 -0
- package/docs/recipes/oscar64/char-bullets.md +477 -0
- package/docs/recipes/oscar64/charset-animation.md +383 -0
- package/docs/recipes/oscar64/charset-parallax.md +401 -0
- package/docs/recipes/oscar64/destructible-terrain.md +1099 -0
- package/docs/recipes/oscar64/difficulty-tables.md +654 -0
- package/docs/recipes/oscar64/dig-and-guards.md +975 -0
- package/docs/recipes/oscar64/directory-reader.md +535 -0
- package/docs/recipes/oscar64/divide-check.md +581 -0
- package/docs/recipes/oscar64/double-buffer-nomirror.md +205 -0
- package/docs/recipes/oscar64/double-buffer.md +255 -0
- package/docs/recipes/oscar64/falling-blocks.md +874 -0
- package/docs/recipes/oscar64/fixed-point-jump-velocity.md +289 -0
- package/docs/recipes/oscar64/fixed-point-jump.md +210 -0
- package/docs/recipes/oscar64/flip-screen-rooms.md +793 -0
- package/docs/recipes/oscar64/frame-sync-loop-overrun.md +214 -0
- package/docs/recipes/oscar64/frame-sync-loop.md +254 -0
- package/docs/recipes/oscar64/game-tree-search.md +743 -0
- package/docs/recipes/oscar64/ghost-targeting.md +867 -0
- package/docs/recipes/oscar64/headless-verify.md +345 -0
- package/docs/recipes/oscar64/hello-world.md +83 -0
- package/docs/recipes/oscar64/high-score-persist.md +772 -0
- package/docs/recipes/oscar64/iffl-kernal-skip.md +421 -0
- package/docs/recipes/oscar64/joystick-input.md +358 -0
- package/docs/recipes/oscar64/lane-pursuit.md +1028 -0
- package/docs/recipes/oscar64/level-rle-decoder.md +620 -0
- package/docs/recipes/oscar64/lfsr-random-seed2.md +338 -0
- package/docs/recipes/oscar64/lfsr-random.md +403 -0
- package/docs/recipes/oscar64/load-asset-runtime.md +492 -0
- package/docs/recipes/oscar64/memory-layout.md +232 -0
- package/docs/recipes/oscar64/mixed-fighters.md +781 -0
- package/docs/recipes/oscar64/multi-sprite-object.md +533 -0
- package/docs/recipes/oscar64/nav-area-pathfinding.md +881 -0
- package/docs/recipes/oscar64/object-pool.md +572 -0
- package/docs/recipes/oscar64/pal-ntsc-detect.md +257 -0
- package/docs/recipes/oscar64/password-state.md +532 -0
- package/docs/recipes/oscar64/per-frame-hitbox.md +651 -0
- package/docs/recipes/oscar64/petscii-screen-codes.md +428 -0
- package/docs/recipes/oscar64/platformer-scaffold.md +1467 -0
- package/docs/recipes/oscar64/print-number.md +367 -0
- package/docs/recipes/oscar64/raster-bars.md +239 -0
- package/docs/recipes/oscar64/raster-profile-bars.md +404 -0
- package/docs/recipes/oscar64/rel-side-sectors.md +391 -0
- package/docs/recipes/oscar64/relative-file-records.md +378 -0
- package/docs/recipes/oscar64/save-load-seq-file.md +365 -0
- package/docs/recipes/oscar64/screenshots/README.md +99 -0
- package/docs/recipes/oscar64/screenshots/actor-activation-window-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/actor-activation-window.png +0 -0
- package/docs/recipes/oscar64/screenshots/adventure-engine-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/adventure-engine.png +0 -0
- package/docs/recipes/oscar64/screenshots/attract-replay-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/attract-replay.png +0 -0
- package/docs/recipes/oscar64/screenshots/beat-em-up-lanes-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/beat-em-up-lanes.png +0 -0
- package/docs/recipes/oscar64/screenshots/bfs-distance-map-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/bfs-distance-map.png +0 -0
- package/docs/recipes/oscar64/screenshots/bitmap-koala-viewer.png +0 -0
- package/docs/recipes/oscar64/screenshots/car-contact-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/car-contact.png +0 -0
- package/docs/recipes/oscar64/screenshots/cave-scan-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/cave-scan.png +0 -0
- package/docs/recipes/oscar64/screenshots/char-bullets-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/char-bullets.png +0 -0
- package/docs/recipes/oscar64/screenshots/charset-animation-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/charset-animation.png +0 -0
- package/docs/recipes/oscar64/screenshots/charset-parallax-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/charset-parallax.png +0 -0
- package/docs/recipes/oscar64/screenshots/destructible-terrain-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/destructible-terrain.png +0 -0
- package/docs/recipes/oscar64/screenshots/difficulty-tables-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/difficulty-tables.png +0 -0
- package/docs/recipes/oscar64/screenshots/dig-and-guards-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/dig-and-guards.png +0 -0
- package/docs/recipes/oscar64/screenshots/directory-reader-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/directory-reader.png +0 -0
- package/docs/recipes/oscar64/screenshots/divide-check-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/divide-check.png +0 -0
- package/docs/recipes/oscar64/screenshots/double-buffer-nomirror.png +0 -0
- package/docs/recipes/oscar64/screenshots/double-buffer-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/double-buffer.png +0 -0
- package/docs/recipes/oscar64/screenshots/falling-blocks-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/falling-blocks.png +0 -0
- package/docs/recipes/oscar64/screenshots/fixed-point-jump-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/fixed-point-jump-velocity-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/fixed-point-jump-velocity.png +0 -0
- package/docs/recipes/oscar64/screenshots/fixed-point-jump.png +0 -0
- package/docs/recipes/oscar64/screenshots/flip-screen-rooms-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/flip-screen-rooms.png +0 -0
- package/docs/recipes/oscar64/screenshots/frame-sync-loop-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/frame-sync-loop-overrun.png +0 -0
- package/docs/recipes/oscar64/screenshots/frame-sync-loop.png +0 -0
- package/docs/recipes/oscar64/screenshots/game-tree-search-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/game-tree-search.png +0 -0
- package/docs/recipes/oscar64/screenshots/ghost-targeting-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/ghost-targeting.png +0 -0
- package/docs/recipes/oscar64/screenshots/headless-verify-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/headless-verify.png +0 -0
- package/docs/recipes/oscar64/screenshots/hello-world.png +0 -0
- package/docs/recipes/oscar64/screenshots/high-score-persist-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/high-score-persist.png +0 -0
- package/docs/recipes/oscar64/screenshots/iffl-kernal-skip-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/iffl-kernal-skip.png +0 -0
- package/docs/recipes/oscar64/screenshots/joystick-input-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/joystick-input.png +0 -0
- package/docs/recipes/oscar64/screenshots/lane-pursuit-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/lane-pursuit.png +0 -0
- package/docs/recipes/oscar64/screenshots/level-rle-decoder-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/level-rle-decoder.png +0 -0
- package/docs/recipes/oscar64/screenshots/lfsr-random-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/lfsr-random-seed2.png +0 -0
- package/docs/recipes/oscar64/screenshots/lfsr-random.png +0 -0
- package/docs/recipes/oscar64/screenshots/load-asset-runtime-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/load-asset-runtime.png +0 -0
- package/docs/recipes/oscar64/screenshots/memory-layout-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/memory-layout.png +0 -0
- package/docs/recipes/oscar64/screenshots/mixed-fighters-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/mixed-fighters.png +0 -0
- package/docs/recipes/oscar64/screenshots/multi-sprite-object-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/multi-sprite-object.png +0 -0
- package/docs/recipes/oscar64/screenshots/nav-area-pathfinding-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/nav-area-pathfinding.png +0 -0
- package/docs/recipes/oscar64/screenshots/object-pool-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/object-pool.png +0 -0
- package/docs/recipes/oscar64/screenshots/pal-ntsc-detect-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/pal-ntsc-detect-oldntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/pal-ntsc-detect-pal.png +0 -0
- package/docs/recipes/oscar64/screenshots/password-state-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/password-state.png +0 -0
- package/docs/recipes/oscar64/screenshots/per-frame-hitbox-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/per-frame-hitbox.png +0 -0
- package/docs/recipes/oscar64/screenshots/petscii-screen-codes-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/petscii-screen-codes.png +0 -0
- package/docs/recipes/oscar64/screenshots/platformer-scaffold-d64-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/platformer-scaffold-d64.png +0 -0
- package/docs/recipes/oscar64/screenshots/platformer-scaffold-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/platformer-scaffold.png +0 -0
- package/docs/recipes/oscar64/screenshots/print-number-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/print-number.png +0 -0
- package/docs/recipes/oscar64/screenshots/raster-bars.png +0 -0
- package/docs/recipes/oscar64/screenshots/raster-profile-bars-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/raster-profile-bars.png +0 -0
- package/docs/recipes/oscar64/screenshots/rel-side-sectors-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/rel-side-sectors.png +0 -0
- package/docs/recipes/oscar64/screenshots/relative-file-records-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/relative-file-records.png +0 -0
- package/docs/recipes/oscar64/screenshots/save-load-seq-file-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/save-load-seq-file.png +0 -0
- package/docs/recipes/oscar64/screenshots/seeded-level-fill-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/seeded-level-fill.png +0 -0
- package/docs/recipes/oscar64/screenshots/sfx-engine-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/sfx-engine.png +0 -0
- package/docs/recipes/oscar64/screenshots/sid-music-player.png +0 -0
- package/docs/recipes/oscar64/screenshots/simple-shmup.png +0 -0
- package/docs/recipes/oscar64/screenshots/slope-collision-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/slope-collision.png +0 -0
- package/docs/recipes/oscar64/screenshots/soft-scroll-h.png +0 -0
- package/docs/recipes/oscar64/screenshots/sprite-animation-table-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/sprite-animation-table.png +0 -0
- package/docs/recipes/oscar64/screenshots/sprite-multiplex-8.png +0 -0
- package/docs/recipes/oscar64/screenshots/stable-raster-irq.png +0 -0
- package/docs/recipes/oscar64/screenshots/text-input-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/text-input.png +0 -0
- package/docs/recipes/oscar64/screenshots/text-overlay-playfield-gameover.png +0 -0
- package/docs/recipes/oscar64/screenshots/text-overlay-playfield-notrail-control.png +0 -0
- package/docs/recipes/oscar64/screenshots/text-overlay-playfield-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/text-overlay-playfield-ungated-control.png +0 -0
- package/docs/recipes/oscar64/screenshots/text-overlay-playfield.png +0 -0
- package/docs/recipes/oscar64/screenshots/text-window-menu-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/text-window-menu.png +0 -0
- package/docs/recipes/oscar64/screenshots/tile-grid-collision-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/tile-grid-collision.png +0 -0
- package/docs/recipes/oscar64/screenshots/tile-map-render-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/tile-map-render.png +0 -0
- package/docs/recipes/oscar64/screenshots/two-player-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/two-player.png +0 -0
- package/docs/recipes/oscar64/screenshots/two-word-parser-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/two-word-parser.png +0 -0
- package/docs/recipes/oscar64/screenshots/vehicle-control-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/vehicle-control.png +0 -0
- package/docs/recipes/oscar64/screenshots/wave-director-ntsc.png +0 -0
- package/docs/recipes/oscar64/screenshots/wave-director.png +0 -0
- package/docs/recipes/oscar64/seeded-level-fill.md +364 -0
- package/docs/recipes/oscar64/sfx-engine.md +514 -0
- package/docs/recipes/oscar64/sid-music-player.md +441 -0
- package/docs/recipes/oscar64/simple-shmup.md +1000 -0
- package/docs/recipes/oscar64/slope-collision.md +610 -0
- package/docs/recipes/oscar64/soft-scroll-h.md +261 -0
- package/docs/recipes/oscar64/sprite-animation-table.md +671 -0
- package/docs/recipes/oscar64/sprite-multiplex-8.md +314 -0
- package/docs/recipes/oscar64/stable-raster-irq.md +236 -0
- package/docs/recipes/oscar64/text-input.md +274 -0
- package/docs/recipes/oscar64/text-overlay-playfield.md +617 -0
- package/docs/recipes/oscar64/text-window-menu.md +551 -0
- package/docs/recipes/oscar64/tile-grid-collision.md +563 -0
- package/docs/recipes/oscar64/tile-map-render.md +395 -0
- package/docs/recipes/oscar64/two-player.md +528 -0
- package/docs/recipes/oscar64/two-word-parser.md +510 -0
- package/docs/recipes/oscar64/vehicle-control.md +771 -0
- package/docs/recipes/oscar64/wave-director.md +787 -0
- package/docs/recipes/runs.json +1606 -0
- package/docs/runtime/sim6502-reference.md +466 -0
- package/docs/runtime/vice-mcp-reference.md +351 -0
- package/docs/runtime/vice-reference.md +1393 -0
- package/docs/techniques/bitmap-modes.md +685 -0
- package/docs/techniques/cpu-cycle-tricks.md +1570 -0
- package/docs/techniques/effects-vector-3d.md +1431 -0
- package/docs/techniques/file-io.md +1427 -0
- package/docs/techniques/input.md +1072 -0
- package/docs/techniques/loaders-packers.md +768 -0
- package/docs/techniques/logic.md +3091 -0
- package/docs/techniques/maths.md +1524 -0
- package/docs/techniques/memory-banking.md +1686 -0
- package/docs/techniques/music-sid.md +1144 -0
- package/docs/techniques/raster.md +1543 -0
- package/docs/techniques/scroll.md +1292 -0
- package/docs/techniques/sprite.md +2566 -0
- package/docs/techniques/text-mode-render.md +717 -0
- package/docs/techniques/text.md +1095 -0
- package/docs/techniques/transitions.md +405 -0
- package/docs/toolchains/cartconv-reference.md +262 -0
- package/docs/toolchains/cc1541-reference.md +316 -0
- package/docs/toolchains/cc65-reference.md +667 -0
- package/docs/toolchains/error-sources/cc65/README.md +1 -0
- package/docs/toolchains/error-sources/cc65/missing-setcpu.s +4 -0
- package/docs/toolchains/error-sources/cc65/range-error.s +4 -0
- package/docs/toolchains/error-sources/cc65/segment-overflow.c +6 -0
- package/docs/toolchains/error-sources/cc65/unresolved-external.c +6 -0
- package/docs/toolchains/error-sources/kickassembler/README.md +1 -0
- package/docs/toolchains/error-sources/kickassembler/branch-out-of-range.asm +4 -0
- package/docs/toolchains/error-sources/kickassembler/failed-assert.asm +3 -0
- package/docs/toolchains/error-sources/kickassembler/flat-lib.asm +4 -0
- package/docs/toolchains/error-sources/kickassembler/import-source-no-namespace.asm +5 -0
- package/docs/toolchains/error-sources/kickassembler/macro-without-parentheses.asm +6 -0
- package/docs/toolchains/error-sources/kickassembler/memory-block-overlap.asm +4 -0
- package/docs/toolchains/error-sources/kickassembler/symbol-clash-lib.asm +5 -0
- package/docs/toolchains/error-sources/kickassembler/symbol-clash-main.asm +6 -0
- package/docs/toolchains/error-sources/kickassembler/unknown-symbol.asm +4 -0
- package/docs/toolchains/error-sources/oscar64/README.md +1 -0
- package/docs/toolchains/error-sources/oscar64/asm-addressing-mode.c +7 -0
- package/docs/toolchains/error-sources/oscar64/region-overflow.c +6 -0
- package/docs/toolchains/error-sources/oscar64/undefined-extern-var.c +5 -0
- package/docs/toolchains/error-sources/oscar64/undefined-extern.c +6 -0
- package/docs/toolchains/error-sources/oscar64/unknown-vic-field.c +6 -0
- package/docs/toolchains/error-sources/oscar64/void-main.c +3 -0
- package/docs/toolchains/kickassembler-reference.md +1020 -0
- package/docs/toolchains/memory-layout-planning.md +362 -0
- package/docs/toolchains/oscar64-headers-reference.md +583 -0
- package/docs/toolchains/oscar64-reference.md +892 -0
- package/docs/toolchains/petcat-reference.md +290 -0
- package/docs/toolchains/png2prg.md +188 -0
- package/docs/toolchains/release-disk.md +314 -0
- package/docs/toolchains/sidreloc.md +236 -0
- package/docs/toolchains/spindle-reference.md +487 -0
- package/docs/toolchains/tape-mastering.md +592 -0
- package/docs/toolchains/unit-testing-6502.md +281 -0
- package/docs/workflow/agent-harness.md +478 -0
- package/package.json +105 -0
- package/templates/_harness/CLAUDE.md.template +91 -0
- package/templates/_harness/PLAN.md.template +72 -0
- package/templates/_harness/check.py +442 -0
- package/templates/_harness/claude/settings.json +17 -0
- package/templates/_harness/gen-asm-header.py +96 -0
- package/templates/_harness/harness.mk +273 -0
- package/templates/_harness/hooks/plan-gate.py +185 -0
- package/templates/_harness/meter/frame_meter.asm +311 -0
- package/templates/_harness/meter/frame_meter.c +155 -0
- package/templates/_harness/meter/frame_meter.h +80 -0
- package/templates/_harness/zp-used.py +104 -0
- package/templates/action-puzzle/.claude/settings.json +17 -0
- package/templates/action-puzzle/.mcp.json +10 -0
- package/templates/action-puzzle/CLAUDE.md +120 -0
- package/templates/action-puzzle/Makefile +125 -0
- package/templates/action-puzzle/PLAN.md +388 -0
- package/templates/action-puzzle/README.md +240 -0
- package/templates/action-puzzle/expect.json +25 -0
- package/templates/action-puzzle/src/cave.c +280 -0
- package/templates/action-puzzle/src/cave.h +80 -0
- package/templates/action-puzzle/src/gen_autopilot.h +20 -0
- package/templates/action-puzzle/src/gen_caves.h +59 -0
- package/templates/action-puzzle/src/gen_notes.h +16 -0
- package/templates/action-puzzle/src/hiscore.c +152 -0
- package/templates/action-puzzle/src/hiscore.h +41 -0
- package/templates/action-puzzle/src/level.c +64 -0
- package/templates/action-puzzle/src/level.h +24 -0
- package/templates/action-puzzle/src/main.c +599 -0
- package/templates/action-puzzle/src/render.c +239 -0
- package/templates/action-puzzle/src/render.h +31 -0
- package/templates/action-puzzle/src/sound.c +158 -0
- package/templates/action-puzzle/src/sound.h +22 -0
- package/templates/action-puzzle/tools/disk_check.py +77 -0
- package/templates/action-puzzle/tools/drive.py +106 -0
- package/templates/action-puzzle/tools/gen.py +454 -0
- package/templates/action-puzzle/tools/model_check.py +49 -0
- package/templates/action-puzzle/tools/verdict_codes.py +24 -0
- package/templates/adventure/.claude/settings.json +17 -0
- package/templates/adventure/.mcp.json +10 -0
- package/templates/adventure/CLAUDE.md +118 -0
- package/templates/adventure/Makefile +113 -0
- package/templates/adventure/PLAN.md +396 -0
- package/templates/adventure/README.md +277 -0
- package/templates/adventure/expect.json +25 -0
- package/templates/adventure/src/engine.c +543 -0
- package/templates/adventure/src/engine.h +48 -0
- package/templates/adventure/src/gen_script.h +141 -0
- package/templates/adventure/src/gen_world.h +511 -0
- package/templates/adventure/src/main.c +439 -0
- package/templates/adventure/src/picture.c +83 -0
- package/templates/adventure/src/picture.h +16 -0
- package/templates/adventure/src/save.c +159 -0
- package/templates/adventure/src/save.h +25 -0
- package/templates/adventure/src/sound.c +71 -0
- package/templates/adventure/src/sound.h +16 -0
- package/templates/adventure/src/text.c +349 -0
- package/templates/adventure/src/text.h +40 -0
- package/templates/adventure/tools/disk_check.py +128 -0
- package/templates/adventure/tools/drive.py +119 -0
- package/templates/adventure/tools/gen.py +1033 -0
- package/templates/adventure/tools/world.py +356 -0
- package/templates/beat-em-up/.claude/settings.json +17 -0
- package/templates/beat-em-up/.mcp.json +10 -0
- package/templates/beat-em-up/CLAUDE.md +136 -0
- package/templates/beat-em-up/Makefile +96 -0
- package/templates/beat-em-up/PLAN.md +502 -0
- package/templates/beat-em-up/README.md +315 -0
- package/templates/beat-em-up/expect-gameover.json +8 -0
- package/templates/beat-em-up/expect.json +29 -0
- package/templates/beat-em-up/src/anim.c +70 -0
- package/templates/beat-em-up/src/art.c +344 -0
- package/templates/beat-em-up/src/autopilot.h +154 -0
- package/templates/beat-em-up/src/brute.c +273 -0
- package/templates/beat-em-up/src/enemy.c +281 -0
- package/templates/beat-em-up/src/engine.asm +512 -0
- package/templates/beat-em-up/src/fighter.c +384 -0
- package/templates/beat-em-up/src/game.h +269 -0
- package/templates/beat-em-up/src/hud.c +135 -0
- package/templates/beat-em-up/src/main.c +341 -0
- package/templates/beat-em-up/src/sound.c +44 -0
- package/templates/beat-em-up/src/street.c +93 -0
- package/templates/beat-em-up/src/verdict.h +523 -0
- package/templates/beat-em-up/src/view.c +362 -0
- package/templates/beat-em-up/tools/drive.py +105 -0
- package/templates/beat-em-up/tools/flickercheck.py +273 -0
- package/templates/demo/.claude/settings.json +17 -0
- package/templates/demo/.mcp.json +10 -0
- package/templates/demo/CLAUDE.md +129 -0
- package/templates/demo/Makefile +66 -0
- package/templates/demo/PLAN.md +401 -0
- package/templates/demo/README.md +322 -0
- package/templates/demo/expect.json +945 -0
- package/templates/demo/src/config.asm +80 -0
- package/templates/demo/src/framework.asm +390 -0
- package/templates/demo/src/main.asm +139 -0
- package/templates/demo/src/music.asm +197 -0
- package/templates/demo/src/part_main.asm +279 -0
- package/templates/demo/src/part_title.asm +79 -0
- package/templates/demo/src/parts.asm +43 -0
- package/templates/demo/src/tables.asm +73 -0
- package/templates/demo/src/verdict.asm +179 -0
- package/templates/demo/tools/audio.py +80 -0
- package/templates/demo/tools/gen_expect.py +167 -0
- package/templates/demo/tools/probe.py +95 -0
- package/templates/hello/.claude/settings.json +17 -0
- package/templates/hello/.mcp.json +10 -0
- package/templates/hello/CLAUDE.md +100 -0
- package/templates/hello/Makefile +38 -0
- package/templates/hello/PLAN.md +200 -0
- package/templates/hello/expect.json +20 -0
- package/templates/hello/src/main.c +161 -0
- package/templates/hello/src/sprite.asm +27 -0
- package/templates/hello-kick/.claude/settings.json +17 -0
- package/templates/hello-kick/.mcp.json +10 -0
- package/templates/hello-kick/CLAUDE.md +100 -0
- package/templates/hello-kick/Makefile +17 -0
- package/templates/hello-kick/PLAN.md +199 -0
- package/templates/hello-kick/expect.json +20 -0
- package/templates/hello-kick/src/main.asm +233 -0
- package/templates/platformer/.claude/settings.json +17 -0
- package/templates/platformer/.mcp.json +10 -0
- package/templates/platformer/CLAUDE.md +125 -0
- package/templates/platformer/Makefile +86 -0
- package/templates/platformer/PLAN.md +360 -0
- package/templates/platformer/README.md +277 -0
- package/templates/platformer/expect.json +32 -0
- package/templates/platformer/src/actors.c +289 -0
- package/templates/platformer/src/anim.c +51 -0
- package/templates/platformer/src/art.c +212 -0
- package/templates/platformer/src/autopilot.h +30 -0
- package/templates/platformer/src/engine.asm +253 -0
- package/templates/platformer/src/game.h +248 -0
- package/templates/platformer/src/hud.c +90 -0
- package/templates/platformer/src/level.c +184 -0
- package/templates/platformer/src/main.c +306 -0
- package/templates/platformer/src/player.c +268 -0
- package/templates/platformer/src/sound.c +42 -0
- package/templates/platformer/src/verdict.h +206 -0
- package/templates/platformer/src/view.c +331 -0
- package/templates/platformer/stage-expect.json +6 -0
- package/templates/platformer/tools/drive.py +112 -0
- package/templates/platformer/tools/tearcheck.py +229 -0
- package/templates/shmup-vertical/.claude/settings.json +17 -0
- package/templates/shmup-vertical/.mcp.json +10 -0
- package/templates/shmup-vertical/CLAUDE.md +137 -0
- package/templates/shmup-vertical/Makefile +131 -0
- package/templates/shmup-vertical/PLAN.md +569 -0
- package/templates/shmup-vertical/README.md +189 -0
- package/templates/shmup-vertical/expect.json +38 -0
- package/templates/shmup-vertical/src/bullets.c +158 -0
- package/templates/shmup-vertical/src/bullets.h +35 -0
- package/templates/shmup-vertical/src/display.c +239 -0
- package/templates/shmup-vertical/src/display.h +40 -0
- package/templates/shmup-vertical/src/game.h +85 -0
- package/templates/shmup-vertical/src/glyph.asm +358 -0
- package/templates/shmup-vertical/src/hiscore.c +141 -0
- package/templates/shmup-vertical/src/hiscore.h +16 -0
- package/templates/shmup-vertical/src/hit.asm +180 -0
- package/templates/shmup-vertical/src/hitbox.c +59 -0
- package/templates/shmup-vertical/src/hitbox.h +25 -0
- package/templates/shmup-vertical/src/kernel.asm +330 -0
- package/templates/shmup-vertical/src/level.c +174 -0
- package/templates/shmup-vertical/src/level.h +27 -0
- package/templates/shmup-vertical/src/main.c +824 -0
- package/templates/shmup-vertical/src/mux.asm +321 -0
- package/templates/shmup-vertical/src/sound.asm +255 -0
- package/templates/shmup-vertical/src/step.asm +169 -0
- package/templates/shmup-vertical/src/waves.c +195 -0
- package/templates/shmup-vertical/src/waves.h +33 -0
- package/templates/shmup-vertical/stage-expect.json +6 -0
- package/templates/shmup-vertical/tools/drive.py +152 -0
- package/templates/shmup-vertical/tools/joytest.py +159 -0
- package/templates/shmup-vertical/tools/meter.py +15 -0
- package/templates/shmup-vertical/tools/phases.py +73 -0
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
// art.c: every picture in the game, as text, turned into glyphs and sprite
|
|
2
|
+
// blocks at start-up; the pose table that puts two blocks together into a
|
|
3
|
+
// fighter (c64-kb multi_sprite_object); the hurt and hit boxes
|
|
4
|
+
// (per_frame_hitbox). Original art. tools/flickercheck.py reads the
|
|
5
|
+
// SPRITE-ART block and the mirror rule from this file.
|
|
6
|
+
#include "game.h"
|
|
7
|
+
#include <string.h>
|
|
8
|
+
|
|
9
|
+
// Street glyphs, multicolour: four double-width pixels a row.
|
|
10
|
+
// '.' $D021 grey, 'b' $D022 brown, 'k' colour RAM (the blue sky: rows 0-1
|
|
11
|
+
// only). Every glyph used on rows 2-19 is '.' and 'b' alone, background
|
|
12
|
+
// to the VIC's sprite priority, so $D01B hides a sprite behind the brute
|
|
13
|
+
// and behind nothing else (game.h, the colours).
|
|
14
|
+
static const char glyph_code[] = {
|
|
15
|
+
CH_SKY, CH_ROOF, CH_BRICK, CH_WIN_T, CH_WIN_B, CH_DOOR, CH_SIGN,
|
|
16
|
+
CH_PAVE, CH_KERB, CH_ROAD, CH_DASH, CH_LAMP, CH_POLE, CH_ALLEY
|
|
17
|
+
};
|
|
18
|
+
static const char glyph_art[][8][5] = {
|
|
19
|
+
{ "kkkk", "kkkk", "kkkk", "kkkk", "kkkk", "kkkk", "kkkk", "kkkk" }, // sky (rows 0-1)
|
|
20
|
+
{ "kkkk", "kkkk", "kkkk", "kkkk", "kkkk", "bbbb", "....", "bbbb" }, // roof edge (row 1)
|
|
21
|
+
{ "bbb.", "bbb.", "....", "b.bb", "b.bb", "....", "bbb.", "bbb." }, // brick
|
|
22
|
+
{ "bbbb", "b..b", "b..b", "bbbb", "b..b", "b..b", "b..b", "b..b" }, // window, top
|
|
23
|
+
{ "b..b", "b..b", "bbbb", "bbbb", "....", "bbb.", "bbb.", "...." }, // window, bottom
|
|
24
|
+
{ "b..b", "b..b", "b..b", "b..b", "b.bb", "b..b", "b..b", "b..b" }, // door
|
|
25
|
+
{ "bbbb", "b.b.", "..bb", "bb.b", ".b.b", "bbbb", "....", "bbb." }, // shop sign
|
|
26
|
+
{ "....", "....", "....", "b...", "....", "....", "....", "..b." }, // pavement
|
|
27
|
+
{ "....", "....", "....", "bbbb", "bbbb", "....", "....", "...." }, // kerb
|
|
28
|
+
{ "....", "....", "..b.", "....", "....", "b...", "....", "...." }, // road
|
|
29
|
+
{ "....", "....", "....", "bbbb", "bbbb", "....", "....", "...." }, // centre line
|
|
30
|
+
{ "....", ".bb.", "bbbb", "bbbb", ".bb.", "..b.", "..b.", "..b." }, // lamp
|
|
31
|
+
{ "..b.", "..b.", "..b.", "..b.", "..b.", "..b.", "..b.", "..b." }, // lamp post
|
|
32
|
+
{ "....", "....", "....", "....", "....", "....", "....", "...." }, // alley
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
// HUD bar glyphs, hires ('x' set): a full cell is two hit points.
|
|
36
|
+
static const char bar_art[3][8][9] = {
|
|
37
|
+
{ "........", "xxxxxxx.", "xxxxxxx.", "xxxxxxx.", "xxxxxxx.", "xxxxxxx.", "xxxxxxx.", "........" },
|
|
38
|
+
{ "........", "xxx.....", "xxx.....", "xxx.....", "xxx.....", "xxx.....", "xxx.....", "........" },
|
|
39
|
+
{ "........", "x.......", "........", "........", "........", "........", "x.......", "........" },
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
// Sprite blocks: 12 double-width pixels a row, 21 rows, facing right.
|
|
43
|
+
// '.' transparent, 'a' $D025 skin, 'x' the sprite's own colour (a shirt
|
|
44
|
+
// on a top part, trousers on legs), 'b' $D026 black. A fighter's origin
|
|
45
|
+
// is 8 pixels in from a part's left edge (between columns 3 and 4); the
|
|
46
|
+
// body is columns 0-6 and a fist or a foot reaches to column 11.
|
|
47
|
+
// Mirroring reverses the twelve pixels of every row.
|
|
48
|
+
// SPRITE-ART-BEGIN
|
|
49
|
+
static const char sprite_art[][21][13] = {
|
|
50
|
+
{ // B_T_STAND: head and fists up
|
|
51
|
+
"..bbbb......", ".bbbbbb.....", ".bbaaab.....", ".baaaba.....", "..aaaaa.....",
|
|
52
|
+
"..aaaa......", "...aa.......", ".xxxxxx.....", "xxxxxxxaa...", "xxxxxxxaa...",
|
|
53
|
+
"xxxxxxx.....", "axxxxx......", "aaxxxx......", ".xxxxx......", ".xxxxx......",
|
|
54
|
+
".xxxxx......", ".xxxxx......", ".xxxxx......", ".xxxxx......", ".bbbbb......",
|
|
55
|
+
".bbbbb......",
|
|
56
|
+
},
|
|
57
|
+
{ // B_T_WIND: the fist drawn back
|
|
58
|
+
"..bbbb......", ".bbbbbb.....", ".bbaaab.....", ".baaaba.....", "..aaaaa.....",
|
|
59
|
+
"..aaaa......", "...aa.......", ".xxxxxx.....", "xxxxxaa.....", "xxxxxaa.....",
|
|
60
|
+
"xxxxxxx.....", "axxxxx......", "aaxxxx......", ".xxxxx......", ".xxxxx......",
|
|
61
|
+
".xxxxx......", ".xxxxx......", ".xxxxx......", ".xxxxx......", ".bbbbb......",
|
|
62
|
+
".bbbbb......",
|
|
63
|
+
},
|
|
64
|
+
{ // B_T_PUNCH: the arm out, the fist at columns 10-11
|
|
65
|
+
"..bbbb......", ".bbbbbb.....", ".bbaaab.....", ".baaaba.....", "..aaaaa.....",
|
|
66
|
+
"..aaaa......", "...aa.......", ".xxxxxx.....", "xxxxxxxxxxaa", "xxxxxxxxxxaa",
|
|
67
|
+
"xxxxxx......", "axxxxx......", "aaxxxx......", ".xxxxx......", ".xxxxx......",
|
|
68
|
+
".xxxxx......", ".xxxxx......", ".xxxxx......", ".xxxxx......", ".bbbbb......",
|
|
69
|
+
".bbbbb......",
|
|
70
|
+
},
|
|
71
|
+
{ // B_T_LEAN: leaning back for a kick
|
|
72
|
+
".bbbb.......", "bbbbbb......", "bbaaab......", "baaaba......", ".aaaaa......",
|
|
73
|
+
".aaaa.......", "..aa........", "xxxxxx......", "xxxxxxaa....", "xxxxxxaa....",
|
|
74
|
+
"axxxxx......", "aaxxxx......", ".xxxxx......", ".xxxxx......", ".xxxxx......",
|
|
75
|
+
".xxxxx......", ".xxxxx......", ".xxxxx......", ".xxxxx......", ".bbbbb......",
|
|
76
|
+
".bbbbb......",
|
|
77
|
+
},
|
|
78
|
+
{ // B_T_HURT: the head snapped back
|
|
79
|
+
"bbbb........", "bbbbbb......", "bbaaab......", "baaabaa.....", ".aaaaaa.....",
|
|
80
|
+
"..aaaa......", "...aa.......", ".xxxxxx.....", "axxxxxxxa...", "axxxxxxxaa..",
|
|
81
|
+
"..xxxxx..a..", ".xxxxxx.....", ".xxxxxx.....", ".xxxxx......", ".xxxxx......",
|
|
82
|
+
".xxxxx......", ".xxxxx......", ".xxxxx......", ".xxxxx......", ".bbbbb......",
|
|
83
|
+
".bbbbb......",
|
|
84
|
+
},
|
|
85
|
+
{ // B_T_JUMP: arms up
|
|
86
|
+
"..bbbb..aa..", ".bbbbbb.aa..", ".bbaaabxx...", ".baaabaxx...", "..aaaaaxx...",
|
|
87
|
+
"..aaaaxx....", "...aaxxx....", "aaxxxxxx....", "aaxxxxx.....", ".xxxxxx.....",
|
|
88
|
+
".xxxxxx.....", ".xxxxx......", ".xxxxx......", ".xxxxx......", ".xxxxx......",
|
|
89
|
+
".xxxxx......", ".xxxxx......", ".xxxxx......", ".xxxxx......", ".bbbbb......",
|
|
90
|
+
".bbbbb......",
|
|
91
|
+
},
|
|
92
|
+
{ // B_L_STAND: feet apart
|
|
93
|
+
".xxxxx......", ".xxxxx......", ".xxxxxx.....", "xxx.xxx.....", "xx...xx.....",
|
|
94
|
+
"xx...xx.....", "xx....xx....", "xx....xx....", "xx....xx....", "xx.....xx...",
|
|
95
|
+
"xx.....xx...", "xx.....xx...", "xx.....xx...", "xx.....xx...", "xx.....xx...",
|
|
96
|
+
"xx.....xx...", "xx.....xx...", "xx.....xx...", "xx.....xx...", "bbb....bbb..",
|
|
97
|
+
"bbb....bbbb.",
|
|
98
|
+
},
|
|
99
|
+
{ // B_L_WALK1: a long stride
|
|
100
|
+
".xxxxx......", ".xxxxx......", ".xxxxxx.....", ".xx..xxx....", ".xx...xxx...",
|
|
101
|
+
".xx....xx...", ".xx.....xx..", ".xx.....xx..", ".xx.....xx..", ".xx......xx.",
|
|
102
|
+
".xx......xx.", ".xx......xx.", ".xx......xx.", ".xx......xx.", ".xx......xx.",
|
|
103
|
+
".xx......xx.", ".xx......xx.", ".xx......xx.", ".xx......xx.", "bbb......bbb",
|
|
104
|
+
"bbb......bbb",
|
|
105
|
+
},
|
|
106
|
+
{ // B_L_WALK2: the legs passing
|
|
107
|
+
".xxxxx......", ".xxxxx......", ".xxxxx......", ".xx.xx......", ".xx.xx......",
|
|
108
|
+
".xx.xx......", ".xx.xx......", ".xx.xx......", ".xx.xx......", ".xx.xx......",
|
|
109
|
+
".xx.xx......", ".xx.xx......", ".xx.xx......", ".xx.xx......", ".xx.xx......",
|
|
110
|
+
".xx.xx......", ".xx.xx......", ".xx.xx......", ".xx.xx......", "bbb.bbbb....",
|
|
111
|
+
"bbb.bbbb....",
|
|
112
|
+
},
|
|
113
|
+
{ // B_L_CHAMBER: the knee up
|
|
114
|
+
".xxxxx......", ".xxxxxxxx...", ".xxxxxxxxx..", ".xx...xxxx..", ".xx....xxx..",
|
|
115
|
+
".xx....xx...", ".xx...bbb...", ".xx...bb....", ".xx.........", ".xx.........",
|
|
116
|
+
".xx.........", ".xx.........", ".xx.........", ".xx.........", ".xx.........",
|
|
117
|
+
".xx.........", ".xx.........", ".xx.........", ".xx.........", "bbb.........",
|
|
118
|
+
"bbb.........",
|
|
119
|
+
},
|
|
120
|
+
{ // B_L_KICK: the leg out, the foot at column 11
|
|
121
|
+
".xxxxx......", ".xxxxxxxxxxb", ".xxxxxxxxxxb", ".xxxxxxxxxxb", ".xx.........",
|
|
122
|
+
".xx.........", ".xx.........", ".xx.........", ".xx.........", ".xx.........",
|
|
123
|
+
".xx.........", ".xx.........", ".xx.........", ".xx.........", ".xx.........",
|
|
124
|
+
".xx.........", ".xx.........", ".xx.........", ".xx.........", "bbb.........",
|
|
125
|
+
"bbb.........",
|
|
126
|
+
},
|
|
127
|
+
{ // B_L_TUCK: knees up in a jump
|
|
128
|
+
".xxxxx......", ".xxxxxx.....", ".xxxxxxx....", ".xx..xxx....", "xx....xx....",
|
|
129
|
+
"xx...bbb....", "xx...bb.....", "bbb.........", "bbb.........", "............",
|
|
130
|
+
"............", "............", "............", "............", "............",
|
|
131
|
+
"............", "............", "............", "............", "............",
|
|
132
|
+
"............",
|
|
133
|
+
},
|
|
134
|
+
{ // B_L_KNEEL: one knee down
|
|
135
|
+
"............", "............", "............", "............", "............",
|
|
136
|
+
"............", "............", "............", "............", "............",
|
|
137
|
+
".xxxxx......", ".xxxxx......", ".xxxxxxxx...", ".xx...xxxx..", ".xx....xx...",
|
|
138
|
+
".xx....xx...", ".xx....xx...", ".xx....xx...", "xxx...bbbb..", "xxxxxx......",
|
|
139
|
+
"bbbbbb......",
|
|
140
|
+
},
|
|
141
|
+
{ // B_D_HEAD: lying, the head half
|
|
142
|
+
"............", "............", "............", "............", "............",
|
|
143
|
+
"............", "............", "............", "............", "............",
|
|
144
|
+
"............", "............", "............", "............", "..bbb.......",
|
|
145
|
+
".bbaab......", ".baaaaxxxxxx", ".baaaxxxxxxx", "..aa.xxxxxxx", ".....aaxxxxx",
|
|
146
|
+
"............",
|
|
147
|
+
},
|
|
148
|
+
{ // B_D_FEET: lying, the feet half
|
|
149
|
+
"............", "............", "............", "............", "............",
|
|
150
|
+
"............", "............", "............", "............", "............",
|
|
151
|
+
"............", "............", "............", "............", "............",
|
|
152
|
+
"............", "xbbxxxxxx...", "xbbxxxxxxxb.", "xxxxxxxxxxbb", "xxxx.....xbb",
|
|
153
|
+
"............",
|
|
154
|
+
},
|
|
155
|
+
{ // B_GO: the sign that says the stage is clear
|
|
156
|
+
"............", ".xxx..xxx...", "x....x...x..", "x.xx.x...x..", "x..x.x...x..",
|
|
157
|
+
".xx...xxx...", "............", "......x.....", "......xx....", "xxxxxxxxx...",
|
|
158
|
+
"xxxxxxxxxx..", "xxxxxxxxx...", "......xx....", "......x.....", "............",
|
|
159
|
+
"............", "............", "............", "............", "............",
|
|
160
|
+
"............",
|
|
161
|
+
},
|
|
162
|
+
{ // B_FACE_HERO
|
|
163
|
+
"............", "...bbbbbb...", "..bbbbbbbb..", ".bbbbbbbbbb.", ".xxxxxxxxxx.",
|
|
164
|
+
".baaaaaaaab.", ".aaaaaaaaaa.", ".aabbaabbaa.", ".aaaaaaaaaa.", ".aaaaaaaaaa.",
|
|
165
|
+
"..aaabbaaa..", "..aaaaaaaa..", "...abbbba...", "...aaaaaa...", "....aaaa....",
|
|
166
|
+
"..xxxxxxxx..", ".xxxxxxxxxx.", "xxxxxxxxxxxx", "xxxxxxxxxxxx", "xxxxxxxxxxxx",
|
|
167
|
+
"............",
|
|
168
|
+
},
|
|
169
|
+
{ // B_FACE_THUG
|
|
170
|
+
"............", "............", "...aaaaaa...", "..aaaaaaaa..", ".aaaaaaaaaa.",
|
|
171
|
+
".abbbaabbba.", ".aaaaaaaaaa.", ".aabaaaabaa.", ".aaaaaaaaaa.", ".aaaabbaaaa.",
|
|
172
|
+
"..aaaaaaaa..", "..abbbbbba..", "...aaaaaa...", "....aaaa....", "...xxxxxx...",
|
|
173
|
+
"..xxxxxxxx..", ".xxxxxxxxxx.", "xxxxxxxxxxxx", "xxxxxxxxxxxx", "xxxxxxxxxxxx",
|
|
174
|
+
"............",
|
|
175
|
+
},
|
|
176
|
+
{ // B_FACE_BRUTE
|
|
177
|
+
".....bb.....", "....bbbb....", "...abbbba...", "..aaabbaaa..", ".aaaaaaaaaa.",
|
|
178
|
+
".abbaaaabba.", ".aaaaaaaaaa.", ".aaaaaaaaaa.", ".aaaabbaaaa.", ".abbbbbbbba.",
|
|
179
|
+
".abbaaaabba.", "..bbbbbbbb..", "...bbbbbb...", "....aaaa....", "...xxxxxx...",
|
|
180
|
+
"..xxxxxxxx..", ".xxxxxxxxxx.", "xxxxxxxxxxxx", "xxxxxxxxxxxx", "xxxxxxxxxxxx",
|
|
181
|
+
"............",
|
|
182
|
+
},
|
|
183
|
+
};
|
|
184
|
+
// SPRITE-ART-END
|
|
185
|
+
// sprite_art[i] is block i for i < B_FIGHTER_COUNT, then B_GO and the faces.
|
|
186
|
+
|
|
187
|
+
// The brute, drawn in character cells (brute.c): 16 double-width pixels by
|
|
188
|
+
// 48 lines, feet on the last. '.' shows the street, 'b' $D022 brown (hair,
|
|
189
|
+
// beard, belt, boots), 's' $D023 skin, 'x' colour RAM, his body. One
|
|
190
|
+
// picture serves both facings. Stand, slam (both fists up: every attack),
|
|
191
|
+
// down.
|
|
192
|
+
// BRUTE-ART-BEGIN
|
|
193
|
+
const char brute_art[3][48][17] = {
|
|
194
|
+
{ // stand
|
|
195
|
+
".......bb.......", "......bbbb......", "......ssss......", ".....ssssss.....",
|
|
196
|
+
".....sbssbs.....", ".....ssssss.....", ".....sbbbbs.....", "......bbbb......",
|
|
197
|
+
".......ss.......", "....xxxxxxxx....", "...xxxxxxxxxx...", "..sxxxxxxxxxxs..",
|
|
198
|
+
".ssxxxxxxxxxxss.", ".ssxxxxxxxxxxss.", ".ss.xxxxxxxx.ss.", ".ss.xxxxxxxx.ss.",
|
|
199
|
+
".ss.xxxxxxxx.ss.", ".ss.xxxxxxxx.ss.", ".ss.xxxxxxxx.ss.", ".ss.xxxxxxxx.ss.",
|
|
200
|
+
".ss.xxxxxxxx.ss.", "..s.xxxxxxxx.s..", "....xxxxxxxx....", "....xxxxxxxx....",
|
|
201
|
+
"....bbbbbbbb....", "....bbbbbbbb....", "....xxxxxxxx....", "....xxxx.xxx....",
|
|
202
|
+
"....xxx..xxx....", "....xxx..xxx....", "....xxx..xxx....", "....xxx..xxx....",
|
|
203
|
+
"....xxx..xxx....", "....xxx..xxx....", "....xxx..xxx....", "....xxx..xxx....",
|
|
204
|
+
"....xxx..xxx....", "....xxx..xxx....", "....xxx..xxx....", "....xxx..xxx....",
|
|
205
|
+
"....xxx..xxx....", "....xxx..xxx....", "....xxx..xxx....", "....xxx..xxx....",
|
|
206
|
+
"....xxx..xxx....", "....xxx..xxx....", "...bbbb..bbbb...", "...bbbb..bbbb...",
|
|
207
|
+
},
|
|
208
|
+
{ // slam
|
|
209
|
+
".......bb.......", ".ss...bbbb...ss.", ".ss...ssss...ss.", ".ss..ssssss..ss.",
|
|
210
|
+
".ss..sbssbs..ss.", ".ss..ssssss..ss.", ".ss..sbbbbs..ss.", ".sss..bbbb..sss.",
|
|
211
|
+
"..ss...ss...ss..", "..sxxxxxxxxxxs..", "...xxxxxxxxxx...", "...xxxxxxxxxx...",
|
|
212
|
+
"...xxxxxxxxxx...", "...xxxxxxxxxx...", "....xxxxxxxx....", "....xxxxxxxx....",
|
|
213
|
+
"....xxxxxxxx....", "....xxxxxxxx....", "....xxxxxxxx....", "....xxxxxxxx....",
|
|
214
|
+
"....xxxxxxxx....", "....xxxxxxxx....", "....xxxxxxxx....", "....xxxxxxxx....",
|
|
215
|
+
"....bbbbbbbb....", "....bbbbbbbb....", "....xxxxxxxx....", "....xxxx.xxx....",
|
|
216
|
+
"....xxx..xxx....", "....xxx..xxx....", "...xxx...xxx....", "...xxx....xxx...",
|
|
217
|
+
"...xxx....xxx...", "...xxx....xxx...", "..xxx.....xxx...", "..xxx......xxx..",
|
|
218
|
+
"..xxx......xxx..", "..xxx......xxx..", "..xxx......xxx..", "..xxx......xxx..",
|
|
219
|
+
"..xxx......xxx..", "..xxx......xxx..", "..xxx......xxx..", "..xxx......xxx..",
|
|
220
|
+
"..xxx......xxx..", "..xxx......xxx..", ".bbbb......bbbb.", ".bbbb......bbbb.",
|
|
221
|
+
},
|
|
222
|
+
{ // down
|
|
223
|
+
"................", "................", "................", "................",
|
|
224
|
+
"................", "................", "................", "................",
|
|
225
|
+
"................", "................", "................", "................",
|
|
226
|
+
"................", "................", "................", "................",
|
|
227
|
+
"................", "................", "................", "................",
|
|
228
|
+
"................", "................", "................", "................",
|
|
229
|
+
"................", "................", "................", "................",
|
|
230
|
+
"................", "................", "................", "................",
|
|
231
|
+
"................", "................", "................", "................",
|
|
232
|
+
"................", "................", "................", "..bb............",
|
|
233
|
+
".bssbxxxxxxx.bb.", "bsbsxxxxxxxxxbbb", "bsssxxxxxxxxxbbb", ".bssbxxxxbbxx.bb",
|
|
234
|
+
"..ss.xxxxxxxx...", "................", "................", "................",
|
|
235
|
+
},
|
|
236
|
+
};
|
|
237
|
+
// BRUTE-ART-END
|
|
238
|
+
|
|
239
|
+
// POSES-BEGIN
|
|
240
|
+
const struct Part pose_part[P_COUNT][2] = {
|
|
241
|
+
{ { B_T_STAND, -8, -42 }, { B_L_STAND, -8, -21 } }, // P_STAND
|
|
242
|
+
{ { B_T_STAND, -8, -42 }, { B_L_WALK1, -8, -21 } }, // P_WALK1
|
|
243
|
+
{ { B_T_STAND, -8, -42 }, { B_L_WALK2, -8, -21 } }, // P_WALK2
|
|
244
|
+
{ { B_T_WIND, -8, -42 }, { B_L_STAND, -8, -21 } }, // P_WIND
|
|
245
|
+
{ { B_T_PUNCH, -8, -42 }, { B_L_STAND, -8, -21 } }, // P_PUNCH
|
|
246
|
+
{ { B_T_LEAN, -8, -42 }, { B_L_CHAMBER, -8, -21 } }, // P_CHAMBER
|
|
247
|
+
{ { B_T_LEAN, -8, -42 }, { B_L_KICK, -8, -21 } }, // P_KICK
|
|
248
|
+
{ { B_T_JUMP, -8, -42 }, { B_L_TUCK, -8, -21 } }, // P_JUMP
|
|
249
|
+
{ { B_T_LEAN, -8, -42 }, { B_L_KICK, -8, -21 } }, // P_JKICK
|
|
250
|
+
{ { B_T_HURT, -8, -42 }, { B_L_STAND, -8, -21 } }, // P_HURT
|
|
251
|
+
{ { B_D_HEAD, -32, -21 }, { B_D_FEET, -8, -21 } }, // P_DOWN
|
|
252
|
+
{ { B_T_STAND, -8, -32 }, { B_L_KNEEL, -8, -21 } }, // P_KNEEL
|
|
253
|
+
};
|
|
254
|
+
// POSES-END
|
|
255
|
+
|
|
256
|
+
// Hurt boxes: the body, columns 0-6 of a part (x -8 to +5), feet to the
|
|
257
|
+
// top of the head. Lying down has none: a fighter on the ground cannot be
|
|
258
|
+
// hit. Kneeling is 10 pixels lower.
|
|
259
|
+
const struct Box hurt_box[P_COUNT] = {
|
|
260
|
+
{ -7, 5, 0, 40 }, { -7, 5, 0, 40 }, { -7, 5, 0, 40 }, { -7, 5, 0, 40 },
|
|
261
|
+
{ -7, 5, 0, 40 }, { -7, 5, 0, 40 }, { -7, 5, 0, 40 }, { -7, 5, 0, 40 },
|
|
262
|
+
{ -7, 5, 0, 40 }, { -7, 5, 0, 40 }, { 0, 0, 0, 0 }, { -7, 5, 0, 30 },
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
// Hit boxes, on attack frames only (anim.c): the fist at columns 10-11 of
|
|
266
|
+
// the top part (heights 32-33), the foot at column 11 of the legs
|
|
267
|
+
// (heights 17-19), with a margin of 2.
|
|
268
|
+
const struct Box hit_box[HB_COUNT] = {
|
|
269
|
+
{ 0, 0, 0, 0 }, // HB_NONE
|
|
270
|
+
{ 6, 16, 30, 35 }, // HB_PUNCH
|
|
271
|
+
{ 6, 16, 15, 21 }, // HB_KICK
|
|
272
|
+
{ 6, 16, 15, 21 }, // HB_JKICK: plus the jumper's height
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
static char mc_glyph(char c)
|
|
276
|
+
{
|
|
277
|
+
return c == 'b' ? 1 : c == 'y' ? 2 : c == 'k' ? 3 : 0;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
static char mc_sprite(char c)
|
|
281
|
+
{
|
|
282
|
+
return c == 'a' ? 1 : c == 'x' ? 2 : c == 'b' ? 3 : 0;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
// One block from its text; mirrored: the twelve pixels in reverse order.
|
|
286
|
+
static void sprite_block(char *d, const char (*art)[13], bool mirror)
|
|
287
|
+
{
|
|
288
|
+
for (char r = 0; r < 21; r++)
|
|
289
|
+
{
|
|
290
|
+
const char *row = art[r];
|
|
291
|
+
for (char k = 0; k < 3; k++)
|
|
292
|
+
{
|
|
293
|
+
char b = 0;
|
|
294
|
+
for (char p = 0; p < 4; p++)
|
|
295
|
+
{
|
|
296
|
+
char c = k * 4 + p;
|
|
297
|
+
b = (b << 2) | mc_sprite(row[mirror ? 11 - c : c]);
|
|
298
|
+
}
|
|
299
|
+
d[r * 3 + k] = b;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
d[63] = 0;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
void art_build(void)
|
|
306
|
+
{
|
|
307
|
+
// The ROM's upper-case glyphs 0-63, for text and the meter. Bank 3 has
|
|
308
|
+
// no ROM font (c64-kb vic_bank_visibility_collision), so copy it.
|
|
309
|
+
memset(CHARSET, 0, 2048);
|
|
310
|
+
*(volatile char *)1 = 0x33; // character ROM in at $D000
|
|
311
|
+
for (unsigned i = 0; i < 512; i++)
|
|
312
|
+
CHARSET[i] = ((char *)0xd000)[i];
|
|
313
|
+
*(volatile char *)1 = 0x35; // I/O back; BASIC and KERNAL stay out
|
|
314
|
+
|
|
315
|
+
for (char i = 0; i < sizeof(glyph_code); i++)
|
|
316
|
+
{
|
|
317
|
+
char *g = CHARSET + glyph_code[i] * 8;
|
|
318
|
+
for (char r = 0; r < 8; r++)
|
|
319
|
+
{
|
|
320
|
+
const char *row = glyph_art[i][r];
|
|
321
|
+
g[r] = (mc_glyph(row[0]) << 6) | (mc_glyph(row[1]) << 4) | (mc_glyph(row[2]) << 2) | mc_glyph(row[3]);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
for (char i = 0; i < 3; i++)
|
|
325
|
+
{
|
|
326
|
+
char *g = CHARSET + (CH_BAR_FULL + i) * 8;
|
|
327
|
+
for (char r = 0; r < 8; r++)
|
|
328
|
+
{
|
|
329
|
+
char b = 0;
|
|
330
|
+
for (char c = 0; c < 8; c++)
|
|
331
|
+
b = (b << 1) | (bar_art[i][r][c] == 'x');
|
|
332
|
+
g[r] = b;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
// Fighter blocks and their mirrored twins, then the sign and the faces.
|
|
337
|
+
for (char i = 0; i < B_FIGHTER_COUNT; i++)
|
|
338
|
+
{
|
|
339
|
+
sprite_block(SPRMEM + i * 64, sprite_art[i], false);
|
|
340
|
+
sprite_block(SPRMEM + (i + B_MIRROR) * 64, sprite_art[i], true);
|
|
341
|
+
}
|
|
342
|
+
for (char i = 0; i < B_COUNT - B_GO; i++)
|
|
343
|
+
sprite_block(SPRMEM + (B_GO + i) * 64, sprite_art[B_FIGHTER_COUNT + i], false);
|
|
344
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
// autopilot.h: the joystick for AUTOPILOT builds, a bot that reads the
|
|
2
|
+
// game's state (c64-kb headless-verify's synthetic port byte, computed
|
|
3
|
+
// instead of scripted: a changed wave or AI still gets played through).
|
|
4
|
+
// Active low, as $DC00 reads it. Included by main.c only.
|
|
5
|
+
//
|
|
6
|
+
// On the title it presses fire. In play it picks the nearest enemy on the
|
|
7
|
+
// screen that can be hit, lines up in his lane, closes to punch range and
|
|
8
|
+
// attacks in a fixed pattern: punch, punch, punch (the third knocks down),
|
|
9
|
+
// kick, jump kick. When the stage is clear it walks right. In stage 2,
|
|
10
|
+
// from its first wave until a life is lost, it stands still and takes the
|
|
11
|
+
// blows, so the knock-down, the KO and the respawn run.
|
|
12
|
+
#define AP_IDLE 0xff
|
|
13
|
+
#ifndef AP_GIVE_UP
|
|
14
|
+
#define AP_GIVE_UP 0 // 1 (make gameover): never fight; three lives go, GAME OVER shows
|
|
15
|
+
#endif
|
|
16
|
+
|
|
17
|
+
static const char ap_pattern[] = { A_PUNCH, A_PUNCH, A_PUNCH, A_KICK, A_JUMP };
|
|
18
|
+
static char ap_move, ap_last;
|
|
19
|
+
static bool ap_cross; // the one cross-lane punch has been thrown
|
|
20
|
+
static unsigned ap_frames;
|
|
21
|
+
|
|
22
|
+
// Which 255 play frames the meter records (-dMETER_WINDOW=n), each from a
|
|
23
|
+
// point the run reaches, so every window is 255 play frames of the run:
|
|
24
|
+
// 0, the default: from the second stage's lock: the brute in characters,
|
|
25
|
+
// two thugs, the hero's KO (the run's worst window, measured: README.md);
|
|
26
|
+
// 1: from the third stage's lock: three thugs, eight sprites in the band;
|
|
27
|
+
// 2: from the first stage clear, the walk: every frame scrolls;
|
|
28
|
+
// 3: from the first stage's lock: two thugs, then the brute;
|
|
29
|
+
// 4: every play frame, for the whole run's worst (main.c, run_worst; the
|
|
30
|
+
// meter itself still records only the first 255).
|
|
31
|
+
#ifndef METER_WINDOW
|
|
32
|
+
#define METER_WINDOW 0
|
|
33
|
+
#endif
|
|
34
|
+
static bool ap_recording(void)
|
|
35
|
+
{
|
|
36
|
+
switch (METER_WINDOW)
|
|
37
|
+
{
|
|
38
|
+
case 1: return locks >= 3;
|
|
39
|
+
case 2: return (events & EV_UNLOCK) != 0;
|
|
40
|
+
case 3: return locks >= 1;
|
|
41
|
+
case 4: return true;
|
|
42
|
+
default: return locks >= 2;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
static bool ap_target_ok(char f)
|
|
47
|
+
{
|
|
48
|
+
char m = fmode[f];
|
|
49
|
+
return (m == M_FREE || m == M_ATTACK || m == M_HURT || m == M_JUMP) &&
|
|
50
|
+
fx[f] > camx + 8 && fx[f] < camx + 312;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
static char ap_nearest(void)
|
|
54
|
+
{
|
|
55
|
+
char best = 0;
|
|
56
|
+
unsigned bd = 0xffff;
|
|
57
|
+
for (char f = 1; f < NFIGHT; f++)
|
|
58
|
+
{
|
|
59
|
+
if (!ap_target_ok(f))
|
|
60
|
+
continue;
|
|
61
|
+
int d = (int)fx[f] - (int)fx[0];
|
|
62
|
+
unsigned a = (d < 0 ? -d : d) + (fy[f] > fy[0] ? fy[f] - fy[0] : fy[0] - fy[f]) * 2;
|
|
63
|
+
if (a < bd)
|
|
64
|
+
{
|
|
65
|
+
bd = a;
|
|
66
|
+
best = f;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return best;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
static char ap_fight(void)
|
|
73
|
+
{
|
|
74
|
+
char out = AP_IDLE;
|
|
75
|
+
if (fmode[0] == M_JUMP)
|
|
76
|
+
return farc[0] == ARC_JUMP + 5 ? AP_IDLE ^ JOY_FIRE : AP_IDLE; // the kick, early in the arc
|
|
77
|
+
if (fmode[0] != M_FREE)
|
|
78
|
+
return AP_IDLE;
|
|
79
|
+
char t = ap_nearest();
|
|
80
|
+
if (!t)
|
|
81
|
+
return stage_clear ? AP_IDLE ^ JOY_RIGHT : AP_IDLE;
|
|
82
|
+
// Once, the lane gate on purpose: a punch at an enemy 9 to 17 lines
|
|
83
|
+
// away, close enough in x that the boxes touch on the screen. fighter.c
|
|
84
|
+
// must call it a miss (EV_LANE_MISS); the verdict wants that event.
|
|
85
|
+
if (!ap_cross)
|
|
86
|
+
{
|
|
87
|
+
for (char f = 1; f < NFIGHT; f++)
|
|
88
|
+
{
|
|
89
|
+
char d = fy[f] > fy[0] ? fy[f] - fy[0] : fy[0] - fy[f];
|
|
90
|
+
if (ap_target_ok(f) && d > WIN + 2 && d < 3 * WIN)
|
|
91
|
+
{
|
|
92
|
+
int cx = (int)fx[f] - (int)fx[0];
|
|
93
|
+
int acx = cx < 0 ? -cx : cx;
|
|
94
|
+
bool fc = (cx < 0) == (fface[0] == FACE_LEFT);
|
|
95
|
+
if (acx > 16)
|
|
96
|
+
return AP_IDLE ^ (cx < 0 ? JOY_LEFT : JOY_RIGHT);
|
|
97
|
+
if (acx < 10)
|
|
98
|
+
return AP_IDLE ^ (cx < 0 ? JOY_RIGHT : JOY_LEFT);
|
|
99
|
+
if (!fc)
|
|
100
|
+
return AP_IDLE ^ (cx < 0 ? JOY_LEFT : JOY_RIGHT);
|
|
101
|
+
if (!(ap_last & JOY_FIRE))
|
|
102
|
+
return AP_IDLE;
|
|
103
|
+
ap_cross = true;
|
|
104
|
+
return AP_IDLE ^ JOY_FIRE;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
int dx = (int)fx[t] - (int)fx[0];
|
|
109
|
+
int ady = fy[t] > fy[0] ? fy[t] - fy[0] : fy[0] - fy[t];
|
|
110
|
+
int adx = dx < 0 ? -dx : dx;
|
|
111
|
+
char toward = dx < 0 ? JOY_LEFT : JOY_RIGHT;
|
|
112
|
+
char away = dx < 0 ? JOY_RIGHT : JOY_LEFT;
|
|
113
|
+
bool facing = (dx < 0) == (fface[0] == FACE_LEFT);
|
|
114
|
+
|
|
115
|
+
if (ady > 2)
|
|
116
|
+
{
|
|
117
|
+
out ^= fy[t] > fy[0] ? JOY_DOWN : JOY_UP;
|
|
118
|
+
if (adx < 12)
|
|
119
|
+
out ^= away; // not in reach while crossing lanes
|
|
120
|
+
}
|
|
121
|
+
else if (adx > 18)
|
|
122
|
+
out ^= toward;
|
|
123
|
+
else if (adx < 8)
|
|
124
|
+
out ^= away;
|
|
125
|
+
else if (!facing)
|
|
126
|
+
out ^= toward;
|
|
127
|
+
else if (ap_last & JOY_FIRE) // released last frame: press now
|
|
128
|
+
{
|
|
129
|
+
char m = ap_pattern[ap_move];
|
|
130
|
+
ap_move = ap_move + 1 < sizeof(ap_pattern) ? ap_move + 1 : 0;
|
|
131
|
+
out ^= JOY_FIRE;
|
|
132
|
+
if (m == A_KICK)
|
|
133
|
+
out ^= toward;
|
|
134
|
+
else if (m == A_JUMP)
|
|
135
|
+
out ^= JOY_UP ^ toward;
|
|
136
|
+
}
|
|
137
|
+
return out;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
static char autopilot_port(void)
|
|
141
|
+
{
|
|
142
|
+
char out = AP_IDLE;
|
|
143
|
+
ap_frames++;
|
|
144
|
+
if (state == ST_TITLE)
|
|
145
|
+
out = ap_frames == 20 ? AP_IDLE ^ JOY_FIRE : AP_IDLE;
|
|
146
|
+
else if (state == ST_PLAY && !AP_GIVE_UP)
|
|
147
|
+
{
|
|
148
|
+
bool take_blows = stage == 1 && wave >= 1 && !(events & EV_LIFE_LOST);
|
|
149
|
+
if (!take_blows)
|
|
150
|
+
out = ap_fight();
|
|
151
|
+
}
|
|
152
|
+
ap_last = out;
|
|
153
|
+
return out;
|
|
154
|
+
}
|