Back to Arañas Pistoleras
SOURCE / PINNED RELEASE

Made of little things.

Arañas Pistoleras

Release
2578a037ceaf…
Author-recorded commit
e35cc0733a7b…
License
LICENSE
Author’s source reference
nostr://npub1eg5pfnws6tg6rtp33tugpppqtv5u05crmf983qp438cdycwzngys0gxzcs/wss%3A%2F%2Fgit.napplet.soy%2F/n-7bf0a402584

Archive hash verified: 52cdda8c063eaf88…. The source-to-build association is the author’s claim; it has not been independently rebuilt.

README.md
# Arañas Pistoleras

Giant spiders with revolvers have moved into the school, the kitchen, the
bedroom, the storeroom and the forest at night. Tap each one before it shoots.
A small spooky game for children, made as a single-file napplet.

## How it plays

- A spider comes down on a thread, climbs up from behind the furniture or
  walks in along the floor. It looks around, lowers its pistols at you (the
  muzzles glow red and it starts to shake) and then fires. A shot costs one of
  five hearts.
- A tap anywhere on a spider pops it. Spiders with a hat need two taps: the
  first knocks the hat off. Little green ones are quick.
- When enough spiders are beaten the Spider Queen comes, with a crown and
  four golden pistols. Three taps while she aims make her dizzy. She calls
  little ones for help twice.
- A missed tap costs nothing. Hearts float up now and then and can be caught.
- Losing a level makes the next try at it slower and less crowded, so
  everybody gets through in the end. Stars count the hearts that were kept.
- Things in each room answer a tap: the school bell and the globe, the pans,
  the bedside lamp and the teddy, the light bulb and a barrel, the owl and the
  glowing mushrooms.

## Butterflies instead

A switch on the menu turns the spiders into butterflies to collect. The rules
do not change: a butterfly arrives, gets restless (glitter circles it and its
wings beat faster) and slips away with a heart unless it is caught first. What
changes is the look and the sound: wings and glitter for legs and slime, caught
butterflies fly up to the bar at the top, the rooms are brighter, and every
tune moves to the major key on the same note. Stars are shared by both modes.

The text is Spanish and there is little of it. Mouse, touch and (for the menus)
keyboard work: arrows or Tab move, Enter chooses, Esc pauses, M steps through
sound and music, sound only, and silent.

## Visual direction

- **Character:** a spooky picture book at night. Scary enough to squeal at,
  never gory: the spiders are round and furry, wear a different hat in every
  place, burst into slime, lose their pistols and float off as little ghosts
  with a halo. The one distinguishing idea is the eyes: eight of them, glowing
  through the dark and following the pointer.
- **Main surface:** five hand-painted flat scenes with a few moving details
  each (a flickering lamp, a rattling pot lid, somebody under the bed, a
  swinging bulb, lightning). A layer of darkness lies over each scene with
  holes where light falls; eyes, hot muzzles and sparks are drawn on top of it.
- **Interface:** Creepster for every word, slime green for what to press, pink
  for the queen, bone white on night purple for everything else. Rounded
  shapes, big targets, icons before words.
- **Theme policy:** app-owned colours. The host theme is not followed.
- **Proof:** the bedroom with one spider aiming, one arriving and one dizzy
  after losing its nightcap is the cover.
  Frames checked: 200×160, 320×560, 390×844, 844×390, 900×600 and 1920×1080.
  A tall frame looks at the middle of a wider room, so the furniture keeps a
  size that suits the spiders.

## Sound

Everything is synthesised with Web Audio; nothing is sampled. Each place has
its own short tune, written out by hand in `src/audio.ts`, and the queen brings
drums. Sound runs as a napplet-owned NAP-MEDIA session, so the host can pause
it and turn it down; without the media domain the game is silent.

## Layout of the source

| File | What it holds |
|------|---------------|
| `src/game.ts` | The rules. No DOM; `tests/balance.ts` plays it headlessly. |
| `src/scenes.ts` | The five places and where spiders may appear in them. |
| `src/spider.ts` | How the spiders, their pistols and their hats are drawn. |
| `src/fx.ts` | Slime, flying legs, smoke, cracked glass, words, confetti. |
| `src/audio.ts` | Sound effects and the tunes. |
| `src/main.ts` | Screens, HUD, input, storage and the frame loop. |

Progress (stars and the sound choice) is kept with the storage domain when the
host offers it, and for the session otherwise.

## Working on it

Read [docs/napplet-space.md](docs/napplet-space.md) first: it describes the
soyLI commands, the host capabilities and the boundaries a napplet keeps.

```bash
soyli run verify            # guidance tests, type check, build
soyli run test:conformance  # reference-shell checks
soyli dev                   # the built napplet inside the napplet.soy sandbox
node --experimental-strip-types tests/balance.ts   # three kinds of player on every level
```

Tapping a locked level five times opens it for the session, for testing.

## Credits

Font: Creepster by Font Diner, SIL Open Font License 1.1, embedded as a subset.
Code: MIT, see `LICENSE`.