Skip to content
ahrazzlePublic

About

A keyboard-first monster battler — type in rhythm to attack. The first plugin game built on the Typejoy typing framework.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

Typemon

A keyboard-first monster-battler, and the first plugin game built on the Typejoy typing framework.

Type the glowing key in rhythm to attack. Correct keystrokes drive the battle; the typing loop is the combat system rather than a layer over it.

  • Demo entry point: demo/index.html
  • No build step, no dependencies — it is a static ES-module app.
  • Requires a physical keyboard (there is no touch control path).

Play the demo locally

ES modules will not load over file://, so serve the folder over HTTP:

# from the repository root
python3 -m http.server 8000
# then open:
#   http://localhost:8000/demo/

Open demo/index.html through that server, click START, and play.

Controls

Overworld

Input Action
Arrow keys / W A S D Walk
Enter or Space Interact with the tile you are facing (doors, cave mouths, signs, tunnels, NPCs)
C Open the collection

Battle

Input Action
The letter shown on the glowing key Attack the enemy — type it in time with the beat
Space Advance to the next word (spaces are charted notes; resting on one is never punished)
A wrong letter Dodge — it costs you tempo, it never drains HP

Timing grades the hit: Perfect is a critical, then Great, then Good. Miss the beat and the enemy strikes. Hit streaks charge the ultimate and the capture throw.

Battle menus (press the number, or click)

Input Action
1 2 3 Pick an attack move
4 Throw a SNARE — attempt capture (wild battles only)
5 Switch active monster mid-battle (costs a turn)
6 Open the bag
Esc Back out of a submenu

Bag items — TONIC restores 30 HP, SNARE captures at +35% odds, SLOW DIAL slows the next typing word without costing a turn. Items are spent from the bag and persist in the save.

Dialogue — Enter/Space advances, Esc closes.

Menus

Input Action
1 2 3 (or click) Pick your starter
1–9 Switch active monster in the collection
C or Esc Close the collection

Gameplay loop

  1. Pick a starter — one of three original monsters.
  2. Explore the island — Ember Rest (your hut, Gramps, signs), Route A, Stone Cave, and Ember Ridge. Walking in tall grass triggers wild encounters from the zone's own table.
  3. Battle — type each attack word in rhythm; the enemy attacks back only on your misses, never on a hidden timer. Damage folds in move power, timing grade, an original 18-type effectiveness chart, and STAB. Flawless words hit harder.
  4. Catch — weaken a wild monster, then throw a SNARE on a good/great/perfect hit.
  5. Challenge trainers — Pip, Sage, and Ridge Keeper Maro fight fixed multi-monster teams in sequence; beating Maro completes the game.
  6. Beat the cave boss to unseal the crystal tunnel to Ember Ridge. Progress (collection, XP, items, trainer flags, route clears) is saved to localStorage, so a refreshed tab resumes.

Tests

The domain layer is pure and dependency-free:

node tests/run.mjs        # exits non-zero on failure

Verified state: 140 passed, 0 failed (exit 0). The suite covers the monster registry, the type chart, items, NPCs/trainers, the ridge encounter tables, the route/encounter tables, capture odds, XP/levels, the overworld tile logic, and the save-file schema.

There is also a scripted in-browser smoke run that drives the whole arc:

http://localhost:8000/demo/index.html?autoplay=1

It walks world -> encounter -> victory -> XP/save -> node-clear -> world -> a second battle and reports AUTOPLAY-DONE 37/37 with no failures — useful as a served-surface check after any deploy.


Built on Typejoy

Typemon is a consumer of the Typejoy framework — it composes the framework's createSession() API and GamePlugin hook set and never extends or patches it.

Original Typemon content

All Typemon monsters, move names, and typing rules; the story and route; the art direction; the game code; and the UI are original work created for this project. No Pokémon, Showdown, or other third-party species, moves, stats, or sprites are copied or referenced — the only third-party material in the repo is the asset island described below, plus the unmodified Typejoy vendor copy.

Licensing — two layers, one boundary

Path License
Everything except assets/ccbysa/** MIT — see LICENSE
assets/ccbysa/** CC BY-SA 4.0 — see assets/ccbysa/LICENSE

assets/ccbysa/** is a third-party asset island (monster sprite art, type icons, and battle backgrounds) sourced from OpMonTeam/OpMon-Data and licensed under Creative Commons Attribution-ShareAlike 4.0 International. It ships beside the MIT engine as a distinct layer, and it is deliberately licensed separately:

  • Attribution: the per-file SHA-1 ledger is assets/ccbysa/ATTRIBUTION.md.
  • Share-alike: any adaptation or redistribution of those files must stay under CC BY-SA 4.0 and keep that attribution. Do not relicense them as MIT.
  • Independence: original Typemon content never references that island — the build asserts that no original monster points into assets/ccbysa/**.
  • One exception: the single shipped audio track assets/ccbysa/audio/8bit-battle.ogg is CC0-1.0 (public-domain dedication, credit Ted Kerr / Wolfgang_), not CC BY-SA.

If you reuse this repository, treat the assets/ccbysa/** folder under CC BY-SA 4.0 and everything else under MIT.

Hosting on GitHub Pages (repo-subpath safe)

The demo is written to work when served from a repository subpath, e.g. https://<user>.github.io/<repo>/, not only from a domain root. All references inside demo/index.html are relative (./vendor/typejoy.js, ../assets/ccbysa/...); there are no absolute /... paths and no file:// URLs, so the pages resolve correctly under a subpath.

  • Publish from the repository root and open <site>/demo/ (or <site>/) to play. The root index.html is generated from demo/index.html — never edit it by hand; regenerate with node scripts/sync-root-index.mjs after changing the demo.
  • Keep demo/index.html and demo/vendor/ together: the vendor import is relative to the page.
  • Asset paths are prefixed ../ relative to the page, so moving demo/index.html to a different depth will break the assets — keep the folder structure or adjust the prefix.
  • The served demo/index.html ships cache-busting meta; after a deploy, confirm the live bytes match the committed file before trusting a stale cached page.

About

A keyboard-first monster battler — type in rhythm to attack. The first plugin game built on the Typejoy typing framework.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages