Skip to content

Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.

Jetpack Joyride: the original's run, vehicles and Final Spin, as its own app

Mason363292ee2e7e12a
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 4cc1e0b2..4fdbcab5 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -71,6 +71,7 @@ jobs:
make -C games/hillclimb host test
make -C games/leveldevil host test
make -C games/cookieclicker host test
+ make -C games/jetpackjoyride host test
make -C games/invaders host test
make -C games/sudoku host test
make -C games/uttt host test
diff --git a/Makefile b/Makefile
index c4deeebb..2b480adb 100644
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,7 @@ RAM_LIMIT = 148928
# custom builds of Epsilon 25.2's source give apps less: 133652 bytes; every game fits there too, in NumPlay and on
# its own (their big buffers are on the stack, 32 KB apart from that RAM, or in the RAM the software has left)
CUSTOM_RAM = 133652
-BIG_APPS = Celeste HollowKnight Undertale ChampionIsland FinalEarth2 NumPowder NumBlocks NumDrive SubwaySurfers FiveNightsAtFreddys Doom BindingOfIsaac HillClimbRacing PlantsVsZombies SonicTheHedgehog CookieClicker LevelDevil
+BIG_APPS = Celeste HollowKnight Undertale ChampionIsland FinalEarth2 NumPowder NumBlocks NumDrive SubwaySurfers FiveNightsAtFreddys Doom BindingOfIsaac HillClimbRacing PlantsVsZombies SonicTheHedgehog CookieClicker LevelDevil JetpackJoyride
# the calculator's space for installed apps (0x90200000 to 0x903F0000 in its flash)
APP_SPACE = 2031616
# Upsilon, the N0110 and N0115's custom software, gives .nwa apps less RAM: NumPlay-Upsilon.nwa has
@@ -221,6 +221,7 @@ APP_pvz = games/pvz/output/pvz.nwa:PlantsVsZombies.nwa
APP_sonic = games/sonic/output/sonic.nwa:SonicTheHedgehog.nwa
APP_cookieclicker = games/cookieclicker/output/cookieclicker.nwa:CookieClicker.nwa
APP_leveldevil = games/leveldevil/output/leveldevil.nwa:LevelDevil.nwa
+APP_jetpackjoyride = games/jetpackjoyride/output/jetpackjoyride.nwa:JetpackJoyride.nwa
apps: | $(B)
$(MAKE) -C games/numdash build NWLINK="node node_modules/nwlink/bin/nwlink"
@@ -246,6 +247,7 @@ apps: | $(B)
$(MAKE) -C games/sonic build NWLINK="$(NWLINK)"
$(MAKE) -C games/cookieclicker build NWLINK="$(NWLINK)"
$(MAKE) -C games/leveldevil build NWLINK="$(NWLINK)"
+ $(MAKE) -C games/jetpackjoyride build NWLINK="$(NWLINK)"
cd games/tetris/tetris && NWLINK="$(NWLINK)" $(CARGO) build --release --quiet
cp $(word 1,$(subst :, ,$(APP_numdash))) $(B)/apps/$(word 2,$(subst :, ,$(APP_numdash)))
cp $(word 1,$(subst :, ,$(APP_crossyroad))) $(B)/apps/$(word 2,$(subst :, ,$(APP_crossyroad)))
@@ -271,6 +273,7 @@ apps: | $(B)
cp $(word 1,$(subst :, ,$(APP_sonic))) $(B)/apps/$(word 2,$(subst :, ,$(APP_sonic)))
cp $(word 1,$(subst :, ,$(APP_cookieclicker))) $(B)/apps/$(word 2,$(subst :, ,$(APP_cookieclicker)))
cp $(word 1,$(subst :, ,$(APP_leveldevil))) $(B)/apps/$(word 2,$(subst :, ,$(APP_leveldevil)))
+ cp $(word 1,$(subst :, ,$(APP_jetpackjoyride))) $(B)/apps/$(word 2,$(subst :, ,$(APP_jetpackjoyride)))
arm-none-eabi-strip --strip-unneeded $(B)/apps/Tetris.nwa
STD_APPS = $(foreach g,$(STD_GAMES),$(B)/apps/$(NWA_$(g)))
@@ -336,5 +339,6 @@ clean:
-$(MAKE) -C games/sonic clean
-$(MAKE) -C games/cookieclicker clean
-$(MAKE) -C games/leveldevil clean
+ -$(MAKE) -C games/jetpackjoyride clean
-cd games/tetris/tetris && $(CARGO) clean
-$(foreach g,$(STD_GAMES),$(MAKE) -C games/$(g) clean;)
diff --git a/README.md b/README.md
index 82588ba3..ad545753 100644
--- a/README.md
+++ b/README.md
@@ -116,10 +116,6 @@ These are too big to fit next to NumPlay, so each one is its own app. Install it
</tr>
</table>
-**[Jetpack Joyride](games/jetpackjoyride/README.md)** is also offered as a separate,
-English-only app by **Bobydeluxe**. Its README includes build and installation
-instructions.
-
## How to install
You need your calculator, its USB cable, and a computer with **Google Chrome** or **Microsoft Edge**. It takes about 2 minutes.
@@ -260,7 +256,6 @@ NumPlay is a fan project, made out of love for these games and for the NumWorks
- **[Tatone26](https://github.com/Tatone26/Numworks-games)**'s **All the Apps** inspired NumPlay's list of classics. Flappy Bird, Pac-Man, Snake, Connect Four, Solitaire and 2048 are written in C for NumPlay and keep its options, with no code copied from it. Tetris is Tatone26's own, which they released into the public domain, adapted for NumPlay.
- **[Gabriele Cirulli](https://github.com/gabrielecirulli/2048)** made 2048.
-- **[Bobydeluxe](https://github.com/Bobydeluxe)** made the **[Jetpack Joyride](games/jetpackjoyride/README.md)** NumWorks adaptation, including its interface, flight engine and sprite renderer. **Halfbrick** created the original game and artwork; asset provenance and rights are recorded in the game's [artwork notes](games/jetpackjoyride/assets/README.md).
- **Block Blast!** by [Hungry Studio](https://www.hungrystudio.com) inspired NumPlay's Block Blast, written in C for NumPlay with no code or art from it. Its blocks, scoring and colours follow measurements of the app by the players behind [blockblast-Self-Improvement-loop](https://github.com/Kucze3205/blockblast-Self-Improvement-loop).
- **Flappy Dunk** by Voodoo (made with Acid Cousins) inspired NumPlay's Flappy Dunk, written in C for NumPlay with no code or art from it. Its physics and hoops follow the numbers in the game's Android build. **[Bobydeluxe](https://github.com/Bobydeluxe)** brought it to NumPlay. Not affiliated with Voodoo.
- **Tower Blocks** by [Steve Gardner](https://codepen.io/ste-vg/pen/ppLQNW) (MIT License) is ported to C for NumPlay from its source: its sizes, speeds, colours, light and camera are the original's. **[Bobydeluxe](https://github.com/Bobydeluxe)** brought it to NumPlay.
diff --git a/docs/media/jetpackjoyride.gif b/docs/media/jetpackjoyride.gif
new file mode 100644
index 00000000..69df4a91
Binary files /dev/null and b/docs/media/jetpackjoyride.gif differ
diff --git a/games/jetpackjoyride/Makefile b/games/jetpackjoyride/Makefile
index 4d58c62d..87149096 100644
--- a/games/jetpackjoyride/Makefile
+++ b/games/jetpackjoyride/Makefile
@@ -1,55 +1,63 @@
-# Jetpack Joyride: English-only app and NumPlay module.
+# Jetpack Joyride on the NumWorks calculator.
+# make output/jetpackjoyride.nwa
+# make check link it like the calculator does (output/jetpackjoyride.bin)
+# make host build/play: the game on a computer, for tests and pictures
+# make test the rules against the original's numbers, a bot's runs, random keys, saves (with the sanitizers)
+# make data APK=DIR src/data.h again, from the game's Android package unzipped in DIR (tools/data.py)
+# make art FB=DIR APK=DIR src/art.h again: FB the PNGs of archive.org's Facebook assets, APK as above
+# (tools/art.py: Python + Pillow; both are only read)
+Q ?= @
CC = arm-none-eabi-gcc
NWLINK ?= npx --yes -- [email protected]
-PYTHON ?= python3
-ARM_LD ?= arm-none-eabi-ld
-OBJCOPY = arm-none-eabi-objcopy
-PACKER = tools/compact_nwa.py tools/standalone.ld
-SRC = src/main.c src/physics.c src/save.c src/render.c
-HEADERS = $(wildcard src/*.h) ../common/epsilon_app.h ../common/epsilon_files.h
-OBJECTS = $(patsubst src/%.c,output/%.o,$(SRC))
-CFLAGS = -std=c11 $(shell $(NWLINK) eadk-cflags-device) -Os -Wall -Wextra -Werror
-CFLAGS += -fno-math-errno -fsingle-precision-constant -ffunction-sections -fdata-sections -fstack-usage
-CFLAGS += -fno-tree-loop-distribute-patterns -flto -fno-fat-lto-objects -fvisibility=internal
-LINK = -nostartfiles --specs=nano.specs -Wl,--relocatable,--gc-sections,-e,main -flinker-output=nolto-rel
-
-.PHONY: build check module sim-module test clean assets check-assets
-build: output/jetpackjoyride.nwa
-assets:
- $(PYTHON) tools/assets.py
-check-assets:
- $(PYTHON) tools/assets.py --check
-output/%.o: src/%.c $(HEADERS) | output
- $(CC) $(CFLAGS) -c $< -o $@
-output/icon.o: src/icon.png | output
- $(NWLINK) png-icon-o $< $@
-output/icon-compact.o: output/icon.o $(PACKER)
- $(PYTHON) tools/compact_nwa.py icon $< $@ --objcopy $(OBJCOPY)
-output/jetpackjoyride-debug.nwa: $(OBJECTS) output/icon-compact.o $(PACKER)
- $(CC) $(CFLAGS) $(LINK) -Wl,-u,eadk_app_name,-u,eadk_app_icon,-u,eadk_api_level $(OBJECTS) output/icon-compact.o -lm -o output/standalone.o
- $(PYTHON) tools/compact_nwa.py app output/standalone.o $@ --ld $(ARM_LD)
-output/jetpackjoyride.nwa: output/jetpackjoyride-debug.nwa $(PACKER)
- $(PYTHON) tools/compact_nwa.py release $< $@ --objcopy $(OBJCOPY)
-module: output/module.o
-output/module.o: $(OBJECTS)
- $(CC) $(CFLAGS) $(LINK) $^ -lm -o $@
-check: build
- $(NWLINK) nwa-bin output/jetpackjoyride.nwa output/jetpackjoyride.bin --ram-length 107674
- $(NWLINK) nwa-bin output/jetpackjoyride-debug.nwa output/jetpackjoyride-debug.bin --ram-length 107674
- $(PYTHON) -c "from pathlib import Path; assert Path('output/jetpackjoyride.bin').read_bytes() == Path('output/jetpackjoyride-debug.bin').read_bytes(), 'Release compaction changed installed bytes'"
-output:
- mkdir -p $@
-test: | output
- $(PYTHON) tests/test_compact_nwa.py
- $(HOST_CC) -std=c11 -O2 -Wall -Wextra -Werror -Isrc tests/test.c src/physics.c src/save.c src/render.c -lm -o output/test
- cd output && ./test
-HOST_CC ?= cc
-sim-module: | output
- mkdir -p output/sim
- cc -std=c11 -O2 -fPIC $(shell $(NWLINK) eadk-cflags-simulator) -Dmain=np_jetpackjoyride_main -c src/main.c -o output/sim/main.o
- cc -std=c11 -O2 -fPIC -c src/physics.c -o output/sim/physics.o
- cc -std=c11 -O2 -fPIC -c src/save.c -o output/sim/save.o
- cc -std=c11 -O2 -fPIC -c src/render.c -o output/sim/render.o
- ld -r output/sim/*.o -exported_symbol _np_jetpackjoyride_main -o output/sim-module.o
+BUILD_DIR = output
+L = ../../launcher/src
+
+SRC = src/main.c src/sim.c src/draw.c src/save.c src/plat_eadk.c
+HEADERS = $(wildcard src/*.h) ../common/epsilon_app.h ../common/epsilon_files.h ../common/np_text.h $(L)/gfx.h $(L)/np.h $(L)/font.h
+
+CFLAGS = -std=gnu11 $(shell $(NWLINK) eadk-cflags-device) -DPLATFORM_DEVICE=1
+CFLAGS += -Os -Wall -Wextra -Wno-unused-parameter -fno-math-errno -fsingle-precision-constant
+CFLAGS += -fno-tree-loop-distribute-patterns -flto -fno-fat-lto-objects -fwhole-program -fvisibility=internal
+CFLAGS += -ffunction-sections -fdata-sections
+LDFLAGS = -Wl,--relocatable -nostartfiles --specs=nano.specs
+LDFLAGS += -Wl,-e,main -Wl,-u,eadk_app_name -Wl,-u,eadk_app_icon -Wl,-u,eadk_api_level
+LDFLAGS += -Wl,--gc-sections -flinker-output=nolto-rel
+
+.PHONY: build check clean host test data art
+build: $(BUILD_DIR)/jetpackjoyride.nwa
+
+# apps get 133652 bytes of RAM on custom builds of Epsilon 25.2 (148928 or more on official ones)
+check: $(BUILD_DIR)/jetpackjoyride.nwa
+ $(Q) $(NWLINK) nwa-bin --ram-length 133652 $< $(BUILD_DIR)/jetpackjoyride.bin
+ @echo "BIN $(BUILD_DIR)/jetpackjoyride.bin: $$(wc -c < $(BUILD_DIR)/jetpackjoyride.bin) bytes"
+
+$(BUILD_DIR)/jetpackjoyride.nwa: $(SRC) $(HEADERS) $(L)/gfx.c $(L)/font_data.c $(L)/xfont.c $(BUILD_DIR)/icon.o
+ @echo "LD $@"
+ $(Q) $(CC) $(CFLAGS) $(LDFLAGS) $(SRC) $(L)/gfx.c $(L)/font_data.c $(L)/xfont.c $(BUILD_DIR)/icon.o -lm -o $@
+ $(Q) arm-none-eabi-strip --strip-unneeded $@
+
+$(BUILD_DIR)/icon.o: src/icon.png | $(BUILD_DIR)
+ @echo "ICON $<"
+ $(Q) $(NWLINK) png-icon-o $< $@
+
+$(BUILD_DIR):
+ $(Q) mkdir -p $@
+
+# on a computer: tests/play.c runs the game with scripted keys, checks it and saves pictures
+HOST_FLAGS = -std=gnu11 -O2 -g -Wall -Wextra -Wno-unused-parameter -Isrc -DHOST \
+ -fsanitize=address,undefined -fno-sanitize-recover=undefined
+host: build/play
+build/play: $(filter-out src/plat_eadk.c,$(SRC)) tests/play.c $(HEADERS) $(L)/gfx.c $(L)/font_data.c $(L)/xfont.c
+ $(Q) mkdir -p build
+ $(Q) cc $(HOST_FLAGS) tests/play.c src/sim.c src/draw.c src/save.c $(L)/gfx.c $(L)/font_data.c $(L)/xfont.c -lm -o $@
+ @echo "HOST $@"
+test: build/play
+ build/play test
+
+data:
+ python3 -I tools/data.py $(APK) src/data.h
+art:
+ python3 -I tools/art.py $(FB) $(APK) src/art.h
+
clean:
- rm -rf output
+ $(Q) rm -rf $(BUILD_DIR) build
diff --git a/games/jetpackjoyride/README.md b/games/jetpackjoyride/README.md
index 795a8e0a..8695f605 100644
--- a/games/jetpackjoyride/README.md
+++ b/games/jetpackjoyride/README.md
@@ -1,115 +1,87 @@
-# Jetpack Joyride
+> **Jetpack Joyride is a [NumPlay](../../README.md) game that comes on its own.** It is too big to fit next to NumPlay on the calculator. Get `JetpackJoyride.nwa` from the [latest release](https://github.com/Mason363/NumPlay/releases/latest).
+
+<p align="center">
+ <img src="src/icon.png" width="84" alt="Jetpack Joyride icon">
+</p>
+
+<h1 align="center">Jetpack Joyride</h1>
+
+<p align="center">
+ <b>Barry Steakfries steals a jetpack and flies through the lab, on the NumWorks calculator.</b><br>
+ The zappers, missiles, lasers, coins, vehicles and the Final Spin of Halfbrick's game.
+</p>
+
+<p align="center">
+ <a href="https://github.com/Mason363/NumPlay/releases/latest/download/JetpackJoyride.nwa"><b>Download JetpackJoyride.nwa</b></a>
+ &nbsp;·&nbsp; <a href="#controls">Controls</a>
+</p>
+
+<p align="center">
+ <img src="../../docs/media/jetpackjoyride.gif" width="640" alt="Jetpack Joyride: Barry grabs coins and rides the Profit Bird until it hits a zapper, then flies on past a missile">
+</p>
+
+## Highlights
+
+* **The machine gun jetpack:** hold to fly, let go to fall, with the game's own gravity, thrust and speed. Barry starts at 11 m/s and speeds up to 28 m/s by 2000 m.
+* **Zappers:** horizontal, vertical and diagonal ones of every length, and the orange ones that turn, from 400 m.
+* **Missiles:** a warning follows your height, locks on, then the missile fires. Sometimes a whole swarm comes.
+* **Lasers:** all 29 of the game's laser patterns, from a single shot to the sweepers and the Stager, from 400 m to 6000 m.
+* **Coins:** the game's 26 coin patterns, and coin streaks.
+* **Five vehicles** from the vehicle boxes: the Lil' Stomper, the Profit Bird, the Crazy Freaking Teleporter, the Bad As Hog and the Gravity Suit, each with its own controls, speed and obstacles. A vehicle takes a hit for you.
+* **The Final Spin:** spin tokens play the slot machine after a run, for coins, blasts, a Second Chance, double coins or a head start.
+* **The game's look:** Halfbrick's own pictures of Barry, the lab, the hazards and the vehicles, and the game's font for the distance.
+* **Saved as you go:** Home saves the run and quits, and the next start picks it up paused. Your best and coins are also copied into `jetpackjoyride_saves.py`, so installing the app again doesn't erase them.
+
+<table>
+ <tr>
+ <td align="center"><img src="docs/shot.png" width="390" alt="Lasers firing across the lab"><br><sub>A laser pattern</sub></td>
+ <td align="center"><img src="docs/missile.png" width="390" alt="A missile flying at Barry"><br><sub>A missile, fired after its warning</sub></td>
+ </tr>
+ <tr>
+ <td align="center"><img src="docs/stomper.png" width="390" alt="Barry in the Lil' Stomper"><br><sub>The Lil' Stomper</sub></td>
+ <td align="center"><img src="docs/teleporter.png" width="390" alt="The Crazy Freaking Teleporter and its arrow"><br><sub>The Crazy Freaking Teleporter</sub></td>
+ </tr>
+ <tr>
+ <td align="center"><img src="docs/spin.png" width="390" alt="The Final Spin paying a Second Chance"><br><sub>The Final Spin</sub></td>
+ <td align="center"><img src="docs/title.png" width="390" alt="The title screen"><br><sub>The title screen</sub></td>
+ </tr>
+</table>
+
+## How to play
+
+Press **OK** on the title to start. Hold **OK** to fire the jetpack and fly up, and let go to fall. Barry runs on by himself: dodge the zappers, the missiles and the lasers, and grab the coins. A missile's warning shows on the right and follows your height, then stops and flashes: move away before it fires. A laser charges for a moment before it fires across the whole screen.
+
+Fly into a vehicle box to get a vehicle. The Stomper jumps and glides while you hold **OK**, the Profit Bird flaps each time you press it, the Hog jumps, the Gravity Suit flips gravity, and the Teleporter jumps to where its arrow points. If a vehicle is hit, it breaks and Barry runs on.
+
+Grab the spin tokens: when the run ends, each one is a spin of the Final Spin. Press **OK** to spin, or **Back** to cash the rest in for coins.
+
+## Controls
+
+| Key | What it does |
+| --- | --- |
+| OK, EXE or Up | Fly (hold), or the vehicle's action |
+| Up, Down | Move the focus in menus |
+| OK | Choose, spin the Final Spin |
+| Back | Pause: Resume, Retry, How to play, Quit (it asks first) |
+| Home | Save and quit |
-By **Bobydeluxe**. An English-only NumWorks adaptation with artwork from the
-[Jetpack Joyride Facebook assets archive](https://archive.org/download/jetpack-joyride-assets),
-created by **Halfbrick**. See [artwork provenance](assets/README.md).
+## Good to know
-![Main menu](docs/title.png)
-![Animated main menu](docs/menu-animation.gif)
-![Laboratory run](docs/gameplay.png)
-![The Stash](docs/shop.png)
+* **On its own:** Jetpack Joyride is too big to fit next to NumPlay. Installing it from the NumWorks website swaps out NumPlay and the other apps, and installing NumPlay again swaps it back out.
+* **The first year's game:** the numbers are those of versions 1.1 and 1.3.5, with the five vehicles of the first release. Mr. Cuddles and the later vehicles aren't here.
+* **Left out:** The Stash (outfits, jetpacks, gadgets and upgrades), missions, coin purchases and ads, and music and sound (the calculator has no speaker). Coins add up on the title.
+* **One lab:** one picture of the lab is drawn, not all of the game's rooms.
-## Play
+## Credits
-Install standalone `JetpackJoyride.nwa` with a compatible NumWorks external-app
-installer, then open Jetpack Joyride from the calculator's Home menu. Build and
-install it separately from the combined NumPlay launcher. A module build is
-provided for later integration.
+Inspired by [Jetpack Joyride](https://www.halfbrick.com/games/jetpack-joyride) by [Halfbrick](https://www.halfbrick.com), not affiliated with them. Go play the original: it's free on iOS and Android, with the Stash, missions and much more.
-| Key | Action |
-| --- | --- |
-| Hold OK / EXE / Up | Thrust upward |
-| Release | Fall; no fuel limit |
-| Back | Pause, or return in menus |
-| Home / On-Off | Save and exit |
-| Arrows, then OK / EXE | Select a menu entry |
-
-The main menu uses the original silver/gold wordmarks, character artwork,
-a slowly scrolling laboratory and large industrial buttons. **Play/Resume**,
-**The Stash** and **How to Play** are the three entries. The credit remains
-**by Bobydeluxe**. The guide, shop, pause, restart, purchase and result screens
-share the new steel/navy/gold design, with all text in English.
-
-During play, Barry runs or flies with the original head/body animation frames
-and a machine-gun jetpack. The supplied laboratory wall and floor scroll past
-background scientists, spinning coins, electric zappers, missiles and shields.
-Rotating zappers use matching electric colours and the original endpoint
-sprites. The compact HUD shows meters, run coins, pause bars and an equipped
-shield. Original images are resized and palette-adapted to the 320x240 display.
-
-Keep changing altitude. Laser groups include a low/high/low slalom, a narrow
-gate followed by a middle beam, a staircase, vertically offset gates and paired
-rotating beams with floor/ceiling bars. The opening weave blocks floor, ceiling
-and centre camping. Static columns are 260 pixels apart, rotating columns 300.
-Every fifth group is a missile: its warning follows your altitude, locks, then
-fires. Move after the lock. Shields absorb one hit and do not stack.
-
-Collected coins enter a persistent wallet immediately. **The Stash** previews,
-buys and equips permanent outfits: Classic is free, Arctic costs 50 coins,
-Rose 120 and Lime 200. Purchases require confirmation; owned outfits can be
-re-equipped for free. Outfits only change appearance. Existing purchases and
-wallet balances are retained.
-
-Distance determines the record. Speed increases from 2.25 to 4.5 pixels per
-16 ms simulation tick. Rotating beams complete a revolution in 128 ticks,
-with both directions and varied initial phases. Their collider follows the
-finite beam, so empty corners are safe. Flights end at 1,000,000 meters to
-keep counters bounded. Physics and obstacle generation are unchanged by the
-artwork revision.
-
-Pausing freezes the simulation; resuming waits for a fresh launch press.
-Restarting asks before replacing a live flight. The checked 260-byte JJN2 save
-preserves the exact world, random state, obstacle phases, records, wallet and
-outfits. JJN1 saves still import their world and lifetime coins. Full-storage
-recovery offers retry, return, or explicit exit without saving. Other
-calculator records are preserved.
-
-## Build
-
-Requires ARM GCC with newlib, Python 3 and nwlink 1.0.0. The portable builder
-also uses pyelftools. Pillow is needed only for asset regeneration and
-screenshot/ARM tests, not the ordinary ARM build.
-
-```sh
-make build module check
-make test
-python tests/arm.py --nwlink nwlink
-python tests/menu.py --nwlink nwlink
-
-# Optional portable build, including Windows without Make:
-python tools/build.py --toolchain /path/to/arm/bin --nwlink /path/to/nwlink/bin/nwlink
-
-# Optional offline sprite/icon regeneration:
-python tools/assets.py
-python tools/assets.py --check
-```
-
-Generated sprites live in `src/assets.h`. The source manifest records original
-filenames and hashes. The game-local icon/ELF packer verifies identical release/debug
-installed bytes on four target profiles. Native tests create ARM fixtures in
-`output/`; the ARM suite uses the unstripped debug NWA.
-
-| Resource | Bytes |
-| --- | ---: |
-| Downloadable NWA | 57,432 |
-| Installed code/assets | 49,732 |
-| Static RAM | 5,857 |
-| Deepest observed ARM stack | 436 |
-| Save payload / with record overhead | 260 / 281 |
-| Compressed launcher icon | 1,559 |
-
-The artwork increases flash storage compared with the preceding procedural
-version (20,008 downloadable / 13,804 installed bytes). Static RAM and save size
-are unchanged. The device stores only the packed sprites it uses; the original
-archive and source PNGs are not installed on the calculator.
-
-One 320x8 RGB565 strip uses 5,120 bytes. Row-indexed RLE, packed 4-bit literals
-and shared outfit palettes avoid full-screen textures in RAM, a PNG decoder,
-heap allocations and texture caches. The laboratory repeats one small tile at
-2x scale. Fixed-point physics uses four hazard slots and eighteen pickup slots.
-
-Simulation runs at 62.5 Hz and drawing at up to 31.25 Hz. The title's independent
-80 ms cosmetic clock never advances the saved simulation. Static menus push
-no pixels when unchanged. All tested ARM scenes stay within the 32 ms drawing
-budget; measured maximum is 12 ms. These are emulator measurements; physical
-calculator display timing remains to be checked. See [validation](VALIDATION.md).
+* The numbers come from the game's own files (its settings, level pacing, zapper, laser, missile, coin, vehicle and slot machine data), read by [tools/data.py](tools/data.py) into [src/data.h](src/data.h).
+* The pictures are Halfbrick's: from archive.org's [Jetpack Joyride Facebook assets](https://archive.org/details/jetpack-joyride-assets), and from the game's Android package for the Lil' Stomper, the Bad As Hog, the spin token, the distance font (New Athletic M54) and the Final Spin's prizes, packed by [tools/art.py](tools/art.py) into [src/art.h](src/art.h).
+* Brought to NumPlay by **[Bobydeluxe](https://github.com/Bobydeluxe)**, who chose the Facebook assets.
+
+Made by Mason Chen as part of NumPlay.
+
+## License
+
+The game's code is licensed under the GNU General Public License v3.0: see the `LICENSE` file at the root of the repository. The pictures and the game's data are Halfbrick's and keep their own terms (see Credits).
diff --git a/games/jetpackjoyride/VALIDATION.md b/games/jetpackjoyride/VALIDATION.md
deleted file mode 100644
index cbe27546..00000000
--- a/games/jetpackjoyride/VALIDATION.md
+++ /dev/null
@@ -1,114 +0,0 @@
-# Local validation - 20 October 2026
-
-Standalone Jetpack Joyride with the revised artwork/interface. Publication
-changes are limited to this game and its link/credit in the root README.
-
-## Artwork and interface
-
-Forty packed sprites/textures are generated offline from the supplied Halfbrick
-archive: Barry head/body frames, machine-gun jetpack, title wordmarks/character,
-laboratory wall/floor, scientists, coins, electricity, caps, missile, muzzle
-flash, warning and shield. Source filenames/hashes and rights are recorded in
-`assets/source-manifest.json` and `assets/README.md`.
-
-The lab wall stops at the physical floor. Barry and the background scientists
-stand above that floor, and the foreground rail covers art below it. The HUD
-covers all its first three strips so moving sprites cannot leave stale pixels
-at its lower edge. The title's original wordmarks, character, slow laboratory
-scroll and large gold/steel buttons replace the previous console. The Stash,
-guide, ready, pause, restart, purchase, result and storage-error screens use
-the new interface. English text, by Bobydeluxe credit and all controls remain.
-
-The asset generator verifies the original PNG hashes and round-trips every
-encoded row, checking offsets and palette indices. `tools/assets.py --check`
-passes, verifying byte-identical header, resource report and launcher icon.
-Normal builds use the generated header and do not require Pillow.
-
-Small palettes use packed 4-bit literal indices; other sprites use 8-bit
-indices. Repeated colours/transparency use RLE packets. Row offsets let the
-renderer read only the current eight-pixel strip. The wall and floor repeat
-small 2x tiles. Outfits share sprite indices with four small suit palettes.
-No heap allocation, PNG decoder, full-screen buffer, decompressed texture
-cache or additional static RAM was introduced.
-
-## Build and resources
-
-ARM GCC 15.2.1, nwlink 1.0.0, C11, -Os, LTO, warnings as errors. Standalone and
-module builds pass. Release/debug installed bytes match on N0110, N0115/custom
-RAM, N0120 and Upsilon. A game-local lossless icon/ELF packer is included.
-
-| Resource | Bytes |
-| --- | ---: |
-| Downloadable NWA | 57,432 |
-| Installed code/assets, all profiles | 49,732 |
-| Static RAM, all profiles | 5,857 |
-| Observed deepest ARM stack | 436 |
-| Save payload / with record overhead | 260 / 281 |
-| Packed launcher icon | 1,559 |
-| Encoded sprite payload, palettes and row offsets | 33,954 |
-
-The preceding procedural build was 20,008 download bytes / 13,804 installed.
-Original artwork increases flash use, while static RAM and saves are unchanged.
-Packed 4-bit literals and reduced palettes cut the first sprite prototype from
-64,044 to 57,432 download bytes. Original source PNGs are not installed on the
-calculator. Rendering still uses one 5,120-byte strip and fixed object pools.
-
-## Native regression suite
-
-TinyCC compiled and executed the final native suite; ARM GCC checked its source
-with -Wall -Wextra -Werror. Results:
-
-- 80/80 controller seeds reached 3,000 meters, covering 692,000 simulation ticks,
- all five hazard types, shields and four simultaneous hazards.
-- Another 200,000 irregular-input ticks passed game-state validation.
-- Floor, ceiling, centre-hovering and shielded-floor camping all collided by
- 45 / 71 / 45 / 98 meters across 200 seeds per strategy.
-- Rotating beam tests cover all 128 phase/direction values, finite segment
- collisions, safe empty corners, shield protection and phase save round trips.
-- Shop tests verify exact 50/120/200 prices, permanent ownership, free
- re-equipping, rejected insufficient funds and identical outfit physics.
-- JJN1 migration, exact JJN2 round trips, one-bit corruption of each save byte,
- invalid fields and 1,000-tick restored/uninterrupted equivalence pass.
-- Every view and selection, 240 boundary/exhaust frames, 128 rotating-beam
- frames and 96 title-animation steps match full redraws pixel for pixel.
- Unchanged frames push no pixels. Push bounds and the 2,560-pixel strip
- capacity are asserted by the display callback.
-- Animated menu renders leave simulation and statistics byte-identical.
-
-Physics, generation, pricing, controls, save layout and persistence code were
-not changed by the artwork revision.
-
-## Compiled ARM application
-
-The full app suite passes on N0110/Epsilon (148,928 bytes RAM allowance),
-N0115/custom RAM (133,652), N0120/Epsilon (153,676) and Upsilon (107,674).
-Held-key launch protection, pause, cancelled restart, resume, exact saved-world
-restoration, Home/On-Off exits and preservation of unrelated records pass.
-RAM cleanup, Home unlocking and firmware-RAM integrity are checked.
-
-Shop navigation cancels/buys with real keyboard events, equips owned items,
-rejects insufficient funds and preserves exact expected balances/ownership.
-Legacy save import, result/restart and full-storage retry/return/explicit-exit
-scenarios also pass without damaging existing records.
-
-A live keyboard run reaches 986 meters, clears 32 hazards and collects 80 coins.
-It includes rotating lasers and every hazard type. The crowded scene and the
-four-rotor stress scene pass. All these new-artwork scenarios peak at 12 ms
-per draw, with no draw over 32 ms; deepest observed stack is 436 bytes.
-
-The final change makes the title background scroll every cosmetic-clock step.
-Its focused ARM suite passes again on all four profiles: 16 distinct snapshots,
-unchanged zero-initialized simulation, preserved sentinel storage and clean
-Home exit. Title draws peak at 12 ms and stack at 412 bytes. The final native
-suite was repeated after this clock-only adjustment. Gameplay screens/code
-are unchanged from the preceding full ARM-suite run.
-
-Screenshots and the animated title GIF in `docs/` come from the actual compiled
-ARM app. Emulator output/reports remain in ignored `output/`. Physical-device
-display timing and feel remain to be checked; emulator timing is not a physical
-calculator performance claim.
-
-The isolated publication build is byte-identical to the validated local app.
-Native, lossless-packing, asset-regeneration, four-profile ARM gameplay and
-four-profile animated-menu suites pass from the publication snapshot using
-the upstream repository helpers.
diff --git a/games/jetpackjoyride/assets/README.md b/games/jetpackjoyride/assets/README.md
deleted file mode 100644
index f8396b1a..00000000
--- a/games/jetpackjoyride/assets/README.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# Artwork provenance and packing
-
-The supplied [Jetpack Joyride Facebook assets archive](https://archive.org/download/jetpack-joyride-assets)
-identifies **Halfbrick** as creator. Its `jetpack joyride images.rar` contains
-the source PNGs used here. `source-manifest.json` records each original filename
-and SHA-256, alongside its descriptive local filename in `source/`.
-
-These are original game assets adapted for this unofficial NumWorks version:
-Barry's separate head/body animations, machine-gun jetpack, title wordmarks,
-title character, laboratory wall and floor, scientists, spinning coins,
-electric beams, caps, missiles, muzzle flashes, warning and shield artwork.
-The outfits recolour Barry's suit while retaining the original skin/hair.
-The rotating beam uses the same electric colours and original endpoint sprites.
-
-Artwork belongs to Halfbrick and retains its original rights. The archive does
-not provide a separate redistribution licence; inclusion here does not place
-these images under the GPL licence used for this implementation's code.
-This fan adaptation is not affiliated with or endorsed by Halfbrick.
-
-`python tools/assets.py` runs offline with Pillow and recreates `src/assets.h`,
-`src/icon.png` and `assets/packed.json`. `--check` verifies those outputs without
-writing. Normal ARM builds use the generated header and do not need Pillow.
-
-Sprites are reduced to their display size and indexed palettes. Literal packets
-use packed 4-bit indices where possible, with 8-bit indices for larger palettes.
-Repeated colours and transparent spans use run-length packets. Every row has an
-offset, allowing the renderer to decode only the current eight-pixel screen
-strip. The generator round-trips every encoded row and validates all palette
-indices and offsets. There is no heap allocation, texture-sized RAM buffer or
-PNG decoder on the calculator. One small laboratory tile repeats at 2x scale;
-it does not store multiple full-screen backgrounds.
diff --git a/games/jetpackjoyride/assets/packed.json b/games/jetpackjoyride/assets/packed.json
deleted file mode 100644
index 8a639b1a..00000000
--- a/games/jetpackjoyride/assets/packed.json
+++ /dev/null
@@ -1,243 +0,0 @@
-{
- "lab": {
- "width": 128,
- "height": 96,
- "bits": 8,
- "bytes": 6068
- },
- "floor": {
- "width": 128,
- "height": 12,
- "bits": 4,
- "bytes": 329
- },
- "jetpack_word": {
- "width": 205,
- "height": 59,
- "bits": 4,
- "bytes": 4979
- },
- "joyride_word": {
- "width": 210,
- "height": 55,
- "bits": 4,
- "bytes": 5046
- },
- "hero": {
- "width": 72,
- "height": 104,
- "bits": 8,
- "bytes": 4338
- },
- "barry_0": {
- "width": 28,
- "height": 40,
- "bits": 8,
- "bytes": 578
- },
- "barry_1": {
- "width": 28,
- "height": 40,
- "bits": 8,
- "bytes": 573
- },
- "barry_2": {
- "width": 28,
- "height": 40,
- "bits": 8,
- "bytes": 573
- },
- "barry_3": {
- "width": 28,
- "height": 40,
- "bits": 8,
- "bytes": 571
- },
- "barry_4": {
- "width": 28,
- "height": 40,
- "bits": 8,
- "bytes": 568
- },
- "barry_5": {
- "width": 28,
- "height": 40,
- "bits": 8,
- "bytes": 575
- },
- "barry_6": {
- "width": 28,
- "height": 40,
- "bits": 8,
- "bytes": 565
- },
- "barry_7": {
- "width": 28,
- "height": 40,
- "bits": 8,
- "bytes": 563
- },
- "coin_0": {
- "width": 11,
- "height": 11,
- "bits": 4,
- "bytes": 138
- },
- "coin_1": {
- "width": 11,
- "height": 11,
- "bits": 4,
- "bytes": 134
- },
- "coin_2": {
- "width": 11,
- "height": 11,
- "bits": 4,
- "bytes": 138
- },
- "coin_3": {
- "width": 11,
- "height": 11,
- "bits": 4,
- "bytes": 143
- },
- "coin_4": {
- "width": 11,
- "height": 11,
- "bits": 4,
- "bytes": 150
- },
- "coin_5": {
- "width": 11,
- "height": 11,
- "bits": 4,
- "bytes": 139
- },
- "coin_6": {
- "width": 11,
- "height": 11,
- "bits": 4,
- "bytes": 138
- },
- "coin_7": {
- "width": 11,
- "height": 11,
- "bits": 4,
- "bytes": 136
- },
- "shield": {
- "width": 18,
- "height": 18,
- "bits": 8,
- "bytes": 332
- },
- "missile": {
- "width": 28,
- "height": 23,
- "bits": 8,
- "bytes": 398
- },
- "zapper_cap": {
- "width": 15,
- "height": 15,
- "bits": 8,
- "bytes": 225
- },
- "beam_h_0": {
- "width": 58,
- "height": 10,
- "bits": 4,
- "bytes": 285
- },
- "beam_v_0": {
- "width": 10,
- "height": 70,
- "bits": 4,
- "bytes": 613
- },
- "beam_c_0": {
- "width": 10,
- "height": 100,
- "bits": 4,
- "bytes": 864
- },
- "beam_h_1": {
- "width": 58,
- "height": 10,
- "bits": 4,
- "bytes": 246
- },
- "beam_v_1": {
- "width": 10,
- "height": 70,
- "bits": 4,
- "bytes": 560
- },
- "beam_c_1": {
- "width": 10,
- "height": 100,
- "bits": 4,
- "bytes": 789
- },
- "beam_h_2": {
- "width": 58,
- "height": 10,
- "bits": 4,
- "bytes": 252
- },
- "beam_v_2": {
- "width": 10,
- "height": 70,
- "bits": 4,
- "bytes": 635
- },
- "beam_c_2": {
- "width": 10,
- "height": 100,
- "bits": 4,
- "bytes": 900
- },
- "flash_0": {
- "width": 14,
- "height": 16,
- "bits": 4,
- "bytes": 156
- },
- "flash_1": {
- "width": 14,
- "height": 16,
- "bits": 4,
- "bytes": 185
- },
- "scientist_0": {
- "width": 17,
- "height": 21,
- "bits": 4,
- "bytes": 170
- },
- "scientist_1": {
- "width": 17,
- "height": 21,
- "bits": 4,
- "bytes": 172
- },
- "scientist_2": {
- "width": 17,
- "height": 21,
- "bits": 4,
- "bytes": 167
- },
- "scientist_3": {
- "width": 17,
- "height": 21,
- "bits": 4,
- "bytes": 173
- },
- "warning": {
- "width": 18,
- "height": 18,
- "bits": 4,
- "bytes": 134
- },
- "total_encoded_bytes": 33954
-}
diff --git a/games/jetpackjoyride/assets/source-manifest.json b/games/jetpackjoyride/assets/source-manifest.json
deleted file mode 100644
index 8df5c73c..00000000
--- a/games/jetpackjoyride/assets/source-manifest.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "source": "https://archive.org/download/jetpack-joyride-assets",
- "archive": "jetpack joyride images.rar",
- "creator": "Halfbrick",
- "files": {
- "laboratory": {
- "archive_file": "1a3e77c5-b730-4ae6-9506-35e2644094c2.png",
- "sha256": "f23ee6f646df07467b108ab446b3fbf881bbf20ce19645bac433c4f55ee7dca4"
- },
- "jetpack_word": {
- "archive_file": "ad9d62ec-8e4e-416e-826e-f577fe609103.png",
- "sha256": "25cd6dedf1c18fe16b9e4ac0d1e8bf8c91028652863aaae8a39555131e8e269b"
- },
- "joyride_word": {
- "archive_file": "4f8632f9-cd71-4b2f-898a-2f47c0344b7f.png",
- "sha256": "9bae8136eeb41c10b1a7d9ee83f8e1e21ef1244ae897759d97880effbd5e1921"
- },
- "barry_hero": {
- "archive_file": "ee031bfe-32a8-487d-9f68-f0c66a3acf55.png",
- "sha256": "bd72558eb01bb53cc22b488d30780e28850209e910bef94720503ccdad0d4c34"
- },
- "barry_body": {
- "archive_file": "21420928-1f48-42b3-af14-a9d19b8d8020.png",
- "sha256": "162c5f7dfc67a8755367d0b0a37fdf2d5b1b4c8f4511fa1be5dd5f4630d2c844"
- },
- "barry_head": {
- "archive_file": "c26be092-2285-4590-b144-df89a4dbf0c0.png",
- "sha256": "fcf79f3e8913fc0640ce122c19ed710ea22d58ecd7a19f4bd394260c2f0bc356"
- },
- "machinegun": {
- "archive_file": "00c9a12f-2d9f-4bf9-ba50-e6a8e2858b52.png",
- "sha256": "4dc03708d7a9465a9adf6fdcee414161e094d76fa41e4488ccae08cba193578e"
- },
- "coins": {
- "archive_file": "5f7ee621-7ab3-41ef-bbd7-db48931e8f42.png",
- "sha256": "93b62a15ad4bda739aa80cbc48c3ad61f6367b47c7bb8902b5cc7f83e034109a"
- },
- "shield": {
- "archive_file": "26d5bd62-7f80-4226-ba11-432368e112cf.png",
- "sha256": "01638947eb71019753d609ff5f1d3a28a661d1ad6737b930bf54e1ea70c0d370"
- },
- "missiles": {
- "archive_file": "970298ce-a6e3-411a-9ab3-5f6d62ad9f9e.png",
- "sha256": "69b569f095dc424e5cee0369b5628f1c12ea3f6d96e5cf5ebc413fadeb1f8bc9"
- },
- "zapper_caps": {
- "archive_file": "4a2e43c1-5af8-4c01-8e71-e9e2e7815986.png",
- "sha256": "ffe6915a3bdf72eba728c89651361da97b49c2d50c2c8c4f7bf001269882552c"
- },
- "electricity": {
- "archive_file": "6f62ade3-a4ea-457d-8281-4c836e647f7f.png",
- "sha256": "95062befaf56dd49235dd7a985fcfb27cd9a5414165a259575308556a1009645"
- },
- "muzzle_flash": {
- "archive_file": "0ae2fd6b-7484-4bd8-9184-f3bf9fac5d08.png",
- "sha256": "baa348db9cfa40e11d996d5a6f274627e64cb43477ab817fd1e1bdc9cdd8d4a2"
- },
- "scientists": {
- "archive_file": "6029b5c9-ee09-4747-90ea-2e14087ab8c7 (1).png",
- "sha256": "55917d8ca84c8ae397b9be84f6cc602bbf7c5b60766bf4f6e675364eb7cc2b68"
- },
- "warnings": {
- "archive_file": "89bfda72-a412-49ec-b87f-a4b09ff275f7.png",
- "sha256": "de1eab0412d80479fc96b6fe2103ffad96ee8b5921deccb7dc088f9ffbb14559"
- }
- }
-}
diff --git a/games/jetpackjoyride/assets/source/barry_body.png b/games/jetpackjoyride/assets/source/barry_body.png
deleted file mode 100644
index 74757f24..00000000
Binary files a/games/jetpackjoyride/assets/source/barry_body.png and /dev/null differ
diff --git a/games/jetpackjoyride/assets/source/barry_head.png b/games/jetpackjoyride/assets/source/barry_head.png
deleted file mode 100644
index c8a0868e..00000000
Binary files a/games/jetpackjoyride/assets/source/barry_head.png and /dev/null differ
diff --git a/games/jetpackjoyride/assets/source/barry_hero.png b/games/jetpackjoyride/assets/source/barry_hero.png
deleted file mode 100644
index 08c2d651..00000000
Binary files a/games/jetpackjoyride/assets/source/barry_hero.png and /dev/null differ
diff --git a/games/jetpackjoyride/assets/source/coins.png b/games/jetpackjoyride/assets/source/coins.png
deleted file mode 100644
index e993260a..00000000
Binary files a/games/jetpackjoyride/assets/source/coins.png and /dev/null differ
diff --git a/games/jetpackjoyride/assets/source/electricity.png b/games/jetpackjoyride/assets/source/electricity.png
deleted file mode 100644
index 0c405e7c..00000000
Binary files a/games/jetpackjoyride/assets/source/electricity.png and /dev/null differ
diff --git a/games/jetpackjoyride/assets/source/jetpack_word.png b/games/jetpackjoyride/assets/source/jetpack_word.png
deleted file mode 100644
index 21b9418e..00000000
Binary files a/games/jetpackjoyride/assets/source/jetpack_word.png and /dev/null differ
diff --git a/games/jetpackjoyride/assets/source/joyride_word.png b/games/jetpackjoyride/assets/source/joyride_word.png
deleted file mode 100644
index 80a5a7cc..00000000
Binary files a/games/jetpackjoyride/assets/source/joyride_word.png and /dev/null differ
diff --git a/games/jetpackjoyride/assets/source/laboratory.png b/games/jetpackjoyride/assets/source/laboratory.png
deleted file mode 100644
index cc14cb00..00000000
Binary files a/games/jetpackjoyride/assets/source/laboratory.png and /dev/null differ
diff --git a/games/jetpackjoyride/assets/source/machinegun.png b/games/jetpackjoyride/assets/source/machinegun.png
deleted file mode 100644
index 15bc92fa..00000000
Binary files a/games/jetpackjoyride/assets/source/machinegun.png and /dev/null differ
diff --git a/games/jetpackjoyride/assets/source/missiles.png b/games/jetpackjoyride/assets/source/missiles.png
deleted file mode 100644
index 907e8e07..00000000
Binary files a/games/jetpackjoyride/assets/source/missiles.png and /dev/null differ
diff --git a/games/jetpackjoyride/assets/source/muzzle_flash.png b/games/jetpackjoyride/assets/source/muzzle_flash.png
deleted file mode 100644
index 0db3ca73..00000000
Binary files a/games/jetpackjoyride/assets/source/muzzle_flash.png and /dev/null differ
diff --git a/games/jetpackjoyride/assets/source/scientists.png b/games/jetpackjoyride/assets/source/scientists.png
deleted file mode 100644
index c4d7ebb2..00000000
Binary files a/games/jetpackjoyride/assets/source/scientists.png and /dev/null differ
diff --git a/games/jetpackjoyride/assets/source/shield.png b/games/jetpackjoyride/assets/source/shield.png
deleted file mode 100644
index aaf7e69e..00000000
Binary files a/games/jetpackjoyride/assets/source/shield.png and /dev/null differ
diff --git a/games/jetpackjoyride/assets/source/warnings.png b/games/jetpackjoyride/assets/source/warnings.png
deleted file mode 100644
index 6494c2d2..00000000
Binary files a/games/jetpackjoyride/assets/source/warnings.png and /dev/null differ
diff --git a/games/jetpackjoyride/assets/source/zapper_caps.png b/games/jetpackjoyride/assets/source/zapper_caps.png
deleted file mode 100644
index b3c5d7a5..00000000
Binary files a/games/jetpackjoyride/assets/source/zapper_caps.png and /dev/null differ
diff --git a/games/jetpackjoyride/docs/buy.png b/games/jetpackjoyride/docs/buy.png
deleted file mode 100644
index 4d819c59..00000000
Binary files a/games/jetpackjoyride/docs/buy.png and /dev/null differ
diff --git a/games/jetpackjoyride/docs/gameplay.png b/games/jetpackjoyride/docs/gameplay.png
deleted file mode 100644
index 170d88fe..00000000
Binary files a/games/jetpackjoyride/docs/gameplay.png and /dev/null differ
diff --git a/games/jetpackjoyride/docs/guide.png b/games/jetpackjoyride/docs/guide.png
deleted file mode 100644
index 4732ed1c..00000000
Binary files a/games/jetpackjoyride/docs/guide.png and /dev/null differ
diff --git a/games/jetpackjoyride/docs/menu-animation.gif b/games/jetpackjoyride/docs/menu-animation.gif
deleted file mode 100644
index 37fda03f..00000000
Binary files a/games/jetpackjoyride/docs/menu-animation.gif and /dev/null differ
diff --git a/games/jetpackjoyride/docs/missile.png b/games/jetpackjoyride/docs/missile.png
new file mode 100644
index 00000000..1649ee57
Binary files /dev/null and b/games/jetpackjoyride/docs/missile.png differ
diff --git a/games/jetpackjoyride/docs/result.png b/games/jetpackjoyride/docs/result.png
deleted file mode 100644
index d06c27be..00000000
Binary files a/games/jetpackjoyride/docs/result.png and /dev/null differ
diff --git a/games/jetpackjoyride/docs/rotors-turned.png b/games/jetpackjoyride/docs/rotors-turned.png
deleted file mode 100644
index 467995e1..00000000
Binary files a/games/jetpackjoyride/docs/rotors-turned.png and /dev/null differ
diff --git a/games/jetpackjoyride/docs/rotors.png b/games/jetpackjoyride/docs/rotors.png
deleted file mode 100644
index bac38930..00000000
Binary files a/games/jetpackjoyride/docs/rotors.png and /dev/null differ
diff --git a/games/jetpackjoyride/docs/shop.png b/games/jetpackjoyride/docs/shop.png
deleted file mode 100644
index c39b9406..00000000
Binary files a/games/jetpackjoyride/docs/shop.png and /dev/null differ
diff --git a/games/jetpackjoyride/docs/shot.png b/games/jetpackjoyride/docs/shot.png
new file mode 100644
index 00000000..5b3a94bd
Binary files /dev/null and b/games/jetpackjoyride/docs/shot.png differ
diff --git a/games/jetpackjoyride/docs/spin.png b/games/jetpackjoyride/docs/spin.png
new file mode 100644
index 00000000..c35451fd
Binary files /dev/null and b/games/jetpackjoyride/docs/spin.png differ
diff --git a/games/jetpackjoyride/docs/stomper.png b/games/jetpackjoyride/docs/stomper.png
new file mode 100644
index 00000000..80848a9e
Binary files /dev/null and b/games/jetpackjoyride/docs/stomper.png differ
diff --git a/games/jetpackjoyride/docs/teleporter.png b/games/jetpackjoyride/docs/teleporter.png
new file mode 100644
index 00000000..cfefa69a
Binary files /dev/null and b/games/jetpackjoyride/docs/teleporter.png differ
diff --git a/games/jetpackjoyride/docs/title.png b/games/jetpackjoyride/docs/title.png
index 275875ab..0f06f1c0 100644
Binary files a/games/jetpackjoyride/docs/title.png and b/games/jetpackjoyride/docs/title.png differ
diff --git a/games/jetpackjoyride/src/art.h b/games/jetpackjoyride/src/art.h
new file mode 100644
index 00000000..b8ca59df
--- /dev/null
+++ b/games/jetpackjoyride/src/art.h
@@ -0,0 +1,3713 @@
+/* Generated by tools/art.py. The pictures are Halfbrick's (Jetpack Joyride): archive.org's Facebook
+ * assets, and the 1.3.5 Android package for the Lil' Stomper, the Bad As Hog, the spin token, the HUD font and
+ * the Final Spin. See the README. */
+#ifndef JJ_ART_H
+#define JJ_ART_H
+#include <stdint.h>
+typedef struct { uint16_t w, h; int16_t x, y; uint32_t data; } jj_frame;
+typedef struct { const uint16_t *pal; const uint8_t *data; const jj_frame *f; uint8_t n, bits; } jj_sheet;
+static const uint16_t pic_lab_pal[] = {0,57116,50778,46585,44471,40246,40180,31795,31761,29682,29616,25456,25422,23343,21231,19182,19150,19150,19150,19118,21165,19050,17070,14957,14892,12844,12812,12780,10699,10667,12745,10666,8586,8553,8554,8553,6473,6473,6473,6441,6441,6441,10600,8519,6440,6440,6441,6441,6441,6440,6440,6408,4360,6407,6373,4294,4260,2180,33,0,0,0,0,0};
+static const uint8_t pic_lab_data[] = {
+ 226,1,251,1,15,2,54,2,92,2,190,2,211,2,235,2,1,3,33,3,58,3,79,3,99,3,44,4,66,4,148,4,
+ 230,4,236,4,87,5,124,5,247,5,49,6,142,6,16,7,128,7,223,7,108,8,32,9,196,9,76,10,213,10,88,11,
+ 190,11,42,12,129,12,239,12,77,13,250,13,155,14,229,14,46,15,122,15,200,15,252,15,58,16,131,16,202,16,20,17,
+ 117,17,246,17,37,18,95,18,177,18,8,19,89,19,165,19,240,19,55,20,127,20,188,20,245,20,46,21,111,21,171,21,
+ 238,21,53,22,122,22,196,22,7,23,72,23,130,23,193,23,2,24,62,24,126,24,195,24,1,25,63,25,129,25,189,25,
+ 248,25,59,26,196,26,253,26,63,27,126,27,187,27,254,27,63,28,136,28,209,28,30,29,102,29,175,29,255,29,81,30,
+ 184,30,37,31,153,31,5,32,106,32,174,32,243,32,80,33,167,33,5,34,107,34,216,34,81,35,205,35,88,36,18,37,
+ 158,37,29,38,161,38,48,39,203,39,99,40,232,40,175,41,99,42,2,43,161,43,53,44,186,44,88,45,242,45,175,46,
+ 97,47,6,48,181,48,110,49,44,50,194,50,101,51,8,52,173,52,83,53,255,53,166,54,79,55,1,56,191,56,118,57,
+ 37,58,213,58,140,59,81,60,2,61,179,61,85,62,1,63,167,63,74,64,7,65,171,65,95,66,21,67,207,67,146,68,
+ 73,69,10,70,217,70,198,71,169,72,83,73,3,74,187,74,92,75,230,75,88,76,179,76,22,77,108,77,147,77,187,77,
+ 216,77,17,78,47,78,95,78,127,78,159,78,140,79,178,79,224,79,12,80,97,80,138,80,197,80,245,80,15,81,45,81,
+ 73,81,99,81,129,81,189,81,209,81,254,81,21,82,45,82,69,83,75,83,81,83,87,83,93,83,168,83,242,83,119,84,
+ 255,84,144,85,26,86,175,86,56,87,193,87,73,88,219,88,101,89,244,89,118,90,243,90,62,91,135,91,185,91,191,91,
+ 197,91,203,91,209,91,215,91,221,91,227,91,233,91,239,91,245,91,251,91,1,92,7,92,13,92,19,92,25,92,31,92,
+ 37,92,136,7,2,9,10,6,210,7,1,10,6,210,7,1,9,6,209,7,3,9,9,6,9,200,7,136,9,1,10,7,
+ 211,9,1,7,7,210,9,0,7,211,9,0,7,202,9,135,11,0,16,167,11,1,13,13,169,11,0,14,167,11,1,13,
+ 13,169,11,0,14,167,11,1,13,13,169,11,1,14,10,166,11,1,13,13,162,11,136,7,1,9,9,165,7,0,9,171,
+ 7,1,9,9,165,7,0,9,171,7,0,9,166,7,1,9,9,170,7,0,9,166,7,1,9,9,162,7,130,13,1,11,
+ 13,130,11,0,13,132,11,0,13,132,11,130,13,131,11,0,13,136,11,0,13,130,11,11,13,11,11,13,11,11,13,11,
+ 9,11,13,13,206,11,5,13,11,9,11,13,13,206,11,5,13,11,9,11,13,13,206,11,7,13,11,9,11,13,11,13,
+ 13,131,11,9,13,11,13,11,11,13,11,13,11,13,131,11,12,13,11,13,11,11,13,11,13,11,13,11,11,13,174,13,
+ 1,11,9,211,13,0,10,210,13,1,11,9,210,13,1,11,10,164,13,172,14,2,16,13,10,209,14,2,16,13,10,210,
+ 14,1,13,10,210,14,1,11,10,165,14,172,16,1,13,11,210,16,1,13,11,210,16,1,13,11,210,16,1,13,11,166,
+ 16,170,20,2,22,14,11,209,20,5,22,14,11,19,20,19,175,20,0,19,158,20,1,14,11,209,20,2,22,13,11,167,
+ 20,170,20,1,14,11,210,20,2,14,11,19,208,20,2,19,13,11,209,20,2,19,13,11,168,20,170,24,0,20,210,24,
+ 1,26,20,210,24,1,26,20,210,24,1,26,20,169,24,0,52,254,53,0,52,211,53,0,52,201,53,0,52,136,53,0,
+ 52,169,53,3,44,45,44,45,133,44,16,45,44,44,45,44,44,45,44,45,44,45,44,44,45,44,44,45,132,44,0,45,
+ 133,44,2,45,44,45,130,44,130,45,134,44,0,45,135,44,0,45,133,44,2,45,44,45,151,44,0,45,133,44,0,45,
+ 132,44,4,45,44,44,45,45,131,44,6,45,44,45,44,44,45,45,136,44,0,45,137,44,0,45,134,44,2,45,44,45,
+ 133,44,1,45,45,136,44,0,45,133,44,5,45,44,44,45,44,45,130,44,0,45,136,44,0,45,140,44,0,45,137,44,
+ 0,45,133,44,8,45,45,44,45,44,45,44,44,45,132,44,0,45,140,44,0,45,141,44,0,45,131,44,6,45,44,44,
+ 45,44,44,45,132,44,3,45,44,44,45,130,44,130,45,132,44,0,45,130,44,3,45,44,44,45,130,44,4,45,45,44,
+ 44,45,130,44,0,45,134,44,0,45,132,44,211,44,0,36,145,44,133,36,185,44,0,36,165,44,0,36,205,44,0,36,
+ 182,44,134,33,0,34,133,33,0,34,139,33,1,34,34,130,33,0,34,135,33,2,34,33,34,159,33,0,34,141,33,3,
+ 34,33,34,34,133,33,2,34,33,34,138,33,0,34,212,33,1,34,34,138,33,0,34,130,33,0,34,134,33,0,34,195,
+ 33,1,34,34,131,33,2,34,33,34,150,33,0,34,136,33,0,34,130,33,0,32,170,31,3,32,31,31,32,140,31,0,
+ 32,132,31,0,32,160,31,0,32,143,31,1,32,32,150,31,0,32,141,31,0,32,137,31,0,32,133,31,0,32,132,31,
+ 0,32,163,31,0,32,132,31,0,32,162,31,1,32,32,130,31,1,32,32,177,31,0,32,130,31,0,32,131,31,0,32,
+ 134,31,0,32,132,31,255,29,255,29,212,29,255,29,148,29,11,28,29,29,28,29,29,28,28,29,29,28,28,130,29,0,
+ 28,132,29,3,28,29,28,28,134,29,1,28,28,131,29,7,28,29,29,28,28,29,29,28,162,29,2,28,29,28,134,29,
+ 2,28,28,29,130,28,131,29,0,28,130,29,2,28,29,28,132,29,0,28,131,29,2,28,29,28,172,29,7,28,29,29,
+ 28,28,29,29,28,130,29,0,28,130,29,10,28,28,29,29,28,29,29,28,29,28,29,130,28,0,29,202,28,0,29,132,
+ 28,0,29,144,28,0,29,216,28,0,29,162,28,3,29,28,28,29,146,28,0,29,153,28,0,29,188,28,152,27,3,26,
+ 28,28,27,130,28,1,27,28,131,27,10,28,28,27,27,28,27,28,27,28,27,27,133,28,4,27,28,28,27,26,177,27,
+ 11,26,27,28,27,28,28,27,28,27,27,28,28,133,27,6,28,27,27,28,28,27,27,132,28,4,27,28,27,27,28,177,
+ 27,8,26,27,28,27,28,27,28,27,28,131,27,133,28,1,27,28,133,27,1,28,27,130,28,1,27,28,180,27,5,28,
+ 27,28,28,27,27,131,28,0,27,131,28,134,27,132,28,131,27,2,28,27,26,152,27,152,27,1,29,25,156,27,3,28,
+ 25,26,29,177,27,1,28,25,158,27,3,28,23,27,28,175,27,3,29,27,25,28,155,27,3,28,23,29,28,176,27,3,
+ 28,28,23,28,155,27,3,28,25,27,29,139,27,0,28,139,27,152,52,2,55,29,23,154,27,5,28,25,25,55,55,52,
+ 132,53,137,52,135,53,139,52,135,53,132,52,3,53,55,33,23,156,27,2,28,23,33,131,55,131,53,131,52,164,53,5,
+ 52,55,52,25,25,28,153,27,6,28,23,42,55,52,53,53,165,52,0,53,133,52,6,53,52,55,52,27,23,28,153,27,
+ 3,28,25,29,56,141,52,3,53,52,53,53,135,52,2,56,56,55,131,56,9,55,56,55,55,56,55,56,56,55,55,133,
+ 56,6,55,57,53,51,29,23,28,152,27,3,25,25,57,57,177,56,4,57,53,45,32,23,154,27,3,28,23,44,57,130,
+ 56,2,57,56,56,131,57,1,56,56,136,57,5,56,57,56,56,57,56,139,57,132,56,3,57,57,56,56,130,57,4,52,
+ 45,25,25,28,151,27,4,28,23,42,57,55,152,56,0,55,149,56,7,55,55,57,45,45,27,23,28,151,27,8,28,25,
+ 31,57,56,55,55,56,56,143,55,0,56,130,55,1,56,55,1,56,55,148,56,6,57,57,56,53,45,29,23,151,27,5,
+ 25,25,57,57,56,57,151,56,1,55,58,149,56,6,57,57,55,53,51,32,23,153,27,2,23,44,57,140,55,4,56,55,
+ 56,55,56,130,55,18,56,55,55,56,53,58,56,55,56,55,56,55,56,55,56,55,56,55,56,137,55,6,56,57,55,53,
+ 45,25,25,151,27,2,23,42,58,154,57,1,58,56,151,57,4,55,45,51,27,23,151,27,1,23,31,154,57,1,56,57,
+ 0,53,150,52,6,55,57,56,53,51,29,23,147,27,5,26,27,25,25,57,57,154,52,2,45,58,51,149,52,6,55,57,
+ 55,53,45,32,23,151,27,2,23,42,57,153,52,3,38,58,53,47,149,52,6,55,57,55,53,40,25,25,149,27,4,23,
+ 43,58,55,55,153,52,1,58,51,149,52,7,53,55,57,55,45,45,27,23,149,27,3,25,31,57,55,154,52,0,55,2,
+ 53,47,51,141,48,14,51,48,51,51,48,51,48,52,52,57,56,53,52,29,23,147,27,5,25,25,57,57,52,52,133,51,
+ 147,48,2,35,57,44,143,48,3,51,52,51,51,130,52,6,55,57,55,53,45,32,23,149,27,4,23,42,57,52,52,132,
+ 51,146,48,5,51,35,58,53,38,51,144,48,130,51,8,52,52,55,57,55,53,45,25,25,147,27,5,23,42,58,55,52,
+ 52,136,51,0,48,130,51,139,48,2,44,57,36,142,48,134,51,8,52,52,55,57,56,51,51,27,23,147,27,5,23,31,
+ 57,55,52,52,136,51,142,48,2,51,38,53,2,53,47,51,144,48,132,51,11,52,52,56,57,53,51,29,23,27,27,26,
+ 27,134,26,0,27,132,26,6,27,25,25,57,57,52,52,132,51,148,48,3,51,35,57,44,144,48,133,51,11,52,55,57,
+ 55,53,45,32,23,27,27,26,27,132,26,2,27,26,27,130,26,16,27,27,26,26,27,23,42,57,52,52,51,52,51,51,
+ 52,51,51,145,48,5,51,35,58,53,38,51,145,48,131,51,8,52,55,57,55,53,40,25,25,27,131,26,5,27,26,27,
+ 27,26,27,131,26,8,27,26,27,23,42,58,55,52,52,132,51,148,48,2,40,57,36,147,48,131,51,8,52,55,57,56,
+ 51,51,27,23,27,137,26,11,27,26,26,27,26,26,27,23,31,57,55,52,130,51,2,52,51,51,147,48,2,51,38,53,
+ 2,53,38,51,147,48,130,51,11,52,52,56,57,52,52,29,23,27,27,26,27,133,26,133,27,7,25,25,57,57,52,52,
+ 51,51,152,48,3,51,36,57,44,146,48,15,51,51,52,52,51,52,55,57,55,53,45,32,23,27,26,25,141,26,5,27,
+ 23,42,57,52,52,133,51,147,48,5,51,35,57,53,38,51,148,48,18,51,51,52,55,57,55,53,40,25,23,27,26,27,
+ 26,27,26,26,27,27,130,26,9,27,26,27,27,22,42,58,55,52,52,130,51,151,48,2,44,57,36,150,48,10,51,52,
+ 52,55,57,56,51,45,27,23,27,130,26,5,27,26,27,27,26,26,131,27,6,26,27,23,28,57,55,52,131,51,150,48,
+ 2,51,38,53,2,53,38,51,148,48,130,51,7,52,52,56,57,53,52,29,23,141,25,7,23,23,57,56,52,52,51,51,
+ 154,48,2,35,57,44,148,48,11,51,51,52,51,52,55,57,55,53,45,31,23,142,26,5,27,22,42,57,52,52,130,51,
+ 1,52,51,149,48,5,51,35,58,53,38,51,149,48,9,51,51,52,55,57,55,52,40,25,23,139,25,7,23,25,22,42,
+ 58,55,52,52,130,51,152,48,2,44,57,36,151,48,9,51,51,52,55,57,57,52,45,27,23,139,25,7,23,25,23,28,
+ 57,55,52,52,130,51,151,48,2,51,38,53,2,53,38,51,151,48,9,51,52,52,56,57,53,52,31,25,27,137,26,8,
+ 27,28,31,57,56,52,52,51,51,154,48,3,51,35,57,44,149,48,131,51,7,52,52,56,55,53,45,29,22,131,26,3,
+ 25,26,26,25,132,26,5,27,22,42,57,52,52,132,51,150,48,5,51,35,57,53,38,51,151,48,9,51,52,55,57,55,
+ 53,45,26,26,27,137,26,7,28,28,43,57,55,52,52,51,155,48,3,44,57,35,51,152,48,9,51,52,52,57,57,53,
+ 51,28,26,27,137,26,5,28,28,33,57,55,52,130,51,153,48,2,51,38,53,2,53,38,51,149,48,130,51,130,52,4,
+ 56,57,55,53,52,139,53,6,55,58,56,52,52,51,52,130,51,152,48,3,51,35,57,44,147,48,130,51,2,52,51,51,
+ 130,52,6,56,55,45,40,36,23,27,137,25,9,27,23,42,57,52,52,51,52,51,52,131,51,148,48,5,51,35,57,53,
+ 38,51,149,48,131,51,3,52,55,57,55,141,53,5,55,57,57,55,52,52,131,51,153,48,3,44,57,35,51,151,48,130,
+ 51,4,52,52,57,57,55,140,53,3,55,57,57,55,130,52,131,51,151,48,2,51,38,53,1,53,38,152,48,130,51,2,
+ 52,52,55,142,56,3,57,55,52,52,130,51,156,48,2,35,57,44,149,48,130,51,1,52,51,130,52,5,57,56,55,33,
+ 22,26,138,25,1,23,55,130,52,133,51,150,48,4,51,35,57,53,38,153,48,4,51,51,52,55,57,142,56,2,57,52,
+ 52,130,51,156,48,2,44,57,35,155,48,3,51,52,52,56,143,57,4,55,52,52,51,51,155,48,2,51,37,53,1,53,
+ 38,154,48,130,51,3,52,52,55,56,140,55,1,52,52,131,51,155,48,3,51,35,57,44,149,48,12,51,51,52,51,52,
+ 51,52,52,55,57,36,28,22,139,25,1,23,51,130,52,133,51,1,48,51,148,48,4,51,35,57,53,38,154,48,6,51,
+ 51,52,52,55,55,56,139,55,5,52,52,51,51,48,51,156,48,3,44,57,35,51,154,48,3,51,51,52,52,142,55,1,
+ 52,52,131,51,155,48,2,51,38,53,1,51,38,157,48,0,51,143,52,0,51,161,48,2,35,57,44,151,48,12,51,51,
+ 52,51,51,52,55,56,36,29,22,25,23,131,25,8,23,23,25,25,23,25,22,51,52,131,51,1,52,51,153,48,3,34,
+ 57,53,38,156,48,1,51,51,143,52,0,51,160,48,2,44,57,35,158,48,1,51,51,141,52,1,51,51,160,48,1,38,
+ 53,2,53,38,48,139,45,145,48,2,51,48,48,138,51,2,48,51,51,144,48,143,45,4,48,35,57,44,38,139,45,138,
+ 48,1,51,52,130,51,6,52,55,56,36,29,22,25,137,23,4,25,22,51,52,52,132,51,138,48,141,45,4,48,35,57,
+ 53,37,141,45,144,48,2,51,48,48,137,51,2,48,48,51,145,48,142,45,4,38,44,57,35,48,140,45,147,48,1,51,
+ 48,135,51,130,48,0,51,146,48,141,45,2,48,35,53,2,53,38,48,142,45,143,48,141,51,1,48,51,142,48,145,45,
+ 4,48,35,57,44,38,140,45,136,48,12,51,52,51,51,52,51,52,52,56,36,29,22,25,137,23,6,25,22,51,52,51,
+ 51,52,131,51,136,48,142,45,5,48,35,57,53,37,48,142,45,142,48,144,51,141,48,145,45,4,41,44,57,35,48,144,
+ 45,143,48,140,51,143,48,145,45,2,48,38,53,1,51,38,136,48,2,45,48,45,153,48,2,51,51,48,130,51,144,48,
+ 0,45,131,48,0,45,135,48,1,45,45,132,48,5,35,57,44,48,48,45,131,48,3,45,48,45,45,130,48,0,45,136,
+ 48,11,51,52,51,51,52,52,55,56,36,28,22,25,137,23,2,25,22,51,130,52,3,51,51,52,51,144,48,2,45,45,
+ 48,132,45,5,48,34,57,53,37,48,132,45,3,48,48,45,45,132,48,1,45,45,145,48,2,51,48,51,131,48,2,51,
+ 48,51,148,48,0,45,135,48,8,45,45,48,48,45,48,44,57,35,132,48,4,45,48,48,45,45,131,48,0,45,130,48,
+ 0,45,152,48,0,51,148,48,8,45,48,48,45,45,48,45,48,45,131,48,4,45,48,48,35,53,4,53,38,48,45,48,
+ 131,45,0,48,137,45,149,48,0,51,132,48,0,51,140,48,131,45,0,48,132,45,1,48,48,136,45,4,48,35,57,44,
+ 47,137,45,0,48,131,45,134,48,133,51,6,52,55,56,36,28,22,25,137,23,4,25,22,51,52,52,133,51,134,48,1,
+ 45,48,142,45,5,48,34,57,53,37,48,137,45,130,48,131,45,145,48,1,51,51,131,48,3,51,48,48,51,141,48,8,
+ 45,48,45,48,48,45,45,48,48,138,45,4,48,44,57,35,48,138,45,7,48,48,45,45,48,48,45,45,146,48,0,51,
+ 133,48,0,51,141,48,131,45,2,48,45,48,130,45,0,48,131,45,0,48,130,45,3,48,48,37,53,2,53,38,48,137,
+ 45,183,48,141,45,4,48,35,57,44,41,138,45,139,48,10,51,52,51,51,52,52,55,56,36,28,22,138,23,2,25,22,
+ 51,131,52,131,51,138,48,140,45,4,48,34,57,53,37,140,45,180,48,141,45,4,38,44,57,35,48,140,45,181,48,140,
+ 45,2,48,35,53,2,51,38,48,138,45,181,48,142,45,4,48,35,57,44,38,138,45,139,48,131,51,130,52,3,56,35,
+ 28,22,139,23,1,22,51,130,52,3,51,52,51,51,139,48,140,45,4,48,34,57,53,38,140,45,179,48,142,45,4,48,
+ 44,57,35,48,140,45,180,48,141,45,2,48,38,53,2,51,37,48,143,45,172,48,146,45,4,48,35,57,44,38,140,45,
+ 137,48,130,51,130,52,4,55,56,34,28,22,139,23,1,22,51,130,52,4,51,51,52,51,51,136,48,142,45,5,48,34,
+ 57,53,37,48,144,45,170,48,146,45,4,38,44,57,35,48,145,45,171,48,145,45,2,48,37,53,2,51,38,48,142,45,
+ 174,48,145,45,4,48,35,57,44,41,139,45,137,48,3,51,51,52,51,130,52,4,55,56,35,28,19,139,23,1,19,51,
+ 131,52,4,51,52,52,51,51,136,48,141,45,4,48,34,57,53,38,143,45,173,48,145,45,4,48,44,57,35,48,143,45,
+ 174,48,144,45,2,48,35,53,1,53,38,209,48,2,35,57,44,150,48,133,51,5,52,55,56,33,28,19,139,23,3,18,
+ 51,52,52,130,51,2,52,51,51,151,48,4,51,34,57,53,38,208,48,2,44,57,35,209,48,1,38,53,2,51,38,51,
+ 204,48,6,45,48,48,51,35,57,44,150,48,2,51,52,51,131,52,4,55,56,33,28,19,139,23,1,18,51,132,52,131,
+ 51,150,48,5,51,35,57,53,38,51,204,48,6,45,48,48,44,57,35,51,207,48,2,51,38,53,4,51,38,51,52,52,
+ 200,48,9,45,48,52,52,45,48,35,57,44,47,149,48,131,51,130,52,4,55,56,33,27,19,139,23,1,18,51,131,52,
+ 131,51,145,48,1,45,45,132,48,8,35,57,53,38,48,52,52,48,45,198,48,0,45,130,52,3,38,44,57,35,209,48,
+ 1,38,53,6,51,47,45,10,16,52,45,199,48,7,44,10,16,52,48,35,57,44,150,48,132,51,6,52,52,55,56,33,
+ 27,17,139,23,1,19,51,131,52,3,51,52,51,52,152,48,7,35,57,53,37,52,14,11,51,198,48,8,45,52,31,9,
+ 27,52,44,57,35,209,48,1,38,53,5,44,51,53,11,13,53,199,48,8,52,42,11,14,55,48,35,57,44,150,48,3,
+ 51,52,51,51,130,52,4,55,55,33,26,17,139,23,1,19,51,131,52,131,51,151,48,9,51,35,57,53,38,55,14,11,
+ 42,52,197,48,8,38,55,30,9,24,52,36,57,35,208,48,2,51,38,53,6,53,38,57,58,57,55,48,149,51,1,48,
+ 48,175,51,130,57,4,55,48,36,57,44,150,48,1,51,51,132,52,4,55,55,33,26,15,131,23,9,22,22,23,22,23,
+ 23,22,23,19,51,131,52,4,51,52,52,51,51,150,48,9,51,35,57,53,37,56,58,57,57,48,148,51,131,48,146,51,
+ 131,48,149,51,9,48,52,58,57,57,52,44,57,35,51,207,48,2,51,38,53,4,44,34,51,56,55,201,38,7,51,56,
+ 55,38,41,32,57,44,149,48,1,51,52,130,51,130,52,4,55,55,32,26,15,139,22,1,17,51,132,52,1,51,52,130,
+ 51,149,48,8,51,34,57,44,36,48,55,56,48,131,38,5,41,38,41,41,38,38,132,41,130,38,131,41,1,38,41,132,
+ 38,2,41,41,38,134,41,4,38,41,41,38,38,130,41,3,47,38,38,41,131,38,5,41,38,41,41,38,41,130,38,1,
+ 41,38,131,41,10,38,41,38,52,56,52,37,36,57,35,51,207,48,2,51,38,53,0,55,211,53,1,58,44,148,48,131,
+ 51,132,52,4,55,56,32,26,15,139,22,1,17,51,134,52,130,51,149,48,3,51,35,57,55,210,53,2,57,35,51,207,
+ 48,2,51,38,53,0,56,211,54,1,58,36,148,48,0,51,135,52,4,55,56,32,26,15,139,22,1,15,45,133,52,131,
+ 51,149,48,7,51,35,57,54,42,44,42,42,143,44,0,42,184,44,131,42,3,43,57,35,51,207,48,2,51,38,53,4,
+ 44,32,36,50,48,201,34,7,36,50,47,34,35,29,57,44,148,48,130,51,2,52,51,51,130,52,7,55,55,31,25,15,
+ 22,19,19,130,22,7,19,22,22,19,19,22,15,51,132,52,133,51,148,48,8,51,35,57,44,34,38,52,52,38,198,37,
+ 9,38,37,47,52,50,36,33,57,35,51,207,48,2,51,38,53,6,53,48,51,10,16,52,51,197,52,9,51,52,45,10,
+ 19,52,52,36,57,44,147,48,130,51,1,52,51,132,52,5,55,55,31,25,14,22,132,19,0,22,131,19,2,22,15,51,
+ 134,52,4,51,51,52,51,51,147,48,9,51,35,57,53,47,52,14,10,52,52,197,51,9,48,52,31,7,28,52,44,57,
+ 35,51,207,48,2,51,38,53,5,44,52,43,11,13,55,199,48,8,52,42,11,14,55,48,35,57,44,147,48,4,51,51,
+ 52,51,51,132,52,5,55,55,31,25,14,22,137,19,2,22,14,45,133,52,4,51,51,52,51,51,148,48,9,51,35,57,
+ 53,41,55,14,11,42,52,198,48,8,55,30,9,24,55,36,57,35,51,207,48,2,51,38,53,1,53,38,130,57,0,55,
+ 200,48,130,57,4,55,48,35,57,44,148,48,130,51,1,52,51,131,52,4,55,55,31,25,14,138,19,2,22,14,45,131,
+ 52,130,51,2,52,51,51,149,48,8,51,35,57,53,37,56,58,57,57,199,48,8,52,58,57,57,52,36,57,35,51,207,
+ 48,2,51,38,53,4,51,38,52,57,55,201,48,7,52,57,55,48,51,35,57,44,148,48,2,51,51,52,131,51,6,52,
+ 52,55,55,31,25,14,139,19,1,14,45,131,52,131,51,2,52,51,51,148,48,8,51,35,57,53,38,51,56,57,51,200,
+ 48,7,53,57,53,48,36,57,35,51,207,48,2,51,38,53,3,51,38,48,47,203,48,6,47,48,48,51,35,57,44,148,
+ 48,130,51,0,52,130,51,8,52,52,55,55,31,25,14,19,18,135,19,3,18,19,14,45,131,52,134,51,148,48,7,51,
+ 35,57,53,38,48,47,47,202,48,6,41,48,48,36,57,35,51,207,48,2,51,38,53,3,51,38,51,51,203,48,6,51,
+ 51,48,51,35,57,44,148,48,132,51,8,52,51,52,52,55,55,31,25,14,136,19,4,17,19,19,14,45,131,52,5,51,
+ 52,51,52,51,51,149,48,4,51,34,57,53,38,130,51,202,48,6,51,48,48,36,57,35,51,207,48,2,51,38,53,2,
+ 44,38,51,207,48,3,51,35,57,44,148,48,2,51,52,52,131,51,6,52,52,55,55,29,25,14,139,17,1,14,45,131,
+ 52,2,51,51,52,130,51,149,48,5,51,34,57,53,38,51,207,48,2,36,57,35,208,48,2,51,38,53,2,44,38,51,
+ 207,48,3,51,35,57,44,149,48,133,51,6,52,52,55,55,29,25,13,139,17,1,14,45,131,52,1,51,52,130,51,150,
+ 48,5,51,34,57,53,38,51,207,48,3,36,57,35,51,207,48,2,51,38,53,2,44,38,51,207,48,3,51,35,57,44,
+ 150,48,11,51,51,52,51,51,52,52,55,55,28,25,13,139,17,1,14,45,131,52,132,51,150,48,5,51,35,57,53,41,
+ 51,207,48,3,36,57,35,51,207,48,2,51,38,53,2,51,38,51,207,48,3,51,33,57,44,151,48,130,51,130,52,7,
+ 55,55,28,25,13,17,16,17,132,16,5,17,17,16,17,13,45,131,52,4,51,51,52,51,51,150,48,5,51,34,57,51,
+ 41,51,207,48,3,36,57,35,51,207,48,2,51,38,53,2,44,38,51,208,48,2,35,57,44,150,48,3,51,52,51,51,
+ 130,52,5,55,55,28,23,13,16,138,15,1,13,45,131,52,3,51,52,51,51,151,48,5,51,34,57,53,41,51,207,48,
+ 3,36,57,35,51,207,48,2,51,37,53,2,44,38,48,207,45,7,48,35,57,44,48,40,45,40,139,45,135,48,2,51,
+ 52,51,130,52,4,55,55,28,23,13,139,15,1,13,45,131,52,3,51,51,52,51,135,48,143,45,4,48,34,57,53,38,
+ 207,45,4,40,36,57,35,48,207,45,2,48,37,53,2,51,38,48,207,45,7,48,35,57,44,38,51,52,52,139,45,135,
+ 48,131,51,6,52,52,55,55,28,23,13,132,15,0,14,131,15,3,14,15,13,45,130,52,130,51,1,52,51,135,48,143,
+ 45,4,48,32,57,53,38,207,45,4,48,36,57,35,48,207,45,2,48,37,53,2,44,38,48,207,45,9,48,33,57,36,
+ 52,31,6,16,52,38,139,45,133,48,0,52,131,51,6,52,55,55,28,23,13,15,135,14,4,15,14,15,13,45,130,52,
+ 132,51,133,48,145,45,4,48,32,57,51,38,207,45,4,40,36,57,35,48,207,45,2,48,35,53,2,44,37,48,207,45,
+ 9,48,33,57,36,52,43,13,24,55,38,139,45,133,48,130,51,8,52,51,52,55,55,27,23,13,15,130,14,0,15,133,
+ 14,2,15,13,45,130,52,3,51,52,51,51,134,48,145,45,4,48,32,57,44,37,207,45,4,40,36,57,35,48,207,45,
+ 2,48,35,53,2,44,37,48,207,45,9,48,33,57,44,45,57,58,58,52,40,138,45,0,48,135,51,131,52,4,55,55,
+ 28,23,13,139,14,1,13,45,130,52,130,51,1,52,51,133,48,145,45,4,48,32,57,44,37,207,45,4,40,36,57,33,
+ 48,207,45,2,48,35,53,2,44,37,48,207,45,8,48,33,57,33,37,45,55,52,37,140,38,133,47,132,48,5,50,52,
+ 55,28,23,11,139,14,1,13,45,130,52,130,51,1,52,51,133,48,145,45,4,48,32,57,44,38,207,45,4,40,36,57,
+ 35,48,207,45,2,48,35,53,2,44,36,48,207,45,7,48,33,57,53,51,53,51,51,153,53,4,55,56,28,22,11,139,
+ 14,1,13,45,130,52,131,51,0,52,134,48,144,45,4,48,32,57,44,38,207,45,4,40,36,57,35,48,207,45,2,48,
+ 35,53,2,44,38,48,207,45,3,48,33,58,56,149,54,12,55,54,55,55,56,56,54,56,57,56,28,22,11,139,14,1,
+ 13,45,130,52,1,51,52,130,51,134,48,144,45,4,48,32,57,53,37,207,45,4,40,36,57,35,48,207,45,2,48,35,
+ 53,2,44,36,48,207,45,8,48,33,57,31,29,32,47,36,29,141,32,2,34,34,32,133,34,7,36,36,51,53,28,22,
+ 11,14,139,13,0,45,130,52,132,51,134,48,144,45,4,48,32,57,51,38,207,45,4,40,36,57,35,48,207,45,2,48,
+ 35,53,2,44,38,48,207,45,9,48,35,57,44,52,44,11,26,52,48,138,51,140,52,4,55,56,28,22,11,139,13,1,
+ 11,45,131,52,132,51,133,48,144,45,4,48,32,57,44,37,207,45,4,40,36,57,35,48,207,45,2,48,35,53,2,51,
+ 38,48,207,45,9,48,35,57,33,52,30,7,13,55,38,138,45,134,48,131,51,6,52,52,55,55,29,22,11,139,13,1,
+ 11,45,131,52,132,51,133,48,144,45,4,48,32,57,51,37,207,45,4,48,36,57,35,48,207,45,2,48,35,53,2,44,
+ 38,48,207,45,9,48,33,57,36,48,57,56,57,53,38,137,45,134,48,132,51,7,52,52,55,55,28,22,11,14,138,13,
+ 1,11,45,131,52,4,51,51,52,52,51,133,48,144,45,4,48,32,57,51,37,207,45,4,40,36,57,35,48,207,45,2,
+ 48,35,53,2,44,37,48,207,45,7,48,35,57,36,38,53,57,56,139,45,135,48,130,51,130,52,4,55,55,28,22,11,
+ 139,13,1,11,45,131,52,132,51,134,48,143,45,4,48,32,57,44,37,207,45,4,40,36,57,35,48,207,45,2,48,35,
+ 53,2,44,38,48,207,45,4,48,35,57,36,40,130,38,139,45,134,48,131,51,130,52,4,55,55,27,23,11,139,13,1,
+ 11,45,133,52,1,51,51,135,48,143,45,4,48,32,57,44,37,207,45,4,40,36,57,35,48,207,45,2,48,35,53,2,
+ 44,38,48,207,45,4,48,35,57,36,40,142,45,134,48,3,51,51,52,51,130,52,4,55,56,26,25,11,139,13,1,11,
+ 53,132,52,4,51,52,52,51,51,133,48,143,45,4,48,32,57,44,38,207,45,4,40,36,57,33,48,207,45,2,48,35,
+ 53,2,44,38,48,207,45,3,48,35,57,36,142,45,134,48,132,51,7,52,52,55,57,30,23,13,11,139,13,2,11,24,
+ 55,131,52,132,51,133,48,143,45,4,48,32,57,44,37,207,45,4,40,36,57,35,48,207,45,2,48,35,53,2,44,38,
+ 48,207,45,3,48,35,57,36,142,45,134,48,131,51,130,52,4,57,26,22,13,10,141,13,2,10,24,55,130,52,132,51,
+ 134,48,142,45,4,48,32,57,44,38,207,45,4,40,36,57,35,48,207,45,2,48,35,53,2,44,36,45,207,40,5,48,
+ 35,57,36,45,45,135,40,133,45,133,48,130,51,130,52,4,57,28,22,13,10,142,13,3,14,10,24,55,130,52,130,51,
+ 134,48,133,45,137,40,5,48,32,57,44,37,45,206,40,4,38,36,57,33,48,207,40,2,45,35,53,2,44,36,40,207,
+ 38,5,40,33,57,36,38,40,134,38,0,40,136,45,132,48,8,51,52,52,57,30,22,13,10,14,144,13,7,10,24,55,
+ 48,51,52,51,51,131,48,135,45,0,40,137,38,6,45,32,57,44,37,40,40,131,38,3,40,38,38,40,131,38,3,40,
+ 38,38,40,131,38,3,40,38,38,40,131,38,3,40,38,38,40,131,38,3,40,38,38,40,131,38,3,40,38,38,40,131,
+ 38,3,40,38,38,40,131,38,3,40,38,38,40,131,38,3,40,38,38,40,131,38,6,40,38,38,36,57,35,48,207,38,
+ 2,40,35,53,1,44,35,209,38,2,32,57,33,136,38,0,40,136,45,132,48,8,52,52,57,30,22,13,10,13,11,145,
+ 13,4,10,24,55,48,52,133,48,136,45,138,38,3,32,57,44,35,208,38,2,36,57,33,209,38,1,35,53,1,44,35,
+ 209,38,2,32,57,33,137,38,130,40,134,45,130,48,7,51,52,57,31,22,13,10,13,147,11,5,13,9,24,52,48,51,
+ 131,48,132,45,1,40,45,130,40,138,38,3,32,57,44,35,208,38,2,36,57,32,162,38,0,40,173,38,1,35,53,1,
+ 44,35,209,38,2,32,57,33,142,38,0,40,132,45,8,48,48,52,55,24,11,11,10,13,149,11,3,13,9,24,52,131,
+ 48,131,45,0,40,144,38,3,32,57,44,35,208,38,2,33,57,32,130,38,0,37,202,38,4,37,38,38,34,43,1,44,
+ 35,209,38,3,32,57,33,36,141,38,0,40,132,45,6,48,48,52,55,22,16,10,153,11,1,14,52,131,48,132,45,144,
+ 38,3,32,57,44,35,207,38,8,36,33,57,32,38,37,38,48,37,200,38,5,37,48,38,38,34,53,1,44,35,209,38,
+ 3,32,57,33,37,141,38,1,40,40,131,45,5,48,48,52,55,24,22,153,11,2,10,19,52,130,48,131,45,1,40,40,
+ 144,38,3,32,57,44,35,207,38,3,36,33,57,32,130,38,2,33,48,37,198,38,6,37,48,31,40,41,34,53,1,44,
+ 35,209,38,3,31,57,33,37,144,38,8,40,45,45,48,48,52,55,24,22,154,11,1,16,52,130,48,130,45,0,40,146,
+ 38,3,32,57,44,34,207,38,10,36,33,57,31,36,52,11,5,31,48,37,196,38,7,36,52,26,5,11,52,32,53,2,
+ 44,34,38,206,37,5,36,38,31,57,33,36,134,37,137,38,0,40,130,45,4,48,52,55,24,22,153,11,4,10,16,52,
+ 48,48,131,45,137,38,135,37,5,36,38,32,57,44,34,207,37,10,36,33,57,31,36,55,42,24,43,51,37,196,38,7,
+ 36,51,55,24,30,53,34,53,2,44,34,38,207,37,4,38,31,57,33,36,137,37,136,38,6,45,45,48,52,55,24,22,
+ 153,11,7,10,16,52,45,48,45,45,40,136,38,130,37,0,36,133,37,5,36,38,29,57,44,34,206,37,10,36,36,33,
+ 57,32,38,52,58,58,56,36,199,38,5,57,59,58,51,34,53,2,44,34,38,207,37,6,38,31,57,33,36,37,36,130,
+ 37,130,36,3,37,37,36,37,134,38,6,45,45,48,52,55,24,22,153,11,3,10,16,52,40,130,45,135,38,132,37,1,
+ 36,36,132,37,5,36,38,29,57,44,34,207,37,7,36,33,57,29,34,34,36,44,202,34,4,44,35,34,29,44,2,44,
+ 34,38,207,37,3,38,31,57,33,134,37,2,36,37,36,131,37,134,38,5,45,45,52,55,24,22,153,11,6,10,16,52,
+ 38,45,40,40,133,38,136,37,0,36,132,37,4,38,29,57,44,34,145,37,0,36,188,37,3,36,33,57,44,130,53,0,
+ 51,205,53,1,44,54,1,44,32,209,35,2,31,57,33,135,35,3,36,37,37,35,131,37,133,38,4,45,52,55,24,19,
+ 153,11,4,10,16,52,38,45,133,38,135,37,0,36,135,35,4,36,29,57,44,32,144,35,132,36,159,37,133,36,148,35,
+ 1,33,58,131,54,0,56,202,54,0,56,130,54,0,57,1,44,32,209,35,3,29,57,33,34,134,35,1,36,36,135,37,
+ 131,38,5,45,52,55,24,19,10,152,11,4,10,16,52,38,40,132,38,2,37,36,36,131,37,1,36,37,137,35,3,29,
+ 57,44,32,141,35,1,36,35,172,36,146,35,3,34,33,57,27,130,29,1,26,32,200,29,5,32,25,29,32,27,42,1,
+ 44,32,209,35,3,29,57,33,34,140,35,4,37,37,36,37,37,131,38,4,52,55,24,19,10,152,11,2,10,16,52,132,
+ 38,5,37,37,36,37,37,36,142,35,3,29,57,44,32,207,35,10,34,31,57,32,37,52,11,5,30,51,36,144,38,2,
+ 40,38,38,154,40,148,38,8,37,35,51,26,5,12,52,32,53,1,44,32,209,35,3,29,57,31,34,140,35,0,36,131,
+ 37,131,38,4,52,55,24,19,10,152,11,3,10,16,52,37,131,38,4,37,36,37,36,36,143,35,3,29,57,44,32,207,
+ 35,10,34,31,57,29,34,55,42,24,43,40,34,130,35,4,36,35,36,37,35,133,36,3,37,36,37,37,131,38,0,37,
+ 153,38,130,37,130,36,5,37,35,36,36,35,36,135,35,7,34,45,53,24,30,53,29,44,1,42,29,209,33,3,29,57,
+ 31,32,136,33,0,34,133,35,0,36,130,37,7,38,38,52,55,24,19,10,10,151,11,5,10,16,52,35,38,38,131,37,
+ 133,35,0,34,139,33,3,29,57,44,32,141,33,1,34,34,172,35,0,34,145,33,9,32,31,57,29,33,44,58,58,56,
+ 34,138,35,0,36,131,35,2,36,37,36,131,37,150,38,130,37,0,36,130,37,0,36,132,35,1,37,37,138,35,5,57,
+ 58,57,44,29,44,1,42,32,209,33,3,29,57,31,32,137,33,130,34,132,35,130,37,6,38,52,55,24,19,10,10,151,
+ 11,4,10,14,52,35,38,130,37,0,36,132,35,1,34,34,140,33,3,28,57,44,32,141,33,132,34,3,35,34,33,33,
+ 133,34,146,35,132,34,130,33,1,34,35,131,34,145,33,9,32,31,57,29,33,33,44,44,33,34,133,35,2,38,45,45,
+ 141,51,0,52,151,51,0,52,137,51,2,40,36,37,134,35,130,34,5,35,44,36,33,29,44,1,42,29,209,33,3,29,
+ 57,31,32,140,33,133,35,130,37,5,52,55,24,19,10,10,151,11,3,10,14,52,35,131,37,132,35,0,34,142,33,3,
+ 28,57,44,29,151,33,156,34,154,33,10,32,31,57,29,33,33,32,32,33,33,34,131,35,4,36,45,45,55,55,134,53,
+ 0,55,130,53,4,55,55,53,53,55,145,53,132,55,2,53,53,55,135,53,2,52,40,36,131,35,1,34,35,130,33,130,
+ 32,2,33,29,44,1,42,29,209,33,3,29,57,31,32,142,33,0,34,130,35,6,37,38,36,51,55,24,16,153,10,3,
+ 9,14,52,35,130,37,131,35,145,33,3,28,57,42,29,207,33,3,32,31,57,29,135,33,13,34,35,35,40,53,11,9,
+ 14,16,14,14,16,16,14,134,16,0,14,141,16,1,14,14,134,16,3,14,14,16,14,130,16,8,14,14,16,16,14,20,
+ 42,53,38,131,35,136,33,1,29,44,1,42,29,209,33,3,29,57,31,32,145,33,0,34,130,35,3,51,55,24,16,153,
+ 10,4,9,14,50,35,36,130,35,0,34,147,33,3,28,57,42,29,207,33,3,32,31,57,29,138,33,4,52,51,19,11,
+ 7,177,9,4,7,20,52,33,34,138,33,1,29,44,2,42,29,33,208,32,2,29,57,31,135,32,140,33,5,34,35,51,
+ 55,24,22,153,10,2,9,14,51,130,35,1,34,34,139,33,135,32,4,33,28,57,42,29,207,33,3,32,31,57,29,138,
+ 33,5,53,42,16,14,9,11,177,10,2,11,55,36,139,33,1,29,44,2,42,29,32,207,31,4,32,28,57,31,29,134,
+ 31,130,32,137,33,6,34,34,45,53,26,20,9,151,10,6,11,9,14,51,34,35,35,137,33,131,32,135,31,5,32,27,
+ 57,42,29,33,130,32,130,33,1,32,32,186,33,1,32,32,131,33,134,32,4,31,57,29,33,32,136,33,4,55,30,16,
+ 11,9,179,10,2,51,40,32,135,33,4,32,33,33,29,42,2,42,29,32,207,31,4,32,28,57,31,29,140,31,0,32,
+ 134,33,6,34,36,52,42,24,14,9,149,10,6,11,9,10,33,36,35,34,134,33,0,32,142,31,4,32,27,57,42,29,
+ 135,31,0,32,186,33,0,32,140,31,3,57,28,32,31,135,33,5,36,55,24,15,11,9,178,10,3,9,33,51,32,135,
+ 33,4,31,31,32,29,42,2,42,29,31,207,29,2,31,28,57,136,29,134,31,1,32,32,133,33,6,34,45,55,44,30,
+ 20,9,148,10,4,9,10,36,46,34,134,33,1,32,32,135,31,135,29,5,32,27,57,42,29,32,133,31,132,32,180,33,
+ 132,32,137,31,5,29,31,57,28,32,31,130,32,132,33,3,44,53,20,14,180,10,3,9,24,52,32,132,33,130,32,4,
+ 31,31,32,29,42,1,42,28,209,29,1,28,57,139,29,133,31,130,32,132,33,5,45,55,42,30,20,9,146,10,4,9,
+ 10,36,38,32,133,33,0,32,137,31,136,29,4,31,27,57,42,29,140,31,3,32,33,32,31,137,32,0,33,130,32,146,
+ 33,138,32,2,33,33,32,143,31,3,29,31,57,28,132,31,0,32,130,33,5,32,51,44,16,14,9,179,10,3,9,20,
+ 55,32,131,33,0,32,133,31,1,29,42,1,42,28,209,29,1,27,57,143,29,131,31,130,32,130,33,6,34,45,55,42,
+ 30,20,9,144,10,3,9,10,36,38,134,33,0,32,131,31,144,29,2,27,57,42,133,29,135,31,2,32,33,44,134,52,
+ 2,53,53,52,131,53,2,52,52,53,140,52,134,53,134,52,3,36,32,33,32,135,31,137,29,1,57,28,133,31,131,32,
+ 4,52,42,14,13,9,179,10,2,9,11,53,130,33,1,32,32,132,31,3,29,29,28,42,1,42,28,209,29,1,27,57,
+ 146,29,131,31,1,32,32,130,33,5,51,55,42,30,16,9,142,10,4,9,10,36,38,32,130,33,1,32,32,132,31,146,
+ 29,2,27,57,42,137,29,130,31,5,32,32,51,44,24,31,168,33,4,31,52,52,32,32,132,31,140,29,1,57,28,130,
+ 29,132,31,6,32,33,55,26,14,11,9,133,10,0,9,133,7,0,9,145,7,1,9,9,132,7,1,9,9,130,7,130,
+ 9,133,10,4,9,44,36,32,32,132,31,130,29,2,31,28,42,1,33,27,209,29,1,26,57,149,29,131,31,130,33,5,
+ 51,55,42,24,14,9,140,10,4,9,10,33,38,32,130,33,0,32,130,31,150,29,3,25,57,42,28,138,29,8,31,32,
+ 45,53,19,9,7,9,11,167,10,4,13,42,52,32,32,144,29,1,57,27,134,29,7,31,32,33,53,24,14,10,9,132,
+ 10,2,9,11,30,132,26,131,30,2,26,30,30,130,26,136,30,2,26,24,26,130,30,131,26,5,24,30,24,13,10,9,
+ 132,10,2,7,31,48,131,31,134,29,1,28,42,1,33,27,209,29,2,26,57,28,150,29,1,31,31,130,32,6,34,51,
+ 55,30,24,14,9,139,10,7,9,31,38,31,33,33,32,32,130,31,147,29,7,32,32,29,29,25,57,33,28,137,29,8,
+ 31,31,45,55,19,13,19,9,7,168,9,5,7,7,42,52,31,31,143,29,1,57,26,134,29,7,31,31,44,53,19,14,
+ 9,9,132,10,3,7,20,57,55,130,56,0,55,132,56,15,57,58,55,56,56,57,57,58,57,58,58,57,58,56,55,55,
+ 133,56,7,55,56,55,57,56,24,13,9,132,10,2,7,24,52,130,31,135,29,1,27,42,2,33,27,29,134,28,134,29,
+ 135,28,0,29,130,28,134,29,133,28,1,29,28,131,29,3,28,29,28,28,130,29,130,28,1,29,29,139,28,1,29,28,
+ 133,29,130,28,9,29,26,57,28,28,29,28,28,29,29,130,28,143,29,9,31,31,32,32,33,52,55,23,16,9,139,10,
+ 7,9,31,33,33,32,32,31,31,144,29,13,28,28,29,29,28,29,24,23,31,29,25,57,33,28,137,29,9,31,45,53,
+ 16,13,14,9,9,10,10,166,9,7,10,10,9,7,42,52,31,31,142,29,1,57,26,135,29,5,31,45,44,14,14,9,
+ 133,10,4,7,30,55,43,53,133,43,14,53,53,54,57,44,53,55,55,56,57,55,56,56,55,57,133,43,0,53,132,43,
+ 4,53,55,24,13,9,132,10,3,7,16,52,31,137,29,1,27,42,2,33,27,29,208,28,1,26,57,141,28,140,29,130,
+ 31,5,32,51,53,20,13,9,139,10,2,9,31,34,130,31,1,29,31,139,29,137,28,8,33,7,6,30,29,25,57,33,
+ 27,137,29,10,45,53,16,13,14,9,9,10,9,9,13,165,14,7,11,9,10,9,7,42,52,31,140,29,3,28,28,57,
+ 26,136,29,4,52,33,14,13,9,133,10,3,9,42,55,53,132,43,6,42,42,43,42,53,57,53,130,55,8,56,57,55,
+ 56,55,55,57,43,42,130,43,0,42,133,43,4,53,56,30,16,9,132,10,3,9,11,52,32,137,29,1,27,42,1,33,
+ 27,209,28,2,26,57,27,145,28,137,29,6,31,31,51,53,20,13,9,139,10,4,9,31,32,31,31,137,29,142,28,8,
+ 53,43,42,53,29,25,57,33,27,136,29,11,44,53,16,13,14,9,9,10,9,9,24,20,165,12,7,21,13,9,10,9,
+ 7,42,52,137,29,132,28,1,57,26,135,29,5,31,53,26,14,11,9,134,10,2,53,53,43,136,42,1,43,56,130,53,
+ 2,55,56,56,130,55,1,53,56,139,42,5,43,56,42,19,9,9,132,10,2,9,44,33,137,29,1,27,42,1,31,27,
+ 209,28,2,26,57,27,147,28,137,29,4,45,44,20,13,9,139,10,3,9,31,33,31,137,29,143,28,8,33,57,58,42,
+ 28,25,57,31,27,131,28,131,29,11,40,53,16,13,14,9,9,10,10,9,30,10,166,1,8,4,30,13,9,10,9,7,
+ 42,52,133,29,135,28,1,57,26,135,29,5,33,53,23,14,10,9,132,10,5,9,11,55,43,42,42,135,30,2,42,54,
+ 42,130,53,1,54,54,130,53,1,42,54,139,30,5,42,54,42,20,10,9,132,10,2,7,30,40,135,29,3,28,29,27,
+ 42,1,31,25,209,28,3,26,57,26,27,149,28,134,29,5,40,44,19,13,9,10,139,9,1,28,29,133,28,136,27,140,
+ 26,8,27,28,26,27,23,57,31,27,29,131,28,13,29,29,40,53,16,13,14,9,9,10,9,9,20,12,168,1,10,4,
+ 21,10,9,10,9,7,42,52,29,29,137,28,3,27,57,26,29,130,28,131,29,3,36,53,16,14,133,9,5,10,7,20,
+ 55,42,42,131,30,131,24,8,21,30,56,42,53,53,44,54,54,130,42,1,30,54,137,24,130,30,5,43,53,23,11,9,
+ 10,130,9,3,10,7,24,52,132,29,131,28,2,29,26,42,2,31,25,28,144,27,0,28,144,27,0,28,139,27,0,28,
+ 130,27,3,28,27,27,28,152,27,2,25,57,26,137,27,142,28,132,29,3,40,44,19,13,141,9,1,43,53,160,43,2,
+ 58,31,26,132,28,13,29,33,52,19,13,14,9,7,10,9,9,7,24,4,169,1,10,20,11,9,9,10,9,7,42,52,
+ 29,29,135,28,3,27,26,57,26,132,28,130,29,3,44,42,14,13,134,9,3,7,24,53,42,130,30,0,24,132,21,14,
+ 24,54,42,42,44,42,42,43,43,33,33,30,24,54,30,130,21,0,24,132,21,7,24,30,30,42,54,24,13,7,132,9,
+ 2,7,14,52,132,29,132,28,1,26,42,1,31,25,209,27,2,25,57,26,143,27,138,28,130,29,4,40,44,19,13,7,
+ 140,9,1,25,27,130,26,1,25,26,133,25,2,24,24,25,134,24,0,23,132,24,8,23,26,26,24,24,23,57,31,25,
+ 132,28,7,29,51,14,9,14,9,7,10,130,9,2,7,21,5,169,1,1,20,11,132,9,3,7,42,40,29,135,28,3,
+ 27,26,57,26,132,28,130,29,4,52,31,14,11,7,133,9,7,7,30,53,42,30,24,24,21,131,20,3,24,54,30,30,
+ 131,42,8,43,43,30,30,24,20,21,54,30,134,20,7,21,21,24,30,30,54,26,14,134,9,3,11,53,29,29,135,28,
+ 1,25,42,1,31,25,209,27,3,25,57,26,26,145,27,136,28,6,29,29,44,44,16,13,7,140,9,1,29,31,133,29,
+ 134,28,141,27,8,28,23,23,29,27,25,57,31,25,132,28,4,29,52,24,9,7,133,9,2,7,21,5,169,1,1,20,
+ 11,134,9,1,44,31,135,28,3,27,26,57,25,134,28,5,29,53,24,13,11,7,134,9,5,43,53,43,42,30,30,132,
+ 24,12,54,30,30,42,42,53,42,31,43,43,24,24,20,130,24,2,54,30,21,134,24,5,30,30,42,56,30,14,135,9,
+ 1,44,32,136,28,1,25,42,4,31,25,27,26,26,131,27,0,26,130,27,0,26,134,27,1,26,26,133,27,0,26,132,
+ 27,1,26,26,138,27,1,26,27,131,26,2,27,27,26,130,27,3,26,27,26,26,133,27,3,26,27,27,26,135,27,5,
+ 26,27,23,57,26,26,130,27,3,26,27,27,26,130,27,0,26,137,27,135,28,4,36,44,19,13,7,140,9,1,28,29,
+ 136,28,137,27,134,26,11,27,33,7,6,31,28,23,57,31,25,27,27,130,28,3,31,53,24,14,134,9,2,7,21,4,
+ 169,1,2,20,11,7,132,9,2,7,33,33,134,28,4,27,27,26,57,25,134,28,5,31,53,22,13,10,7,132,9,5,
+ 7,11,57,56,54,54,134,43,9,30,30,42,30,54,43,43,26,43,42,130,20,3,26,42,31,30,138,43,4,54,57,43,
+ 19,10,133,9,2,7,31,36,134,28,3,27,27,25,42,2,31,25,27,134,26,0,27,140,26,0,27,133,26,1,27,27,
+ 169,26,0,27,134,26,14,27,23,57,26,25,26,26,27,26,27,26,26,27,26,26,141,27,132,28,4,36,44,19,13,7,
+ 140,9,1,28,29,133,28,138,27,130,26,0,27,132,26,9,25,53,43,42,53,27,23,57,31,25,131,27,4,28,31,53,
+ 24,13,134,9,2,7,20,12,168,1,2,3,21,10,134,9,3,42,33,27,28,134,27,2,26,57,25,130,27,131,28,3,
+ 33,53,16,13,134,9,26,7,14,55,42,30,24,20,20,14,20,20,21,24,30,42,31,57,20,8,55,24,42,30,20,20,
+ 26,30,130,42,5,26,24,24,21,20,20,130,14,7,20,20,24,43,53,22,11,7,132,9,2,7,24,48,132,28,131,27,
+ 1,25,42,2,30,25,27,207,26,4,27,23,57,26,25,141,26,2,27,26,26,136,27,130,28,4,33,44,19,13,7,139,
+ 9,2,7,28,29,131,28,134,27,4,26,27,26,26,27,138,26,8,31,57,57,33,27,23,57,31,25,132,27,3,29,53,
+ 24,14,135,9,2,7,24,12,166,1,3,4,30,12,7,134,9,1,42,33,135,27,3,26,26,57,25,132,27,6,28,28,
+ 44,42,14,13,7,133,9,25,7,21,56,42,30,30,24,24,26,30,30,33,42,42,33,56,21,1,8,55,23,30,30,19,
+ 26,30,132,42,15,33,30,30,24,24,20,20,24,24,30,42,55,56,24,11,7,132,9,2,7,14,51,130,28,133,27,1,
+ 25,42,2,30,25,26,181,25,0,26,146,25,0,26,131,25,3,26,25,23,57,141,25,136,26,134,27,5,28,33,44,19,
+ 13,7,139,9,2,7,27,28,137,27,135,26,135,25,9,26,25,27,27,25,27,23,57,31,25,132,27,3,29,51,24,14,
+ 136,9,2,7,21,20,154,12,0,20,137,12,2,21,12,7,134,9,2,7,33,33,134,27,130,26,1,57,25,133,27,5,
+ 28,51,30,13,11,7,133,9,7,7,30,53,42,30,26,24,26,130,30,13,42,42,33,55,21,1,1,10,43,16,30,30,
+ 24,30,132,42,3,30,30,26,24,132,20,7,24,30,42,53,57,26,13,7,132,9,4,7,11,51,28,28,134,27,1,25,
+ 42,2,30,23,26,208,25,1,23,57,146,25,133,26,133,27,4,33,44,19,13,7,139,9,2,7,26,28,132,27,134,26,
+ 146,25,6,26,23,57,30,25,27,26,130,27,3,29,51,24,14,137,9,1,7,11,155,13,0,12,134,13,3,11,13,10,
+ 7,135,9,7,7,33,32,27,27,26,27,27,132,26,4,57,23,27,27,26,130,27,5,28,53,24,13,11,7,134,9,4,
+ 42,43,42,30,26,131,30,130,42,10,33,56,6,1,1,10,42,14,30,43,30,132,42,4,30,30,26,24,23,131,20,7,
+ 24,30,42,42,53,57,30,14,135,9,1,44,29,131,27,130,26,2,27,25,42,1,30,23,209,25,2,23,57,24,150,25,
+ 131,26,130,27,4,33,42,16,11,7,139,9,1,7,26,131,27,131,26,1,25,26,149,25,4,26,23,57,30,25,132,26,
+ 3,28,51,24,14,139,9,165,7,137,9,2,7,33,31,135,26,4,25,25,57,23,27,131,26,6,27,29,53,20,13,10,
+ 7,133,9,2,10,53,42,132,30,0,33,131,42,10,31,56,8,1,1,10,42,16,30,43,33,131,42,4,30,30,26,24,
+ 24,131,20,8,23,26,30,42,53,53,57,42,16,134,9,4,7,31,33,26,27,133,26,1,23,30,1,28,23,209,25,2,
+ 23,57,24,153,25,8,26,26,27,26,33,42,16,11,7,139,9,2,7,25,27,131,26,155,25,12,22,57,30,25,26,25,
+ 25,26,26,28,51,24,13,138,9,1,7,9,150,11,0,10,130,11,0,10,132,11,0,10,130,9,0,7,136,9,2,7,
+ 42,31,130,26,3,25,26,25,26,130,25,3,57,23,26,25,131,26,5,31,44,14,13,9,7,132,9,8,7,12,53,42,
+ 31,30,31,31,33,132,42,10,30,55,8,1,1,10,42,24,43,43,33,130,42,20,30,30,26,24,20,19,20,19,19,20,
+ 24,30,33,42,53,53,56,43,19,10,7,132,9,2,7,24,36,133,26,3,25,26,23,31,1,30,23,205,25,0,23,130,
+ 25,2,23,57,24,155,25,6,26,26,31,44,16,11,7,139,9,4,7,25,27,26,26,157,25,3,22,57,30,23,132,25,
+ 3,28,51,24,13,137,9,3,7,11,57,58,134,57,1,56,56,146,57,9,58,57,57,58,58,43,24,19,9,7,135,9,
+ 3,7,33,31,26,136,25,1,57,23,130,25,7,26,25,26,33,42,13,13,7,133,9,2,7,20,56,131,43,133,42,35,
+ 33,30,54,8,1,1,8,53,26,43,43,33,42,42,30,30,26,24,20,20,30,26,26,30,30,42,42,53,53,55,53,55,
+ 55,22,11,7,132,9,5,7,14,40,26,27,26,132,25,1,23,31,4,30,23,23,26,27,139,23,0,25,134,23,0,25,
+ 137,23,1,25,25,131,23,0,25,130,23,0,25,148,23,0,25,133,23,0,25,131,23,5,27,25,23,25,22,57,141,23,
+ 144,25,4,31,44,16,11,7,139,9,2,7,25,27,145,25,134,23,134,25,3,22,57,28,23,132,25,3,28,51,24,13,
+ 130,9,131,7,5,9,9,7,11,57,58,135,57,4,56,53,55,56,56,130,57,0,56,145,57,6,42,24,16,9,7,9,
+ 9,131,7,3,9,7,42,31,137,25,1,57,23,132,25,5,26,44,30,13,11,7,133,9,7,7,30,57,56,56,54,54,
+ 56,131,42,20,33,30,26,53,8,1,1,20,55,31,43,43,33,42,30,30,26,24,20,24,54,136,43,6,54,54,56,57,
+ 24,13,7,132,9,3,7,11,40,26,134,25,1,23,31,5,30,22,26,14,13,25,200,23,6,25,11,19,25,23,22,57,
+ 148,23,137,25,4,31,44,16,11,7,139,9,2,7,25,26,138,25,147,23,4,25,22,57,30,23,132,25,6,27,51,23,
+ 13,9,9,10,130,20,7,10,9,7,11,55,54,43,53,130,43,0,42,130,43,2,57,57,55,131,56,3,55,56,57,53,
+ 133,43,0,42,131,43,19,53,57,56,55,55,57,42,16,13,9,7,9,11,20,20,14,9,7,42,31,137,25,1,57,23,
+ 132,25,5,27,51,24,13,10,7,133,9,32,7,42,43,30,30,24,21,30,56,42,33,33,30,30,24,43,8,1,12,56,
+ 42,33,43,54,31,30,30,26,24,20,24,54,30,136,20,6,21,30,30,54,30,13,7,134,9,1,33,28,134,25,1,23,
+ 30,6,30,22,31,9,7,26,25,198,23,7,26,26,6,10,31,23,22,57,152,23,133,25,4,31,44,16,11,7,139,9,
+ 2,7,25,26,135,25,151,23,3,22,57,30,23,132,25,16,27,51,23,13,9,7,14,20,7,10,21,7,9,54,53,42,
+ 43,136,42,1,57,56,131,55,2,56,57,43,140,42,18,43,57,55,53,55,57,19,11,11,9,7,21,10,8,20,14,7,
+ 42,31,137,25,1,57,23,132,25,5,28,51,19,13,9,7,134,9,21,43,42,42,30,24,21,20,24,56,42,30,30,24,
+ 19,43,6,8,57,33,42,42,56,130,30,5,26,24,20,24,54,30,137,20,5,24,24,30,54,30,14,134,9,2,7,30,
+ 31,134,25,1,23,30,5,30,22,53,56,53,53,199,23,7,25,55,54,55,33,23,22,57,154,23,131,25,4,31,44,16,
+ 11,7,139,9,1,7,23,133,25,154,23,5,18,57,26,22,23,23,130,25,15,26,51,23,13,9,7,20,8,1,3,21,
+ 7,10,54,42,42,137,30,1,42,56,130,53,2,42,54,43,142,30,17,54,54,42,55,56,19,11,11,9,7,24,2,1,
+ 8,20,7,33,31,134,25,4,23,23,24,57,22,132,25,5,29,42,14,11,9,7,132,9,18,7,11,53,42,30,30,24,
+ 21,20,20,24,56,30,24,24,20,30,21,54,130,42,0,57,130,30,9,26,24,20,24,54,30,14,20,20,21,134,20,7,
+ 21,24,30,43,42,16,9,7,132,9,2,7,24,33,132,25,3,23,23,22,30,5,26,18,25,53,55,25,199,22,7,18,
+ 26,54,43,22,22,15,56,156,23,6,25,25,31,42,16,11,7,132,9,0,7,133,9,1,7,23,131,25,156,23,3,18,
+ 57,26,22,131,23,17,25,26,51,23,13,9,7,20,8,1,4,21,7,10,53,42,30,30,136,24,8,30,54,42,44,42,
+ 33,43,42,21,130,24,130,21,1,24,21,133,24,17,43,53,42,55,56,19,11,11,9,7,24,3,1,10,16,7,31,28,
+ 131,25,133,23,3,57,22,23,23,130,25,4,31,33,13,11,7,133,9,7,7,20,55,42,30,30,24,21,130,20,6,24,
+ 56,24,20,20,30,55,130,42,0,57,130,30,6,26,24,23,20,54,30,14,138,20,15,21,24,30,43,43,20,10,7,9,
+ 9,7,9,9,7,14,36,130,25,131,23,1,22,30,4,42,30,30,28,28,158,30,2,31,30,31,133,30,0,31,130,30,
+ 0,31,137,30,6,31,30,30,31,31,30,31,140,30,0,31,131,30,1,57,22,157,23,3,28,42,16,11,139,7,3,9,
+ 7,23,25,159,23,3,18,57,26,22,132,23,16,26,45,23,13,9,7,20,8,1,4,21,7,10,43,30,30,24,136,21,
+ 1,30,54,130,42,3,26,43,30,20,131,21,0,20,134,21,19,24,24,43,43,42,55,57,19,11,11,9,7,24,3,1,
+ 10,14,7,31,28,137,23,1,57,22,131,23,6,25,36,26,11,11,7,9,131,7,7,9,7,24,53,42,30,24,24,132,
+ 20,8,43,24,20,26,30,33,42,42,57,130,30,130,24,2,20,20,43,140,20,8,21,24,24,42,53,24,11,7,9,130,
+ 7,4,9,7,10,36,25,133,23,1,22,30,1,54,30,205,42,0,30,131,42,2,57,22,22,156,23,3,29,42,16,11,
+ 141,7,161,23,3,18,57,26,22,132,23,16,26,40,22,13,9,7,20,8,1,4,21,7,10,43,30,24,21,136,20,1,
+ 21,53,130,30,2,24,42,30,140,20,19,21,21,43,43,42,56,56,19,11,11,9,7,24,3,1,10,14,7,31,28,137,
+ 23,1,57,22,131,23,6,25,44,24,11,10,7,9,131,7,7,9,7,30,43,42,30,24,21,132,20,3,43,24,24,30,
+ 130,42,0,57,130,30,2,24,43,30,130,20,0,43,141,20,5,21,24,30,54,24,13,134,7,2,9,31,26,133,23,1,
+ 22,30,4,23,13,15,18,22,195,15,0,18,133,15,5,22,18,15,18,13,56,141,22,144,23,5,28,42,16,11,7,9,
+ 139,7,146,23,135,22,134,23,3,18,57,26,22,132,23,16,25,44,23,13,7,7,20,8,1,4,21,7,10,43,30,24,
+ 21,136,20,7,24,43,30,26,24,19,30,30,142,20,17,43,53,53,55,56,19,11,11,7,7,24,3,1,10,14,7,31,
+ 28,137,23,1,57,22,131,23,6,26,44,16,11,9,7,9,132,7,6,9,43,43,30,30,24,21,132,20,2,43,30,30,
+ 130,42,0,57,130,30,3,24,43,21,30,130,20,0,43,141,20,6,21,24,30,53,30,14,9,132,7,3,9,7,26,28,
+ 133,23,1,22,30,5,26,18,25,13,13,25,201,23,5,11,16,23,23,18,57,149,22,136,23,5,28,42,16,11,7,9,
+ 137,7,1,9,7,139,23,148,22,4,23,18,57,26,18,132,23,16,25,44,22,13,9,7,20,8,1,4,21,7,10,43,
+ 30,24,21,136,20,8,24,43,24,24,20,16,30,30,14,141,20,17,43,54,42,53,55,20,11,11,7,7,24,3,1,10,
+ 14,7,31,28,137,23,1,57,22,131,23,3,28,42,13,11,133,7,8,9,7,10,53,42,30,30,24,21,132,20,0,43,
+ 131,42,0,56,130,30,4,24,53,21,4,43,130,20,0,43,141,20,8,21,24,30,43,42,16,9,7,9,130,7,3,9,
+ 7,22,31,133,23,1,18,30,6,26,18,31,9,7,26,23,198,22,7,23,24,6,10,28,22,15,56,152,22,133,23,5,
+ 28,33,16,11,7,9,139,7,136,23,151,22,4,23,15,57,26,18,132,23,16,25,44,20,13,7,7,20,8,1,4,21,
+ 7,10,43,30,24,21,136,20,1,24,43,131,20,2,30,30,14,141,20,17,43,43,33,53,56,20,11,11,7,7,24,3,
+ 1,10,14,7,31,27,135,23,3,22,23,57,18,131,23,3,31,31,11,11,133,7,8,9,7,14,53,42,30,24,21,21,
+ 132,20,4,43,42,42,33,54,130,30,9,24,43,21,1,3,43,20,23,24,43,141,20,8,21,24,30,42,43,16,10,7,
+ 9,130,7,3,9,7,13,33,133,23,1,18,30,5,24,15,44,56,53,42,199,22,9,23,54,54,55,31,18,15,56,22,
+ 18,151,22,132,23,5,28,33,14,11,7,9,139,7,134,23,154,22,3,15,57,26,18,132,23,16,25,44,20,11,7,7,
+ 20,8,1,4,21,7,10,43,30,24,21,136,20,1,24,43,131,20,1,30,30,142,20,17,43,43,30,53,56,16,11,11,
+ 7,7,24,3,1,10,14,7,31,27,135,23,3,22,23,57,18,131,23,5,33,26,11,11,7,9,131,7,8,9,7,24,
+ 53,42,30,24,21,21,132,20,17,43,42,42,33,43,42,30,24,43,21,1,1,4,43,23,26,30,43,141,20,8,21,21,
+ 24,42,53,23,11,7,9,130,7,3,9,7,10,33,133,23,1,18,30,6,24,15,25,55,55,25,18,198,22,9,18,28,
+ 56,43,23,22,15,56,22,18,153,22,130,23,5,27,33,14,11,7,9,139,7,0,22,131,23,156,22,25,15,57,26,18,
+ 23,22,22,23,23,25,44,20,11,7,7,20,8,1,4,21,7,10,43,30,24,21,136,20,1,24,43,131,20,2,43,30,
+ 14,141,20,17,43,43,30,53,56,16,11,11,7,7,24,3,1,10,14,7,31,27,135,23,3,22,23,57,18,131,23,5,
+ 44,23,11,10,7,9,131,7,6,9,7,30,53,30,30,24,133,20,0,14,130,42,5,31,43,30,24,42,21,130,1,5,
+ 3,43,24,30,30,43,130,20,0,14,138,20,5,21,24,30,53,24,11,135,7,1,31,25,130,23,3,22,23,18,30,1,
+ 24,15,205,18,0,22,130,18,2,15,56,22,140,18,143,22,4,23,27,33,14,11,141,7,2,22,23,23,143,22,135,18,
+ 134,22,3,15,57,26,18,132,22,16,25,36,20,11,7,7,20,8,1,4,21,7,10,43,30,24,21,136,20,1,54,21,
+ 130,20,3,26,30,54,21,140,20,18,30,54,30,42,55,57,16,11,11,7,7,21,3,1,10,14,7,31,26,131,23,132,
+ 22,12,23,57,18,23,22,23,25,44,16,11,9,7,9,133,7,2,54,56,54,130,43,0,42,132,30,8,56,42,42,30,
+ 43,30,20,43,6,130,1,6,3,43,30,33,42,56,42,139,30,130,42,4,43,43,57,30,13,133,7,3,9,7,26,27,
+ 131,22,2,23,18,30,2,24,15,22,203,18,0,22,131,18,2,15,56,22,146,18,138,22,3,26,31,14,11,141,7,1,
+ 22,23,139,22,146,18,6,22,15,56,26,18,22,23,130,22,16,23,42,20,11,7,7,20,8,1,4,21,7,10,43,30,
+ 24,21,135,20,10,54,21,14,20,20,26,30,31,30,54,24,138,20,19,30,54,21,30,43,55,57,16,11,11,7,7,21,
+ 3,1,10,14,7,31,26,133,22,0,23,130,22,8,57,15,23,22,23,27,33,13,11,135,7,4,10,56,54,43,43,137,
+ 30,6,33,30,43,30,16,43,8,130,1,1,3,54,130,42,131,30,130,21,131,30,130,21,130,30,7,42,43,57,42,14,
+ 9,7,9,130,7,3,9,7,20,28,132,22,1,15,30,2,24,15,22,208,18,2,15,56,22,150,18,134,22,3,27,31,
+ 14,11,141,7,1,22,23,135,22,150,18,25,22,14,57,24,18,23,14,23,22,22,23,33,20,11,7,7,20,8,1,4,
+ 21,7,10,57,54,54,135,43,11,54,24,14,20,20,26,30,42,42,33,30,54,138,43,19,54,20,24,42,53,56,57,16,
+ 11,11,7,7,21,3,1,10,14,7,30,26,132,22,6,23,15,23,18,22,57,15,130,22,3,29,30,11,11,133,7,10,
+ 9,7,14,56,53,42,30,24,20,24,26,132,30,7,31,30,24,43,24,14,43,8,130,1,1,3,54,130,42,2,30,24,
+ 20,130,14,4,20,24,24,20,20,130,14,8,20,24,30,42,43,55,53,16,9,132,7,3,9,7,13,31,132,22,1,15,
+ 26,1,24,15,209,18,2,15,56,19,152,18,132,22,3,26,31,14,10,141,7,1,22,23,132,22,133,18,0,22,146,18,
+ 24,22,14,57,24,23,16,5,13,25,18,23,33,20,11,7,7,20,8,1,4,21,7,10,54,42,131,30,130,24,7,20,
+ 20,14,14,20,20,26,30,131,42,2,31,24,21,132,20,130,21,21,20,20,14,24,30,42,53,56,57,16,11,11,7,7,
+ 21,3,1,10,14,7,30,26,130,22,15,18,26,16,5,14,25,18,57,15,22,22,23,31,24,11,10,133,7,8,9,7,
+ 21,57,53,42,30,26,30,133,42,8,33,30,30,20,42,24,14,43,8,130,1,1,3,54,130,42,1,30,24,130,20,4,
+ 24,30,30,24,24,130,20,11,24,30,33,42,53,53,55,56,20,10,7,9,132,7,2,10,31,23,131,22,1,15,26,1,
+ 24,15,209,18,2,15,56,19,152,18,132,22,3,26,31,14,10,141,7,134,22,153,18,31,22,14,57,24,23,55,30,43,
+ 26,18,23,33,20,11,7,7,20,8,1,4,21,7,10,56,53,53,42,42,33,30,26,24,132,20,1,26,30,132,42,2,
+ 30,30,24,131,20,25,24,30,26,20,20,19,24,30,42,44,55,57,57,16,11,11,7,7,21,3,1,10,14,7,30,26,
+ 130,22,17,18,26,55,30,53,26,18,57,15,22,22,23,33,22,11,10,7,9,131,7,4,9,7,30,55,42,130,30,0,
+ 33,132,42,9,30,30,26,24,19,42,24,14,43,8,130,1,5,3,54,42,42,30,24,130,20,3,24,30,30,24,131,20,
+ 10,24,30,30,42,42,44,44,53,56,24,11,135,7,1,31,23,131,22,1,15,30,1,24,15,209,18,2,15,56,19,154,
+ 18,130,22,3,26,31,14,10,141,7,132,22,156,18,29,14,57,24,18,53,58,55,23,22,23,42,20,11,7,7,20,8,
+ 1,4,21,7,10,56,53,53,42,42,30,30,24,132,20,1,26,30,132,42,2,31,30,24,131,20,2,24,30,26,131,20,
+ 19,26,30,42,53,55,57,57,16,11,11,7,7,21,3,1,10,14,7,31,26,131,22,14,23,55,58,53,22,22,57,15,
+ 22,22,23,42,14,11,9,135,7,4,43,53,42,30,30,133,42,10,30,30,26,24,24,20,42,24,14,43,8,130,1,4,
+ 3,54,42,30,24,130,20,3,24,30,30,24,131,20,3,24,30,30,33,132,42,2,55,26,13,133,7,3,9,7,26,25,
+ 131,22,1,15,30,1,24,15,209,18,2,15,56,19,151,18,0,22,130,18,5,22,22,26,31,14,10,141,7,131,22,156,
+ 18,29,22,13,56,23,13,18,22,18,15,15,22,31,20,11,7,7,20,8,1,4,21,7,10,56,53,44,42,30,24,24,
+ 132,20,1,26,30,132,42,2,31,30,24,131,20,27,24,30,24,20,20,19,20,24,30,42,42,53,55,57,57,16,11,11,
+ 7,7,21,3,1,10,14,7,28,23,132,15,12,18,22,18,14,15,56,15,22,22,26,33,13,11,135,7,1,9,53,136,
+ 42,11,30,30,26,24,24,20,20,42,24,20,53,8,130,1,3,2,54,30,24,130,20,3,24,30,30,24,131,20,2,24,
+ 30,30,134,42,2,53,30,13,133,7,9,9,7,20,27,22,22,18,22,15,30,1,24,15,209,18,2,15,56,19,156,18,
+ 4,22,26,31,14,10,141,7,131,22,157,18,2,13,56,54,131,42,20,43,42,43,55,20,11,7,7,20,8,1,4,21,
+ 7,10,57,55,53,42,42,30,131,24,2,26,30,30,132,42,3,31,30,24,20,130,24,7,30,42,30,26,24,24,26,30,
+ 130,42,17,44,53,55,56,57,16,11,10,7,7,21,3,1,10,14,6,43,53,130,42,14,43,43,42,42,43,42,43,57,
+ 15,22,22,28,30,11,11,133,7,4,9,7,11,53,33,132,42,5,33,33,30,30,24,23,131,20,4,42,24,24,54,8,
+ 130,1,9,2,43,24,20,20,19,23,26,26,24,131,20,14,23,26,30,33,42,33,33,30,30,26,26,42,42,14,9,132,
+ 7,9,9,7,13,29,22,22,18,22,15,30,2,24,15,18,156,15,147,18,145,15,0,18,132,15,0,18,133,15,3,18,
+ 15,56,19,144,15,140,18,3,25,31,14,10,141,7,1,18,22,141,18,135,15,0,18,133,15,130,18,5,13,54,24,19,
+ 22,23,130,22,15,23,42,20,11,7,7,20,8,1,4,21,7,10,57,54,54,135,43,2,54,53,33,130,42,5,31,30,
+ 24,20,26,55,138,43,19,56,43,44,53,55,56,56,16,11,10,7,7,21,3,1,10,14,7,30,25,133,22,11,23,22,
+ 18,24,57,15,22,22,31,24,11,10,133,7,4,9,7,20,57,54,130,55,2,54,53,53,130,43,2,42,30,30,130,20,
+ 4,43,30,26,56,8,130,1,8,2,43,23,20,20,30,43,43,42,131,30,2,42,42,43,131,53,10,43,43,42,42,43,
+ 54,54,16,10,7,9,132,7,7,10,31,22,18,22,22,15,30,2,24,15,18,153,15,153,18,157,15,1,56,19,144,15,
+ 140,18,3,25,31,14,10,141,7,1,18,22,141,18,141,15,131,18,25,14,54,22,15,22,13,22,18,18,23,33,20,11,
+ 7,7,20,8,1,4,21,7,10,43,30,24,21,135,20,10,43,54,42,42,31,30,24,20,30,54,21,138,20,1,24,56,
+ 130,53,14,55,55,16,11,10,7,7,21,3,1,10,14,7,31,25,132,18,12,22,14,22,15,18,57,15,18,23,33,20,
+ 11,9,133,7,7,9,7,30,57,54,54,43,43,135,42,8,57,24,20,20,43,42,30,56,6,130,1,7,2,43,20,20,
+ 24,56,43,30,130,42,0,43,130,42,130,30,10,42,42,43,42,43,43,54,56,57,22,11,135,7,6,28,23,18,18,22,
+ 15,30,2,24,15,18,152,15,149,18,4,15,18,15,18,18,157,15,1,56,17,143,15,141,18,3,26,31,13,10,141,7,
+ 1,18,22,141,18,141,15,131,18,25,13,54,22,23,16,5,13,25,18,23,33,19,11,7,7,20,8,1,4,21,7,10,
+ 43,30,24,21,136,20,8,43,53,30,30,24,20,24,56,21,140,20,1,24,56,130,53,31,55,16,11,10,7,7,21,3,
+ 1,10,14,7,31,25,22,22,18,18,25,16,5,14,23,18,57,15,18,23,33,14,11,9,135,7,5,30,42,30,30,24,
+ 21,132,20,11,14,20,14,43,24,20,24,43,42,31,56,8,130,1,8,2,43,20,24,30,43,20,14,14,133,20,130,14,
+ 132,20,5,21,24,30,53,24,11,135,7,6,24,25,18,18,22,15,26,2,24,15,18,162,15,132,18,169,15,1,56,17,
+ 147,15,137,18,3,26,31,13,10,141,7,1,18,22,137,18,148,15,26,18,13,54,22,23,55,30,43,26,18,23,33,19,
+ 11,7,7,20,8,1,4,21,7,10,43,30,24,21,136,20,7,24,54,26,24,20,16,42,30,142,20,34,43,54,42,53,
+ 55,16,11,10,7,7,21,3,1,10,14,7,31,25,18,18,22,18,26,55,30,43,25,19,57,15,22,25,31,13,11,135,
+ 7,7,8,43,42,42,30,24,21,21,134,20,17,43,24,24,30,54,43,33,42,56,6,1,1,2,42,24,26,30,43,143,
+ 20,6,21,21,24,30,53,30,13,133,7,8,9,7,20,27,18,18,22,15,26,2,24,15,17,158,15,142,18,163,15,1,
+ 56,16,147,15,137,18,3,26,31,13,10,141,7,1,18,22,138,18,147,15,26,18,13,54,22,18,53,58,53,22,18,23,
+ 33,19,11,7,7,20,8,1,4,21,7,10,43,30,24,21,134,20,4,21,20,24,43,24,130,20,1,30,30,138,20,0,
+ 21,130,20,17,42,43,30,53,56,16,10,10,7,7,21,3,1,10,14,7,31,25,131,18,12,22,53,58,53,18,22,57,
+ 15,22,28,30,11,10,133,7,8,9,7,11,53,42,30,30,24,21,135,20,17,43,30,30,33,30,54,53,31,30,54,7,
+ 1,2,42,30,30,24,43,132,20,0,21,138,20,6,21,24,30,43,42,14,9,132,7,3,9,7,13,28,130,18,1,15,
+ 26,2,24,15,17,143,15,0,17,142,15,142,18,138,15,0,17,150,15,1,56,17,147,15,137,18,3,26,31,13,10,141,
+ 7,1,18,22,137,18,148,15,6,18,13,54,23,15,18,23,130,18,16,23,33,19,11,7,7,20,8,1,4,21,7,10,
+ 43,30,24,21,136,20,1,24,43,131,20,1,42,30,142,20,17,43,43,30,53,56,14,10,10,7,7,21,3,1,10,14,
+ 7,31,25,132,18,11,22,23,22,18,22,57,15,22,31,24,10,10,133,7,8,9,7,20,55,42,30,30,24,21,135,20,
+ 17,43,42,31,42,42,30,54,30,20,24,54,6,2,43,30,24,24,43,144,20,6,21,24,30,42,43,16,9,134,7,6,
+ 10,31,22,18,22,15,26,2,24,15,17,155,15,150,18,136,15,1,17,17,147,15,1,56,17,146,15,138,18,3,26,31,
+ 14,10,141,7,1,18,22,138,18,147,15,4,18,13,54,23,15,132,18,16,23,33,19,11,7,7,20,8,1,4,21,7,
+ 10,43,30,24,21,136,20,1,21,43,130,20,2,24,43,30,140,20,19,21,20,43,43,30,55,57,14,10,10,7,7,21,
+ 3,1,10,14,7,31,25,136,18,9,22,57,15,23,33,20,10,9,7,9,131,7,8,9,7,24,53,42,30,30,21,21,
+ 135,20,0,43,131,42,12,33,21,54,24,14,24,54,6,30,30,20,20,43,144,20,8,21,21,24,30,53,20,10,7,9,
+ 132,7,6,9,28,23,18,22,15,26,2,24,15,18,130,15,0,17,132,15,0,17,142,15,133,18,0,17,148,18,142,15,
+ 0,17,140,15,4,56,17,15,17,17,132,15,0,17,136,15,139,18,5,26,31,13,10,7,9,137,7,3,9,7,18,22,
+ 139,18,145,15,5,18,18,13,54,23,15,132,18,16,23,33,19,10,7,7,20,8,1,4,21,7,10,43,30,24,21,136,
+ 20,7,21,43,20,20,24,26,43,30,142,20,17,43,43,42,55,57,14,10,10,7,7,24,3,1,10,14,7,31,25,133,
+ 18,12,22,18,18,22,57,15,23,33,14,10,7,7,9,131,7,8,9,7,30,43,42,30,24,21,21,135,20,0,43,130,
+ 42,13,33,26,23,14,43,24,20,30,54,43,24,20,20,43,144,20,8,21,21,24,30,54,24,11,7,9,131,7,7,9,
+ 7,24,25,18,22,15,30,2,24,15,18,149,15,136,18,0,22,140,23,0,22,136,18,154,15,3,56,19,15,17,142,15,
+ 139,18,5,22,27,33,13,10,7,139,9,2,7,22,22,140,18,145,15,4,18,14,54,23,15,132,18,16,23,33,19,10,
+ 7,7,20,8,1,4,21,7,10,43,30,24,21,136,20,7,24,43,20,24,30,24,42,30,142,20,17,43,43,42,56,57,
+ 14,10,10,7,7,24,3,1,10,20,7,31,25,136,18,8,22,57,15,26,31,13,10,7,7,134,9,5,43,43,30,30,
+ 24,21,136,20,13,43,43,42,33,30,43,20,16,14,54,30,26,26,24,130,20,0,43,145,20,6,21,24,30,53,30,11,
+ 7,133,9,6,7,20,27,18,22,15,30,2,24,15,18,145,15,1,18,15,136,18,1,23,28,141,31,2,28,26,22,138,
+ 18,150,15,1,56,19,143,15,137,18,8,22,18,22,23,44,33,13,10,7,140,9,5,25,22,22,18,18,22,137,18,142,
+ 15,130,18,3,13,54,23,15,130,18,18,22,18,23,33,19,10,7,7,20,8,1,4,21,7,10,43,30,24,21,136,20,
+ 7,24,43,24,30,26,20,30,30,142,20,17,43,53,53,57,57,14,10,10,7,7,21,3,1,10,20,7,31,25,136,18,
+ 7,22,57,15,28,30,11,10,7,133,9,7,7,11,53,42,30,30,24,21,135,20,12,24,54,30,42,26,42,21,43,20,
+ 23,21,54,30,132,20,2,43,30,14,143,20,7,21,21,30,43,42,13,9,7,132,9,6,7,13,28,18,22,15,30,2,
+ 24,15,18,142,15,140,18,5,25,33,10,6,9,10,139,11,2,24,31,22,140,18,147,15,1,56,19,141,15,140,18,7,
+ 22,23,33,28,14,22,14,7,139,9,4,7,26,28,22,22,141,18,138,15,132,18,3,14,56,23,15,132,18,16,23,33,
+ 19,10,7,7,20,8,1,4,21,7,10,43,30,24,21,136,20,8,24,43,26,26,20,20,30,30,14,140,20,18,21,43,
+ 54,53,57,57,14,10,10,7,7,21,3,1,10,20,7,31,25,136,18,7,22,57,15,31,26,11,10,7,133,9,7,7,
+ 14,55,42,30,30,24,21,134,20,21,21,54,30,31,30,20,43,6,8,56,30,26,20,43,24,20,20,24,30,24,43,30,
+ 143,20,7,21,21,24,42,43,14,9,7,132,9,6,7,10,31,22,22,15,30,1,24,15,154,18,8,22,25,33,13,6,
+ 4,5,6,7,139,9,2,28,31,22,151,18,3,15,18,18,15,130,18,3,15,56,19,15,152,18,3,22,23,33,26,130,
+ 10,0,7,141,9,4,7,31,27,22,22,156,18,3,14,54,23,15,132,18,16,23,33,19,10,7,7,20,8,1,4,24,
+ 7,10,42,30,24,21,136,20,8,24,54,24,20,20,16,42,30,14,141,20,20,43,56,55,56,57,14,10,10,7,9,21,
+ 3,1,10,20,7,30,25,22,22,18,132,22,8,18,22,57,18,33,24,11,9,7,133,9,7,7,21,53,42,30,24,21,
+ 21,132,20,24,14,21,54,30,31,30,24,20,43,8,1,10,56,24,16,21,30,16,24,30,30,33,30,54,30,143,20,6,
+ 21,24,42,53,19,10,7,134,9,4,28,23,18,15,30,1,24,15,153,18,6,22,27,33,13,9,9,6,143,7,2,31,
+ 31,22,157,18,2,15,56,19,151,18,15,22,22,25,44,24,10,10,9,7,9,10,9,9,10,9,10,130,9,10,10,9,
+ 10,9,10,9,7,31,27,22,22,155,18,25,14,56,23,18,22,18,22,18,22,23,33,16,10,7,7,20,8,1,4,24,
+ 9,11,43,30,24,21,136,20,1,54,30,131,20,2,21,54,24,140,20,18,30,54,43,55,55,56,14,10,10,7,9,24,
+ 3,1,10,20,7,30,25,135,22,9,18,22,57,23,42,20,11,9,9,10,131,9,7,10,7,30,53,42,30,30,21,133,
+ 20,19,24,54,30,31,30,24,20,16,43,8,1,1,12,42,14,30,30,20,30,30,130,42,2,24,43,30,142,20,18,21,
+ 24,30,54,24,10,7,10,9,10,9,9,10,7,26,25,22,15,26,1,24,15,152,18,7,22,27,33,11,9,10,7,9,
+ 142,10,5,9,9,33,31,22,22,155,18,2,15,56,19,150,18,9,22,22,25,44,24,10,10,9,7,9,143,10,5,9,
+ 9,31,27,22,22,154,18,25,15,56,23,18,22,18,18,22,22,23,33,16,10,7,9,20,8,1,4,21,9,11,43,30,
+ 24,21,135,20,2,54,30,14,130,20,4,24,24,21,54,24,138,20,2,30,54,30,130,53,13,55,14,10,10,7,9,24,
+ 3,1,10,20,7,30,26,135,22,8,18,22,57,24,42,16,11,9,9,133,10,3,9,56,57,56,130,54,133,43,4,54,
+ 30,31,30,24,130,20,10,43,8,1,1,8,42,14,30,30,24,30,131,42,1,31,20,143,43,130,54,3,57,30,11,9,
+ 133,10,5,7,22,27,22,15,26,1,24,15,150,18,8,22,22,27,33,13,9,10,7,9,144,10,8,9,9,33,31,23,
+ 22,18,18,22,151,18,2,15,56,22,149,18,8,22,22,25,44,23,10,10,9,7,147,10,2,9,31,27,131,22,150,18,
+ 4,22,15,56,23,18,132,22,15,25,53,14,10,9,9,20,8,1,4,24,9,12,57,54,54,135,43,2,54,30,14,130,
+ 20,5,24,30,33,30,30,54,138,43,19,54,30,42,44,42,53,56,14,10,10,9,9,24,3,1,10,20,7,30,26,135,
+ 22,7,18,22,57,26,33,16,11,9,133,10,11,9,11,53,42,30,30,24,20,20,21,24,24,132,30,0,24,131,20,9,
+ 54,8,1,1,10,42,14,30,43,30,131,42,3,31,30,24,14,133,20,0,21,130,24,1,30,30,133,24,3,43,30,11,
+ 9,133,10,5,9,14,29,22,15,26,2,24,15,22,147,18,9,22,22,23,28,42,14,10,10,7,9,145,10,5,11,9,
+ 10,33,31,23,130,22,151,18,1,15,56,147,18,130,22,7,23,26,44,23,10,10,9,7,149,10,2,9,31,27,133,22,
+ 147,18,4,22,15,56,23,18,131,22,18,23,36,30,13,11,9,9,24,8,1,3,24,9,11,54,42,30,24,21,131,20,
+ 1,21,21,132,20,9,24,30,30,33,42,30,24,24,21,21,132,20,23,21,21,30,30,42,42,30,42,53,56,14,10,9,
+ 9,10,24,3,1,8,23,7,42,28,23,135,22,6,23,57,28,30,16,11,9,133,10,10,9,14,55,42,42,30,24,24,
+ 26,30,33,131,42,1,30,24,130,20,11,24,24,54,8,2,2,10,42,19,30,43,31,130,42,2,31,30,24,133,20,3,
+ 24,30,30,33,131,42,9,30,30,26,24,24,30,43,43,13,9,134,10,4,11,31,23,15,30,1,26,18,148,22,9,23,
+ 23,31,44,19,11,10,7,10,11,133,10,0,11,135,10,0,11,130,10,5,11,9,10,33,31,23,153,22,3,17,56,22,
+ 18,146,22,10,23,23,27,44,23,11,11,9,7,10,11,131,10,0,11,131,10,0,11,137,10,4,11,10,9,31,27,133,
+ 22,136,18,134,22,7,18,22,18,22,15,56,23,18,130,22,19,23,36,28,9,10,13,9,10,20,21,12,20,21,9,12,
+ 56,53,42,30,23,130,20,2,24,30,26,131,20,3,24,30,30,33,131,42,2,30,30,24,130,20,2,24,26,30,130,42,
+ 19,33,30,30,42,55,57,14,10,9,9,10,21,20,12,21,20,7,31,51,26,134,23,8,22,24,57,33,26,16,11,9,
+ 11,131,10,10,11,9,24,55,42,30,30,26,30,30,33,131,42,1,30,24,130,20,0,24,130,30,131,43,9,30,24,43,
+ 43,33,42,42,30,30,24,132,20,4,24,24,30,30,33,131,42,2,30,30,26,130,24,6,30,43,55,16,10,10,11,133,
+ 10,3,31,25,18,30,1,53,31,146,33,9,32,33,33,44,42,22,13,11,7,10,150,11,4,10,10,42,44,31,132,33,
+ 1,32,31,140,33,0,31,130,33,2,31,31,57,131,33,141,31,131,33,6,44,44,25,13,11,10,7,153,11,4,9,31,
+ 40,33,33,139,31,131,33,134,31,2,28,58,42,130,28,2,31,44,26,131,9,12,10,11,11,14,16,20,11,11,13,55,
+ 42,30,24,130,20,2,24,30,24,131,20,40,24,26,30,31,33,42,42,30,30,24,20,16,19,19,20,26,30,33,42,30,
+ 30,24,24,30,42,55,57,14,10,9,9,11,11,20,16,14,11,10,11,33,51,134,44,7,36,44,58,53,24,19,11,10,
+ 133,11,8,10,30,53,30,30,26,30,31,31,130,42,1,30,26,131,20,4,23,26,26,24,20,130,16,10,20,24,30,42,
+ 43,31,33,30,24,23,19,130,16,12,20,20,24,26,30,31,33,42,42,33,30,30,24,130,20,6,24,30,43,56,20,10,
+ 10,133,11,4,9,33,51,29,53,150,20,6,16,23,22,14,13,9,10,152,11,6,10,10,31,24,19,16,20,131,19,164,
+ 20,0,19,131,20,5,24,24,19,13,10,7,155,11,0,10,154,20,1,24,20,130,19,6,20,24,9,9,10,9,9,131,
+ 11,0,10,130,11,3,13,58,57,56,130,55,2,56,57,56,130,54,1,55,56,136,57,5,55,55,54,55,54,56,132,57,
+ 10,56,55,56,57,57,58,57,14,10,9,9,130,11,0,10,130,11,2,10,11,26,133,16,7,20,16,16,20,24,24,22,
+ 10,134,11,1,10,56,137,57,0,56,132,55,130,56,0,54,131,55,0,56,134,57,1,55,54,132,55,0,56,136,57,0,
+ 56,131,54,6,56,57,57,58,30,11,10,133,11,4,10,13,22,20,20,0,7,149,9,6,7,10,22,22,9,10,13,152,
+ 11,3,13,10,10,11,130,7,173,9,4,10,19,22,11,7,157,11,1,7,7,152,9,1,7,7,130,9,6,7,9,13,
+ 10,7,9,13,135,11,1,12,43,130,21,131,8,4,12,21,12,21,12,130,8,1,12,21,130,12,131,8,4,12,21,12,
+ 21,12,131,8,132,21,5,30,54,16,11,10,9,134,11,4,13,10,11,14,10,134,9,4,7,10,23,24,10,134,11,13,
+ 12,43,43,21,21,12,8,8,6,12,21,12,21,12,131,8,4,21,12,12,21,12,130,8,5,12,21,12,21,43,6,130,
+ 8,4,12,21,12,21,12,130,8,1,12,21,130,12,131,8,10,12,21,12,21,21,12,12,30,30,11,10,134,11,3,7,
+ 7,9,7,152,9,130,11,2,13,11,11,135,13,3,11,13,11,11,137,13,6,11,13,11,13,11,10,10,176,9,16,11,
+ 16,9,11,13,11,13,11,13,13,11,13,13,11,13,13,11,137,13,8,11,13,11,13,13,11,13,13,10,161,9,2,10,
+ 13,11,134,13,5,11,12,54,43,43,21,130,8,0,12,131,21,0,12,130,8,132,21,130,8,0,12,131,21,0,12,130,
+ 8,130,21,8,43,21,21,43,54,19,11,10,9,134,13,1,11,13,130,11,135,9,6,7,10,14,11,13,13,11,130,13,
+ 5,11,20,54,43,43,21,131,12,131,21,0,12,130,8,0,12,131,21,131,8,130,21,1,43,21,130,8,0,12,131,21,
+ 0,12,130,8,132,21,131,8,132,21,13,12,21,21,43,16,10,11,13,13,11,13,11,13,10,130,9,132,11,0,10,146,
+ 11,1,10,11,158,13,0,11,137,10,6,11,10,11,11,10,11,10,158,11,131,10,161,13,141,11,0,10,142,11,3,10,
+ 11,10,11,137,13,5,11,14,54,54,43,21,130,12,0,21,130,43,0,21,130,12,0,21,131,43,131,12,0,21,130,43,
+ 0,21,131,12,130,43,8,54,21,21,54,54,20,13,11,10,136,13,3,14,11,10,10,137,11,134,13,9,11,21,58,54,
+ 54,21,21,12,12,21,130,43,0,21,131,12,0,30,130,43,0,21,130,12,0,21,131,43,0,21,130,12,0,21,130,43,
+ 0,21,130,12,0,21,131,43,131,12,0,21,130,43,8,21,12,21,21,30,54,23,11,11,134,13,130,11,154,14,152,13,
+ 0,14,132,13,181,14,1,13,14,136,13,0,14,148,13,161,14,138,13,7,20,54,54,21,21,12,12,21,131,43,131,12,
+ 0,21,130,43,0,21,131,12,131,43,0,21,130,12,0,21,131,43,7,21,21,54,54,22,13,13,11,135,13,1,14,13,
+ 141,14,132,13,9,14,11,30,57,54,43,21,21,12,12,131,43,0,21,130,12,0,21,130,43,0,21,131,12,0,21,130,
+ 43,4,21,21,12,12,21,131,43,131,12,0,21,130,43,0,21,131,12,0,21,130,43,9,21,12,21,21,43,58,26,13,
+ 11,14,132,13,131,14,255,14,188,14,3,13,20,54,54,130,21,1,12,21,130,43,4,21,12,21,12,21,131,43,4,21,
+ 12,21,12,21,130,43,4,21,12,21,12,12,131,43,8,21,21,43,54,54,24,14,14,11,157,14,3,13,54,57,54,130,
+ 21,1,12,21,130,43,0,30,131,12,0,30,130,43,4,21,12,21,12,21,131,43,4,21,21,12,12,21,130,43,4,21,
+ 12,21,12,21,131,43,4,21,12,21,12,21,131,43,131,21,4,54,58,30,16,11,137,14,255,14,189,14,2,20,58,43,
+ 131,21,131,43,130,21,1,12,21,130,43,132,21,131,43,130,21,1,12,21,131,43,8,21,21,30,54,57,24,16,16,13,
+ 158,14,2,54,57,54,131,21,131,43,1,21,12,130,21,131,43,132,21,130,43,130,21,1,12,21,131,43,132,21,130,43,
+ 1,21,12,130,21,0,30,130,43,132,21,4,54,58,43,20,13,137,14,255,16,188,16,7,15,20,58,43,30,21,21,43,
+ 130,54,0,43,131,21,131,54,131,21,0,43,131,54,131,21,131,54,10,43,21,43,43,54,58,24,20,20,13,15,155,16,
+ 8,14,21,58,58,54,43,21,21,30,131,54,131,21,0,43,130,54,0,43,131,21,131,54,4,21,21,43,21,43,130,54,
+ 0,43,131,21,131,54,132,21,131,54,131,21,6,54,54,58,54,24,14,14,136,16,169,19,0,17,144,19,131,16,197,19,
+ 0,17,130,16,178,19,2,15,20,57,161,54,0,43,130,54,6,57,57,30,24,26,16,15,155,19,4,14,24,58,57,56,
+ 130,54,0,56,130,57,132,54,131,57,131,54,0,56,130,57,132,54,131,57,132,54,130,57,0,56,131,54,0,56,130,57,
+ 132,54,6,57,57,58,57,30,20,14,136,19,255,19,189,19,0,14,162,26,11,24,26,26,30,30,42,53,42,42,20,15,
+ 22,153,19,4,22,14,20,26,24,186,26,4,30,55,42,14,22,135,19,255,19,189,19,0,16,131,30,2,26,26,24,154,
+ 26,1,30,24,132,30,4,42,43,43,20,15,154,19,3,22,14,30,43,188,42,2,43,43,14,136,19,254,44,0,51,189,
+ 44,0,42,162,30,1,31,31,134,30,1,33,51,156,44,1,31,31,190,30,0,42,136,44,169,9,1,14,10,210,9,1,
+ 12,11,186,9,2,14,11,9,162,10,0,9,135,10,3,9,10,16,10,155,9,0,10,130,9,6,10,9,13,14,9,10,
+ 9,169,10,5,9,10,20,13,9,10,130,9,1,10,10,137,9,170,5,0,7,211,5,1,6,6,186,5,0,7,174,5,
+ 1,6,9,162,5,1,7,6,174,5,1,9,6,143,5,169,6,4,5,6,7,6,5,208,6,3,5,7,7,5,183,6,
+ 4,5,6,9,6,5,171,6,4,5,7,10,6,5,159,6,3,5,9,7,5,171,6,4,5,6,11,6,5,141,6,171,
+ 5,1,6,7,211,5,1,7,6,186,5,1,9,6,173,5,1,6,10,162,5,1,7,7,174,5,1,11,6,141,5,172,
+ 5,1,6,7,211,5,1,7,6,186,5,1,9,6,173,5,1,6,10,162,5,1,7,7,174,5,1,10,6,140,5,0,
+ 5,131,6,130,5,130,6,1,5,6,130,5,130,6,131,5,4,6,5,6,5,5,130,6,133,5,1,6,6,132,5,6,
+ 6,5,6,7,6,5,6,132,5,0,6,138,5,3,6,5,6,6,131,5,1,6,6,131,5,1,6,6,131,5,1,6,
+ 6,132,5,5,6,5,6,5,6,6,139,5,3,6,5,6,6,139,5,5,6,6,5,7,7,5,130,6,134,5,130,6,
+ 132,5,5,6,5,5,6,5,6,130,5,4,6,6,5,6,5,130,6,1,5,6,136,5,1,6,6,133,5,13,6,6,
+ 5,6,9,6,5,6,5,5,6,5,6,6,136,5,1,6,6,135,5,0,6,132,5,3,6,6,5,6,131,5,131,6,
+ 4,5,7,10,6,5,130,6,134,5,133,6,130,5,4,6,6,5,6,6,131,5,131,6,8,5,9,7,5,6,5,5,
+ 6,6,131,5,3,6,5,5,6,131,5,3,6,6,5,5,130,6,134,5,4,6,5,5,6,6,132,5,10,6,5,6,
+ 5,6,11,6,5,6,5,6,134,5,0,6,175,6,0,7,211,6,0,7,187,6,3,7,6,6,7,169,6,3,7,5,
+ 7,7,162,6,3,7,6,6,7,169,6,3,7,5,7,8,139,6,154,2,0,4,170,2,0,1,167,2,2,3,2,1,
+ 167,2,2,4,2,1,166,2,2,3,5,1,167,2,2,5,3,1,166,2,2,3,5,1,167,2,2,5,3,1,140,2,
+ 155,2,0,4,168,2,2,3,3,1,167,2,0,3,169,2,0,4,168,2,2,3,5,1,167,2,1,6,3,167,2,2,
+ 3,5,1,167,2,3,5,3,1,3,138,2,153,2,6,3,2,2,4,2,2,3,147,2,0,3,142,2,5,3,2,3,
+ 3,2,3,164,2,5,3,2,4,2,2,3,164,2,5,3,2,4,2,2,3,163,2,6,3,2,4,5,1,2,3,163,
+ 2,5,3,2,6,3,2,3,163,2,6,3,2,3,6,1,2,3,146,2,0,3,143,2,5,3,2,5,3,1,3,137,
+ 2,157,2,0,4,168,2,1,3,3,168,2,0,3,169,2,0,4,168,2,2,3,5,1,167,2,1,5,3,167,2,2,
+ 3,5,1,167,2,1,5,3,138,2,158,1,0,3,148,1,0,2,146,1,1,2,2,168,1,1,2,2,147,1,1,2,
+ 2,146,1,1,3,2,167,1,1,2,4,151,1,1,2,2,142,1,1,5,2,167,1,1,2,4,147,1,0,2,147,1,
+ 1,4,2,137,1,158,4,0,3,149,4,1,5,3,209,4,1,3,5,146,4,0,3,168,4,1,3,3,151,4,1,3,
+ 5,142,4,0,3,168,4,1,3,3,148,4,1,6,3,145,4,0,3,138,4,180,4,3,3,4,5,3,209,4,1,2,
+ 5,214,4,1,2,5,205,4,3,3,3,6,3,156,4,181,4,3,3,3,5,3,209,4,3,2,5,4,3,212,4,3,
+ 2,5,3,3,203,4,3,3,3,6,3,155,4,181,3,4,4,2,3,5,2,209,3,1,2,5,214,3,1,2,5,204,
+ 3,4,4,3,3,6,2,154,3,183,3,3,2,3,5,2,209,3,1,2,5,214,3,1,2,5,205,3,3,2,3,6,
+ 2,153,3,184,3,3,2,3,5,2,209,3,3,2,5,3,2,212,3,3,2,5,3,2,203,3,3,2,2,6,2,152,
+ 3,180,3,9,2,3,3,2,3,2,3,5,2,3,131,2,1,3,2,198,3,8,2,2,3,2,2,5,2,2,3,131,
+ 2,204,3,7,2,3,3,2,5,2,2,3,131,2,196,3,7,2,3,2,2,5,2,3,3,130,2,146,3,187,1,1,
+ 4,4,211,1,0,6,215,1,0,6,206,1,1,3,5,151,1,182,3,131,4,3,3,5,6,3,131,4,1,3,4,198,
+ 3,133,4,1,7,3,132,4,203,3,133,4,1,7,3,132,4,194,3,132,4,3,3,6,6,3,132,4,145,3,187,5,
+ 1,6,6,211,5,1,7,4,214,5,1,7,4,205,5,2,6,6,4,150,5,189,5,0,4,209,5,2,4,6,4,214,
+ 5,1,6,4,204,5,3,4,6,5,4,150,5,0,11,130,12,1,11,12,131,11,4,12,11,11,12,11,133,12,5,11,
+ 12,11,11,12,12,132,11,1,12,12,132,11,1,12,11,130,12,1,11,12,130,11,2,12,12,11,134,12,3,11,12,11,
+ 10,132,12,11,11,11,12,12,11,11,12,11,11,12,11,12,130,11,5,12,11,11,12,11,12,130,11,7,12,11,11,12,
+ 12,11,12,12,131,11,7,12,12,11,11,12,11,12,12,130,11,3,12,11,12,11,131,12,1,11,12,130,11,5,12,12,
+ 11,12,11,11,131,12,1,11,11,130,12,4,11,12,10,12,10,133,12,5,11,12,12,11,11,12,130,11,7,12,12,11,
+ 11,12,11,11,12,132,11,132,12,132,11,0,12,130,11,14,12,12,11,11,12,12,11,12,11,12,12,11,11,12,12,130,
+ 11,4,12,12,11,11,12,130,11,9,12,12,11,11,12,11,11,12,11,11,135,12,4,11,12,10,12,11,133,12,4,11,
+ 12,12,11,12,130,11,12,12,12,11,12,12,11,12,11,12,11,11,12,12,130,11,2,12,12,11,131,12,5,11,12,12,
+ 11,11,12,135,11,0,12,131,11,6,12,11,12,12,11,11,12,131,11,135,12,3,11,12,12,10,136,12,1,11,12,135,
+ 11,0,12,130,11,255,63,255,63,212,63,255,55,255,55,212,55,255,42,255,42,212,42,255,42,255,42,212,42,138,55,3,
+ 56,55,56,56,132,55,1,54,54,131,55,1,56,56,197,55,3,56,56,55,56,131,55,0,54,130,55,5,56,55,56,55,
+ 55,56,194,55,1,56,56,133,55,9,54,54,55,55,56,55,56,56,55,56,194,55,1,56,56,133,55,9,54,54,55,55,
+ 56,55,56,56,55,56,182,55,140,56,2,58,57,57,130,56,2,55,57,57,131,56,1,57,58,197,56,3,58,58,56,57,
+ 131,56,1,57,57,131,56,1,58,57,196,56,3,57,58,56,57,131,56,2,57,57,55,130,56,1,58,58,196,56,3,57,
+ 59,57,57,130,56,2,55,57,57,131,56,3,57,58,56,57,182,56,132,53,2,43,42,42,130,43,3,53,53,58,54,130,
+ 43,11,42,57,54,30,56,55,42,43,43,58,53,53,133,43,1,42,43,179,53,2,43,43,42,132,43,18,57,57,43,53,
+ 43,42,55,56,30,54,56,42,43,42,57,54,43,43,44,131,43,1,42,43,179,53,2,43,43,42,131,43,16,53,56,58,
+ 43,53,43,42,53,57,30,43,57,43,53,42,57,57,134,43,2,42,43,43,179,53,1,43,42,132,43,18,54,58,43,53,
+ 53,42,43,57,43,30,57,53,42,43,54,58,43,53,44,131,43,2,42,43,43,174,53,132,26,0,30,132,33,16,42,42,
+ 58,53,42,42,30,56,21,4,6,6,54,43,42,42,58,130,42,132,33,1,42,30,179,26,2,30,33,42,130,33,19,42,
+ 42,57,57,42,42,33,53,43,5,6,6,30,53,42,33,58,54,42,42,132,33,2,42,31,30,178,26,2,28,31,42,130,
+ 33,19,42,42,56,58,42,43,33,42,57,6,5,6,21,56,42,33,56,56,42,42,132,33,2,42,33,30,179,26,1,31,
+ 42,131,33,18,42,53,58,42,43,42,33,57,12,4,6,12,56,42,42,43,58,42,42,132,33,2,42,33,30,174,26,132,
+ 54,9,43,26,31,33,31,30,42,42,58,53,130,42,19,54,6,20,24,12,20,56,42,42,58,42,42,33,30,30,31,30,
+ 31,24,42,179,54,25,43,30,30,33,31,30,42,42,57,57,42,42,30,57,8,10,30,20,12,57,42,31,58,43,42,42,
+ 130,30,3,31,33,26,30,180,54,31,30,26,33,31,30,33,42,56,58,42,42,31,56,20,6,24,21,10,54,43,31,56,
+ 56,42,42,33,30,30,31,33,26,30,180,54,32,30,24,30,30,31,33,42,43,58,42,42,31,53,30,6,24,24,10,30,
+ 55,31,53,58,42,42,33,30,30,31,33,30,26,43,174,54,133,63,24,58,30,31,33,30,42,42,58,53,42,42,53,54,
+ 10,21,20,20,30,57,42,42,58,42,42,33,130,30,2,33,30,57,181,63,8,59,30,30,33,30,42,42,57,57,130,42,
+ 1,57,12,130,20,7,21,57,43,31,58,43,42,42,130,30,2,33,26,54,182,63,30,43,26,33,31,33,42,56,58,42,
+ 42,30,57,20,14,21,21,20,54,53,31,56,56,42,42,33,30,30,33,26,42,61,181,63,30,54,24,33,30,33,42,43,
+ 58,42,42,30,55,30,12,21,20,20,42,56,31,53,58,42,42,33,30,30,33,30,30,58,175,63,132,63,9,59,63,57,
+ 26,33,30,42,42,58,53,130,42,19,57,21,14,20,20,54,55,42,42,58,42,42,33,30,31,33,26,54,63,59,179,63,
+ 33,62,63,58,30,31,30,42,42,57,57,42,42,33,56,43,12,20,14,43,57,42,31,58,43,42,42,30,30,33,26,43,
+ 63,62,62,178,63,33,62,63,63,30,30,33,33,42,56,58,42,42,33,54,54,20,20,14,30,57,43,31,56,56,42,42,
+ 33,30,33,31,30,62,63,62,178,63,14,62,62,63,54,26,33,33,42,43,58,42,42,33,43,57,130,20,15,21,57,53,
+ 33,53,58,42,42,33,30,30,33,26,58,63,62,174,63,133,63,3,58,58,30,31,130,42,10,58,53,42,42,33,53,57,
+ 43,30,56,57,130,42,0,58,130,42,5,33,33,30,30,57,58,181,63,3,59,58,43,28,130,42,23,57,57,42,42,33,
+ 43,57,54,30,54,57,43,42,33,57,54,42,42,33,33,42,26,57,58,182,63,2,58,56,26,130,42,24,56,58,42,42,
+ 33,42,57,56,30,43,57,55,42,33,56,57,42,42,33,33,42,26,54,58,59,181,63,7,58,57,30,33,42,42,53,58,
+ 131,42,9,56,57,43,43,57,56,42,42,53,58,130,42,5,33,42,30,42,58,59,175,63,132,63,4,62,58,57,42,31,
+ 130,42,1,58,53,131,42,3,53,57,57,56,131,42,0,58,132,42,4,33,30,57,58,59,179,63,4,62,58,57,43,30,
+ 130,42,6,57,57,42,44,42,42,53,130,57,0,43,130,42,1,58,54,132,42,3,30,56,57,58,179,63,4,62,58,57,
+ 56,30,130,42,3,56,58,42,53,130,42,3,56,57,57,54,130,42,1,57,56,132,42,4,30,54,57,58,62,179,63,10,
+ 59,57,57,30,33,42,42,53,58,42,53,130,42,3,55,57,57,55,130,42,1,53,58,132,42,4,30,43,57,58,62,174,
+ 63,133,58,10,57,56,30,30,42,44,44,58,53,53,44,131,42,0,53,130,42,4,44,44,58,43,53,131,42,3,30,56,
+ 57,57,180,58,10,57,56,42,30,42,42,44,57,57,42,53,131,42,0,53,130,42,4,53,44,58,54,44,131,42,3,30,
+ 54,57,57,180,58,10,57,57,43,30,42,42,44,56,58,42,53,131,42,0,44,130,42,5,43,44,57,56,42,44,130,42,
+ 3,30,43,57,57,180,58,10,57,57,54,30,42,42,44,53,58,42,53,131,42,1,44,44,130,42,4,44,55,58,42,53,
+ 130,42,3,30,42,56,57,175,58,132,57,24,56,55,43,24,53,44,53,53,58,54,53,53,44,42,56,56,43,57,53,44,
+ 53,53,58,43,53,130,44,4,53,30,43,54,56,179,57,4,56,54,55,24,42,130,53,24,57,57,43,53,44,42,55,57,
+ 43,56,55,42,53,44,58,54,53,53,44,44,53,30,42,55,56,180,57,32,54,55,30,30,53,44,53,56,58,42,55,44,
+ 44,53,57,54,56,56,42,53,44,57,57,53,53,44,44,53,42,30,55,54,56,179,57,10,56,55,42,24,53,44,53,54,
+ 58,43,53,130,44,10,57,54,54,57,53,44,44,55,57,42,53,130,44,4,42,30,53,54,56,174,57,132,54,3,53,53,
+ 20,30,131,53,1,58,54,130,53,11,57,30,5,5,8,57,55,53,53,58,43,55,131,53,1,42,24,130,53,178,54,4,
+ 53,55,24,24,55,130,53,15,57,56,53,55,53,55,54,6,5,6,43,56,53,53,58,54,133,53,3,24,42,53,53,178,
+ 54,3,53,55,30,20,131,53,15,56,58,44,55,53,53,57,10,5,6,30,57,53,53,57,57,133,53,3,24,30,55,53,
+ 179,54,3,55,43,20,42,130,53,17,55,58,43,55,53,53,57,21,5,6,12,57,53,53,55,57,53,55,131,53,3,30,
+ 24,53,53,174,54,132,42,9,30,14,26,55,53,53,55,55,58,54,130,55,12,57,6,12,21,10,21,58,53,55,58,53,
+ 55,55,130,53,3,55,30,20,30,179,42,25,30,20,20,55,53,53,55,55,57,57,53,55,53,58,8,7,24,12,12,58,
+ 55,53,58,54,55,55,130,53,3,55,42,20,24,180,42,24,24,14,53,55,53,55,55,56,57,44,56,53,58,21,6,21,
+ 20,8,56,56,53,57,56,53,55,132,53,1,20,24,180,42,25,24,14,42,55,53,53,55,55,58,43,55,53,56,43,5,
+ 20,21,8,43,57,53,56,57,53,55,55,130,53,3,55,24,20,30,174,42,133,20,1,42,56,132,55,16,58,54,55,55,
+ 57,54,8,24,20,20,21,58,55,56,58,53,56,132,55,5,56,43,24,20,20,14,177,20,1,30,56,132,55,16,58,57,
+ 55,56,55,58,10,21,20,21,20,57,56,55,58,54,56,132,55,2,56,55,24,180,20,0,26,133,55,15,57,57,53,56,
+ 53,58,20,14,21,21,20,54,57,55,58,56,134,55,4,56,30,20,20,14,177,20,2,24,53,56,131,55,17,56,58,53,
+ 56,53,58,30,10,24,21,20,42,58,55,57,57,53,56,132,55,1,56,42,175,20,131,56,130,57,131,56,18,57,56,58,
+ 54,56,57,57,58,21,14,20,14,54,58,57,57,58,54,57,133,56,130,57,178,56,1,57,57,133,56,16,58,57,55,57,
+ 56,58,30,12,20,14,30,58,57,56,58,54,57,134,56,1,57,57,178,56,1,57,57,132,56,130,57,15,53,57,55,58,
+ 54,12,20,14,21,58,57,56,58,56,56,57,133,56,1,57,57,178,56,1,57,57,132,56,8,57,57,58,53,57,56,57,
+ 57,12,130,20,6,57,57,56,57,57,55,57,133,56,1,57,57,174,56,140,57,1,58,54,130,57,5,58,58,30,30,54,
+ 62,130,57,1,58,54,196,57,2,58,56,55,130,57,4,59,43,30,43,59,130,57,1,58,54,198,57,0,53,130,57,9,
+ 59,54,30,30,58,58,57,57,58,56,197,57,1,58,53,130,57,5,58,57,30,30,57,59,131,57,0,55,183,57,140,57,
+ 1,58,54,131,57,4,58,62,62,59,58,130,57,1,58,56,196,57,2,58,57,56,130,57,0,58,130,62,0,58,130,57,
+ 1,58,56,198,57,1,54,58,130,57,3,59,62,62,58,130,57,0,58,198,57,1,58,54,131,57,3,58,62,62,58,130,
+ 57,2,58,57,56,183,57,140,58,1,63,59,133,58,0,59,131,58,1,59,63,197,58,1,62,59,133,58,0,59,132,58,
+ 1,63,59,196,58,1,59,63,139,58,1,63,59,196,58,1,59,63,139,58,1,62,63,184,58,255,63,255,63,212,63,255,
+ 63,255,63,212,63,255,63,255,63,212,63,255,63,255,63,212,63,255,63,255,63,212,63,255,63,255,63,212,63,255,63,255,
+ 63,212,63,255,63,255,63,212,63,255,63,255,63,212,63,255,63,255,63,212,63,255,63,255,63,212,63,255,63,255,63,212,
+ 63,255,63,255,63,212,63,255,63,255,63,212,63,255,63,255,63,212,63,255,63,255,63,212,63,255,63,255,63,212,63,255,
+ 63,255,63,212,63,
+};
+static const jj_frame pic_lab_f[] = {{341,240,0,0,0}};
+static const jj_sheet pic_lab = {pic_lab_pal, pic_lab_data, pic_lab_f, 1, 8};
+static const uint16_t pic_barry_pal[] = {0,65398,63153,62958,52656,54538,56427,42096,46243,48075,43817,37768,35528,29580,25290,27273,31270,27077,18986,18915,24931,20803,20706,18593,14793,12679,12614,8486,8421,12352,4259,33};
+static const uint8_t pic_barry_data[] = {
+ 52,0,66,0,75,0,89,0,102,0,117,0,132,0,147,0,162,0,177,0,191,0,208,0,228,0,248,0,15,1,35,1,
+ 57,1,80,1,102,1,123,1,144,1,163,1,178,1,189,1,200,1,209,1,138,0,0,12,130,16,129,0,4,16,16,0,
+ 16,0,138,0,0,17,135,12,1,9,12,138,0,4,23,16,17,17,21,130,22,2,20,12,16,137,0,7,29,20,20,22,
+ 20,20,23,21,131,22,137,0,11,29,22,21,22,17,23,9,1,1,2,16,0,137,0,11,28,22,21,20,21,29,7,4,
+ 12,12,10,0,137,0,1,29,21,130,23,6,10,4,10,16,12,16,0,137,0,9,29,23,7,9,22,2,9,7,25,16,
+ 129,0,137,0,11,29,12,1,9,10,2,2,1,14,10,9,0,138,0,10,22,4,2,9,4,1,1,4,2,4,0,134,
+ 0,130,30,9,26,29,22,4,10,10,4,4,9,10,129,0,132,0,14,30,26,18,18,26,30,19,22,22,10,12,9,7,
+ 10,17,129,0,131,0,0,26,130,15,130,26,10,25,26,23,12,16,21,21,19,26,30,0,0,8,130,19,17,23,31,31,
+ 28,14,7,13,7,14,8,8,29,28,18,26,24,19,0,132,8,16,19,19,13,2,7,7,18,18,14,16,8,19,25,26,
+ 14,14,0,1,8,3,131,8,15,16,7,1,13,13,24,18,24,24,11,26,13,14,13,14,0,1,8,5,130,8,16,19,
+ 11,26,13,14,24,25,14,18,27,25,31,24,25,15,15,0,1,8,3,131,8,15,3,30,28,18,18,27,13,13,24,14,
+ 10,26,26,19,30,0,3,19,8,16,11,130,19,1,29,28,130,18,0,25,130,13,1,1,4,131,0,129,0,15,20,9,
+ 9,20,22,23,29,28,27,24,28,28,24,14,3,6,131,0,130,0,13,16,10,11,6,11,20,20,27,25,18,25,28,20,
+ 16,132,0,133,0,9,16,12,5,17,31,27,18,13,25,23,133,0,136,0,5,31,30,27,24,18,27,134,0,136,0,5,
+ 31,0,27,25,25,30,134,0,138,0,3,31,31,30,31,134,0,50,0,63,0,75,0,89,0,104,0,119,0,134,0,149,
+ 0,164,0,179,0,193,0,207,0,223,0,240,0,4,1,27,1,47,1,69,1,92,1,114,1,135,1,156,1,177,1,195,
+ 1,202,1,139,0,1,17,11,130,16,0,12,130,16,0,12,138,0,1,21,12,131,16,130,12,1,11,12,138,0,10,23,
+ 17,20,20,22,29,29,23,23,17,17,137,0,11,29,20,20,22,17,21,17,11,12,12,22,23,137,0,11,29,22,21,21,
+ 20,29,4,1,2,2,10,0,137,0,11,29,21,22,22,21,29,4,9,16,16,12,0,137,0,9,28,23,21,20,29,6,
+ 6,12,16,12,129,0,137,0,9,29,20,2,7,16,2,7,1,24,16,129,0,137,0,11,29,12,1,6,10,2,1,1,
+ 13,6,6,0,138,0,10,29,9,1,9,7,1,1,4,3,6,0,138,0,8,29,29,10,12,11,4,4,10,12,129,0,
+ 134,0,130,30,8,26,26,29,22,10,12,12,10,11,130,0,132,0,11,30,26,18,18,26,30,19,19,26,15,28,19,132,
+ 0,131,0,0,26,130,15,130,26,10,25,26,26,19,29,26,26,28,26,30,0,0,8,130,19,17,23,31,31,28,14,7,
+ 14,24,18,25,11,19,28,15,26,25,19,0,132,8,16,19,19,13,1,13,18,18,24,18,27,19,19,26,26,14,14,0,
+ 1,8,3,131,8,15,16,13,7,18,18,27,24,13,18,18,28,13,14,13,14,0,1,8,5,130,8,16,19,11,30,30,
+ 18,18,24,25,13,13,24,7,9,26,15,15,0,1,8,3,131,8,15,3,26,26,24,18,18,24,25,13,18,4,1,6,
+ 19,28,0,3,19,8,16,11,130,19,2,31,22,28,131,27,4,28,27,12,6,9,130,0,129,0,15,20,9,9,20,21,
+ 22,29,26,18,18,24,28,30,30,28,28,131,0,130,0,15,16,10,11,9,30,24,18,18,24,27,16,17,28,28,31,31,
+ 130,0,133,0,8,21,27,27,24,27,17,5,9,22,129,0,0,31,131,0,133,0,1,31,30,141,0,50,0,62,0,71,
+ 0,85,0,98,0,113,0,128,0,143,0,158,0,173,0,187,0,204,0,224,0,244,0,11,1,31,1,53,1,76,1,98,
+ 1,119,1,140,1,159,1,174,1,184,1,195,1,138,0,131,16,129,0,4,16,16,0,16,0,138,0,0,16,135,12,1,
+ 9,12,138,0,0,22,130,17,0,21,130,22,2,20,12,16,137,0,7,29,21,20,22,20,20,23,21,131,22,137,0,11,
+ 29,22,21,22,17,23,9,1,1,2,16,0,137,0,11,28,22,21,20,21,29,7,4,12,12,10,0,137,0,1,29,21,
+ 130,23,6,10,4,10,16,12,16,0,137,0,9,29,23,7,9,22,2,9,7,25,16,129,0,137,0,11,29,12,1,9,
+ 10,2,2,1,14,10,9,0,138,0,10,22,4,2,9,4,1,1,4,2,4,0,134,0,130,30,9,26,29,22,4,10,
+ 10,4,4,9,10,129,0,132,0,14,30,26,18,18,26,30,19,22,22,10,12,9,7,10,17,129,0,131,0,0,26,130,
+ 15,130,26,10,25,26,23,12,16,21,21,19,26,30,0,0,8,130,19,17,23,31,31,28,14,7,13,7,14,8,8,29,
+ 28,18,26,24,19,0,132,8,16,19,19,13,2,7,7,18,18,14,16,11,19,25,26,14,14,0,1,8,3,131,8,15,
+ 16,7,1,13,13,24,18,24,11,8,26,13,14,13,14,0,1,8,5,130,8,16,19,11,26,13,14,24,25,14,18,27,
+ 24,31,24,25,15,15,0,1,8,3,131,8,15,3,30,28,18,18,27,13,13,24,14,10,26,26,19,30,0,3,19,8,
+ 16,11,130,19,1,29,28,130,18,0,25,130,13,1,1,4,131,0,129,0,15,20,9,9,20,22,23,29,28,27,24,28,
+ 28,25,14,3,6,131,0,130,0,13,16,10,11,6,11,20,20,26,27,18,25,28,20,16,132,0,133,0,9,16,12,5,
+ 9,18,25,18,18,25,23,133,0,136,0,0,30,130,18,0,24,135,0,136,0,1,30,25,130,30,0,31,134,0,48,0,
+ 62,0,75,0,89,0,104,0,119,0,135,0,151,0,166,0,181,0,195,0,209,0,226,0,243,0,8,1,32,1,53,1,
+ 76,1,100,1,123,1,144,1,165,1,186,1,204,1,139,0,2,17,16,11,130,16,4,12,16,17,12,12,139,0,1,17,
+ 12,131,16,4,11,16,12,10,16,139,0,10,22,17,20,21,22,29,29,23,21,16,21,138,0,11,23,17,21,22,17,22,
+ 12,11,12,16,23,29,138,0,0,23,130,21,7,20,23,1,1,2,3,16,0,137,0,12,27,23,20,22,21,22,20,4,
+ 10,16,16,10,0,137,0,10,27,23,23,20,23,20,3,9,12,16,12,129,0,138,0,9,29,12,2,12,10,2,7,4,
+ 30,12,129,0,138,0,4,29,4,2,9,9,130,1,3,14,3,9,0,139,0,10,22,2,2,10,4,1,2,4,3,9,
+ 0,138,0,8,26,29,21,9,12,9,4,7,12,130,0,134,0,130,30,9,26,26,30,29,16,10,12,10,10,12,130,0,
+ 132,0,11,30,26,18,18,26,30,19,19,28,15,26,19,133,0,131,0,0,26,130,15,130,26,9,19,26,26,19,29,26,
+ 26,28,26,30,129,0,0,8,130,19,16,23,31,31,28,14,7,13,13,24,24,18,19,28,15,26,24,19,129,0,132,8,
+ 10,19,19,13,1,7,7,27,18,18,24,27,130,26,1,14,14,129,0,1,8,3,131,8,14,16,7,4,18,24,27,13,
+ 18,27,13,24,23,12,13,15,129,0,1,8,5,130,8,15,19,11,19,24,25,18,25,18,13,18,14,4,16,20,15,15,
+ 129,0,1,8,3,131,8,14,3,28,26,28,18,24,27,18,13,7,1,4,16,24,28,129,0,3,19,8,16,11,130,19,
+ 10,31,23,28,30,27,27,28,28,18,6,9,132,0,129,0,15,20,9,9,20,20,23,27,27,30,28,27,18,18,24,24,
+ 27,132,0,130,0,5,16,10,9,17,31,24,130,28,6,21,21,25,18,18,27,30,131,0,133,0,12,30,31,21,28,12,
+ 6,5,11,29,28,28,31,31,131,0,54,0,63,0,75,0,90,0,106,0,122,0,138,0,154,0,170,0,185,0,200,0,
+ 214,0,228,0,243,0,4,1,23,1,45,1,64,1,85,1,107,1,128,1,147,1,166,1,184,1,199,1,207,1,214,1,
+ 142,0,3,16,17,12,12,129,0,137,0,1,20,17,130,16,131,12,1,22,0,136,0,11,21,12,12,16,17,21,23,22,
+ 22,20,29,0,135,0,10,23,12,16,20,21,20,23,22,22,29,29,129,0,135,0,10,29,20,17,20,20,23,12,1,1,
+ 9,17,129,0,135,0,10,29,21,20,17,20,29,7,7,12,4,9,129,0,135,0,10,29,22,21,22,21,23,9,4,17,
+ 21,12,129,0,135,0,10,29,20,23,17,23,17,3,11,7,28,12,129,0,136,0,11,23,12,4,10,12,1,2,1,26,
+ 3,9,0,136,0,11,29,4,3,9,9,2,1,1,4,4,10,0,137,0,8,22,2,2,12,7,4,4,7,12,129,0,
+ 137,0,8,29,20,9,10,11,9,7,9,15,129,0,134,0,130,30,7,26,29,21,20,17,15,21,12,130,0,132,0,11,
+ 30,26,18,18,26,30,19,19,30,18,28,26,131,0,131,0,0,26,130,15,130,26,9,19,26,25,19,29,26,26,28,26,
+ 30,0,8,130,19,16,23,31,31,28,14,7,13,13,24,18,8,19,26,15,26,25,19,132,8,15,19,19,13,2,7,13,
+ 24,13,18,27,15,30,26,26,14,14,1,8,3,131,8,14,16,7,2,13,14,28,18,13,18,24,15,9,13,13,15,1,
+ 8,5,130,8,15,19,11,26,13,4,18,27,25,13,13,18,4,1,10,15,15,1,8,3,131,8,14,3,28,26,19,25,
+ 18,24,28,24,18,7,2,9,25,28,3,19,8,16,11,130,19,8,31,22,23,24,18,24,25,27,30,132,0,129,0,4,
+ 20,9,9,20,22,130,23,5,28,27,24,18,18,24,132,0,130,0,12,16,10,11,6,11,20,17,20,25,14,18,25,16,
+ 132,0,133,0,9,16,12,5,6,9,25,13,24,30,23,132,0,138,0,2,30,27,30,134,0,139,0,1,30,31,134,0,
+ 54,0,65,0,77,0,92,0,108,0,124,0,140,0,156,0,172,0,187,0,202,0,216,0,230,0,245,0,6,1,25,1,
+ 47,1,66,1,87,1,109,1,130,1,149,1,168,1,186,1,201,1,209,1,216,1,141,0,1,17,16,129,0,2,11,16,
+ 0,137,0,1,20,17,130,16,131,12,1,20,0,136,0,11,16,12,12,16,17,20,23,22,22,20,23,0,135,0,2,23,
+ 16,16,130,20,2,23,22,22,130,29,0,0,135,0,10,29,20,17,22,17,22,12,1,1,9,17,129,0,135,0,1,29,
+ 21,130,20,5,29,7,7,12,4,9,129,0,135,0,10,29,22,20,21,21,23,9,4,17,21,12,129,0,135,0,10,29,
+ 20,23,17,23,17,3,11,7,28,12,129,0,136,0,11,23,12,4,10,12,1,2,1,26,3,9,0,136,0,11,29,4,
+ 3,9,9,2,1,1,4,4,10,0,137,0,8,22,2,2,12,7,4,4,7,12,129,0,137,0,8,29,20,9,10,11,
+ 9,7,9,15,129,0,134,0,130,30,7,26,29,21,20,17,15,21,12,130,0,132,0,11,30,26,18,18,26,30,19,19,
+ 30,18,28,26,131,0,131,0,0,26,130,15,130,26,9,19,26,25,19,29,26,26,28,26,30,0,8,130,19,16,23,31,
+ 31,28,14,7,13,13,24,18,8,19,26,15,26,25,19,132,8,15,19,19,13,2,7,13,24,13,18,27,15,30,26,26,
+ 14,14,1,8,3,131,8,14,16,7,2,13,14,28,18,13,18,24,15,9,13,13,15,1,8,5,130,8,15,19,11,26,
+ 13,4,18,27,25,13,13,18,4,1,10,15,15,1,8,3,131,8,14,3,28,26,19,25,18,24,28,24,18,7,2,9,
+ 25,28,3,19,8,16,11,130,19,8,31,22,23,24,18,24,25,27,30,132,0,129,0,4,20,9,9,20,22,130,23,5,
+ 28,27,24,18,18,24,132,0,130,0,12,16,10,11,6,11,20,17,20,25,14,18,25,16,132,0,133,0,9,16,12,5,
+ 6,9,25,13,24,30,23,132,0,138,0,2,30,27,30,134,0,139,0,1,30,31,134,0,54,0,64,0,77,0,92,0,
+ 108,0,124,0,140,0,156,0,172,0,187,0,202,0,216,0,230,0,245,0,6,1,25,1,47,1,66,1,87,1,109,1,
+ 130,1,149,1,168,1,186,1,201,1,209,1,216,1,142,0,1,16,16,129,0,1,12,0,137,0,1,20,17,130,16,130,
+ 12,2,11,16,0,136,0,11,21,12,12,16,16,21,23,21,22,21,21,0,135,0,12,29,12,16,17,20,22,23,22,22,
+ 29,29,23,0,135,0,10,29,20,17,20,20,23,12,1,1,9,17,129,0,135,0,10,29,21,21,22,20,23,7,7,12,
+ 4,9,129,0,135,0,10,29,22,21,22,21,23,9,4,17,21,12,129,0,135,0,10,29,20,23,17,23,17,3,11,7,
+ 28,12,129,0,136,0,11,23,12,4,10,12,1,2,1,26,3,9,0,136,0,11,29,4,3,9,9,2,1,1,4,4,
+ 10,0,137,0,8,22,2,2,12,7,4,4,7,12,129,0,137,0,8,29,20,9,10,11,9,7,9,15,129,0,134,0,
+ 130,30,7,26,29,21,20,17,15,21,12,130,0,132,0,11,30,26,18,18,26,30,19,19,30,18,28,26,131,0,131,0,
+ 0,26,130,15,130,26,9,19,26,25,19,29,26,26,28,26,30,0,8,130,19,16,23,31,31,28,14,7,13,13,24,18,
+ 8,19,26,15,26,25,19,132,8,15,19,19,13,2,7,13,24,13,18,27,15,30,26,26,14,14,1,8,3,131,8,14,
+ 16,7,2,13,14,28,18,13,18,24,15,9,13,13,15,1,8,5,130,8,15,19,11,26,13,4,18,27,25,13,13,18,
+ 4,1,10,15,15,1,8,3,131,8,14,3,28,26,19,25,18,24,28,24,18,7,2,9,25,28,3,19,8,16,11,130,
+ 19,8,31,22,23,24,18,24,25,27,30,132,0,129,0,4,20,9,9,20,22,130,23,5,28,27,24,18,18,24,132,0,
+ 130,0,12,16,10,11,6,11,20,17,20,25,14,18,25,16,132,0,133,0,9,16,12,5,6,9,25,13,24,30,23,132,
+ 0,138,0,2,30,27,30,134,0,139,0,1,30,31,134,0,54,0,63,0,77,0,92,0,108,0,124,0,140,0,156,0,
+ 172,0,187,0,202,0,216,0,230,0,245,0,6,1,25,1,47,1,66,1,87,1,109,1,130,1,149,1,168,1,186,1,
+ 201,1,209,1,216,1,142,0,5,16,16,0,12,16,0,137,0,4,20,20,17,16,16,130,12,2,11,20,0,136,0,11,
+ 21,12,11,12,16,20,22,22,21,22,23,0,135,0,8,29,12,12,17,20,20,23,22,22,130,29,0,0,135,0,10,29,
+ 20,17,20,17,23,12,1,1,9,17,129,0,135,0,10,29,21,21,20,20,29,7,7,12,4,9,129,0,135,0,10,29,
+ 22,21,22,21,23,9,4,17,21,12,129,0,135,0,10,29,20,23,17,23,17,3,11,7,28,12,129,0,136,0,11,23,
+ 12,4,10,12,1,2,1,26,3,9,0,136,0,11,29,4,3,9,9,2,1,1,4,4,10,0,137,0,8,22,2,2,
+ 12,7,4,4,7,12,129,0,137,0,8,29,20,9,10,11,9,7,9,15,129,0,134,0,130,30,7,26,29,21,20,17,
+ 15,21,12,130,0,132,0,11,30,26,18,18,26,30,19,19,30,18,28,26,131,0,131,0,0,26,130,15,130,26,9,19,
+ 26,25,19,29,26,26,28,26,30,0,8,130,19,16,23,31,31,28,14,7,13,13,24,18,8,19,26,15,26,25,19,132,
+ 8,15,19,19,13,2,7,13,24,13,18,27,15,30,26,26,14,14,1,8,3,131,8,14,16,7,2,13,14,28,18,13,
+ 18,24,15,9,13,13,15,1,8,5,130,8,15,19,11,26,13,4,18,27,25,13,13,18,4,1,10,15,15,1,8,3,
+ 131,8,14,3,28,26,19,25,18,24,28,24,18,7,2,9,25,28,3,19,8,16,11,130,19,8,31,22,23,24,18,24,
+ 25,27,30,132,0,129,0,4,20,9,9,20,22,130,23,5,28,27,24,18,18,24,132,0,130,0,12,16,10,11,6,11,
+ 20,17,20,25,14,18,25,16,132,0,133,0,9,16,12,5,6,9,25,13,24,30,23,132,0,138,0,2,30,27,30,134,
+ 0,139,0,1,30,31,134,0,54,0,63,0,75,0,90,0,106,0,122,0,138,0,154,0,170,0,185,0,200,0,214,0,
+ 228,0,243,0,4,1,23,1,45,1,64,1,85,1,107,1,128,1,147,1,166,1,184,1,199,1,207,1,214,1,142,0,
+ 3,16,17,11,12,129,0,137,0,1,20,17,130,16,131,12,1,22,0,136,0,11,16,12,12,16,17,21,23,22,22,21,
+ 29,0,135,0,10,29,20,16,20,21,22,23,22,22,23,23,129,0,135,0,10,29,22,17,22,20,23,12,1,1,2,10,
+ 129,0,135,0,10,29,20,21,21,20,29,7,6,12,12,10,129,0,135,0,10,29,22,21,22,21,23,9,4,16,16,12,
+ 129,0,135,0,10,29,20,23,17,23,17,3,11,7,29,12,129,0,136,0,11,23,12,4,10,12,1,2,1,21,3,9,
+ 0,136,0,11,29,4,3,9,9,2,1,1,4,4,10,0,137,0,8,20,2,2,12,7,4,4,7,12,129,0,137,0,
+ 8,29,20,9,10,10,9,7,9,15,129,0,134,0,130,30,7,26,23,17,21,17,15,21,12,130,0,132,0,11,30,26,
+ 18,18,26,30,19,19,30,18,28,26,131,0,131,0,0,26,130,15,130,26,9,19,26,26,19,29,26,26,28,26,30,0,
+ 8,130,19,16,23,31,31,28,14,7,13,13,24,18,8,19,26,15,26,25,19,132,8,15,19,19,13,2,7,13,24,13,
+ 18,27,15,30,26,26,14,14,1,8,3,131,8,14,16,7,2,13,14,28,18,13,18,24,15,9,13,13,15,1,8,5,
+ 130,8,15,19,11,26,13,4,18,27,25,13,13,18,4,1,10,15,15,1,8,3,131,8,14,3,28,26,19,25,18,18,
+ 28,24,18,7,2,9,25,28,3,19,8,16,11,130,19,8,31,22,23,24,18,18,25,27,30,132,0,129,0,4,20,9,
+ 9,20,22,130,23,5,28,27,25,18,18,24,132,0,130,0,12,16,10,11,6,11,20,17,20,25,14,18,25,16,132,0,
+ 133,0,9,16,12,5,6,9,25,13,24,30,23,132,0,138,0,2,30,27,30,134,0,139,0,1,30,31,134,0,54,0,
+ 67,0,78,0,93,0,108,0,124,0,140,0,156,0,172,0,188,0,203,0,219,0,238,0,2,1,25,1,45,1,67,1,
+ 90,1,112,1,134,1,155,1,174,1,190,1,201,1,210,1,219,1,225,1,139,0,1,16,16,130,0,4,16,0,16,16,
+ 0,137,0,0,21,134,12,3,16,11,10,17,137,0,0,23,130,17,0,20,130,22,3,21,16,12,21,137,0,1,22,17,
+ 130,21,2,23,21,21,130,22,0,23,136,0,12,29,22,21,22,20,20,16,1,1,2,9,23,0,136,0,10,23,20,21,
+ 21,17,23,12,2,12,12,9,129,0,136,0,10,29,22,22,23,23,16,4,9,16,12,12,129,0,136,0,10,29,29,12,
+ 4,22,6,4,7,13,22,10,129,0,136,0,10,29,23,1,6,9,6,1,1,7,16,6,129,0,137,0,9,29,9,1,
+ 6,9,1,1,2,4,2,129,0,134,0,130,30,8,28,29,9,7,11,4,4,7,10,130,0,132,0,13,30,26,18,18,
+ 26,28,30,29,10,12,10,7,9,15,130,0,131,0,0,26,130,15,130,26,10,25,26,17,16,17,21,17,26,26,30,0,
+ 0,8,130,19,17,23,31,31,28,14,7,13,7,14,8,8,23,28,24,26,24,19,0,132,8,16,19,19,13,2,7,7,
+ 18,18,14,16,11,19,25,26,14,14,0,1,8,3,131,8,15,16,7,1,13,13,24,18,25,11,8,26,13,14,13,14,
+ 0,1,8,5,130,8,16,19,11,26,7,13,27,25,14,18,27,15,31,25,26,15,15,0,1,8,3,131,8,15,3,28,
+ 26,28,25,27,13,13,18,14,10,21,25,24,30,0,3,19,8,16,11,130,19,5,31,22,23,18,18,27,130,13,2,1,
+ 4,17,130,0,129,0,15,20,9,9,20,22,23,29,27,18,18,24,30,24,14,3,6,131,0,130,0,13,16,10,11,6,
+ 11,20,20,25,28,25,25,30,28,16,132,0,133,0,10,16,12,5,6,9,28,18,18,27,28,30,132,0,138,0,5,28,
+ 18,13,25,25,27,132,0,139,0,3,25,24,30,31,133,0,139,0,3,31,30,31,31,133,0,140,0,0,31,135,0,52,
+ 0,58,0,68,0,82,0,99,0,116,0,130,0,146,0,162,0,177,0,195,0,217,0,237,0,5,1,26,1,49,1,73,
+ 1,95,1,114,1,133,1,151,1,167,1,181,1,195,1,208,1,214,1,142,0,0,16,135,0,140,0,2,17,12,12,130,
+ 16,132,0,140,0,0,22,130,17,6,16,12,10,16,17,16,17,137,0,13,27,0,29,17,16,20,22,21,20,16,12,16,
+ 10,20,137,0,13,27,28,23,17,20,22,21,23,29,23,17,12,16,21,139,0,130,22,8,21,23,10,7,17,29,20,20,
+ 0,138,0,10,23,23,17,22,23,9,3,2,1,9,23,129,0,138,0,10,29,12,2,12,12,1,4,16,4,3,10,129,
+ 0,138,0,9,29,4,2,9,6,1,4,9,17,12,130,0,134,0,130,30,10,26,29,22,4,2,9,1,2,9,7,9,
+ 130,0,132,0,7,30,26,18,18,26,28,30,29,130,10,5,4,2,1,2,2,9,129,0,131,0,0,26,130,15,130,26,
+ 4,25,21,10,12,12,131,7,0,16,130,0,0,8,130,19,16,23,31,31,28,14,7,13,7,15,8,10,12,12,7,7,
+ 10,26,130,0,132,8,15,19,19,13,2,7,7,13,13,11,19,9,17,15,17,13,14,130,0,1,8,3,131,8,14,16,
+ 7,2,13,4,7,7,11,5,8,28,13,14,13,14,130,0,1,8,5,130,8,15,19,11,26,13,7,13,18,24,14,8,
+ 19,26,18,25,15,15,130,0,1,8,3,131,8,3,3,28,26,19,131,18,6,21,17,28,26,26,24,28,130,0,3,19,
+ 8,16,11,130,19,8,30,23,25,18,25,18,24,24,30,135,0,129,0,13,20,9,9,20,22,23,25,13,24,24,13,24,
+ 13,30,135,0,130,0,12,16,10,11,5,11,25,18,24,25,13,13,18,31,135,0,133,0,10,16,12,9,26,30,30,18,
+ 13,27,30,28,134,0,136,0,8,24,18,18,24,13,14,30,30,24,133,0,136,0,8,30,18,18,24,18,13,25,31,16,
+ 133,0,136,0,7,30,31,31,0,26,10,4,23,134,0,142,0,0,6,135,0,58,0,65,0,75,0,92,0,109,0,127,
+ 0,145,0,163,0,180,0,197,0,213,0,230,0,246,0,6,1,21,1,35,1,47,1,49,1,51,1,59,1,80,1,100,
+ 1,120,1,137,1,154,1,168,1,181,1,194,1,206,1,135,0,1,20,20,136,0,135,0,4,17,12,20,0,20,133,0,
+ 130,0,11,20,17,0,17,16,16,12,16,17,16,22,21,131,0,130,0,3,22,12,16,21,130,22,4,20,16,20,16,20,
+ 131,0,129,0,12,20,17,16,17,23,16,16,17,22,22,20,20,22,131,0,130,0,5,17,17,23,10,2,2,130,4,3,
+ 9,12,21,21,130,0,129,0,12,20,17,20,22,4,16,16,12,2,10,20,16,20,131,0,129,0,11,16,16,20,23,12,
+ 16,12,4,3,10,16,20,132,0,129,0,11,29,23,16,20,12,1,1,9,3,13,7,16,132,0,130,0,10,22,4,9,
+ 9,1,1,7,4,12,7,12,132,0,129,0,11,29,21,6,10,7,1,1,4,6,9,7,10,132,0,130,0,10,23,9,
+ 9,10,2,4,4,7,7,9,12,132,0,130,0,5,29,23,17,12,7,7,130,1,1,7,12,132,0,130,0,4,29,23,
+ 29,12,4,131,1,1,7,12,132,0,131,0,8,29,29,12,7,4,7,10,10,12,133,0,132,0,0,20,130,16,2,17,
+ 17,16,134,0,146,0,146,0,141,0,4,25,15,4,9,0,129,0,0,9,129,0,6,24,18,24,18,18,30,30,130,18,
+ 3,7,4,4,10,18,0,10,2,4,24,13,13,24,14,1,26,24,24,13,18,7,6,2,10,18,9,2,6,6,13,18,
+ 24,28,13,1,13,24,30,27,30,16,6,9,0,13,10,4,9,10,25,27,24,24,18,7,7,24,27,30,132,0,13,0,
+ 10,10,0,28,25,24,25,18,18,25,25,24,27,132,0,133,0,8,28,18,18,25,28,28,25,24,28,131,0,132,0,3,
+ 30,27,24,25,129,0,130,30,132,0,132,0,2,31,30,30,130,0,1,31,31,133,0,132,0,1,30,31,131,0,1,31,
+ 31,133,0,58,0,65,0,74,0,84,0,90,0,104,0,117,0,130,0,147,0,164,0,180,0,197,0,208,0,224,0,239,
+ 0,252,0,9,1,11,1,13,1,19,1,40,1,60,1,80,1,97,1,114,1,128,1,143,1,156,1,168,1,135,0,1,
+ 31,31,136,0,135,0,130,31,1,0,31,133,0,130,0,2,31,31,0,136,31,131,0,130,0,139,31,131,0,129,0,130,
+ 31,0,18,132,1,0,7,130,31,131,0,130,0,1,31,27,134,1,0,7,130,31,130,0,129,0,2,31,31,7,135,1,
+ 1,25,31,131,0,129,0,1,31,28,130,1,6,13,13,1,1,18,7,24,132,0,129,0,11,31,18,1,1,18,31,31,
+ 4,4,31,24,27,132,0,130,0,10,18,1,1,25,31,30,1,4,30,27,27,132,0,129,0,1,31,25,130,1,6,7,
+ 4,13,30,13,7,25,132,0,130,0,1,31,13,135,1,0,25,132,0,130,0,5,31,31,7,13,18,7,130,1,1,13,
+ 30,132,0,130,0,4,31,31,13,1,7,131,1,1,13,31,132,0,131,0,2,31,31,13,132,1,1,24,31,132,0,132,
+ 0,2,31,31,13,130,7,1,24,31,133,0,146,0,146,0,143,0,2,13,26,0,129,0,0,26,129,0,13,31,27,24,
+ 7,13,18,18,31,31,25,14,14,18,31,18,0,31,13,25,31,18,13,7,1,7,1,7,18,7,13,13,1,1,30,18,
+ 18,1,4,7,7,25,24,7,4,18,25,13,30,30,31,30,7,18,0,7,25,1,7,30,31,31,28,7,130,18,2,7,
+ 30,31,132,0,13,0,30,31,0,31,31,28,1,1,13,7,7,1,28,132,0,133,0,2,31,13,7,130,31,2,7,18,
+ 31,131,0,132,0,3,31,27,13,30,129,0,2,18,7,31,132,0,132,0,2,14,7,30,130,0,1,7,7,133,0,132,
+ 0,1,13,14,131,0,1,31,31,133,0,62,0,69,0,85,0,104,0,123,0,143,0,155,0,171,0,189,0,208,0,227,
+ 0,247,0,10,1,29,1,48,1,67,1,85,1,92,1,100,1,117,1,134,1,154,1,173,1,192,1,211,1,229,1,246,
+ 1,3,2,16,2,28,2,34,2,138,0,1,5,5,134,0,131,0,1,6,6,130,0,5,6,6,3,5,6,6,132,0,
+ 130,0,2,6,5,5,130,6,7,5,3,3,5,3,5,6,6,130,0,130,0,2,5,3,3,130,5,7,3,5,5,3,
+ 5,3,3,5,130,0,129,0,14,6,5,3,5,3,5,8,5,8,8,5,8,5,3,5,130,0,129,0,2,6,3,5,
+ 137,8,0,5,131,0,129,0,1,6,5,131,8,1,6,5,132,8,0,5,131,0,129,0,1,5,3,131,8,7,2,1,
+ 1,3,3,9,6,5,131,0,3,0,6,3,3,130,8,8,5,5,9,2,1,2,10,8,6,131,0,129,0,13,3,3,
+ 8,6,8,3,2,9,16,11,3,16,8,6,131,0,129,0,14,6,3,8,3,3,2,1,9,10,6,2,6,5,5,6,
+ 130,0,130,0,4,5,8,3,6,4,130,1,5,3,6,9,3,5,6,130,0,130,0,6,5,5,6,6,9,2,2,130,
+ 1,3,7,5,3,5,130,0,130,0,6,6,5,8,8,9,4,21,130,19,3,17,5,3,5,130,0,131,0,5,6,3,
+ 8,12,9,13,130,7,4,13,10,6,0,5,129,0,132,0,4,6,5,12,12,4,130,2,6,4,6,0,3,3,5,0,
+ 143,0,3,2,3,5,0,142,0,4,13,4,3,3,6,6,0,5,6,6,5,3,16,134,0,5,7,11,5,3,3,6,
+ 130,6,4,5,3,11,13,18,132,0,0,16,131,5,1,6,6,14,5,5,3,3,11,13,13,25,24,4,17,15,26,17,
+ 5,131,6,0,0,15,3,3,5,11,13,13,24,18,18,1,4,13,28,21,5,3,131,0,15,3,3,5,7,13,24,18,
+ 14,24,7,7,18,26,28,11,3,131,0,15,5,3,1,1,11,18,13,25,18,18,27,24,24,8,5,5,131,0,14,0,
+ 5,2,2,3,3,5,16,24,13,14,24,5,3,6,132,0,129,0,2,5,5,6,130,5,5,16,25,13,24,8,3,133,
+ 0,133,0,7,6,3,8,20,11,29,8,3,133,0,133,0,7,6,5,8,8,5,8,5,5,133,0,133,0,6,5,6,
+ 5,5,6,5,5,134,0,134,0,130,6,137,0,58,0,65,0,73,0,83,0,94,0,105,0,117,0,131,0,145,0,159,
+ 0,173,0,187,0,201,0,214,0,225,0,227,0,229,0,233,0,243,0,253,0,10,1,24,1,38,1,53,1,67,1,78,
+ 1,89,1,96,1,103,1,132,0,1,20,22,133,0,132,0,2,16,17,23,132,0,130,0,4,17,12,16,20,17,132,0,
+ 129,0,5,20,17,16,21,23,29,132,0,7,0,17,12,17,22,23,16,16,132,0,8,0,17,16,21,23,4,1,2,9,
+ 131,0,10,16,12,20,21,23,1,4,9,12,10,4,129,0,12,21,23,20,20,29,12,6,9,16,6,4,9,0,10,29,
+ 23,21,22,20,29,9,1,4,2,9,129,0,12,29,23,21,21,23,17,9,1,4,7,7,12,0,5,0,29,23,23,10,
+ 4,130,7,3,1,4,10,0,129,0,10,29,29,7,2,3,10,11,7,9,12,0,129,0,7,29,23,22,9,12,17,16,
+ 16,130,0,130,0,5,23,0,29,23,20,16,131,0,140,0,140,0,139,0,0,31,133,0,4,23,13,25,30,30,129,0,
+ 133,0,4,7,1,13,25,14,129,0,130,0,9,7,9,6,1,6,18,28,7,25,0,129,0,10,10,2,2,1,6,18,
+ 18,27,13,25,28,8,0,9,2,6,4,6,24,18,24,130,28,0,0,4,0,10,6,9,10,129,0,5,25,18,25,30,
+ 28,0,129,0,1,10,10,129,0,130,18,3,30,25,27,0,132,0,5,27,18,18,28,28,25,129,0,132,0,5,31,28,
+ 0,30,24,27,129,0,135,0,1,31,30,130,0,135,0,1,31,31,130,0,56,0,66,0,80,0,95,0,110,0,126,0,
+ 142,0,158,0,174,0,189,0,204,0,219,0,231,0,240,0,242,0,244,0,246,0,1,1,16,1,33,1,50,1,67,1,
+ 83,1,96,1,108,1,121,1,128,1,134,1,135,0,0,20,129,0,0,20,131,0,132,0,10,17,16,22,17,20,21,12,
+ 17,17,16,0,131,0,11,22,17,17,21,22,20,17,17,21,16,22,0,131,0,9,20,17,23,29,23,29,22,23,23,29,
+ 129,0,130,0,10,23,16,23,16,2,4,16,22,21,17,16,129,0,130,0,5,22,17,29,9,7,2,130,1,1,4,16,
+ 129,0,130,0,10,29,23,29,10,4,12,4,1,6,16,12,129,0,130,0,10,29,16,16,9,9,12,17,2,12,20,12,
+ 129,0,131,0,1,10,10,130,4,4,9,4,6,9,9,129,0,131,0,9,17,10,10,1,1,7,10,9,3,9,129,0,
+ 131,0,9,29,17,12,11,2,1,7,10,10,12,129,0,132,0,2,29,20,12,131,10,0,12,130,0,133,0,1,17,16,
+ 130,17,132,0,143,0,143,0,143,0,133,0,5,24,18,25,31,31,28,131,0,130,0,9,10,24,24,9,15,14,30,27,
+ 15,9,130,0,13,6,9,4,2,9,4,1,29,28,31,13,24,9,10,129,0,15,4,4,9,4,3,2,4,25,26,13,
+ 4,30,12,3,10,0,15,12,6,9,9,10,10,24,30,18,18,24,30,10,3,9,0,2,0,9,9,131,0,8,18,18,
+ 24,25,27,9,3,4,10,133,0,9,18,13,24,30,25,25,17,9,6,10,132,0,6,18,18,24,30,27,24,27,131,0,
+ 131,0,2,31,28,31,129,0,1,28,24,132,0,136,0,1,31,31,132,0,136,0,0,31,133,0,52,0,60,0,74,0,
+ 88,0,103,0,118,0,133,0,148,0,162,0,176,0,189,0,201,0,210,0,212,0,214,0,222,0,231,0,241,0,252,0,
+ 8,1,21,1,33,1,43,1,54,1,66,1,71,1,132,0,132,16,0,21,131,0,131,0,10,29,20,16,20,23,17,16,
+ 12,16,17,16,131,0,0,23,130,22,6,17,23,21,16,16,12,21,130,0,11,23,20,20,21,22,22,23,22,23,17,16,
+ 16,130,0,11,29,22,23,22,21,23,9,1,16,23,21,23,130,0,11,29,21,4,12,29,9,4,4,1,16,29,0,130,
+ 0,9,29,4,6,9,9,2,9,12,3,9,129,0,130,0,8,29,7,1,10,4,1,9,16,10,130,0,130,0,8,29,
+ 22,4,7,7,2,4,12,6,130,0,131,0,7,20,17,7,1,4,6,4,2,130,0,131,0,6,16,16,10,1,4,10,
+ 12,131,0,133,0,3,16,12,9,12,132,0,142,0,142,0,130,0,2,24,18,18,136,0,129,0,3,24,13,2,13,136,
+ 0,129,0,4,18,14,1,4,29,135,0,7,0,18,18,24,4,1,9,9,134,0,8,27,18,18,24,12,2,1,2,9,
+ 133,0,129,0,7,25,25,27,10,2,1,3,10,132,0,129,0,6,24,13,18,30,10,4,9,133,0,6,0,24,14,18,
+ 27,0,30,135,0,3,30,18,18,27,129,0,130,28,133,0,2,31,28,27,131,0,2,30,31,31,132,0,1,31,30,140,
+ 0,54,0,66,0,80,0,95,0,110,0,126,0,142,0,158,0,173,0,189,0,202,0,213,0,223,0,225,0,227,0,229,
+ 0,241,0,1,1,17,1,31,1,48,1,61,1,75,1,88,1,103,1,109,1,115,1,134,0,2,16,17,20,130,0,0,
+ 20,129,0,132,0,10,17,12,17,17,16,16,11,16,16,22,0,131,0,11,23,17,20,20,16,16,17,17,20,20,12,23,
+ 131,0,11,20,16,16,20,22,22,21,22,23,22,23,0,130,0,10,22,17,22,17,21,22,17,22,16,3,21,129,0,130,
+ 0,10,29,22,22,21,22,29,22,23,16,3,10,129,0,130,0,10,29,21,22,22,20,11,22,29,6,10,17,129,0,130,
+ 0,9,29,29,22,29,12,2,16,9,2,16,130,0,130,0,10,29,29,23,29,12,4,10,1,2,6,10,129,0,131,0,
+ 130,29,5,22,4,6,4,7,10,130,0,132,0,130,29,3,22,12,10,7,131,0,133,0,130,29,2,20,12,12,131,0,
+ 143,0,143,0,143,0,131,0,6,25,24,18,24,25,24,24,132,0,130,0,12,10,25,18,14,18,15,4,4,15,12,4,
+ 4,0,129,0,1,10,25,131,18,7,15,2,1,2,3,1,4,9,3,0,6,10,27,132,18,1,15,6,131,1,0,2,
+ 15,10,3,6,15,28,27,25,25,27,30,0,10,9,3,3,10,5,10,3,10,10,30,24,130,18,0,24,133,0,10,0,
+ 6,10,0,30,24,30,27,24,18,24,132,0,131,0,7,25,18,27,0,27,24,18,24,131,0,131,0,2,27,27,28,129,
+ 0,3,30,28,31,31,130,0,131,0,130,31,136,0,132,0,0,31,137,0,48,0,60,0,73,0,86,0,100,0,114,0,
+ 128,0,142,0,156,0,170,0,183,0,195,0,203,0,205,0,211,0,221,0,238,0,254,0,15,1,32,1,48,1,57,1,
+ 65,1,70,1,134,0,8,20,12,16,23,16,20,22,16,21,133,0,1,21,21,130,20,4,22,20,17,16,23,133,0,0,
+ 20,130,17,5,23,23,29,22,20,29,132,0,10,21,16,17,16,17,17,11,11,23,29,29,132,0,10,20,16,17,16,23,
+ 2,1,1,3,12,29,132,0,10,17,21,23,29,16,1,9,16,4,3,12,132,0,10,20,20,9,10,2,1,4,9,12,
+ 6,16,132,0,10,22,12,4,16,4,2,11,12,9,2,12,132,0,10,22,22,10,9,12,1,1,2,9,10,0,133,0,
+ 9,23,29,12,10,4,4,11,10,17,0,134,0,8,23,23,16,11,7,9,12,21,0,135,0,130,10,0,12,131,0,143,
+ 0,130,31,0,28,139,0,6,0,31,27,25,30,28,27,136,0,129,0,4,25,24,27,30,28,130,18,3,24,13,14,27,
+ 129,0,130,0,10,27,30,28,24,24,18,18,14,1,6,28,129,0,13,0,31,31,28,25,18,18,25,18,18,15,2,2,
+ 12,129,0,15,0,31,30,24,13,18,18,24,27,18,18,4,1,2,6,9,129,0,0,31,131,25,8,28,0,27,18,12,
+ 2,1,2,9,137,0,5,27,27,10,1,1,9,138,0,4,30,0,6,1,7,141,0,1,10,0,
+};
+static const jj_frame pic_barry_f[] = {{22,25,-11,-26,0},{22,24,-11,-27,465},{22,24,-11,-26,923},{23,23,-11,-27,1374},{21,26,-11,-28,1834},{21,26,-11,-28,2304},{21,26,-11,-28,2776},{21,26,-11,-28,3248},{21,26,-11,-28,3720},{22,26,-11,-26,4190},{24,25,-11,-25,4671},{19,28,-6,-30,5141},{19,28,-6,-30,5603},{20,30,-7,-30,6027},{13,28,-5,-28,6573},{16,27,-5,-27,6932},{15,25,-3,-26,7322},{16,26,-5,-26,7649},{16,23,-4,-27,8020}};
+static const jj_sheet pic_barry = {pic_barry_pal, pic_barry_data, pic_barry_f, 19, 8};
+static const uint16_t pic_flash_pal[] = {0,65533,65520,65480,65382,65284,65187,64961};
+static const uint8_t pic_flash_data[] = {
+ 24,0,30,0,36,0,42,0,51,0,59,0,67,0,77,0,86,0,94,0,104,0,114,0,131,0,0,112,135,0,131,0,
+ 1,119,134,0,131,0,1,86,134,0,131,0,2,68,112,131,0,1,112,130,0,9,116,38,112,118,96,130,7,9,99,19,
+ 86,68,112,3,100,67,130,1,130,3,2,103,0,2,115,48,132,1,4,34,52,112,2,6,48,133,1,3,36,112,129,0,
+ 8,99,33,18,53,112,129,0,130,0,0,96,131,5,0,96,131,0,36,0,42,0,48,0,55,0,65,0,75,0,87,0,
+ 100,0,112,0,124,0,137,0,150,0,165,0,177,0,188,0,200,0,213,0,224,0,142,0,1,119,130,0,142,0,1,70,
+ 130,0,141,0,2,67,112,130,0,2,7,112,137,0,2,83,80,131,0,3,7,87,135,0,3,82,39,131,0,4,7,51,
+ 112,133,0,4,82,19,112,131,0,129,0,3,81,55,130,0,5,117,33,37,132,0,129,0,17,114,19,103,117,33,19,103,
+ 118,103,130,0,16,65,19,85,33,19,102,67,55,0,130,7,14,99,18,51,34,70,66,36,112,129,0,5,117,68,86,131,
+ 5,6,101,33,36,112,130,0,2,7,48,130,1,0,64,130,6,5,49,18,71,131,0,129,0,12,116,33,18,85,50,36,
+ 112,132,0,130,0,11,118,83,53,100,69,103,132,0,130,0,3,117,69,132,6,3,67,71,131,0,130,0,3,67,86,132,
+ 0,4,101,52,112,130,0,130,0,1,103,136,0,2,117,112,130,0,
+};
+static const jj_frame pic_flash_f[] = {{13,11,-7,8,0},{20,17,-10,4,114}};
+static const jj_sheet pic_flash = {pic_flash_pal, pic_flash_data, pic_flash_f, 2, 4};
+static const uint16_t pic_coin_pal[] = {0,65526,65427,65328,65230,63052,60939,58762,56584,54439,52326,50181,48036,45891,41666,39488};
+static const uint8_t pic_coin_data[] = {
+ 24,0,32,0,41,0,50,0,57,0,64,0,71,0,78,0,85,0,92,0,101,0,109,0,130,0,4,199,136,192,130,0,
+ 129,0,6,129,35,68,144,129,0,2,8,16,130,4,4,55,73,0,10,210,67,34,68,117,208,10,146,50,51,84,135,144,
+ 10,148,51,84,116,136,144,10,165,100,50,87,168,160,10,229,119,86,122,198,224,10,12,90,204,221,107,0,129,0,6,198,
+ 120,134,176,129,0,130,0,4,252,187,224,130,0,24,0,34,0,41,0,48,0,55,0,62,0,69,0,76,0,83,0,90,
+ 0,97,0,106,0,129,0,1,201,130,7,1,174,129,0,10,12,65,20,85,126,0,10,6,18,116,105,104,0,10,212,22,
+ 49,71,134,192,10,180,37,34,87,151,160,7,198,69,68,91,130,9,10,216,101,82,76,185,160,10,235,135,151,141,230,208,
+ 10,14,198,189,222,136,0,10,15,219,103,134,127,0,129,0,6,254,219,172,240,129,0,24,0,32,0,41,0,48,0,55,
+ 0,62,0,69,0,76,0,83,0,90,0,99,0,107,0,130,0,4,135,103,176,130,0,129,0,6,115,18,169,176,129,0,
+ 10,9,49,42,186,156,0,10,7,33,87,38,202,0,10,7,66,101,119,218,0,10,8,100,116,104,216,0,10,10,151,118,
+ 103,200,0,10,12,152,137,105,171,0,10,14,203,124,206,126,0,129,0,6,237,167,167,192,129,0,130,0,4,238,218,208,
+ 130,0,24,0,31,0,39,0,50,0,59,0,68,0,77,0,86,0,95,0,104,0,112,0,118,0,131,0,2,153,128,131,
+ 0,130,0,4,114,23,224,130,0,129,0,0,144,130,1,2,238,208,129,0,129,0,6,113,20,169,240,129,0,129,0,6,
+ 98,21,203,224,129,0,129,0,6,131,37,219,224,129,0,129,0,6,132,69,185,224,129,0,129,0,6,198,86,172,224,129,
+ 0,129,0,6,249,134,206,224,129,0,130,0,4,218,136,208,130,0,131,0,130,14,131,0,24,0,31,0,39,0,49,0,
+ 59,0,67,0,77,0,85,0,93,0,101,0,109,0,115,0,131,0,2,137,128,131,0,130,0,4,163,35,176,130,0,130,
+ 0,0,96,130,1,0,160,130,0,130,0,0,80,130,1,0,144,130,0,130,0,4,130,18,176,130,0,130,0,0,128,130,
+ 2,0,208,130,0,130,0,4,164,52,208,130,0,130,0,4,197,69,208,130,0,130,0,4,198,103,208,130,0,130,0,4,
+ 234,187,224,130,0,131,0,130,15,131,0,24,0,31,0,39,0,48,0,57,0,66,0,75,0,84,0,93,0,102,0,110,
+ 0,117,0,131,0,2,86,112,131,0,130,0,4,199,35,112,130,0,129,0,6,236,227,18,144,129,0,129,0,6,248,183,
+ 18,112,129,0,129,0,6,251,183,36,144,129,0,129,0,6,251,217,52,128,129,0,129,0,6,249,186,70,160,129,0,129,
+ 0,6,252,201,121,224,129,0,129,0,6,255,233,205,240,129,0,130,0,4,252,206,224,130,0,131,0,2,223,240,131,0,
+ 24,0,32,0,41,0,48,0,55,0,62,0,70,0,77,0,84,0,91,0,100,0,108,0,130,0,4,183,121,192,130,0,
+ 129,0,6,184,81,19,192,129,0,10,12,154,102,17,78,0,10,11,147,52,49,92,0,10,11,212,50,68,105,0,3,10,
+ 230,130,4,3,87,144,10,10,213,53,103,155,0,10,11,171,119,104,206,0,10,14,141,201,109,239,0,129,0,6,216,166,
+ 207,240,129,0,130,0,4,235,239,240,130,0,24,0,33,0,40,0,47,0,55,0,62,0,69,0,76,0,83,0,90,0,
+ 97,0,106,0,129,0,6,250,119,154,192,129,0,10,14,98,50,18,91,0,10,7,36,33,49,22,0,3,212,100,130,1,
+ 3,49,60,10,165,101,35,20,52,160,10,151,85,52,38,70,176,10,151,196,18,70,104,192,10,213,215,99,86,122,224,10,
+ 8,94,168,134,173,0,10,15,117,119,108,239,0,129,0,6,252,154,239,240,129,0,
+};
+static const jj_frame pic_coin_f[] = {{11,11,-5,-5,0},{11,11,-5,-5,109},{11,11,-5,-5,215},{11,11,-5,-5,322},{11,11,-5,-5,440},{11,11,-5,-5,555},{11,11,-5,-5,672},{11,11,-5,-5,780}};
+static const jj_sheet pic_coin = {pic_coin_pal, pic_coin_data, pic_coin_f, 8, 4};
+static const uint16_t pic_token_pal[] = {0,65498,61302,63218,54996,54832,58701,44400,40142,52231,40076,31723,47844,47556,25353,25158};
+static const uint8_t pic_token_data[] = {
+ 44,0,46,0,57,0,70,0,85,0,99,0,115,0,129,0,142,0,156,0,168,0,181,0,196,0,208,0,220,0,232,0,
+ 249,0,10,1,25,1,39,1,51,1,53,1,148,0,133,0,1,135,130,1,3,36,120,133,0,131,0,1,132,130,1,131,
+ 2,3,17,72,131,0,130,0,3,129,36,130,5,130,4,4,85,67,128,130,0,129,0,16,129,53,51,86,66,86,53,51,
+ 128,129,0,129,0,2,17,96,132,3,2,85,144,131,3,1,100,129,0,4,8,18,96,130,9,12,99,102,51,99,151,24,
+ 0,8,4,20,99,35,96,131,3,7,99,154,65,128,4,5,34,80,132,6,5,51,99,154,130,2,1,128,5,5,36,37,
+ 133,6,8,57,146,36,37,0,13,5,36,72,99,54,99,106,131,4,2,37,0,7,7,69,90,99,131,6,2,57,112,130,
+ 5,2,37,0,20,10,69,134,54,99,102,54,133,87,71,0,20,11,74,98,54,57,147,99,151,85,75,0,20,14,118,54,
+ 99,156,198,99,104,85,78,0,129,0,0,176,131,3,4,154,90,144,130,3,3,151,72,129,0,129,0,0,176,131,9,4,
+ 167,87,160,130,9,3,197,126,129,0,130,0,4,234,136,112,130,5,6,122,168,119,224,130,0,131,0,1,232,130,4,1,
+ 85,131,4,1,142,131,0,133,0,2,235,128,130,5,2,139,224,133,0,148,0,44,0,50,0,62,0,72,0,82,0,97,
+ 0,112,0,128,0,142,0,156,0,169,0,183,0,195,0,207,0,220,0,232,0,246,0,7,1,20,1,35,1,47,1,58,
+ 1,135,0,132,7,135,0,132,0,2,116,32,132,1,2,36,112,132,0,131,0,0,80,138,1,0,80,131,0,130,0,1,
+ 82,138,1,1,37,130,0,129,0,5,114,33,69,131,8,6,165,65,34,112,129,0,5,10,113,72,130,11,0,128,131,10,
+ 6,184,66,90,0,3,8,115,132,10,0,176,130,8,0,176,130,10,3,87,128,4,8,76,96,130,2,12,60,168,185,50,
+ 38,103,0,14,5,122,201,204,102,187,150,96,130,9,2,165,0,12,5,136,198,86,150,153,96,132,9,2,164,0,4,8,
+ 168,160,132,9,1,102,131,9,4,170,138,0,7,8,170,139,149,133,9,6,202,138,138,0,6,8,170,138,192,133,9,7,
+ 168,138,168,160,5,10,136,172,134,9,1,168,130,10,2,139,0,6,11,139,150,96,133,9,7,200,138,168,224,10,14,169,
+ 102,153,206,192,130,9,6,168,168,174,0,129,0,0,224,131,9,4,235,139,192,130,9,3,168,174,129,0,130,0,14,201,
+ 158,184,170,201,156,168,224,130,0,130,0,3,255,234,131,8,0,176,130,15,1,174,131,0,132,0,0,224,132,11,4,171,
+ 190,224,132,0,134,0,0,240,130,14,2,254,240,134,0,44,0,46,0,48,0,58,0,72,0,86,0,102,0,118,0,128,
+ 0,140,0,154,0,169,0,183,0,194,0,203,0,213,0,226,0,239,0,254,0,10,1,12,1,14,1,148,0,148,0,133,
+ 0,1,235,132,8,1,190,133,0,130,0,4,235,84,64,132,1,4,68,91,224,130,0,129,0,1,180,131,2,132,1,131,
+ 2,1,123,129,0,3,10,66,130,4,0,32,132,1,0,32,130,4,3,36,160,2,180,32,131,4,0,32,132,1,0,32,
+ 131,4,2,36,176,3,228,36,137,2,6,18,35,36,224,6,181,34,87,176,133,14,7,187,116,34,91,4,228,76,208,132,
+ 15,130,14,130,15,4,204,84,224,3,167,249,132,6,0,208,130,15,0,144,132,6,1,91,2,190,224,132,12,5,153,204,
+ 153,130,12,3,156,251,131,14,133,12,1,153,132,12,3,223,238,132,14,2,252,144,136,12,131,14,133,14,0,240,134,12,
+ 1,255,132,14,6,14,239,252,144,134,12,0,240,132,14,0,0,129,0,3,236,153,135,12,1,223,130,14,129,0,130,0,
+ 0,144,132,12,1,255,131,12,2,254,240,130,0,130,0,131,13,8,207,254,253,204,208,132,0,148,0,148,0,44,0,46,
+ 0,48,0,50,0,52,0,64,0,78,0,92,0,106,0,120,0,134,0,148,0,156,0,169,0,180,0,192,0,204,0,214,
+ 0,224,0,226,0,228,0,230,0,148,0,148,0,148,0,148,0,132,0,1,235,130,8,4,120,138,176,133,0,8,14,165,
+ 84,66,32,130,1,8,34,68,87,174,0,5,232,88,114,130,4,130,1,8,68,34,120,72,224,5,184,170,114,130,4,130,
+ 1,130,4,5,39,170,139,5,184,138,114,130,4,130,1,130,4,5,39,168,139,5,184,138,114,130,4,130,1,130,4,5,
+ 39,168,139,4,184,170,112,131,2,130,1,131,2,4,122,168,176,3,184,117,140,4,3,87,139,5,184,121,204,131,15,130,
+ 14,7,255,204,151,139,2,238,208,134,12,1,255,134,12,1,238,2,239,192,133,6,3,156,153,133,6,1,238,129,0,0,
+ 208,136,12,0,208,133,12,129,0,130,0,1,220,136,13,1,205,132,0,130,0,132,13,131,0,131,13,132,0,148,0,148,
+ 0,148,0,44,0,46,0,48,0,50,0,52,0,62,0,72,0,87,0,99,0,115,0,129,0,145,0,161,0,173,0,189,
+ 0,207,0,220,0,232,0,234,0,236,0,238,0,240,0,148,0,148,0,148,0,148,0,131,0,130,13,132,12,132,13,131,
+ 0,130,0,131,13,131,12,134,13,130,0,129,0,4,184,135,112,132,8,131,7,2,136,176,129,0,2,232,80,131,7,134,
+ 2,131,7,2,88,224,2,238,128,130,10,1,181,132,4,1,91,130,10,2,142,224,8,238,170,136,164,32,130,4,8,36,
+ 168,138,174,224,1,238,130,10,3,138,66,130,4,3,36,168,130,10,1,238,1,238,130,10,3,138,66,130,4,3,36,168,
+ 130,10,1,238,3,238,136,130,10,134,4,130,10,3,136,238,3,238,170,130,8,0,64,132,2,0,64,130,8,3,170,238,
+ 129,0,1,255,130,14,0,176,131,10,1,139,130,14,1,255,129,0,130,0,134,12,2,255,208,132,12,0,208,129,0,130,
+ 0,134,12,130,0,132,12,0,208,129,0,148,0,148,0,148,0,148,0,44,0,46,0,48,0,50,0,64,0,76,0,91,
+ 0,104,0,112,0,122,0,134,0,150,0,164,0,178,0,192,0,210,0,226,0,242,0,244,0,246,0,248,0,250,0,148,
+ 0,148,0,148,0,132,0,130,14,0,240,130,0,0,240,130,14,132,0,130,0,132,15,4,239,15,224,132,15,130,0,129,
+ 0,3,253,105,130,13,130,12,133,13,0,240,129,0,5,251,237,217,134,6,0,144,131,13,2,235,224,2,88,176,142,13,
+ 2,167,160,5,133,68,124,136,15,5,199,68,126,7,235,132,18,66,132,1,7,36,33,72,238,130,14,130,10,2,138,112,
+ 130,5,2,122,128,130,10,130,14,8,238,184,170,138,112,130,5,8,122,138,168,190,224,8,238,184,170,138,112,130,5,8,
+ 122,138,168,190,224,8,238,184,170,138,112,130,5,8,122,138,168,190,224,2,238,176,130,8,2,170,112,130,5,2,122,160,
+ 130,8,2,190,224,2,14,240,130,11,8,136,116,84,120,128,130,11,2,255,0,130,0,130,15,1,238,132,11,1,238,130,
+ 15,0,208,129,0,148,0,148,0,148,0,148,0,44,0,46,0,48,0,59,0,72,0,84,0,97,0,112,0,124,0,137,
+ 0,150,0,165,0,178,0,193,0,206,0,216,0,228,0,242,0,254,0,8,1,10,1,12,1,148,0,148,0,133,0,130,
+ 14,2,186,176,130,14,133,0,130,0,14,190,183,123,114,123,120,142,176,130,0,129,0,133,10,5,181,37,183,132,10,129,
+ 0,3,8,76,130,9,13,216,36,40,217,156,212,128,1,162,132,9,1,221,130,4,1,221,130,9,3,217,42,20,162,150,
+ 109,153,221,205,217,156,157,146,160,11,162,157,19,156,157,220,130,9,5,102,219,42,7,162,77,213,34,130,6,9,153,102,
+ 157,212,42,7,226,36,205,217,130,5,1,105,130,13,4,196,34,224,6,248,34,23,112,134,13,1,117,130,2,1,143,3,
+ 238,180,131,1,0,32,131,4,4,33,18,112,130,14,130,14,3,183,135,133,1,4,39,135,176,130,14,130,14,0,176,140,
+ 10,0,176,130,14,6,14,234,138,160,134,8,6,170,138,238,0,129,0,1,235,130,8,134,10,130,8,1,190,129,0,130,
+ 0,3,254,186,134,8,3,171,239,130,0,133,0,0,240,134,14,0,240,133,0,148,0,148,0,44,0,52,0,64,0,76,
+ 0,89,0,105,0,117,0,131,0,143,0,157,0,169,0,185,0,197,0,209,0,221,0,233,0,245,0,1,1,15,1,21,
+ 1,27,1,33,1,134,0,1,117,132,7,134,0,132,0,3,117,66,130,1,3,36,87,132,0,131,0,12,68,119,132,20,
+ 135,132,64,131,0,130,0,14,68,116,72,65,72,68,132,32,130,0,129,0,2,81,112,130,4,10,181,21,180,71,129,64,
+ 129,0,20,8,20,116,72,178,18,184,68,133,24,0,8,4,25,101,61,112,130,1,8,125,53,105,20,0,7,2,25,101,
+ 92,132,1,7,197,86,145,32,8,2,25,101,57,80,130,1,8,92,53,105,18,0,20,2,25,101,86,214,86,214,53,105,
+ 18,0,3,2,28,130,6,1,54,130,9,1,99,130,6,3,193,32,7,5,21,146,101,132,3,7,102,41,81,80,6,10,
+ 18,147,32,134,6,6,35,146,26,0,7,14,65,41,81,132,3,7,21,146,20,224,7,15,228,18,204,132,6,7,204,33,
+ 46,240,7,15,235,17,37,132,13,7,82,17,174,240,129,0,3,238,180,136,1,3,72,238,129,0,130,0,130,14,1,184,
+ 132,4,1,91,130,14,130,0,131,0,140,14,131,0,132,0,138,14,132,0,135,0,132,14,135,0,
+};
+static const jj_frame pic_token_f[] = {{21,21,-10,-10,0},{21,21,-10,-10,309},{21,21,-10,-10,623},{21,21,-10,-10,893},{21,21,-10,-10,1123},{21,21,-10,-10,1363},{21,21,-10,-10,1613},{21,21,-10,-10,1881}};
+static const jj_sheet pic_token = {pic_token_pal, pic_token_data, pic_token_f, 8, 4};
+static const uint16_t pic_box_pal[] = {0,61309,53085,63342,57197,48798,54934,56731,60813,40824,44571,20446,22300,40346,40239,32022,15667,58456,58200,40047,39790,29780,19473,25389,15117,47634,51474,21001,18662,4517,6434,8323};
+static const uint8_t pic_box_data[] = {
+ 88,0,90,0,92,0,94,0,96,0,98,0,100,0,106,0,122,0,142,0,172,0,203,0,236,0,17,1,52,1,87,1,
+ 123,1,157,1,193,1,229,1,9,2,45,2,78,2,111,2,144,2,179,2,213,2,248,2,27,3,62,3,98,3,133,3,
+ 167,3,193,3,219,3,241,3,1,4,9,4,11,4,13,4,15,4,17,4,19,4,21,4,170,0,170,0,170,0,170,0,
+ 170,0,170,0,138,0,148,31,138,0,137,0,1,31,27,133,25,137,26,130,25,1,28,31,137,0,136,0,3,31,27,7,
+ 1,130,7,1,18,18,140,17,2,18,28,31,136,0,135,0,12,31,27,7,1,1,17,18,25,19,21,20,17,25,132,17,
+ 8,7,17,17,7,17,17,8,27,31,135,0,134,0,15,31,27,7,1,6,17,7,20,23,2,13,23,20,17,27,17,133,
+ 7,1,6,6,130,8,1,27,31,134,0,133,0,16,31,27,7,1,1,7,10,1,10,10,5,13,13,2,2,21,25,132,
+ 7,2,6,6,0,131,8,1,27,30,133,0,133,0,16,31,25,7,7,1,17,15,5,10,10,13,13,10,10,13,21,20,
+ 130,7,3,6,6,1,7,129,0,4,8,6,8,20,30,133,0,133,0,19,31,25,18,18,17,20,19,2,2,13,21,21,
+ 13,5,10,19,20,7,6,6,130,1,130,7,4,6,8,8,20,30,133,0,133,0,18,31,25,18,18,25,13,1,2,10,
+ 19,20,19,20,10,5,2,6,17,6,131,1,0,7,130,0,3,8,8,20,30,133,0,133,0,23,31,25,18,26,23,5,
+ 10,10,15,27,18,18,28,21,5,10,10,23,25,18,25,8,6,8,130,0,3,8,8,20,30,133,0,133,0,23,31,25,
+ 18,26,27,21,13,10,10,28,26,26,28,10,5,13,15,27,27,25,17,17,8,20,132,8,1,20,30,133,0,133,0,30,
+ 31,25,18,26,26,28,24,10,2,15,27,28,14,1,13,24,31,31,20,20,27,20,20,19,23,20,8,8,4,20,30,133,
+ 0,133,0,30,31,26,18,26,18,28,23,1,5,5,2,2,1,10,5,23,31,14,1,5,20,23,6,1,15,27,8,8,
+ 4,20,30,133,0,133,0,30,31,26,18,26,18,26,13,2,5,5,10,5,10,5,5,13,23,2,5,10,2,1,2,10,
+ 10,23,8,8,4,20,30,133,0,133,0,2,31,26,18,130,26,24,27,15,21,15,5,5,15,21,15,27,31,15,5,5,
+ 10,10,5,5,13,28,8,8,4,20,30,133,0,133,0,0,31,133,26,23,27,23,27,21,21,27,28,28,31,27,2,5,
+ 13,23,24,13,5,5,23,27,8,4,20,30,133,0,133,0,0,31,133,26,23,25,17,25,27,27,25,18,27,19,1,2,
+ 13,27,28,28,27,13,5,2,14,23,4,20,30,133,0,133,0,0,31,130,26,130,0,1,18,17,132,18,16,20,1,5,
+ 5,15,28,8,3,27,21,5,5,2,23,8,19,30,133,0,133,0,0,31,130,26,130,0,23,18,17,25,18,17,18,18,
+ 20,13,5,5,10,28,20,8,27,6,2,5,13,27,4,19,30,133,0,133,0,0,31,130,26,131,0,22,17,18,25,25,
+ 8,8,27,28,21,10,2,10,27,28,14,1,10,21,27,20,4,19,30,133,0,133,0,0,31,130,26,130,0,1,18,17,
+ 130,20,18,28,27,19,31,31,22,15,13,13,10,5,15,22,30,20,4,4,19,30,133,0,133,0,0,31,130,26,130,0,
+ 14,18,25,20,2,13,21,10,10,21,27,15,15,21,21,15,130,21,0,27,130,4,1,19,30,133,0,133,0,0,31,130,
+ 26,130,0,5,17,20,15,13,21,21,130,15,0,21,130,15,10,22,22,15,15,22,27,8,4,4,19,30,133,0,133,0,
+ 0,31,130,26,129,0,19,7,7,20,27,21,24,29,27,21,24,29,27,23,24,27,27,23,22,27,20,130,4,1,19,30,
+ 133,0,133,0,24,31,26,18,18,17,0,17,17,19,27,13,23,31,27,13,23,28,19,23,23,8,4,19,23,19,131,4,
+ 1,19,30,133,0,133,0,4,31,28,17,18,18,130,17,10,20,15,10,15,21,5,10,15,23,8,3,130,4,0,3,132,
+ 4,2,6,27,30,133,0,134,0,1,31,27,132,17,9,20,23,15,21,21,15,15,22,27,8,136,4,2,3,27,31,134,
+ 0,135,0,1,31,27,130,17,1,8,8,130,27,4,30,27,23,27,20,136,4,2,6,27,30,135,0,136,0,1,31,27,
+ 132,6,5,19,19,8,8,19,8,136,3,2,6,27,30,136,0,137,0,1,31,27,131,19,133,14,136,19,1,27,31,137,
+ 0,138,0,0,31,147,30,138,0,170,0,170,0,170,0,170,0,170,0,170,0,88,0,90,0,92,0,94,0,96,0,98,
+ 0,100,0,108,0,126,0,152,0,184,0,216,0,250,0,29,1,62,1,96,1,131,1,166,1,200,1,235,1,14,2,49,
+ 2,85,2,119,2,154,2,188,2,223,2,3,3,39,3,75,3,111,3,147,3,178,3,208,3,237,3,8,4,31,4,37,
+ 4,39,4,41,4,43,4,45,4,47,4,49,4,170,0,170,0,170,0,170,0,170,0,170,0,138,0,142,29,133,31,138,
+ 0,136,0,2,24,30,24,138,16,0,22,134,21,2,27,31,27,136,0,135,0,10,24,30,24,9,2,9,11,11,12,12,
+ 9,130,2,133,5,131,7,2,27,31,27,135,0,134,0,7,24,30,24,11,2,1,9,12,130,15,7,21,10,15,10,5,
+ 5,2,2,132,7,4,17,18,27,31,27,134,0,134,0,17,30,24,11,2,2,15,5,22,24,2,13,23,23,13,22,10,
+ 1,2,132,1,5,7,18,17,18,27,31,134,0,133,0,18,30,24,11,2,2,9,10,1,10,10,5,13,13,2,2,15,
+ 21,1,7,132,1,1,0,17,130,18,1,28,31,133,0,133,0,18,29,16,11,2,2,15,15,5,10,10,13,13,10,10,
+ 13,21,21,2,5,131,1,0,7,129,0,130,17,1,25,31,133,0,133,0,1,29,16,130,11,11,22,21,2,2,13,21,
+ 21,13,10,10,21,23,133,1,7,0,7,7,17,18,18,26,31,133,0,133,0,17,29,16,11,11,16,13,1,2,10,21,
+ 21,15,21,10,2,2,10,13,132,1,0,7,130,0,3,26,18,26,31,133,0,133,0,17,29,16,11,11,22,5,10,10,
+ 15,24,5,5,24,21,5,10,10,23,131,18,1,7,18,130,0,3,26,18,26,31,133,0,133,0,18,29,16,11,11,22,
+ 15,13,10,10,27,21,13,28,10,5,13,15,27,27,131,18,7,25,18,18,26,26,18,26,31,133,0,133,0,24,29,16,
+ 11,11,16,24,24,13,2,13,27,27,15,1,13,24,29,31,20,23,27,26,20,19,27,132,26,0,31,133,0,133,0,25,
+ 29,16,11,12,11,24,23,1,5,5,2,2,1,10,5,23,31,15,1,5,21,23,7,1,13,27,131,26,0,31,133,0,
+ 133,0,6,29,16,11,12,12,22,13,130,5,15,10,5,10,5,5,13,23,2,5,10,2,1,2,10,10,23,131,26,0,
+ 31,133,0,133,0,25,29,16,11,12,12,15,24,15,21,13,5,5,15,21,15,27,31,15,5,5,10,10,5,5,13,28,
+ 131,26,0,31,133,0,133,0,26,29,16,12,12,13,13,22,23,23,24,15,15,27,28,27,31,27,2,5,13,23,24,13,
+ 5,5,23,28,130,26,0,31,133,0,133,0,2,29,16,12,132,13,22,5,21,23,23,25,18,27,21,1,2,13,27,28,
+ 28,27,13,5,2,15,27,26,26,31,133,0,133,0,3,29,22,10,13,130,0,2,13,5,7,131,18,9,20,1,5,5,
+ 15,28,18,18,27,23,130,5,3,23,26,25,31,133,0,133,0,3,29,21,10,13,130,0,1,13,7,132,18,16,25,13,
+ 5,5,10,28,26,26,28,13,2,5,13,27,26,25,31,133,0,133,0,3,29,21,10,13,131,0,22,7,17,18,25,18,
+ 18,28,28,21,10,2,13,27,28,14,1,10,21,27,26,18,25,31,133,0,133,0,3,29,21,13,13,130,0,23,7,7,
+ 25,20,20,28,27,21,31,31,22,15,13,13,10,5,15,22,31,26,26,18,25,31,133,0,133,0,3,31,21,13,7,130,
+ 0,14,17,25,23,2,13,21,10,10,21,27,15,15,21,21,15,130,21,5,28,25,25,18,20,31,133,0,133,0,3,31,
+ 21,7,18,130,0,5,7,21,13,13,21,21,130,15,0,21,130,15,10,22,22,15,15,22,28,26,18,18,20,31,133,0,
+ 133,0,30,31,21,7,18,0,13,13,7,21,24,21,24,29,27,21,24,29,27,23,27,28,28,27,22,27,27,18,25,8,
+ 20,31,133,0,133,0,4,31,21,7,13,13,130,7,17,25,27,13,22,31,27,13,22,28,25,27,25,25,18,25,27,25,
+ 18,130,17,1,20,31,133,0,133,0,17,31,27,7,17,18,18,7,17,25,15,10,15,15,5,10,15,23,25,132,18,132,
+ 17,2,6,28,31,133,0,134,0,16,31,27,7,18,18,7,18,25,23,15,21,21,15,15,22,27,25,133,18,130,17,2,
+ 6,27,31,134,0,134,0,4,27,31,27,7,17,130,18,7,27,27,24,28,28,24,28,25,132,18,131,17,2,6,27,31,
+ 135,0,135,0,4,27,31,27,7,17,130,18,2,25,25,18,130,25,131,18,132,17,3,6,27,31,27,135,0,136,0,2,
+ 27,31,27,133,20,3,21,21,20,21,134,20,4,19,19,27,31,27,136,0,138,0,148,31,138,0,170,0,170,0,170,0,
+ 170,0,170,0,170,0,88,0,90,0,92,0,94,0,96,0,98,0,109,0,122,0,144,0,168,0,199,0,231,0,10,1,
+ 44,1,80,1,117,1,154,1,189,1,225,1,5,2,41,2,78,2,115,2,153,2,188,2,223,2,4,3,41,3,77,3,
+ 114,3,151,3,187,3,220,3,254,3,29,4,58,4,72,4,84,4,94,4,96,4,98,4,100,4,102,4,104,4,170,0,
+ 170,0,170,0,170,0,170,0,146,0,131,4,129,0,1,9,9,143,0,137,0,0,20,140,30,134,29,1,30,16,137,0,
+ 136,0,2,19,31,27,135,19,4,23,19,19,22,22,133,16,2,24,30,16,136,0,135,0,4,19,30,27,3,1,130,3,
+ 1,4,4,130,6,137,9,3,11,24,30,16,135,0,134,0,7,19,30,27,3,1,1,8,4,130,14,2,19,9,14,132,
+ 9,0,2,131,9,4,11,11,24,30,16,134,0,133,0,16,20,31,27,3,1,6,14,6,19,23,2,13,23,23,10,22,
+ 9,134,2,6,12,12,11,11,24,30,16,133,0,133,0,16,30,27,3,6,1,4,6,1,10,10,5,13,13,2,2,15,
+ 21,130,2,0,1,130,2,0,9,131,11,1,24,29,133,0,133,0,6,30,19,3,6,1,8,14,130,10,8,13,13,10,
+ 10,13,21,22,9,9,132,2,129,0,4,12,12,11,16,29,133,0,133,0,16,30,19,4,4,3,19,19,2,2,13,21,
+ 21,13,10,10,21,22,130,2,10,1,1,2,0,2,2,9,11,11,16,29,133,0,133,0,18,30,19,4,4,20,14,1,
+ 2,10,19,14,14,19,10,2,2,10,15,2,130,1,1,2,5,130,0,4,11,11,16,29,12,132,0,133,0,18,30,19,
+ 4,4,23,2,10,10,15,23,9,9,24,21,5,10,10,22,12,130,11,2,9,11,11,129,0,3,11,11,16,29,133,0,
+ 133,0,18,30,19,4,4,23,15,13,10,10,27,16,12,29,10,5,13,15,24,16,131,11,2,12,11,11,130,12,1,16,
+ 29,133,0,133,0,25,30,19,4,4,14,27,24,13,2,13,24,24,15,1,13,24,29,29,21,22,16,16,22,15,22,16,
+ 130,12,1,22,29,133,0,133,0,30,30,19,4,9,9,24,23,1,5,5,2,2,1,10,5,23,31,14,1,5,21,23,
+ 2,1,13,24,12,12,13,21,31,133,0,133,0,6,30,19,4,9,9,24,10,130,5,20,10,5,10,5,5,13,24,2,
+ 5,10,2,1,2,10,10,22,16,12,13,21,31,133,0,132,0,2,4,30,19,130,9,25,16,24,15,21,13,5,5,15,
+ 21,15,24,31,21,5,5,10,10,5,5,13,29,12,13,13,21,31,133,0,132,0,2,4,30,19,131,9,0,16,130,24,
+ 21,15,15,24,29,24,29,27,2,5,13,22,24,13,5,5,23,24,13,13,21,31,17,132,0,132,0,32,4,30,22,9,
+ 9,0,12,9,12,9,16,22,22,16,11,24,21,1,2,13,24,29,24,24,13,5,2,13,22,13,21,31,7,132,0,133,
+ 0,3,30,22,9,9,130,0,1,12,9,132,11,9,16,2,5,5,15,29,12,11,24,21,130,5,4,22,13,21,31,17,
+ 132,0,133,0,3,29,22,9,9,130,0,1,12,9,132,11,17,16,13,5,5,10,24,16,12,24,13,2,5,13,24,13,
+ 21,31,18,132,0,132,0,4,9,29,16,12,12,131,0,23,9,11,12,12,11,11,24,29,21,10,2,13,24,29,15,1,
+ 10,21,27,21,7,25,31,18,132,0,132,0,4,9,29,16,12,12,130,0,1,11,9,130,16,18,24,24,15,29,31,22,
+ 15,15,13,10,5,15,22,29,21,7,7,21,31,133,0,133,0,3,29,16,11,12,130,0,14,11,12,22,5,13,21,10,
+ 10,21,27,15,15,21,21,15,130,21,5,27,18,18,17,25,31,133,0,133,0,3,29,16,11,11,129,0,6,11,11,16,
+ 13,13,21,21,130,15,0,21,130,15,5,22,22,15,15,22,27,130,18,1,25,31,133,0,133,0,3,29,16,11,11,129,
+ 0,24,12,11,12,24,21,24,29,27,21,24,29,27,22,24,27,27,24,22,24,23,7,18,18,25,31,133,0,133,0,30,
+ 29,16,11,11,12,12,11,11,12,24,13,22,31,27,13,22,27,21,22,22,13,10,21,23,21,17,7,17,18,25,31,133,
+ 0,133,0,1,30,24,133,11,13,16,13,10,15,15,5,10,15,22,13,5,10,10,13,130,7,5,17,18,18,7,27,31,
+ 133,0,133,0,2,16,30,24,130,11,3,12,11,16,22,130,21,5,15,15,22,24,13,10,132,13,6,7,18,18,7,27,
+ 31,25,133,0,134,0,2,16,29,24,131,11,8,12,22,24,24,29,24,24,27,21,132,13,7,7,17,17,7,7,27,31,
+ 25,134,0,135,0,2,16,29,24,130,11,11,12,12,16,21,13,15,21,13,5,10,5,5,133,7,2,27,31,25,135,0,
+ 136,0,2,16,30,24,146,21,2,27,31,25,136,0,137,0,0,16,135,29,140,31,0,25,137,0,148,0,2,13,7,17,
+ 131,18,142,0,170,0,170,0,170,0,170,0,170,0,88,0,90,0,92,0,94,0,96,0,98,0,100,0,108,0,124,0,
+ 146,0,171,0,204,0,237,0,17,1,51,1,87,1,122,1,157,1,193,1,229,1,8,2,43,2,79,2,114,2,148,2,
+ 182,2,217,2,253,2,33,3,69,3,105,3,141,3,170,3,203,3,232,3,1,4,24,4,32,4,34,4,36,4,38,4,
+ 40,4,42,4,44,4,170,0,170,0,170,0,170,0,170,0,170,0,138,0,135,31,140,30,138,0,136,0,2,27,31,28,
+ 144,20,4,19,19,27,31,23,136,0,135,0,9,27,31,27,7,1,7,6,6,8,8,140,3,3,4,27,30,20,135,0,
+ 134,0,7,27,31,27,7,1,1,6,8,131,19,130,8,136,3,4,4,4,27,31,23,134,0,134,0,15,31,27,7,1,
+ 6,19,6,20,23,2,13,23,20,6,20,4,131,3,3,6,3,6,3,130,4,1,27,31,134,0,133,0,18,31,28,17,
+ 1,1,6,6,1,10,10,5,13,13,2,2,14,14,3,3,132,6,0,0,131,4,1,27,30,133,0,133,0,16,31,25,
+ 17,6,1,14,14,5,10,10,13,13,10,10,13,21,19,130,3,130,6,0,3,129,0,4,3,4,4,19,30,133,0,133,
+ 0,17,31,20,17,8,6,20,19,2,2,13,21,21,13,5,10,19,20,3,132,6,7,3,6,6,3,4,4,19,30,133,
+ 0,133,0,17,31,20,8,8,20,14,1,2,10,19,14,14,19,10,2,2,6,14,130,6,2,1,1,6,130,0,3,4,
+ 4,19,29,133,0,133,0,17,31,20,8,8,20,2,10,10,15,27,4,4,27,21,5,10,10,23,131,4,1,3,4,130,
+ 0,3,4,9,14,29,133,0,133,0,18,31,20,8,8,27,15,13,10,10,27,8,8,30,6,5,13,15,27,27,131,4,
+ 0,14,130,4,3,9,9,22,29,133,0,133,0,1,31,20,130,8,20,28,23,13,2,15,27,27,6,1,13,24,31,30,
+ 19,20,27,19,23,14,23,14,130,9,1,16,29,133,0,133,0,1,31,20,130,8,20,27,23,1,5,5,2,2,1,10,
+ 5,23,30,14,1,2,19,23,2,1,13,24,130,9,1,16,29,133,0,133,0,1,30,20,130,8,2,20,6,2,131,5,
+ 18,10,5,5,13,23,2,5,10,2,1,2,10,10,23,14,9,9,16,30,133,0,133,0,1,30,20,131,8,24,27,15,
+ 21,15,5,5,15,21,15,27,31,15,5,5,10,10,5,5,13,29,9,9,12,16,29,133,0,133,0,1,30,20,130,8,
+ 25,4,20,23,23,27,15,21,27,30,27,30,27,2,5,13,22,24,13,5,5,23,24,9,12,16,29,133,0,133,0,1,
+ 30,20,131,8,24,4,4,3,8,23,23,19,4,27,19,1,2,13,24,29,27,24,13,5,2,15,22,12,16,29,133,0,
+ 133,0,3,30,20,4,8,130,0,1,4,3,132,4,9,20,1,5,5,15,29,9,9,23,21,130,5,3,22,12,16,29,
+ 133,0,133,0,3,30,20,4,8,130,0,1,4,3,132,4,16,20,10,5,5,10,27,16,9,24,10,2,5,13,24,12,
+ 16,29,133,0,133,0,3,30,20,4,4,131,0,22,3,4,4,8,4,4,27,29,21,10,5,10,27,29,14,1,10,21,
+ 24,16,11,16,29,133,0,133,0,3,30,20,4,4,130,0,1,4,3,130,19,18,27,27,19,30,31,22,15,13,13,10,
+ 5,15,22,29,16,11,11,16,29,133,0,133,0,3,30,20,4,4,130,0,14,4,8,20,2,13,21,10,10,21,27,15,
+ 15,21,21,15,130,21,5,24,12,11,11,16,29,133,0,133,0,3,30,20,4,4,130,0,5,4,14,13,13,21,21,130,
+ 15,14,21,15,15,21,22,22,15,15,22,24,12,11,11,16,29,133,0,133,0,3,30,20,4,4,129,0,12,6,6,14,
+ 23,21,24,29,27,21,24,29,27,22,131,24,2,22,24,16,130,11,1,16,29,133,0,133,0,25,30,19,4,4,6,3,
+ 4,4,14,27,13,22,31,27,13,22,29,16,22,22,12,11,16,22,16,12,130,11,1,16,29,133,0,133,0,2,30,27,
+ 3,132,4,10,19,15,10,15,15,5,10,15,24,9,9,130,12,134,11,1,24,29,133,0,133,0,9,23,30,27,3,4,
+ 4,6,4,19,23,130,21,3,15,15,22,24,131,12,0,11,130,12,130,11,1,24,30,134,0,134,0,3,23,30,27,3,
+ 130,4,4,9,23,24,24,29,130,24,0,16,133,12,131,11,2,24,29,16,134,0,135,0,4,20,30,27,6,6,130,9,
+ 5,14,21,9,15,16,12,137,11,2,24,29,16,135,0,136,0,3,23,31,27,14,131,21,0,15,130,21,0,15,136,21,
+ 2,24,30,16,136,0,138,0,136,30,139,29,138,0,170,0,170,0,170,0,170,0,170,0,170,0,
+};
+static const jj_frame pic_box_f[] = {{43,43,-21,-21,0},{43,43,-21,-21,1045},{43,43,-21,-21,2118},{43,43,-21,-21,3246}};
+static const jj_sheet pic_box = {pic_box_pal, pic_box_data, pic_box_f, 4, 8};
+static const uint16_t pic_orb_pal[] = {0,65496,57081,65417,63205,48697,44471,58951,54726,44370,52483,40278,38133,40078,33908,29616};
+static const uint8_t pic_orb_data[] = {
+ 30,0,36,0,46,0,55,0,68,0,81,0,96,0,110,0,123,0,135,0,148,0,159,0,171,0,181,0,187,0,137,0,
+ 0,160,137,0,134,0,0,160,130,4,1,55,135,0,133,0,7,163,74,67,20,134,0,131,0,2,236,128,130,10,5,68,
+ 24,155,132,0,131,0,4,178,107,144,130,13,3,197,37,132,0,130,0,4,139,110,192,130,11,6,82,21,104,160,130,0,
+ 129,0,3,113,182,131,15,7,221,81,86,83,130,0,129,0,15,113,182,255,215,71,129,91,35,130,0,130,0,13,139,110,
+ 250,49,24,37,189,131,0,131,0,4,197,239,128,130,1,3,130,91,132,0,131,0,11,229,111,215,55,130,94,132,0,132,
+ 0,2,229,96,131,13,2,34,224,133,0,134,0,0,192,132,11,0,224,134,0,137,0,0,224,137,0,30,0,36,0,46,
+ 0,55,0,68,0,79,0,91,0,104,0,118,0,131,0,144,0,157,0,169,0,178,0,184,0,137,0,0,160,137,0,134,
+ 0,0,160,130,4,1,55,135,0,133,0,7,163,74,163,20,134,0,131,0,3,236,132,130,10,4,65,137,176,132,0,131,
+ 0,11,178,187,205,220,197,34,132,0,130,0,13,167,156,187,102,82,17,93,131,0,130,0,3,51,158,131,15,5,216,113,
+ 90,131,0,130,0,4,49,156,224,130,15,5,164,71,93,131,0,130,0,3,116,220,130,15,5,163,17,57,132,0,131,0,
+ 2,213,192,130,15,5,211,17,77,132,0,131,0,2,229,96,131,15,4,164,71,224,132,0,132,0,5,229,110,204,130,9,
+ 0,224,133,0,134,0,6,203,182,107,224,134,0,137,0,0,224,137,0,30,0,36,0,46,0,55,0,68,0,79,0,91,
+ 0,105,0,120,0,133,0,147,0,160,0,172,0,181,0,187,0,137,0,0,160,137,0,134,0,0,160,130,4,1,55,135,
+ 0,133,0,7,163,52,167,20,134,0,131,0,2,236,128,130,4,5,170,120,155,132,0,131,0,11,178,187,205,220,197,37,
+ 132,0,131,0,130,9,131,6,5,82,41,143,131,0,130,0,4,164,77,224,130,15,5,198,215,74,131,0,130,0,4,65,
+ 23,208,130,15,6,238,129,19,160,130,0,130,0,14,65,23,222,255,238,131,19,160,130,0,130,0,4,164,72,192,130,15,
+ 5,236,212,74,131,0,131,0,3,217,156,130,15,4,230,109,208,132,0,132,0,2,229,96,130,14,3,98,94,133,0,134,
+ 0,6,203,182,108,224,134,0,137,0,0,224,137,0,30,0,36,0,44,0,53,0,64,0,76,0,88,0,101,0,114,0,
+ 126,0,138,0,151,0,161,0,170,0,176,0,137,0,0,160,137,0,134,0,5,170,65,55,135,0,133,0,7,167,115,17,
+ 51,134,0,131,0,11,236,170,68,51,141,108,132,0,131,0,3,178,107,131,9,3,182,37,132,0,131,0,12,105,220,107,
+ 181,37,105,160,131,0,130,0,14,173,218,173,255,178,201,51,128,130,0,130,0,14,173,163,52,222,98,201,49,112,130,0,
+ 131,0,13,212,49,26,246,44,151,56,130,0,131,0,12,247,49,58,230,44,105,160,131,0,131,0,1,237,130,10,6,254,
+ 82,85,224,132,0,132,0,9,236,158,204,82,46,133,0,134,0,6,203,182,108,224,134,0,137,0,0,224,137,0,
+};
+static const jj_frame pic_orb_f[] = {{21,14,-10,-7,0},{21,14,-10,-7,187},{21,14,-10,-7,371},{21,14,-10,-7,558}};
+static const jj_sheet pic_orb = {pic_orb_pal, pic_orb_data, pic_orb_f, 4, 4};
+static const uint16_t pic_orbr_pal[] = {0,63344,54861,46481,52610,44267,44100,33873,31759,37797,29647,27535,25388,21263,21163,18986};
+static const uint8_t pic_orbr_data[] = {
+ 30,0,36,0,46,0,55,0,66,0,78,0,92,0,107,0,120,0,132,0,143,0,154,0,164,0,173,0,179,0,137,0,
+ 0,144,137,0,134,0,0,144,130,4,1,38,135,0,133,0,7,100,70,66,20,134,0,131,0,11,221,148,102,68,37,203,
+ 132,0,131,0,3,183,170,131,12,3,183,55,132,0,130,0,3,154,140,130,10,6,183,49,55,144,131,0,129,0,4,98,
+ 184,224,131,15,6,231,19,115,64,130,0,129,0,15,97,184,238,246,70,195,55,52,130,0,130,0,13,154,142,249,66,25,
+ 51,121,131,0,131,0,11,183,207,148,65,147,58,132,0,131,0,11,215,142,246,70,195,125,132,0,132,0,9,215,174,255,
+ 195,125,133,0,134,0,131,11,2,171,208,134,0,137,0,0,208,137,0,30,0,36,0,46,0,55,0,66,0,78,0,91,
+ 0,105,0,117,0,129,0,140,0,153,0,165,0,174,0,180,0,137,0,0,144,137,0,134,0,0,144,130,4,1,38,135,
+ 0,133,0,7,100,70,98,20,134,0,131,0,11,221,148,105,150,37,203,132,0,131,0,3,183,187,131,12,3,167,55,132,
+ 0,131,0,2,151,112,131,10,5,115,17,127,131,0,130,0,5,34,183,206,130,15,4,200,51,240,131,0,130,0,13,18,
+ 183,190,255,148,101,127,131,0,130,0,12,102,183,190,255,68,20,176,132,0,131,0,11,199,172,239,244,65,109,132,0,131,
+ 0,2,215,128,130,14,5,249,102,205,132,0,132,0,2,215,128,130,12,3,186,189,133,0,134,0,130,11,3,170,189,134,
+ 0,137,0,0,208,137,0,30,0,36,0,46,0,57,0,70,0,82,0,95,0,107,0,119,0,131,0,143,0,154,0,164,
+ 0,173,0,179,0,137,0,0,144,137,0,134,0,0,144,131,4,0,96,135,0,133,0,2,100,32,130,4,1,20,134,0,
+ 131,0,2,221,144,130,4,5,102,37,203,132,0,131,0,3,179,171,131,12,3,167,55,132,0,131,0,1,200,130,7,6,
+ 138,115,58,192,132,0,130,0,13,148,106,124,238,184,217,70,131,0,130,0,13,65,73,188,237,189,196,18,131,0,130,0,
+ 13,65,41,170,237,189,196,17,131,0,131,0,12,68,199,190,219,174,100,96,131,0,131,0,11,248,120,206,219,119,207,132,
+ 0,132,0,9,215,172,203,115,125,133,0,134,0,130,11,3,170,189,134,0,137,0,0,208,137,0,30,0,36,0,44,0,
+ 55,0,66,0,77,0,90,0,103,0,116,0,130,0,143,0,154,0,164,0,173,0,179,0,137,0,0,144,137,0,134,0,
+ 5,148,65,34,135,0,133,0,2,100,64,130,1,1,34,134,0,131,0,11,219,150,68,17,70,139,132,0,131,0,11,183,
+ 120,200,92,167,55,132,0,131,0,7,170,235,170,183,130,3,1,121,131,0,130,0,1,157,132,15,7,235,55,56,70,130,
+ 0,130,0,14,158,148,70,254,163,115,129,64,130,0,131,0,7,246,65,25,218,130,3,2,132,96,130,0,131,0,1,233,
+ 130,4,7,253,131,115,169,131,0,131,0,11,220,153,254,200,51,125,132,0,132,0,131,13,5,203,115,125,133,0,134,0,
+ 130,11,3,170,189,134,0,137,0,0,208,137,0,
+};
+static const jj_frame pic_orbr_f[] = {{21,14,-10,-7,0},{21,14,-10,-7,179},{21,14,-10,-7,359},{21,14,-10,-7,538}};
+static const jj_sheet pic_orbr = {pic_orbr_pal, pic_orbr_data, pic_orbr_f, 4, 4};
+static const uint16_t pic_missile_pal[] = {0,61306,63307,63021,46549,58603,62440,36018,29680,62215,62054,29453,21197,59781,55428,37061};
+static const uint8_t pic_missile_data[] = {
+ 36,0,43,0,51,0,61,0,72,0,82,0,92,0,103,0,114,0,126,0,137,0,150,0,162,0,173,0,183,0,191,0,
+ 201,0,208,0,138,0,3,217,158,131,0,137,0,4,230,85,224,131,0,136,0,1,234,130,13,0,240,131,0,131,0,3,
+ 238,184,133,11,4,140,203,192,129,0,3,237,99,136,1,3,135,20,2,14,144,130,3,136,1,3,132,17,6,233,54,170,
+ 64,134,7,4,72,65,16,18,230,157,237,120,139,217,154,152,65,16,1,237,131,14,12,184,190,214,153,248,116,64,8,237,
+ 238,254,188,192,133,15,3,135,68,2,249,160,130,14,0,112,134,12,4,139,113,64,1,15,131,9,0,64,134,7,4,75,
+ 65,16,129,0,4,253,154,112,135,4,3,200,68,131,0,1,255,135,12,0,176,131,12,136,0,1,254,131,15,131,0,137,
+ 0,0,240,130,13,0,240,131,0,138,0,3,254,255,131,0,32,0,38,0,44,0,57,0,69,0,82,0,94,0,105,0,
+ 118,0,128,0,141,0,153,0,165,0,177,0,187,0,195,0,138,0,131,14,131,0,136,0,133,15,131,0,131,0,6,238,
+ 184,188,192,130,8,4,124,203,192,129,0,3,237,99,132,1,7,85,99,135,20,2,14,144,130,3,130,1,9,57,85,102,
+ 132,17,8,233,54,170,71,112,131,14,5,255,116,17,8,230,157,237,120,128,133,15,3,132,17,1,237,131,14,2,184,128,
+ 132,12,4,184,116,64,6,237,238,254,176,135,12,3,183,68,2,249,160,130,14,0,112,134,12,4,139,113,64,1,15,131,
+ 9,0,64,134,7,4,75,65,16,129,0,4,253,154,112,133,4,5,116,200,68,131,0,1,255,130,12,5,238,255,239,131,
+ 12,136,0,0,224,131,10,0,240,131,0,137,0,4,229,102,240,131,0,24,0,39,0,52,0,65,0,77,0,90,0,101,
+ 0,114,0,126,0,139,0,152,0,166,0,131,0,2,153,176,130,8,0,144,130,5,4,156,203,192,129,0,1,149,131,1,
+ 10,77,239,239,152,113,64,2,9,48,132,1,0,64,132,15,4,167,65,16,9,163,17,51,71,120,130,11,5,199,132,17,
+ 6,145,53,101,112,130,8,131,11,4,120,65,16,1,149,131,6,0,112,136,8,2,116,64,6,149,153,169,128,130,12,130,
+ 11,5,204,183,68,9,227,57,150,124,203,131,15,4,188,113,64,1,9,131,3,3,71,126,130,13,5,237,132,17,129,0,
+ 3,214,51,130,4,9,218,153,170,136,68,131,0,1,221,131,12,0,240,130,5,0,240,131,12,34,0,42,0,52,0,62,
+ 0,73,0,85,0,93,0,104,0,117,0,128,0,139,0,151,0,165,0,179,0,193,0,199,0,205,0,138,0,130,9,0,
+ 224,131,0,137,0,0,160,130,9,0,240,131,0,136,0,1,237,130,14,0,240,131,0,131,0,4,221,184,128,133,15,3,
+ 204,188,129,0,2,217,48,131,1,133,4,3,135,20,2,13,80,139,1,3,132,17,6,229,51,102,64,134,7,4,72,65,
+ 16,2,211,96,130,9,0,112,134,8,4,120,65,16,5,217,170,154,130,8,133,11,3,135,68,8,217,173,237,188,192,133,
+ 13,3,135,68,9,229,109,218,124,190,130,9,5,169,199,20,1,13,130,5,5,100,119,254,130,5,4,156,65,16,129,0,
+ 8,233,86,116,72,176,130,15,4,187,132,64,131,0,1,238,130,12,1,184,130,12,0,128,131,12,136,0,133,15,131,0,
+ 138,0,131,15,131,0,18,0,26,0,35,0,45,0,55,0,65,0,76,0,86,0,92,0,0,0,131,10,1,221,134,0,
+ 0,160,133,6,2,170,208,131,0,0,96,132,2,130,6,130,10,129,0,0,96,133,2,130,6,130,10,0,208,0,96,133,
+ 2,130,6,130,10,0,0,0,160,131,2,131,6,2,173,208,129,0,1,234,130,6,130,10,0,224,132,0,4,13,170,208,
+ 136,0,18,0,26,0,35,0,44,0,53,0,62,0,72,0,81,0,87,0,1,13,131,10,1,237,133,0,0,208,132,6,
+ 3,166,173,131,0,0,96,133,2,130,6,3,170,208,3,98,17,132,2,130,6,1,170,3,98,17,131,2,131,6,1,173,
+ 0,160,132,2,131,6,1,173,129,0,1,234,131,6,3,170,221,131,0,5,13,173,173,135,0,
+};
+static const jj_frame pic_missile_f[] = {{19,17,-9,-8,0},{19,15,-9,-7,208},{19,11,-9,-5,403},{19,16,-9,-8,569},{14,8,1,-3,774},{14,8,1,-3,866}};
+static const jj_sheet pic_missile = {pic_missile_pal, pic_missile_data, pic_missile_f, 6, 4};
+static const uint16_t pic_warn_pal[] = {0,65522,65522,65489,65457,65457,65392,65166,64973,64811,62570,56264,58086,55845,53603,39041};
+static const uint8_t pic_warn_data[] = {
+ 30,0,38,0,44,0,52,0,64,0,76,0,85,0,94,0,102,0,111,0,117,0,123,0,128,0,134,0,140,0,0,240,
+ 131,13,0,240,135,0,0,240,131,14,136,0,0,240,130,14,0,240,136,0,0,240,130,14,0,240,132,0,0,240,130,0,
+ 0,0,130,14,0,240,132,0,1,237,129,0,4,255,238,240,132,0,3,236,208,4,15,238,240,132,0,3,236,205,3,15,
+ 238,133,0,3,236,205,0,0,130,15,133,0,3,236,208,137,0,1,237,129,0,137,0,0,240,130,0,3,15,222,137,0,
+ 4,15,238,240,136,0,0,0,130,15,137,0,30,0,38,0,44,0,50,0,60,0,70,0,79,0,88,0,96,0,104,0,
+ 110,0,116,0,121,0,127,0,132,0,1,200,130,9,0,240,135,0,4,234,169,176,136,0,4,234,169,192,136,0,4,234,
+ 169,192,132,0,0,240,130,0,4,10,169,208,132,0,1,237,129,0,4,252,154,224,132,0,3,236,208,4,12,154,224,132,
+ 0,3,236,205,3,13,154,133,0,3,236,205,3,14,205,133,0,3,236,208,137,0,1,237,129,0,137,0,0,240,130,0,
+ 3,12,137,137,0,4,12,154,240,136,0,3,13,205,137,0,42,0,48,0,55,0,65,0,79,0,93,0,106,0,119,0,
+ 132,0,145,0,157,0,171,0,185,0,201,0,217,0,230,0,242,0,254,0,7,1,14,1,20,1,136,0,1,104,136,0,
+ 135,0,3,97,23,135,0,131,0,1,152,135,7,0,128,132,0,129,0,5,145,65,125,130,11,5,203,20,23,130,0,130,
+ 0,4,36,55,192,130,9,5,171,38,24,130,0,129,0,14,147,84,110,170,157,177,99,96,130,0,129,0,15,114,100,109,
+ 170,157,161,100,41,129,0,129,0,15,84,85,43,186,157,130,85,39,129,0,13,6,37,86,43,201,173,114,130,5,2,40,
+ 0,13,98,101,86,27,217,174,100,131,5,1,24,1,130,131,5,6,40,217,172,64,131,5,2,38,0,2,8,32,130,5,
+ 11,39,234,220,38,85,70,129,0,129,0,5,114,85,70,130,11,1,146,130,5,1,41,129,0,129,0,1,130,130,5,4,
+ 70,119,96,130,5,1,70,130,0,129,0,14,148,70,39,203,203,38,98,112,130,0,130,0,13,18,66,124,138,178,82,23,
+ 130,0,130,0,13,120,113,125,172,177,104,120,130,0,133,0,6,153,171,185,128,134,0,135,0,2,113,96,136,0,136,0,
+ 0,128,137,0,42,0,48,0,55,0,65,0,79,0,93,0,106,0,119,0,132,0,145,0,157,0,171,0,185,0,201,0,
+ 217,0,230,0,242,0,254,0,7,1,14,1,20,1,136,0,1,104,136,0,135,0,3,97,23,135,0,131,0,1,152,135,
+ 7,0,128,132,0,129,0,5,145,65,125,130,11,5,203,20,23,130,0,130,0,4,36,55,192,130,9,5,171,38,24,130,
+ 0,129,0,14,147,84,110,170,157,177,99,96,130,0,129,0,15,114,100,109,170,157,161,100,41,129,0,129,0,15,84,85,
+ 43,186,157,130,85,39,129,0,13,6,37,86,43,201,173,114,130,5,2,40,0,13,98,101,86,27,217,174,100,131,5,1,
+ 24,1,130,131,5,6,40,217,172,64,131,5,2,38,0,2,8,32,130,5,11,39,234,220,38,85,70,129,0,129,0,5,
+ 114,85,70,130,11,1,146,130,5,1,41,129,0,129,0,1,130,130,5,4,70,119,96,130,5,1,70,130,0,129,0,14,
+ 148,70,39,203,203,38,98,112,130,0,130,0,13,18,66,124,138,178,82,23,130,0,130,0,13,120,113,125,172,177,104,120,
+ 130,0,133,0,6,153,171,185,128,134,0,135,0,2,113,96,136,0,136,0,0,128,137,0,
+};
+static const jj_frame pic_warn_f[] = {{14,14,-3,-7,0},{14,14,-3,-7,140},{20,20,-10,-10,272},{20,20,-10,-10,548}};
+static const jj_sheet pic_warn = {pic_warn_pal, pic_warn_data, pic_warn_f, 4, 4};
+static const uint16_t pic_emitter_pal[] = {0,63288,56852,60719,42324,62508,40048,31792,29647,58121,37708,25422,23244,21099,45348,14761};
+static const uint8_t pic_emitter_data[] = {
+ 44,0,46,0,48,0,50,0,52,0,63,0,76,0,89,0,102,0,115,0,129,0,142,0,156,0,170,0,185,0,200,0,
+ 213,0,222,0,224,0,226,0,228,0,230,0,148,0,148,0,148,0,148,0,132,0,0,240,133,13,2,103,192,133,0,130,
+ 0,3,253,184,131,7,4,177,23,224,132,0,129,0,3,252,118,132,4,5,129,20,158,131,0,129,0,1,215,134,4,6,
+ 129,20,85,224,130,0,129,0,15,182,104,139,139,120,65,73,46,130,0,11,15,183,207,223,223,136,130,4,2,233,144,130,
+ 0,14,15,184,223,223,223,187,100,96,130,14,130,0,4,15,187,208,132,15,4,204,118,112,130,14,130,0,129,0,2,203,
+ 192,133,13,6,200,103,233,224,130,0,129,0,4,248,140,192,130,13,7,204,116,121,158,130,0,129,0,4,253,135,128,130,
+ 11,6,140,66,121,224,131,0,130,0,3,255,184,131,7,4,194,40,224,132,0,132,0,134,15,2,187,208,133,0,148,0,
+ 148,0,148,0,148,0,44,0,46,0,48,0,50,0,52,0,63,0,76,0,89,0,102,0,115,0,129,0,142,0,156,0,
+ 170,0,185,0,200,0,213,0,222,0,224,0,226,0,228,0,230,0,148,0,148,0,148,0,148,0,132,0,0,240,133,13,
+ 2,103,192,133,0,130,0,3,253,184,131,7,4,177,23,224,132,0,129,0,3,252,118,132,4,5,129,20,158,131,0,129,
+ 0,1,215,134,4,6,129,20,85,224,130,0,129,0,15,182,104,139,139,120,65,73,46,130,0,11,15,183,207,223,223,136,
+ 130,4,2,233,144,130,0,14,15,184,223,223,223,187,100,96,130,14,130,0,4,15,187,208,132,15,4,204,118,112,130,14,
+ 130,0,129,0,2,203,192,133,13,6,200,103,233,224,130,0,129,0,4,248,140,192,130,13,7,204,116,121,158,130,0,129,
+ 0,4,253,135,128,130,11,6,140,66,121,224,131,0,130,0,3,255,184,131,7,4,194,40,224,132,0,132,0,134,15,2,
+ 187,208,133,0,148,0,148,0,148,0,148,0,44,0,46,0,48,0,50,0,52,0,63,0,76,0,92,0,105,0,120,0,
+ 133,0,147,0,161,0,176,0,191,0,207,0,221,0,231,0,233,0,235,0,237,0,239,0,148,0,148,0,148,0,148,0,
+ 132,0,0,240,133,13,3,106,153,132,0,130,0,3,253,184,131,7,5,177,37,153,131,0,129,0,2,252,112,130,6,130,
+ 4,6,129,19,85,144,130,0,129,0,15,215,101,89,89,104,18,53,53,130,0,129,0,1,182,133,9,3,170,66,130,3,
+ 1,89,129,0,3,15,138,133,5,8,154,68,17,35,144,129,0,13,15,186,83,83,83,154,100,130,1,1,57,129,0,4,
+ 15,186,144,132,5,8,154,118,33,35,144,129,0,129,0,1,202,133,9,3,172,134,130,3,1,89,129,0,129,0,1,248,
+ 134,10,3,199,99,130,5,0,224,129,0,129,0,3,253,135,131,10,3,140,68,130,5,0,144,130,0,130,0,3,255,184,
+ 131,7,6,194,37,153,224,130,0,132,0,134,15,4,186,153,224,131,0,148,0,148,0,148,0,148,0,44,0,46,0,48,
+ 0,50,0,52,0,64,0,78,0,93,0,108,0,123,0,137,0,151,0,166,0,182,0,195,0,212,0,226,0,236,0,238,
+ 0,240,0,242,0,244,0,148,0,148,0,148,0,148,0,132,0,0,240,133,13,1,102,130,9,131,0,130,0,3,253,184,
+ 131,7,6,177,35,85,144,130,0,129,0,5,252,118,99,130,4,6,129,18,51,80,130,0,129,0,2,215,96,132,5,1,
+ 71,132,1,1,57,129,0,129,0,1,182,134,5,2,164,32,130,1,1,41,129,0,3,15,138,133,3,3,154,68,131,1,
+ 0,80,129,0,3,15,138,133,3,3,154,100,131,1,0,80,129,0,4,15,186,80,132,3,3,154,116,131,1,0,80,129,
+ 0,129,0,2,202,144,132,5,3,171,134,130,1,1,41,129,0,129,0,1,248,134,10,7,199,66,18,57,129,0,129,0,
+ 3,253,135,130,10,4,136,180,32,130,3,0,80,130,0,130,0,3,255,184,131,7,6,194,35,53,144,130,0,132,0,134,
+ 15,1,186,130,9,131,0,148,0,148,0,148,0,148,0,
+};
+static const jj_frame pic_emitter_f[] = {{21,21,-10,-10,0},{21,21,-10,-10,230},{21,21,-10,-10,460},{21,21,-10,-10,699}};
+static const jj_sheet pic_emitter = {pic_emitter_pal, pic_emitter_data, pic_emitter_f, 4, 4};
+static const uint16_t pic_boom_pal[] = {0,65535,65531,65523,65519,65514,65513,65510,65446,65348,65187,65057,64897,64800,64736,64640};
+static const uint8_t pic_boom_data[] = {
+ 66,0,76,0,88,0,102,0,119,0,134,0,155,0,177,0,200,0,219,0,237,0,0,1,18,1,33,1,48,1,64,1,
+ 83,1,103,1,126,1,149,1,166,1,184,1,200,1,217,1,233,1,250,1,13,2,24,2,37,2,48,2,58,2,64,2,
+ 70,2,139,0,0,240,137,0,0,240,135,0,139,0,1,188,134,0,4,253,187,240,133,0,138,0,3,250,157,130,0,6,
+ 235,202,135,176,134,0,132,0,2,238,240,130,0,13,217,90,223,218,151,68,108,134,0,132,0,19,235,188,222,198,52,155,
+ 149,117,68,108,134,0,132,0,3,251,136,130,9,12,67,35,67,53,68,86,208,131,12,0,208,129,0,133,0,0,192,131,
+ 8,3,115,33,130,2,6,52,70,155,192,130,8,1,174,129,0,133,0,1,217,130,8,3,149,33,132,2,0,64,130,9,
+ 0,112,130,8,1,191,129,0,133,0,1,234,130,8,5,154,49,50,130,1,11,35,87,136,101,156,222,133,0,7,253,167,
+ 118,101,130,2,131,1,10,38,174,166,104,139,224,132,0,3,235,151,130,4,130,2,133,1,3,36,138,131,8,2,174,0,
+ 132,0,6,250,100,33,32,137,1,2,35,96,130,7,1,157,129,0,130,0,6,254,251,115,32,140,1,5,71,155,206,130,
+ 0,129,0,8,252,153,135,68,32,139,1,3,71,190,132,0,5,15,201,118,131,4,2,33,32,137,1,3,55,207,132,0,
+ 2,236,144,130,8,5,117,67,34,136,1,130,2,4,90,238,240,130,0,14,237,186,152,119,84,50,51,32,131,1,130,2,
+ 7,52,87,153,207,129,0,129,0,8,254,218,116,67,32,130,3,0,32,131,1,130,3,7,90,168,120,157,129,0,131,0,
+ 4,251,116,64,130,3,3,35,33,130,2,6,51,87,223,192,130,8,2,174,0,131,0,27,250,67,50,52,84,50,51,101,
+ 71,122,255,187,205,224,131,0,2,249,64,130,3,14,70,83,69,86,149,69,122,224,134,0,131,0,20,215,100,85,70,68,
+ 103,103,182,68,105,224,134,0,131,0,6,218,150,117,80,131,7,9,135,124,132,70,157,134,0,131,0,20,238,186,169,151,
+ 153,138,151,154,168,121,208,134,0,132,0,10,252,238,167,137,185,144,130,8,5,174,219,204,134,0,135,0,1,249,130,8,
+ 2,201,96,130,8,1,175,129,0,1,254,134,0,135,0,11,251,136,154,118,120,140,139,0,136,0,4,200,156,160,130,8,
+ 2,170,208,139,0,136,0,10,218,207,233,140,236,224,139,0,136,0,9,237,240,251,174,14,140,0,141,0,1,236,143,0,
+ 142,0,0,240,143,0,60,0,66,0,78,0,92,0,107,0,125,0,145,0,163,0,181,0,197,0,216,0,233,0,248,0,
+ 8,1,22,1,38,1,54,1,73,1,91,1,111,1,128,1,143,1,158,1,173,1,185,1,196,1,207,1,217,1,228,1,
+ 234,1,147,0,1,255,134,0,138,0,0,224,133,0,4,253,187,240,133,0,137,0,2,218,224,130,0,6,253,185,122,240,
+ 133,0,132,0,0,240,131,0,11,199,174,15,184,84,107,134,0,131,0,12,251,222,239,163,74,235,128,130,4,1,107,131,
+ 15,130,0,132,0,10,202,154,166,34,56,96,131,4,2,89,160,130,11,0,208,129,0,132,0,16,217,136,115,33,18,35,
+ 52,86,80,130,8,1,207,129,0,132,0,6,234,136,99,32,132,1,2,54,112,130,6,5,87,190,224,132,0,6,250,102,
+ 117,32,133,1,10,54,117,68,121,187,240,130,0,8,252,185,100,87,48,133,1,2,38,112,130,5,4,104,190,0,131,0,
+ 7,217,134,67,50,133,1,8,36,69,102,139,224,129,0,130,0,5,251,151,83,137,1,6,35,121,154,224,130,0,129,0,
+ 7,235,134,67,50,136,1,2,37,160,130,14,131,0,9,14,184,118,67,50,136,1,5,37,156,239,131,0,9,235,168,134,
+ 83,50,136,1,1,36,130,7,1,175,130,0,9,14,219,168,84,66,134,1,9,35,70,103,136,207,129,0,130,0,6,252,
+ 116,50,16,131,2,6,51,35,69,144,131,8,3,156,240,131,0,2,198,48,130,2,18,52,52,71,51,70,171,152,154,190,
+ 0,130,0,3,250,100,130,3,5,68,87,71,130,4,7,107,253,222,239,129,0,130,0,3,233,117,131,4,4,86,101,80,
+ 130,4,1,91,135,0,130,0,7,218,119,102,86,131,7,5,84,86,122,135,0,130,0,18,221,186,151,120,119,88,134,121,
+ 155,240,134,0,131,0,3,254,251,130,8,9,118,69,136,189,205,135,0,134,0,13,217,134,86,101,105,208,255,135,0,134,
+ 0,10,234,136,120,135,123,224,138,0,134,0,10,251,172,184,138,188,240,138,0,134,0,9,251,223,250,157,254,139,0,135,
+ 0,0,224,130,0,2,220,240,141,0,139,0,1,237,142,0,74,0,80,0,91,0,106,0,121,0,135,0,154,0,173,0,
+ 193,0,212,0,232,0,253,0,20,1,45,1,69,1,90,1,110,1,128,1,147,1,165,1,184,1,206,1,229,1,248,1,
+ 15,2,35,2,56,2,74,2,93,2,110,2,127,2,143,2,155,2,167,2,180,2,193,2,203,2,149,0,1,253,139,0,
+ 140,0,1,254,133,0,2,252,192,139,0,140,0,2,235,224,131,0,8,234,139,240,253,224,134,0,140,0,3,200,174,129,
+ 0,9,233,120,173,185,174,134,0,139,0,16,250,119,175,12,85,137,148,90,240,134,0,133,0,3,205,239,129,0,16,250,
+ 85,191,217,84,122,133,139,240,134,0,133,0,4,201,154,240,129,0,14,196,58,251,132,55,185,173,240,135,0,133,0,19,
+ 232,104,223,14,99,76,199,67,88,158,131,0,3,236,206,129,0,133,0,27,249,100,138,191,196,72,167,68,88,173,222,255,
+ 168,191,129,0,134,0,10,234,86,119,173,147,64,131,7,10,101,86,122,254,170,224,130,0,134,0,20,252,134,132,54,98,
+ 52,121,66,33,39,176,129,0,130,15,2,222,240,132,0,7,237,202,117,100,132,2,3,54,66,130,1,2,57,224,130,0,
+ 4,251,138,192,131,0,5,251,150,117,130,3,4,18,17,32,130,3,0,32,130,1,10,57,222,240,218,155,240,129,0,6,
+ 237,185,116,64,130,3,0,32,131,1,131,2,131,1,10,35,137,173,255,239,0,129,0,1,203,130,8,0,112,130,3,130,
+ 2,139,1,6,35,87,155,208,130,0,130,0,4,219,136,96,130,4,0,48,130,2,139,1,5,36,103,206,130,0,130,0,
+ 3,254,167,130,5,3,67,34,139,1,5,35,54,175,131,0,8,15,203,235,118,96,130,3,0,32,140,1,6,35,86,173,
+ 240,130,0,11,252,152,155,218,100,51,137,1,10,53,49,18,71,155,192,130,0,13,219,152,191,250,118,51,18,134,1,11,
+ 37,188,66,35,106,239,130,0,7,15,220,240,199,130,6,5,83,50,50,131,1,11,37,173,180,52,122,223,130,0,132,0,
+ 7,250,101,87,118,130,4,1,34,130,1,12,36,104,218,138,187,153,208,129,0,132,0,30,184,83,56,135,84,83,67,35,
+ 52,102,157,255,15,186,191,0,132,0,9,201,100,88,137,119,130,6,2,50,64,131,7,1,140,131,0,1,255,130,0,132,
+ 0,5,198,67,120,130,9,130,7,5,100,51,103,130,8,1,191,135,0,131,0,4,250,100,96,130,7,9,103,136,87,100,
+ 85,130,7,2,105,224,135,0,131,0,24,251,168,118,120,103,133,71,117,103,152,118,122,224,134,0,132,0,19,255,168,121,
+ 138,166,68,122,135,156,185,130,8,0,208,134,0,133,0,22,235,188,188,253,132,120,203,138,223,217,136,192,134,0,133,0,
+ 22,254,15,239,15,167,139,254,171,224,253,186,176,134,0,138,0,11,253,253,171,240,233,175,130,0,3,254,207,133,0,137,
+ 0,12,251,174,13,223,13,137,240,140,0,137,0,12,216,141,15,237,253,154,240,140,0,137,0,3,233,174,129,0,5,186,
+ 239,204,141,0,137,0,2,235,240,130,0,5,202,240,255,141,0,138,0,0,240,131,0,1,238,145,0,84,0,90,0,97,
+ 0,104,0,110,0,120,0,134,0,149,0,169,0,188,0,207,0,222,0,237,0,252,0,15,1,38,1,61,1,86,1,111,
+ 1,135,1,159,1,182,1,203,1,228,1,251,1,15,2,38,2,63,2,83,2,104,2,122,2,140,2,161,2,182,2,199,
+ 2,210,2,225,2,242,2,255,2,6,3,13,3,19,3,154,0,0,240,140,0,153,0,2,251,224,139,0,153,0,2,235,
+ 240,139,0,154,0,0,240,140,0,143,0,1,238,133,0,1,238,142,0,143,0,1,239,133,0,1,188,132,0,1,255,135,
+ 0,132,0,2,238,240,136,0,1,253,132,0,1,190,142,0,132,0,3,218,174,129,0,1,238,131,0,2,235,224,131,0,
+ 0,240,143,0,132,0,9,233,138,240,234,206,129,0,3,186,190,134,0,1,221,138,0,132,0,17,253,186,240,233,121,239,
+ 184,156,237,131,0,3,251,175,137,0,138,0,19,248,88,238,168,137,154,240,236,169,191,137,0,139,0,19,180,94,216,120,
+ 85,141,12,135,122,188,136,0,139,0,19,234,108,216,100,70,157,11,100,67,75,136,0,137,0,130,13,9,233,105,148,53,
+ 140,129,0,6,164,51,41,224,136,0,132,0,5,254,222,236,130,9,0,128,130,6,14,67,90,240,217,84,53,173,240,135,
+ 0,132,0,7,234,154,168,103,130,6,20,116,69,140,14,166,67,35,106,224,237,240,131,0,14,254,223,15,185,220,150,87,
+ 80,130,4,20,54,158,12,133,50,51,87,223,168,171,208,129,0,16,218,155,219,153,223,254,167,100,48,130,6,18,175,250,
+ 134,51,85,139,217,68,89,208,129,0,4,252,188,176,131,8,15,191,251,151,67,69,89,252,134,132,4,10,158,250,84,72,
+ 206,0,131,0,18,251,136,172,255,200,84,67,52,89,96,131,3,130,4,10,121,223,164,71,191,0,132,0,9,252,223,240,
+ 252,116,132,3,18,18,50,51,34,71,135,175,216,90,224,129,0,134,0,7,252,219,168,68,130,3,0,64,137,3,9,103,
+ 85,191,237,255,129,0,135,0,4,233,117,48,130,2,1,51,130,4,5,116,51,69,130,4,130,3,7,90,239,235,191,2,
+ 15,240,132,0,32,233,119,67,18,50,52,73,84,87,184,68,83,55,191,13,170,192,134,0,33,252,151,83,50,50,35,102,
+ 119,88,158,217,135,85,139,223,14,224,131,0,27,252,205,236,183,84,116,67,86,119,85,136,191,252,136,131,9,1,191,130,
+ 0,130,0,1,252,130,8,6,223,218,156,176,131,5,13,103,84,87,88,192,251,189,131,14,131,0,130,0,6,217,136,175,
+ 0,130,14,14,218,118,101,101,86,84,54,160,140,0,129,0,5,253,203,190,129,0,18,251,166,103,101,101,69,118,85,122,
+ 240,139,0,133,0,1,255,129,0,17,217,133,101,68,117,84,101,87,139,140,0,133,0,7,235,205,216,134,130,4,10,87,
+ 86,84,67,71,176,140,0,134,0,20,201,236,154,165,71,121,185,118,86,103,176,129,0,2,253,240,135,0,134,0,20,238,
+ 252,223,217,171,172,250,119,104,137,192,129,0,2,250,192,135,0,139,0,15,253,207,236,253,151,169,136,191,130,0,1,237,
+ 135,0,143,0,10,255,12,137,220,168,176,141,0,143,0,10,236,254,171,255,219,192,132,0,1,222,134,0,143,0,5,202,
+ 207,221,129,0,2,235,208,132,0,1,238,134,0,143,0,130,14,0,240,131,0,2,217,192,141,0,151,0,2,200,176,141,
+ 0,151,0,2,251,192,141,0,152,0,1,254,141,0,80,0,86,0,93,0,100,0,106,0,112,0,122,0,129,0,137,0,
+ 144,0,155,0,170,0,187,0,200,0,212,0,225,0,243,0,10,1,30,1,43,1,57,1,76,1,95,1,110,1,128,1,
+ 148,1,159,1,169,1,178,1,184,1,186,1,192,1,198,1,216,1,230,1,241,1,248,1,0,2,8,2,14,2,143,0,
+ 1,207,149,0,142,0,2,250,176,149,0,142,0,2,251,176,149,0,143,0,1,254,149,0,137,0,0,240,156,0,137,0,
+ 0,240,145,0,1,239,136,0,155,0,2,251,240,136,0,156,0,4,255,203,240,133,0,157,0,2,217,192,134,0,143,0,
+ 1,252,139,0,2,221,240,134,0,134,0,2,236,240,134,0,1,207,137,0,130,15,135,0,134,0,2,252,208,132,0,0,
+ 240,139,0,4,234,171,240,134,0,138,0,3,220,239,140,0,4,201,138,224,134,0,137,0,5,235,120,190,139,0,131,14,
+ 135,0,133,0,10,253,223,250,101,107,240,149,0,0,224,1,238,129,0,12,252,185,156,253,152,137,208,140,0,0,240,136,
+ 0,1,239,129,0,2,253,144,130,8,2,191,176,130,8,1,191,137,0,3,251,191,135,0,133,0,6,234,171,223,224,131,
+ 13,0,240,136,0,6,255,221,188,240,133,0,134,0,1,238,143,0,7,251,157,15,205,134,0,136,0,3,254,239,137,0,
+ 6,236,150,90,208,137,0,135,0,5,234,153,175,136,0,7,233,102,138,207,130,0,1,254,131,0,135,0,4,253,187,208,
+ 138,0,3,219,205,130,15,130,0,1,254,131,0,137,0,2,239,240,129,0,1,238,140,0,0,240,136,0,133,0,11,251,
+ 208,224,255,202,207,133,0,1,238,138,0,2,239,0,133,0,2,253,240,131,0,4,249,105,192,133,0,1,237,137,0,3,
+ 218,175,140,0,5,217,135,175,144,0,3,252,190,0,240,139,0,5,204,184,175,148,0,0,240,141,0,3,218,239,148,0,
+ 142,0,1,238,150,0,167,0,153,0,0,240,140,0,134,0,1,254,158,0,134,0,1,238,129,0,1,255,129,0,1,205,
+ 132,0,0,240,144,0,138,0,1,188,129,0,1,222,132,0,1,205,143,0,138,0,1,206,135,0,3,250,158,142,0,148,
+ 0,3,250,157,142,0,149,0,4,235,254,224,140,0,150,0,4,239,201,208,139,0,153,0,1,155,139,0,80,0,86,0,
+ 88,0,90,0,92,0,94,0,96,0,98,0,104,0,106,0,108,0,110,0,116,0,122,0,129,0,141,0,152,0,158,0,
+ 164,0,166,0,173,0,186,0,196,0,198,0,200,0,206,0,215,0,222,0,228,0,234,0,236,0,238,0,240,0,242,0,
+ 244,0,246,0,248,0,254,0,4,1,10,1,140,0,0,240,150,0,164,0,164,0,164,0,164,0,164,0,164,0,156,0,
+ 1,223,133,0,164,0,164,0,164,0,154,0,1,238,135,0,135,0,1,254,154,0,134,0,3,219,174,153,0,129,0,1,
+ 255,130,0,4,233,139,240,152,0,4,252,171,240,130,0,3,203,190,152,0,4,13,171,224,159,0,129,0,1,255,160,0,
+ 164,0,151,0,2,236,208,137,0,133,0,1,255,141,0,130,14,2,188,240,136,0,134,0,1,255,140,0,1,254,140,0,
+ 164,0,164,0,138,0,0,240,152,0,137,0,2,251,240,150,0,0,240,138,0,2,255,208,150,0,139,0,1,219,150,0,
+ 139,0,1,255,150,0,164,0,164,0,164,0,164,0,164,0,164,0,164,0,147,0,0,224,143,0,147,0,1,190,142,0,
+ 147,0,0,240,143,0,
+};
+static const jj_frame pic_boom_f[] = {{32,32,-15,-13,0},{29,29,-13,-12,582},{36,36,-17,-16,1072},{41,41,-20,-20,1787},{40,39,-19,-18,2574},{37,39,-16,-18,3100}};
+static const jj_sheet pic_boom = {pic_boom_pal, pic_boom_data, pic_boom_f, 6, 4};
+static const uint16_t pic_mech_pal[] = {0,63287,52855,50515,56432,44174,33873,52044,47786,37675,27534,23408,21196,43560,35304,23048,31046,20741,16938,12810,10632,10502,4326,6244};
+static const uint8_t pic_mech_data[] = {
+ 84,0,96,0,121,0,148,0,173,0,201,0,230,0,3,1,32,1,57,1,83,1,110,1,142,1,174,1,206,1,237,1,
+ 15,2,50,2,85,2,117,2,147,2,180,2,215,2,251,2,32,3,73,3,115,3,162,3,210,3,1,4,38,4,78,4,
+ 123,4,167,4,213,4,2,5,35,5,64,5,96,5,126,5,153,5,166,5,150,0,132,23,130,0,2,12,10,10,141,0,
+ 147,0,5,23,23,21,17,17,21,131,22,0,20,130,6,0,12,130,0,2,16,0,9,134,0,144,0,1,23,23,133,17,
+ 16,21,18,15,20,19,6,2,3,15,17,16,14,9,9,14,9,17,133,0,143,0,0,23,131,17,0,14,132,13,9,8,
+ 14,17,12,20,16,14,14,16,16,132,17,133,0,143,0,3,23,17,16,13,131,8,130,4,6,8,8,13,17,15,14,16,
+ 130,17,131,23,1,16,16,132,0,143,0,6,16,13,8,8,13,8,7,132,4,4,13,7,16,17,16,131,17,5,2,1,
+ 9,17,17,15,132,0,142,0,4,14,8,7,8,7,135,4,15,7,8,16,17,17,16,17,17,9,3,9,1,4,0,6,
+ 11,131,0,141,0,0,17,132,7,0,4,132,5,130,4,1,8,16,132,17,4,9,4,14,16,9,129,0,0,6,131,0,
+ 142,0,138,21,4,17,14,9,4,16,132,17,4,4,9,9,17,14,129,0,1,6,11,130,0,143,0,137,20,18,22,18,
+ 15,15,13,17,17,5,9,16,1,3,1,20,9,4,0,6,11,130,0,143,0,137,20,9,22,18,10,18,15,23,9,4,
+ 7,7,130,1,2,5,4,7,129,0,0,6,130,0,144,0,5,17,16,13,8,8,14,131,16,13,15,18,18,12,17,17,
+ 1,1,9,5,1,3,3,9,130,0,0,6,130,0,144,0,5,17,13,7,4,4,8,132,14,8,5,3,3,12,23,16,
+ 3,9,9,130,5,1,14,2,130,0,0,11,129,0,144,0,4,17,13,7,4,4,130,13,130,14,6,20,18,20,19,6,
+ 17,16,131,9,2,14,3,1,130,0,0,11,129,0,144,0,6,17,13,7,4,4,7,13,130,15,0,12,131,11,3,6,
+ 11,14,4,132,0,0,1,130,0,2,6,11,0,144,0,6,17,13,8,4,4,8,21,131,18,9,20,22,19,11,11,6,
+ 16,8,7,16,130,0,1,1,1,129,0,2,6,11,0,143,0,7,18,18,17,8,7,4,21,12,131,18,15,15,17,17,
+ 15,12,12,6,14,8,4,8,14,0,1,3,17,129,0,1,6,0,143,0,31,20,18,16,13,8,7,12,6,17,16,16,
+ 14,14,13,13,14,14,16,14,14,16,8,7,16,14,9,9,16,17,17,6,0,143,0,10,12,10,15,17,13,14,21,14,
+ 4,8,13,133,8,14,13,13,14,16,18,20,18,18,17,7,4,7,7,13,16,142,0,7,18,6,10,6,9,17,17,8,
+ 132,4,133,8,13,13,16,12,10,10,12,18,18,15,13,8,8,13,16,142,0,8,20,12,3,3,6,21,13,8,7,133,
+ 4,13,7,8,8,14,17,15,10,6,6,10,18,19,19,18,130,15,0,21,141,0,7,22,20,12,10,1,2,15,14,130,
+ 8,1,7,7,132,4,2,14,15,6,130,3,9,6,10,20,20,3,12,19,19,20,22,141,0,9,22,20,12,18,10,3,
+ 6,18,13,13,131,8,5,7,4,7,4,13,6,130,2,10,3,6,18,19,19,1,2,1,2,21,20,136,0,131,14,12,
+ 21,22,18,20,20,21,18,18,16,8,13,14,13,133,8,15,14,21,20,21,6,3,12,12,6,19,1,6,10,6,20,20,
+ 134,0,131,14,3,16,16,17,20,131,18,28,21,17,16,13,13,8,13,16,13,13,8,8,14,12,21,20,20,6,10,22,
+ 19,11,19,3,6,12,6,20,20,133,0,130,14,0,16,131,17,0,21,131,20,28,17,16,17,16,16,13,8,8,14,16,
+ 14,16,12,2,6,20,20,18,18,20,23,22,11,19,10,6,6,20,20,130,18,130,0,11,13,14,16,17,16,16,13,13,
+ 14,10,10,15,130,17,15,21,17,17,16,14,13,13,8,16,15,3,3,1,10,22,20,130,18,7,22,22,19,19,11,20,
+ 20,0,130,18,10,0,18,18,14,16,17,16,14,13,8,8,130,7,26,4,4,13,16,21,21,15,17,16,17,16,14,16,
+ 15,3,1,6,20,18,22,20,20,18,18,22,22,19,130,22,0,0,1,18,12,131,18,130,16,8,14,13,8,10,11,11,
+ 12,19,15,130,13,1,14,15,130,18,10,12,15,15,17,21,12,6,20,18,20,23,130,0,5,22,21,22,23,22,22,129,
+ 0,2,18,10,10,130,18,6,15,14,14,13,8,10,11,131,6,1,11,19,133,18,12,12,10,6,10,15,21,21,20,18,
+ 20,23,20,18,137,0,12,18,10,10,18,18,10,12,16,14,8,10,11,6,132,3,20,11,19,18,15,19,18,10,10,6,
+ 3,6,3,6,6,12,22,16,23,20,12,22,136,0,12,18,10,10,18,10,10,6,10,13,8,11,11,6,131,3,20,6,
+ 11,11,20,8,13,9,18,12,6,10,10,6,3,6,21,23,21,22,18,18,130,20,1,22,22,132,0,9,0,10,10,12,
+ 10,6,1,5,14,9,130,11,2,12,19,12,131,11,9,20,14,8,8,16,17,23,23,22,21,132,23,8,21,20,20,21,
+ 10,6,10,18,22,131,0,9,0,18,10,12,12,2,1,6,17,9,130,11,130,20,0,12,130,11,23,20,14,8,14,15,
+ 15,18,20,22,21,20,18,20,0,23,20,18,12,12,10,18,12,18,22,131,0,29,0,18,10,6,18,6,3,3,15,16,
+ 12,11,11,12,2,18,19,11,11,12,20,14,13,10,2,2,10,10,12,22,130,12,6,20,0,12,12,18,20,21,130,23,
+ 132,0,129,0,27,18,2,1,6,10,3,12,17,17,12,11,10,1,12,19,11,12,20,19,14,16,10,3,1,2,10,10,
+ 12,145,0,130,0,19,12,2,1,1,6,18,22,17,21,22,12,3,22,19,12,19,19,20,16,14,133,6,0,10,145,0,
+ 131,0,7,18,12,3,2,10,22,10,6,130,10,132,22,9,20,15,12,10,6,6,3,1,1,2,130,3,130,10,139,0,
+ 134,0,2,18,20,6,132,1,9,2,2,3,10,12,12,10,3,2,2,133,1,5,3,3,6,10,10,6,138,0,137,0,
+ 5,12,12,10,6,2,2,131,1,1,2,2,130,6,1,10,6,134,12,2,18,18,12,138,0,141,0,131,18,131,12,1,
+ 18,12,130,18,148,0,86,0,101,0,120,0,140,0,168,0,199,0,229,0,9,1,46,1,84,1,124,1,164,1,203,1,
+ 245,1,30,2,73,2,120,2,170,2,224,2,17,3,67,3,118,3,171,3,222,3,17,4,65,4,115,4,163,4,205,4,
+ 247,4,36,5,79,5,114,5,145,5,173,5,201,5,225,5,248,5,9,6,17,6,25,6,33,6,39,6,149,0,132,23,
+ 1,21,23,131,0,2,6,6,18,148,0,148,0,6,23,17,16,17,16,17,21,132,22,3,11,1,2,18,147,0,149,0,
+ 4,23,16,16,17,20,133,11,2,12,15,14,130,16,0,17,144,0,147,0,7,23,23,21,23,17,21,11,12,132,15,2,
+ 12,15,7,130,4,5,7,7,13,14,16,17,139,0,146,0,3,23,17,16,16,130,23,2,17,16,14,131,13,12,16,16,
+ 4,15,17,17,14,5,4,7,7,13,16,138,0,145,0,8,21,16,16,14,14,17,23,17,14,134,8,2,16,4,14,130,
+ 0,6,2,2,21,17,16,17,17,137,0,142,0,5,22,0,23,16,14,14,131,16,0,14,130,8,7,7,4,4,7,8,
+ 13,14,14,130,0,1,1,1,130,0,1,12,17,137,0,141,0,13,22,18,23,17,14,16,16,17,17,16,14,14,13,7,
+ 133,4,3,7,16,8,16,129,0,2,6,1,9,129,0,1,6,11,137,0,141,0,4,21,18,21,16,16,130,17,7,16,
+ 14,14,13,7,4,4,7,131,17,0,15,130,17,5,16,14,14,9,9,14,129,0,0,6,137,0,140,0,21,23,18,18,
+ 23,16,17,17,23,16,16,14,7,4,9,14,21,23,18,10,18,20,15,131,14,4,16,14,16,14,17,129,0,1,6,11,
+ 136,0,140,0,2,22,20,20,131,23,7,17,14,14,4,7,14,21,21,130,20,7,10,18,15,14,14,16,17,17,130,23,
+ 1,17,17,129,0,1,11,11,136,0,140,0,21,23,21,21,17,21,23,17,16,13,8,14,21,20,20,18,20,14,17,20,
+ 10,17,14,131,17,8,14,5,14,17,23,0,10,20,11,136,0,138,0,13,23,23,17,16,14,14,16,21,21,14,13,17,
+ 21,18,130,20,7,14,4,8,18,12,17,17,16,130,17,8,1,2,1,4,14,6,10,10,18,136,0,137,0,17,23,17,
+ 16,16,14,14,16,17,21,17,14,17,20,18,20,20,17,14,130,4,1,21,20,133,17,9,4,13,14,9,5,10,22,22,
+ 12,20,135,0,136,0,23,23,17,16,16,14,14,16,17,16,21,23,17,21,19,20,20,17,8,8,13,4,5,12,10,132,
+ 17,10,14,4,9,17,16,15,22,10,2,12,18,135,0,132,0,131,23,5,17,16,16,14,14,16,130,17,0,21,130,0,
+ 4,21,20,17,13,13,130,8,18,7,12,12,17,17,16,9,23,4,4,3,6,17,9,6,3,1,6,12,135,0,130,0,
+ 0,22,131,18,1,23,17,130,14,0,16,130,17,1,21,23,131,0,26,22,17,14,13,14,14,8,8,7,12,23,17,3,
+ 4,9,4,1,1,6,5,4,3,3,2,10,10,22,134,0,12,18,18,0,23,18,12,12,20,23,16,14,16,16,130,17,
+ 2,21,17,23,129,0,4,18,10,18,10,15,130,13,20,14,16,14,9,17,17,3,4,7,5,1,1,3,4,9,6,12,
+ 22,18,10,22,134,0,2,10,2,18,133,23,1,17,16,131,17,34,21,17,23,21,18,10,6,12,20,18,18,21,16,14,
+ 13,8,8,17,14,17,17,1,4,9,5,3,5,9,14,15,17,8,16,15,14,134,0,23,12,2,12,6,6,20,17,14,
+ 14,17,21,17,17,21,21,17,17,21,12,3,3,6,18,21,130,22,9,20,15,17,16,17,17,10,15,17,17,133,9,6,
+ 14,17,15,9,17,14,14,134,0,6,12,6,6,2,3,15,13,130,4,1,7,14,131,17,20,23,21,3,2,3,1,3,
+ 20,20,21,18,20,6,12,18,12,10,1,6,15,13,130,8,130,13,6,17,12,12,20,18,12,21,134,0,0,18,130,6,
+ 8,12,7,4,9,15,15,14,4,7,130,17,22,10,18,6,10,18,6,3,22,12,6,3,10,18,6,18,6,1,6,18,
+ 21,16,16,14,130,13,7,14,21,6,3,18,10,18,20,134,0,32,0,6,6,18,14,7,21,20,12,11,19,22,7,7,
+ 20,6,10,20,10,6,10,6,10,20,20,12,20,20,21,20,18,20,12,131,20,1,17,21,131,17,6,20,20,6,6,18,
+ 22,20,134,0,6,0,10,12,21,14,20,19,131,3,10,11,22,13,14,21,18,18,20,12,10,12,130,22,0,23,129,0,
+ 4,23,22,23,22,22,132,18,11,20,22,22,20,12,11,20,18,20,18,20,20,134,0,5,0,12,18,21,22,19,133,3,
+ 7,19,15,8,21,19,20,21,23,135,0,7,23,22,23,23,22,20,21,20,131,18,9,20,22,22,12,11,22,20,6,20,
+ 20,131,0,2,23,12,20,6,10,1,3,22,19,11,11,131,6,5,11,11,20,13,14,22,138,0,1,23,22,130,23,0,
+ 22,130,0,1,20,20,130,18,8,20,22,12,12,19,20,21,20,23,129,0,3,22,18,12,20,8,6,2,3,12,20,19,
+ 18,19,12,131,11,2,19,13,14,139,0,17,23,20,12,12,18,22,22,21,22,23,17,22,21,20,18,20,22,19,130,20,
+ 7,21,23,12,20,22,18,21,0,8,10,3,6,6,10,3,2,10,20,131,11,2,19,13,14,139,0,10,22,12,18,20,
+ 12,20,21,20,22,21,17,136,22,8,23,17,23,18,12,20,18,22,0,8,0,3,10,6,1,3,6,20,20,131,11,2,
+ 20,13,16,139,0,10,23,18,22,22,20,20,23,22,23,21,17,136,22,6,23,17,23,18,20,18,20,129,0,8,0,3,
+ 6,10,10,12,20,12,19,130,11,3,20,17,14,17,139,0,1,23,21,130,20,131,23,1,21,17,132,22,10,23,23,22,
+ 22,23,17,23,21,20,18,22,129,0,7,0,6,3,6,21,22,19,6,130,11,3,19,21,14,16,141,0,3,23,22,22,
+ 23,131,0,1,21,17,131,22,4,23,18,18,23,22,131,23,1,18,20,130,0,5,0,10,3,3,18,21,132,22,2,21,
+ 14,16,150,0,2,23,17,21,130,22,6,23,18,10,21,23,22,18,129,0,0,20,131,0,5,0,12,3,6,15,14,132,
+ 16,2,13,16,21,151,0,2,21,17,23,130,22,6,23,23,22,18,12,18,23,133,0,129,0,130,18,0,21,132,16,0,
+ 17,152,0,3,22,23,21,17,131,23,5,18,12,18,22,23,23,133,0,130,0,6,12,10,12,10,12,12,21,153,0,12,
+ 23,21,18,22,23,21,23,21,12,18,22,23,23,135,0,130,0,130,6,1,3,10,154,0,4,23,20,21,20,20,130,23,
+ 3,20,22,23,23,137,0,130,0,3,6,3,10,18,155,0,5,22,10,10,12,10,18,129,0,1,23,23,139,0,130,0,
+ 2,6,3,12,156,0,1,22,20,131,12,0,21,142,0,130,0,2,6,3,12,178,0,130,0,2,6,3,12,178,0,130,
+ 0,2,10,6,18,178,0,131,0,0,18,179,0,80,0,92,0,113,0,141,0,168,0,196,0,224,0,1,1,33,1,57,
+ 1,89,1,123,1,157,1,192,1,225,1,4,2,39,2,75,2,111,2,147,2,183,2,219,2,255,2,37,3,77,3,125,
+ 3,172,3,213,3,1,4,44,4,83,4,122,4,164,4,208,4,255,4,44,5,89,5,130,5,152,5,162,5,150,0,133,
+ 23,129,0,2,12,10,10,141,0,147,0,130,23,130,17,0,21,131,20,3,6,6,10,10,132,0,0,16,134,0,145,0,
+ 4,21,17,17,14,13,131,14,14,15,15,19,6,2,2,6,17,17,16,16,14,14,9,17,133,0,144,0,1,16,13,133,
+ 8,9,7,7,13,13,16,19,19,17,14,16,130,14,3,9,14,9,17,133,0,142,0,1,16,13,131,8,2,13,7,7,
+ 131,4,3,8,8,14,15,130,14,0,16,133,17,0,16,132,0,141,0,0,17,130,13,2,8,7,7,134,4,4,8,7,
+ 16,16,14,132,17,4,16,17,23,17,15,132,0,142,0,4,21,21,17,17,14,131,9,8,14,7,4,4,7,8,16,17,
+ 16,130,17,7,16,1,1,3,14,0,6,11,131,0,143,0,131,20,1,21,21,130,22,15,21,15,14,7,7,16,17,17,
+ 16,17,17,9,4,14,5,4,129,0,0,6,131,0,143,0,138,20,3,22,15,7,16,132,17,4,9,4,14,17,14,129,
+ 0,1,6,11,130,0,144,0,1,17,20,130,21,131,20,14,21,18,18,15,16,17,17,16,17,17,4,9,3,21,14,129,
+ 0,1,6,11,130,0,144,0,4,16,13,7,7,14,130,17,10,21,21,18,6,12,17,17,16,4,5,14,130,1,2,18,
+ 4,4,129,0,0,6,130,0,144,0,1,14,8,130,4,19,13,14,16,15,6,10,18,18,15,23,9,1,7,7,3,1,
+ 1,3,4,5,129,0,0,6,130,0,143,0,25,17,13,8,4,4,7,13,13,17,19,12,6,3,3,6,20,17,4,1,
+ 9,9,3,3,5,14,2,130,0,0,11,129,0,143,0,10,17,14,8,4,4,8,13,16,20,11,12,131,18,2,20,21,
+ 17,130,9,130,5,1,9,2,130,0,0,11,129,0,143,0,6,17,14,13,4,7,13,15,130,22,1,20,19,131,11,4,
+ 6,12,16,7,14,129,0,2,16,2,1,130,0,2,6,11,0,143,0,9,17,16,13,4,8,20,6,18,20,20,131,22,
+ 7,19,11,11,6,14,4,7,16,130,0,1,1,1,129,0,2,6,11,0,143,0,27,23,16,14,8,14,20,3,20,23,
+ 23,22,22,18,20,23,22,11,11,6,14,4,4,8,16,0,1,3,17,129,0,1,6,0,142,0,7,10,3,23,17,16,
+ 21,20,6,130,20,11,18,3,1,2,6,21,22,11,6,6,16,8,130,4,6,8,9,16,17,17,6,0,142,0,25,20,
+ 2,6,17,8,4,9,9,21,15,18,2,2,6,3,1,3,23,19,11,6,3,10,14,9,7,130,4,3,7,7,13,16,
+ 142,0,4,23,12,3,9,8,130,4,24,8,16,14,6,12,12,10,6,3,18,22,11,11,6,2,6,6,10,14,9,13,
+ 8,8,13,16,142,0,5,23,21,18,14,8,7,130,4,9,13,14,14,12,2,2,10,3,18,22,130,11,0,6,130,3,
+ 2,11,20,18,130,15,0,21,142,0,5,23,20,21,14,8,8,130,4,23,7,13,14,14,6,10,12,6,22,22,19,11,
+ 11,6,3,3,6,20,3,12,19,19,20,22,136,0,133,17,6,23,10,15,16,8,8,7,130,4,22,8,13,14,16,12,
+ 10,18,17,20,22,19,11,6,3,3,6,19,1,2,1,2,21,20,135,0,1,17,17,133,23,5,6,16,16,13,8,8,
+ 130,4,22,7,8,14,14,15,20,16,13,14,17,22,22,19,11,3,6,19,1,6,10,6,20,20,2,0,18,18,131,0,
+ 1,21,17,130,23,12,21,17,16,21,12,9,16,14,8,8,7,4,4,130,8,19,14,16,17,8,4,7,14,15,20,22,
+ 22,19,11,19,3,6,10,6,20,20,131,18,129,0,1,21,17,130,23,0,17,130,16,32,17,21,10,17,16,13,8,8,
+ 7,4,8,8,14,17,18,12,10,5,4,7,14,15,18,20,23,22,11,19,10,6,10,20,20,133,18,6,17,21,23,23,
+ 17,17,21,132,23,3,17,16,14,13,132,8,9,16,20,6,6,10,10,4,4,13,16,130,18,7,22,22,19,19,12,21,
+ 20,0,133,18,6,21,23,23,17,17,23,22,131,20,30,22,23,17,14,14,13,8,8,13,16,17,12,6,3,10,12,18,
+ 7,8,14,20,22,18,18,22,22,19,22,20,22,0,133,18,6,20,21,17,16,23,22,20,132,19,18,22,21,17,17,14,
+ 14,15,12,18,18,12,12,10,12,20,22,14,8,14,130,0,5,22,21,22,23,22,22,129,0,12,18,12,18,20,12,12,
+ 20,21,17,17,22,22,20,132,19,6,12,12,3,10,21,10,6,130,3,9,10,18,12,20,19,19,15,8,14,9,137,0,
+ 9,22,12,12,21,18,10,12,22,17,17,133,22,22,20,12,6,2,2,12,20,6,2,1,3,12,20,12,19,19,11,12,
+ 17,8,16,10,6,136,0,9,0,20,12,18,22,20,18,22,23,17,130,22,130,23,23,22,18,12,3,12,20,22,18,6,
+ 10,18,20,20,21,20,11,11,19,15,13,15,2,3,6,135,0,14,0,22,12,10,20,22,22,21,23,17,23,22,22,21,
+ 12,130,22,6,21,18,10,12,20,22,18,130,20,12,6,3,12,12,11,22,13,16,10,1,1,6,10,134,0,129,0,18,
+ 22,12,10,20,22,22,23,23,21,22,22,21,10,21,22,20,12,20,20,130,18,130,20,8,18,2,1,10,12,20,16,14,
+ 15,130,3,5,10,6,3,6,10,10,130,0,130,0,4,22,12,12,18,20,132,23,31,22,18,22,20,18,2,2,18,21,
+ 12,20,21,17,23,20,6,3,12,22,17,16,21,15,6,6,10,2,1,1,2,6,10,130,0,131,0,5,22,22,20,18,
+ 21,23,130,20,12,21,21,23,22,18,3,1,1,3,3,18,20,10,130,6,14,10,6,6,5,12,12,6,3,2,1,1,
+ 2,2,3,12,131,0,134,0,35,22,23,20,10,10,6,10,10,12,18,20,21,18,6,3,2,6,12,3,2,2,3,3,
+ 2,2,3,6,6,3,2,6,6,10,18,20,18,132,0,137,0,14,21,20,18,18,12,12,10,10,18,20,22,23,23,22,
+ 22,131,23,146,0,141,0,130,22,2,21,20,21,155,0,88,0,98,0,111,0,128,0,155,0,182,0,207,0,236,0,14,
+ 1,48,1,87,1,128,1,169,1,212,1,0,2,43,2,80,2,118,2,166,2,218,2,9,3,61,3,110,3,162,3,211,
+ 3,0,4,46,4,90,4,134,4,180,4,227,4,15,5,57,5,101,5,141,5,175,5,210,5,238,5,6,6,30,6,54,
+ 6,76,6,93,6,105,6,156,0,2,23,23,21,130,23,149,0,154,0,1,23,21,131,17,2,15,6,10,148,0,152,0,
+ 11,23,23,17,15,20,22,20,19,12,12,10,12,147,0,147,0,2,16,14,14,130,13,15,14,16,15,10,6,11,18,6,
+ 3,6,22,14,13,16,17,17,142,0,147,0,2,15,4,7,132,8,15,13,14,14,11,10,6,3,3,15,7,4,7,7,
+ 8,16,16,140,0,147,0,2,17,15,9,130,4,131,8,6,13,14,18,11,16,8,7,133,4,1,7,16,139,0,146,0,
+ 4,16,13,16,23,14,130,4,0,7,131,8,2,14,9,9,132,4,5,7,4,7,16,6,11,138,0,144,0,8,16,14,
+ 7,4,8,20,20,23,13,130,4,0,7,130,8,8,16,16,4,9,9,16,15,11,12,130,0,0,6,138,0,143,0,1,
+ 16,8,131,4,4,14,20,20,21,15,130,4,0,7,130,8,7,14,13,16,0,2,2,1,1,130,0,0,6,138,0,141,
+ 0,2,10,17,8,130,4,130,7,0,15,130,20,3,17,7,4,4,131,8,1,16,14,129,0,3,1,3,1,5,130,0,
+ 2,6,23,23,135,0,140,0,5,6,2,16,4,4,7,131,8,8,14,21,18,20,20,17,7,4,7,130,8,0,16,130,
+ 17,10,9,14,9,9,14,0,12,11,20,22,23,134,0,139,0,6,20,3,6,14,7,8,8,130,13,11,14,14,16,21,
+ 18,20,20,17,4,4,8,8,132,14,10,16,14,16,14,17,23,22,11,19,23,22,134,0,139,0,26,18,3,6,16,8,
+ 14,17,20,18,15,16,16,17,23,22,20,20,18,17,7,7,14,15,14,16,17,17,130,23,7,17,17,23,23,11,11,20,
+ 23,134,0,139,0,9,18,10,15,17,17,18,10,6,10,20,129,0,10,23,23,22,6,12,10,12,14,8,17,14,131,17,
+ 11,14,5,14,23,23,21,22,18,6,20,22,23,133,0,138,0,8,17,16,13,7,4,14,18,10,20,132,0,10,23,19,
+ 10,3,12,20,21,13,17,17,16,130,17,11,1,2,1,4,16,23,21,12,11,19,22,23,133,0,137,0,7,16,13,7,
+ 4,4,7,8,17,135,0,5,22,19,12,6,6,18,134,17,11,4,13,14,7,14,23,20,21,19,11,23,23,133,0,136,
+ 0,1,16,8,131,4,2,8,8,16,132,0,130,23,131,22,2,20,19,21,132,17,11,14,4,9,17,16,14,21,21,23,
+ 0,11,23,134,0,1,22,23,133,0,1,16,8,131,4,130,8,0,16,130,0,28,23,20,22,20,18,20,23,22,22,23,
+ 22,20,17,17,16,9,23,4,4,3,6,17,7,16,17,17,0,6,11,134,0,2,20,12,20,130,18,2,15,16,8,131,
+ 4,130,8,28,14,15,0,23,21,20,22,23,22,22,23,23,22,21,10,6,22,23,17,3,4,9,4,1,1,6,5,4,
+ 16,130,17,2,6,11,23,133,0,2,21,18,10,130,1,1,6,16,131,4,130,8,6,14,16,21,22,18,18,20,133,23,
+ 1,12,2,130,1,9,6,17,1,4,7,5,1,1,3,4,132,7,2,4,8,23,133,0,2,22,20,18,130,6,4,12,
+ 16,4,4,7,130,8,8,14,14,16,23,18,12,18,12,18,131,23,22,22,2,2,6,10,3,1,15,17,1,4,9,5,
+ 3,5,9,16,8,4,4,8,13,16,134,0,36,22,20,18,18,23,17,20,15,14,8,8,13,13,16,14,13,17,22,18,
+ 20,22,20,18,23,22,20,20,18,3,6,10,6,6,3,10,23,16,133,9,130,10,3,12,15,12,11,134,0,37,0,20,
+ 18,12,21,16,22,10,6,16,14,14,16,14,13,16,21,23,21,20,21,20,21,23,23,22,23,18,3,12,6,1,12,3,
+ 10,23,18,10,130,11,5,12,11,11,19,11,11,130,20,134,0,15,0,22,20,18,21,23,10,2,3,6,16,14,8,8,
+ 14,17,130,23,2,22,21,22,131,23,129,0,8,6,10,18,12,12,3,18,21,22,133,11,6,20,3,2,2,10,21,20,
+ 134,0,14,0,22,22,23,22,20,12,2,2,3,15,13,13,14,17,131,23,135,0,11,22,20,10,12,12,6,18,21,18,
+ 22,22,12,131,11,6,19,2,3,10,3,18,20,134,0,16,20,10,18,22,20,18,20,12,3,20,23,15,18,21,17,21,
+ 23,137,0,2,22,18,18,130,20,16,18,21,18,18,22,22,20,12,11,12,20,10,9,12,6,18,20,134,0,7,20,18,
+ 18,22,23,20,18,18,130,22,4,12,10,22,17,21,139,0,6,12,6,22,22,18,6,22,130,18,2,20,22,22,130,17,
+ 5,14,13,16,15,20,20,134,0,2,21,18,18,131,20,8,22,20,12,18,18,10,22,17,21,138,0,15,23,12,6,22,
+ 22,12,6,22,20,20,18,18,17,17,9,7,130,4,3,7,13,17,20,134,0,15,0,18,20,20,12,18,20,23,10,2,
+ 2,6,12,22,17,23,139,0,5,20,18,22,22,20,18,131,0,11,21,16,7,7,20,21,21,15,7,4,13,17,132,0,
+ 1,18,18,15,0,18,18,21,21,22,23,22,22,20,20,18,20,23,17,23,139,0,5,18,10,23,23,20,10,131,0,11,
+ 17,8,14,22,12,6,6,12,22,9,4,14,131,0,2,12,1,6,5,0,20,18,20,23,23,133,22,2,23,17,21,140,
+ 0,1,20,12,130,10,0,18,130,0,4,23,8,14,22,6,131,3,10,11,22,9,13,20,10,0,12,3,3,18,3,0,
+ 22,18,18,135,23,1,17,21,141,0,4,18,3,1,1,2,130,10,5,12,17,8,18,11,6,130,3,11,6,6,12,20,
+ 13,15,1,3,12,3,10,0,5,0,22,18,20,23,17,132,21,2,17,21,23,141,0,11,12,2,10,12,3,6,12,10,
+ 18,15,13,19,131,11,0,6,130,11,8,19,13,15,6,3,6,3,18,0,129,0,130,22,132,23,1,21,23,143,0,11,
+ 20,3,10,12,6,10,20,18,20,15,13,19,131,11,10,19,19,11,11,20,14,15,3,6,3,12,129,0,130,0,133,22,
+ 147,0,10,12,6,6,10,21,20,20,22,15,13,19,130,11,10,20,18,21,19,11,20,14,18,18,6,6,130,0,130,0,
+ 130,20,1,18,21,149,0,2,21,20,22,131,0,2,16,8,19,130,11,10,21,2,2,19,12,22,17,21,0,6,10,130,
+ 0,130,0,3,20,18,21,23,157,0,15,23,8,14,20,11,11,19,10,2,12,22,6,2,12,0,12,131,0,130,0,2,
+ 20,18,22,159,0,12,17,8,17,20,11,12,22,18,6,2,2,10,20,133,0,130,0,2,20,18,21,158,0,12,12,12,
+ 17,14,17,22,22,6,2,2,10,20,21,134,0,130,0,2,20,18,22,157,0,12,20,10,3,10,20,16,17,6,2,12,
+ 20,21,21,135,0,130,0,2,21,20,23,156,0,1,12,2,130,6,5,12,0,20,12,20,21,138,0,131,0,0,23,157,
+ 0,0,10,132,1,3,10,0,22,21,139,0,162,0,2,18,12,10,130,6,0,12,142,0,112,0,118,0,130,0,147,0,
+ 168,0,189,0,211,0,239,0,17,1,47,1,79,1,114,1,146,1,181,1,214,1,248,1,28,2,61,2,95,2,131,2,
+ 164,2,191,2,222,2,1,3,32,3,62,3,94,3,128,3,163,3,200,3,238,3,18,4,53,4,90,4,125,4,162,4,
+ 201,4,242,4,30,5,71,5,109,5,148,5,179,5,210,5,241,5,16,6,46,6,73,6,103,6,127,6,153,6,181,6,
+ 202,6,226,6,246,6,252,6,154,0,130,18,149,0,153,0,4,18,10,6,12,18,133,14,142,0,149,0,0,20,131,19,
+ 3,3,1,2,15,133,13,0,14,141,0,148,0,10,20,19,19,11,12,6,3,3,5,15,13,132,7,1,8,14,140,0,
+ 148,0,9,19,11,6,6,11,12,12,9,13,7,133,4,2,7,8,14,139,0,147,0,2,22,11,6,130,3,2,6,6,
+ 13,133,4,4,7,8,13,13,14,139,0,147,0,1,22,11,133,6,1,5,8,130,7,7,8,8,13,14,16,16,10,12,
+ 132,0,1,18,18,131,0,147,0,0,22,130,11,5,12,16,16,14,14,16,130,13,7,14,14,16,9,11,11,6,6,131,
+ 0,4,20,12,10,12,12,129,0,147,0,3,22,11,12,14,130,13,134,14,0,10,130,6,11,12,6,2,11,0,18,12,
+ 12,18,20,12,12,129,0,147,0,2,22,14,13,134,8,7,13,14,12,11,11,2,6,6,129,0,9,2,6,0,12,3,
+ 3,6,10,18,18,129,0,147,0,7,17,13,8,8,7,4,4,7,131,8,1,14,12,129,0,1,2,2,130,0,3,6,
+ 12,6,3,130,6,3,12,18,18,0,147,0,2,8,8,7,130,4,7,7,8,8,13,13,14,14,16,129,0,130,1,129,
+ 0,3,11,20,10,10,130,12,131,18,146,0,5,13,8,7,4,4,7,130,8,2,13,16,16,130,14,130,0,14,1,1,
+ 0,16,16,13,14,18,20,12,10,12,12,18,18,146,0,9,8,8,4,4,7,8,8,14,14,16,131,14,0,13,131,0,
+ 1,9,16,131,8,7,9,18,10,6,3,6,12,18,146,0,1,13,7,130,4,10,13,14,16,15,14,10,10,9,14,7,
+ 13,129,0,1,17,13,133,8,6,12,6,3,3,6,10,18,146,0,8,13,8,4,4,8,14,14,15,12,130,10,8,15,
+ 16,8,4,8,17,13,7,7,130,4,3,8,8,10,6,130,3,1,6,18,146,0,7,13,8,7,7,13,14,15,18,130,
+ 10,6,12,18,18,15,9,14,14,133,4,3,8,8,9,6,130,3,1,6,18,146,0,16,13,8,8,13,14,15,19,15,
+ 14,14,15,18,18,10,10,19,16,132,4,0,7,130,8,6,9,6,3,6,3,6,18,145,0,1,16,13,130,8,12,14,
+ 15,18,16,14,13,13,16,15,12,18,17,7,130,4,0,7,131,8,7,13,14,6,6,10,6,10,18,144,0,130,14,7,
+ 8,8,14,15,19,15,14,8,130,7,6,8,14,16,17,8,7,7,132,8,2,13,16,9,132,10,0,18,144,0,133,14,
+ 3,15,15,13,8,132,4,3,7,13,17,14,132,13,131,14,1,10,6,131,10,0,18,144,0,132,14,2,8,7,8,133,
+ 4,6,7,8,14,17,17,16,16,131,14,9,16,16,17,12,6,10,6,6,12,18,145,0,6,14,13,13,8,8,4,4,
+ 131,7,9,8,13,13,14,16,17,20,18,18,15,130,16,130,17,0,18,130,3,2,6,18,18,145,0,0,14,131,8,132,
+ 13,1,14,14,130,16,5,17,18,12,10,12,18,132,17,7,18,12,6,3,6,12,18,18,144,0,0,13,137,14,130,16,
+ 9,17,17,18,10,10,12,18,21,17,16,130,17,1,18,12,130,10,2,18,18,0,145,0,3,16,16,17,17,133,16,130,
+ 17,0,18,130,10,3,18,20,21,21,131,17,2,21,18,12,130,10,0,18,129,0,145,0,130,10,2,15,17,17,132,15,
+ 0,18,130,12,16,18,18,20,21,17,17,21,21,17,17,20,18,12,10,10,12,18,129,0,143,0,7,10,6,10,10,6,
+ 10,18,20,133,18,3,12,18,20,21,130,17,1,16,15,130,21,6,20,18,18,10,10,12,18,130,0,142,0,2,10,10,
+ 6,130,3,3,6,12,18,18,130,10,10,12,18,21,17,16,16,14,9,14,9,9,130,17,130,18,2,10,12,18,131,0,
+ 142,0,4,10,10,6,3,3,130,6,1,18,18,130,10,1,6,15,130,14,3,16,16,17,16,130,17,0,16,130,18,3,
+ 12,12,18,18,131,0,141,0,10,18,12,10,6,3,6,10,10,6,12,18,130,10,3,15,14,14,16,130,17,130,23,1,
+ 17,17,131,18,2,12,18,18,132,0,139,0,18,14,15,19,18,18,10,3,3,6,6,3,12,18,18,12,10,17,16,16,
+ 130,17,5,14,1,4,14,17,15,133,18,133,0,137,0,8,14,16,16,15,15,20,18,18,10,130,6,0,10,132,18,10,
+ 17,17,16,16,17,23,4,3,5,1,9,132,18,1,20,22,133,0,135,0,132,14,11,8,8,13,14,18,18,12,10,18,
+ 22,23,0,130,18,133,17,4,4,4,16,14,9,131,18,2,20,21,18,133,0,134,0,130,14,12,13,8,8,9,9,8,
+ 8,14,19,21,16,17,23,132,0,132,17,5,16,4,9,9,17,14,130,18,2,20,22,18,134,0,134,0,3,14,14,8,
+ 9,132,11,7,10,8,16,21,17,16,17,21,131,0,130,17,13,3,17,9,1,3,2,23,4,9,19,20,22,18,18,134,
+ 0,134,0,17,14,13,9,11,11,6,3,3,6,11,12,13,16,17,17,16,17,17,131,0,12,23,3,4,7,7,1,1,
+ 2,5,4,9,20,20,130,18,134,0,131,0,8,10,10,12,16,13,12,11,6,2,130,3,4,6,11,12,14,16,131,17,
+ 0,21,130,0,14,23,9,1,4,9,3,1,3,3,9,20,19,19,18,18,135,0,130,0,7,10,6,6,10,16,14,11,
+ 11,130,6,130,3,5,6,11,16,16,17,21,130,17,131,0,4,23,9,3,9,9,130,5,1,15,20,131,19,135,0,130,
+ 0,5,6,6,3,12,16,16,135,11,3,6,11,15,16,130,17,2,16,17,21,130,0,2,20,23,14,132,9,129,0,130,
+ 19,0,20,135,0,129,0,12,12,6,3,3,12,16,16,19,11,11,6,6,10,130,11,8,19,15,16,17,17,21,17,17,
+ 21,129,0,1,18,18,136,0,130,19,136,0,27,10,6,18,12,3,3,10,23,16,20,10,3,3,10,10,11,11,12,20,
+ 15,16,17,17,21,17,17,21,21,151,0,19,10,3,2,3,6,6,12,23,17,19,3,3,6,12,18,18,12,19,20,14,
+ 130,17,4,21,17,17,21,17,151,0,19,0,6,2,1,2,2,3,6,10,10,3,6,12,18,19,19,20,20,16,14,130,
+ 17,4,21,17,17,21,17,151,0,129,0,2,12,10,3,130,2,5,3,12,12,10,18,18,130,20,2,16,14,16,130,17,
+ 4,21,17,17,21,17,151,0,130,0,6,18,12,6,6,1,1,10,131,18,4,17,16,16,14,16,130,17,6,15,20,17,
+ 21,21,18,18,150,0,131,0,7,18,12,10,2,1,2,6,12,130,18,132,17,6,15,12,10,10,18,21,22,130,18,149,
+ 0,132,0,8,18,12,10,3,1,1,2,6,12,130,18,3,17,15,18,12,130,10,3,18,20,22,20,130,18,148,0,134,
+ 0,7,18,12,3,1,1,2,3,10,130,12,133,10,3,18,18,21,22,131,18,147,0,136,0,2,18,10,3,130,1,0,
+ 3,130,10,0,12,131,10,4,18,18,21,22,20,132,18,145,0,138,0,20,20,10,6,2,1,2,3,10,12,18,18,12,
+ 12,18,18,21,22,22,21,20,20,131,18,143,0,140,0,9,18,12,6,3,2,3,6,6,12,10,131,18,132,20,133,18,
+ 141,0,142,0,3,18,18,10,6,131,3,5,6,6,10,10,12,12,133,18,2,20,20,18,141,0,146,0,3,12,12,10,
+ 6,130,3,5,6,6,10,10,18,21,130,20,144,0,149,0,136,18,148,0,86,0,92,0,100,0,121,0,145,0,172,0,
+ 201,0,230,0,1,1,33,1,62,1,88,1,120,1,154,1,190,1,223,1,2,2,43,2,87,2,134,2,179,2,226,2,
+ 14,3,61,3,108,3,152,3,197,3,242,3,30,4,73,4,120,4,162,4,203,4,244,4,20,5,42,5,60,5,75,5,
+ 83,5,91,5,99,5,107,5,114,5,157,0,0,12,142,0,156,0,2,18,10,6,141,0,145,0,130,23,13,17,21,20,
+ 19,19,12,19,6,2,3,12,15,17,17,138,0,144,0,1,23,17,132,16,13,14,9,11,12,6,6,3,10,16,7,13,
+ 14,16,17,135,0,142,0,3,17,16,13,13,133,8,14,13,16,12,11,20,14,13,4,1,4,1,4,4,8,16,133,0,
+ 140,0,2,16,16,13,131,8,0,7,130,4,8,7,8,8,16,6,10,7,4,5,133,7,1,14,17,132,0,139,0,1,
+ 17,13,131,8,0,7,133,4,130,8,5,14,15,4,14,23,0,130,11,3,12,0,12,12,132,0,138,0,0,17,131,7,
+ 136,4,6,7,13,8,13,17,4,13,129,0,130,1,130,0,1,6,11,131,0,138,0,0,21,133,9,0,14,130,9,3,
+ 14,9,4,4,130,8,3,16,14,7,17,129,0,130,1,130,0,0,6,131,0,139,0,0,22,136,21,10,22,23,17,14,
+ 7,7,8,14,16,4,16,130,0,1,1,1,130,0,0,6,131,0,140,0,137,20,9,22,12,10,18,13,7,14,16,4,
+ 16,130,0,130,1,129,0,1,6,11,130,0,141,0,1,21,21,131,20,12,21,20,21,20,18,6,18,21,13,13,17,7,
+ 14,131,0,1,1,1,130,0,0,6,130,0,141,0,19,17,13,7,4,7,8,14,14,21,12,6,10,10,6,12,17,18,
+ 9,7,17,130,0,1,1,1,130,0,0,6,130,0,140,0,20,22,17,13,7,4,4,8,14,14,17,20,10,6,6,10,
+ 18,11,6,14,4,17,131,0,1,1,1,129,0,1,6,11,129,0,140,0,9,20,17,13,7,4,4,8,8,16,23,132,
+ 19,5,11,11,6,15,4,16,131,0,1,1,1,130,0,0,6,129,0,140,0,3,12,17,13,7,130,4,6,16,12,6,
+ 20,19,20,19,130,11,3,6,12,13,4,131,0,1,1,1,130,0,0,6,129,0,1,21,18,137,0,23,23,6,10,16,
+ 8,4,4,14,20,18,6,3,18,21,18,22,22,11,11,6,16,8,4,13,130,0,1,1,6,129,0,2,6,11,0,4,
+ 20,12,22,20,20,129,0,133,23,32,10,10,17,8,7,5,18,6,22,22,20,10,2,1,2,10,22,11,11,6,16,13,
+ 4,7,13,13,2,14,17,17,0,6,0,45,10,6,20,12,18,22,21,16,16,17,17,23,23,12,6,17,14,8,9,12,
+ 6,22,23,10,1,2,6,3,1,10,22,11,11,6,9,16,7,4,4,7,7,14,16,14,10,0,1,10,1,130,12,0,
+ 15,130,16,130,17,26,21,18,2,6,17,16,17,18,10,18,20,6,3,10,10,6,3,6,22,19,11,6,3,6,14,14,
+ 13,131,4,2,7,14,17,26,12,3,6,2,2,18,16,7,4,7,9,17,17,21,6,2,15,16,14,17,21,9,20,6,
+ 6,12,1,130,6,10,22,20,11,11,6,2,3,6,6,12,15,130,14,1,16,17,31,12,3,6,3,12,9,4,7,9,
+ 9,7,4,9,17,18,12,14,8,4,4,14,17,21,10,6,18,6,18,6,10,23,20,130,12,3,10,6,14,12,133,19,
+ 0,22,33,12,3,10,10,15,7,15,22,19,19,22,15,4,8,23,16,8,8,4,4,8,14,17,17,10,12,18,10,10,
+ 21,21,17,16,16,130,14,8,9,17,11,1,6,6,12,21,20,17,18,6,10,21,14,18,20,6,3,3,6,19,20,7,
+ 16,16,8,8,130,4,3,8,16,17,17,130,18,17,21,16,14,14,16,16,17,16,17,16,23,11,1,2,2,6,22,20,
+ 6,20,18,21,17,21,19,6,132,3,5,19,15,8,16,8,8,130,4,9,8,14,17,17,22,22,21,14,14,16,130,17,
+ 130,23,3,17,21,6,2,130,10,1,21,20,7,12,1,3,22,20,11,6,3,131,6,5,11,20,14,14,8,8,130,4,
+ 8,7,13,17,17,23,0,23,16,16,131,17,11,3,1,9,17,12,12,3,6,6,10,21,20,7,6,1,3,19,19,12,
+ 19,19,132,11,4,19,17,13,8,8,131,4,3,13,16,17,21,129,0,17,17,17,16,17,17,9,3,5,1,4,20,19,
+ 19,10,6,18,20,0,8,6,3,3,10,19,6,2,12,20,131,11,14,19,17,13,8,8,7,4,4,7,8,16,17,17,
+ 23,23,132,17,12,9,4,14,16,9,20,22,19,19,20,22,21,0,8,0,3,10,6,1,2,3,18,20,130,11,15,12,
+ 20,17,14,13,8,7,4,4,7,8,14,17,21,12,15,132,17,5,4,5,9,17,14,18,132,22,1,23,0,38,0,3,
+ 6,10,6,10,18,20,19,11,11,18,3,3,15,14,14,15,12,12,10,8,8,15,6,2,12,23,17,17,5,9,17,1,
+ 5,1,21,9,5,130,0,1,22,23,129,0,23,0,3,3,6,20,22,19,6,11,11,12,3,2,2,3,15,16,6,2,
+ 2,3,14,14,6,130,2,5,18,23,9,4,7,7,130,1,2,5,4,5,134,0,17,0,6,3,3,19,22,20,19,19,
+ 20,10,2,18,18,2,6,17,3,130,1,16,17,12,2,12,20,3,6,23,16,1,4,9,5,1,3,3,5,135,0,33,
+ 0,12,3,6,15,14,17,21,17,21,15,18,17,21,18,18,23,10,3,3,6,23,20,18,21,22,18,18,0,23,16,3,
+ 9,9,130,5,0,9,135,0,129,0,3,12,18,18,17,130,16,3,14,14,17,17,130,0,131,22,3,21,20,22,23,133,
+ 0,1,23,16,133,9,135,0,130,0,1,18,12,131,18,1,21,17,132,0,6,21,18,12,12,18,20,23,150,0,130,0,
+ 130,10,2,3,6,12,135,0,4,18,6,6,12,22,151,0,130,0,4,6,3,6,6,18,137,0,1,21,21,153,0,130,
+ 0,2,6,3,12,167,0,130,0,2,6,3,10,167,0,130,0,2,6,3,12,167,0,130,0,2,6,3,18,167,0,130,
+ 0,1,18,12,168,0,86,0,92,0,100,0,121,0,145,0,172,0,201,0,230,0,1,1,33,1,62,1,88,1,120,1,
+ 154,1,190,1,223,1,2,2,43,2,87,2,134,2,179,2,226,2,14,3,61,3,108,3,152,3,197,3,242,3,31,4,
+ 76,4,123,4,165,4,205,4,246,4,23,5,46,5,64,5,79,5,87,5,95,5,103,5,111,5,118,5,157,0,0,12,
+ 142,0,156,0,2,18,10,6,141,0,145,0,130,23,13,17,21,20,19,19,12,19,6,2,3,12,15,17,17,138,0,144,
+ 0,1,23,17,132,16,13,14,9,11,12,6,6,3,10,16,7,13,14,16,17,135,0,142,0,3,17,16,13,13,133,8,
+ 14,13,16,12,11,20,14,13,4,1,4,1,4,4,8,16,133,0,140,0,2,16,16,13,131,8,0,7,130,4,8,7,
+ 8,8,16,6,10,7,4,5,133,7,1,14,17,132,0,139,0,1,17,13,131,8,0,7,133,4,130,8,5,14,15,4,
+ 14,23,0,130,11,3,12,0,12,12,132,0,138,0,0,17,131,7,136,4,6,7,13,8,13,17,4,13,129,0,130,1,
+ 130,0,1,6,11,131,0,138,0,0,21,133,9,0,14,130,9,3,14,9,4,4,130,8,3,16,14,7,17,129,0,130,
+ 1,130,0,0,6,131,0,139,0,0,22,136,21,10,22,23,17,14,7,7,8,14,16,4,16,130,0,1,1,1,130,0,
+ 0,6,131,0,140,0,137,20,9,22,12,10,18,13,7,14,16,4,16,130,0,130,1,129,0,1,6,11,130,0,141,0,
+ 1,21,21,131,20,12,21,20,21,18,18,12,18,21,13,13,17,7,14,131,0,1,1,1,130,0,0,6,130,0,141,0,
+ 19,17,13,7,4,7,8,14,14,21,12,6,10,10,6,12,17,18,9,7,17,130,0,1,1,1,130,0,0,6,130,0,
+ 140,0,20,22,17,13,7,4,4,8,14,14,17,20,10,6,6,10,18,11,6,14,4,17,131,0,1,1,1,129,0,1,
+ 6,11,129,0,140,0,9,20,17,13,7,4,4,8,8,16,23,132,19,5,11,11,6,15,4,16,131,0,1,1,1,130,
+ 0,0,6,129,0,140,0,3,12,17,13,7,130,4,6,16,12,6,20,19,20,19,130,11,3,6,12,13,4,131,0,1,
+ 1,1,130,0,0,6,129,0,1,21,18,137,0,23,23,6,10,16,8,4,4,14,20,18,6,3,18,21,18,22,22,11,
+ 11,6,16,8,4,13,130,0,1,1,6,129,0,2,6,11,0,4,20,12,22,20,20,129,0,133,23,32,10,10,17,8,
+ 7,5,18,6,22,22,20,10,2,1,2,10,22,11,11,6,16,13,4,7,13,13,2,14,17,17,0,6,0,45,10,6,
+ 20,12,18,22,21,16,16,17,17,23,23,12,6,17,14,8,9,12,6,22,23,10,1,2,6,3,1,10,22,11,11,6,
+ 9,16,7,4,4,7,7,14,16,14,10,0,1,10,1,130,12,0,15,130,16,130,17,26,21,18,2,6,17,16,17,18,
+ 12,20,20,6,3,10,10,6,3,6,22,19,11,6,3,6,14,14,13,131,4,2,7,14,17,26,12,6,6,2,2,18,
+ 16,7,4,7,9,17,17,21,6,2,15,16,14,16,22,15,18,6,6,12,1,130,6,10,22,20,11,11,6,2,3,6,
+ 6,12,15,130,14,1,16,17,0,18,130,6,27,10,9,4,7,9,9,7,4,9,17,18,12,14,8,4,4,16,17,17,
+ 9,6,15,9,15,6,9,22,20,130,12,3,10,6,14,12,133,19,0,22,33,0,6,6,12,15,7,15,22,19,19,22,
+ 15,4,8,23,16,8,8,4,4,7,14,17,17,9,10,18,12,9,17,21,17,16,16,130,14,8,9,17,11,1,6,6,
+ 12,21,20,17,21,6,10,21,14,18,20,6,3,3,6,19,20,7,16,16,8,8,130,4,3,8,16,17,17,130,9,17,
+ 17,15,14,14,16,16,17,16,17,16,23,11,1,2,2,6,22,20,6,20,18,21,17,21,19,6,132,3,5,19,15,8,
+ 16,8,8,130,4,9,8,14,17,17,21,15,17,15,14,16,130,17,130,23,3,17,23,6,2,130,10,1,21,20,7,12,
+ 1,3,22,20,11,6,3,131,6,5,11,20,14,14,8,8,130,4,8,7,13,17,17,21,0,16,17,16,131,17,11,3,
+ 1,9,17,12,19,3,6,6,10,21,20,7,6,1,3,19,19,12,19,19,132,11,4,19,17,13,8,8,131,4,3,13,
+ 16,17,21,129,0,17,17,17,16,17,17,9,3,5,1,4,9,10,19,10,6,18,20,0,27,6,3,3,10,19,6,2,
+ 12,20,11,10,9,5,19,17,13,8,8,7,4,4,7,8,16,17,17,22,23,132,17,12,9,4,14,16,14,9,9,10,
+ 19,19,22,21,0,8,0,3,10,6,1,2,3,18,20,130,9,15,15,20,17,9,9,8,7,4,4,7,9,14,17,21,
+ 12,15,132,17,12,4,5,9,17,14,5,7,7,9,12,22,23,0,38,0,3,6,10,6,10,18,20,18,9,9,15,3,
+ 3,17,9,9,15,15,12,12,9,9,15,6,2,12,23,17,17,5,9,17,1,5,1,21,9,4,130,0,1,9,15,129,
+ 0,32,0,3,3,6,20,22,19,6,9,9,15,3,1,1,3,12,9,6,2,2,3,9,15,6,1,3,2,18,23,9,
+ 4,7,7,130,1,2,5,4,5,134,0,16,0,6,3,3,19,22,12,8,7,8,12,3,5,8,4,10,14,131,1,16,
+ 8,12,3,8,5,4,6,23,16,1,4,9,5,1,3,3,5,135,0,17,0,12,3,6,15,14,16,7,5,5,9,5,
+ 5,7,8,4,8,4,130,1,12,5,5,7,14,9,4,14,0,23,16,3,9,9,130,5,0,9,135,0,129,0,3,12,
+ 18,18,17,130,9,0,8,130,5,130,0,7,8,8,5,5,7,8,7,8,133,0,1,23,16,133,9,135,0,130,0,7,
+ 18,10,18,12,9,5,5,4,132,0,6,8,8,4,1,8,7,16,150,0,130,0,2,10,10,12,130,5,135,0,4,7,
+ 1,1,4,8,151,0,130,0,4,6,5,5,9,5,137,0,1,7,8,153,0,130,0,2,6,5,5,167,0,130,0,2,
+ 6,5,5,167,0,130,0,2,6,9,5,167,0,130,0,2,10,5,5,167,0,130,0,1,18,12,168,0,86,0,92,0,
+ 100,0,121,0,145,0,172,0,201,0,230,0,1,1,33,1,62,1,88,1,120,1,154,1,190,1,223,1,2,2,43,2,
+ 87,2,134,2,179,2,226,2,14,3,61,3,108,3,152,3,197,3,242,3,31,4,76,4,123,4,165,4,205,4,247,4,
+ 25,5,48,5,67,5,82,5,90,5,98,5,106,5,114,5,121,5,157,0,0,12,142,0,156,0,2,18,10,6,141,0,
+ 145,0,130,23,13,17,21,20,19,19,12,19,6,2,3,12,15,17,17,138,0,144,0,1,23,17,132,16,13,14,9,11,
+ 12,6,6,3,10,16,7,13,14,16,17,135,0,142,0,3,17,16,13,13,133,8,14,13,16,12,11,20,14,13,4,1,
+ 4,1,4,4,8,16,133,0,140,0,2,16,16,13,131,8,0,7,130,4,8,7,8,8,16,6,10,7,4,5,133,7,
+ 1,14,17,132,0,139,0,1,17,13,131,8,0,7,133,4,130,8,5,14,15,4,14,23,0,130,11,3,12,0,12,12,
+ 132,0,138,0,0,17,131,7,136,4,6,7,13,8,13,17,4,13,129,0,130,1,130,0,1,6,11,131,0,138,0,0,
+ 21,133,9,0,14,130,9,3,14,9,4,4,130,8,3,16,14,7,17,129,0,130,1,130,0,0,6,131,0,139,0,0,
+ 22,136,21,10,22,23,17,14,7,7,8,14,16,4,16,130,0,1,1,1,130,0,0,6,131,0,140,0,137,20,9,22,
+ 12,10,18,13,7,14,16,4,16,130,0,130,1,129,0,1,6,11,130,0,141,0,1,21,21,131,20,12,21,20,21,18,
+ 18,12,18,21,13,13,17,7,14,131,0,1,1,1,130,0,0,6,130,0,141,0,19,17,13,7,4,7,8,14,14,21,
+ 12,6,10,10,6,12,17,18,9,7,17,130,0,1,1,1,130,0,0,6,130,0,140,0,20,22,17,13,7,4,4,8,
+ 14,14,17,20,10,6,6,10,18,11,6,14,4,17,131,0,1,1,1,129,0,1,6,11,129,0,140,0,9,20,17,13,
+ 7,4,4,8,8,16,23,132,19,5,11,11,6,15,4,16,131,0,1,1,1,130,0,0,6,129,0,140,0,3,12,17,
+ 13,7,130,4,6,16,12,6,20,19,20,19,130,11,3,6,12,13,4,131,0,1,1,1,130,0,0,6,129,0,1,21,
+ 18,137,0,23,23,6,10,16,8,4,4,14,20,18,6,3,18,21,18,22,22,11,11,6,16,8,4,13,130,0,1,1,
+ 6,129,0,2,6,11,0,4,20,12,22,20,20,129,0,133,23,32,10,10,17,8,7,5,18,6,22,22,20,10,2,1,
+ 2,10,22,11,11,6,16,13,4,7,13,13,2,14,17,17,0,6,0,45,10,6,20,12,18,22,21,16,16,17,17,23,
+ 23,12,6,17,14,8,9,12,6,22,23,10,1,2,6,3,1,10,22,11,11,6,9,16,7,4,4,7,7,14,16,14,
+ 10,0,1,10,1,130,12,0,15,130,16,130,17,26,21,18,2,6,17,16,17,18,12,20,20,6,3,10,10,6,3,6,
+ 22,19,11,6,3,6,14,14,13,131,4,2,7,14,17,26,12,6,6,2,2,18,16,7,4,7,9,17,17,21,6,2,
+ 15,16,14,16,22,15,18,6,6,12,1,130,6,10,22,20,11,11,6,2,3,6,6,12,15,130,14,1,16,17,0,18,
+ 130,6,27,10,9,4,7,9,9,7,4,9,17,18,12,14,8,4,4,16,17,17,9,6,15,9,15,6,9,21,20,130,
+ 12,3,10,6,14,12,133,19,0,22,33,0,6,6,12,15,7,15,22,19,19,22,15,4,8,23,16,8,8,4,4,7,
+ 14,17,17,9,12,19,12,5,9,14,17,16,16,130,14,8,9,17,11,1,6,6,12,21,20,17,21,6,10,21,14,18,
+ 20,6,3,3,6,19,20,7,16,16,8,8,130,4,7,8,16,17,17,9,5,7,9,130,14,13,16,16,17,16,17,16,
+ 23,11,1,2,2,6,22,20,6,20,18,21,17,21,19,6,132,3,5,19,15,8,16,8,8,130,4,9,8,14,17,17,
+ 15,5,14,16,14,16,130,17,130,23,3,17,21,6,2,130,10,1,21,20,7,12,1,3,22,20,11,6,3,131,6,5,
+ 11,20,14,14,8,8,130,4,8,7,13,17,17,23,0,16,17,16,131,17,11,3,1,9,17,12,19,3,6,6,10,21,
+ 20,7,6,1,3,19,19,12,19,19,132,11,4,19,17,13,8,8,131,4,3,13,16,17,21,129,0,17,17,17,16,17,
+ 17,9,3,5,1,4,9,10,19,10,6,18,20,0,18,6,3,3,10,19,6,2,12,20,11,10,9,5,18,17,13,8,
+ 8,7,130,4,5,13,16,17,17,22,23,132,17,12,9,4,14,16,14,7,5,11,19,19,22,21,0,27,0,3,10,6,
+ 1,2,3,18,20,9,9,8,14,20,15,5,9,8,7,4,4,7,9,14,17,21,12,15,132,17,12,4,5,9,17,14,
+ 7,7,5,6,12,22,23,0,38,0,3,6,10,6,10,18,20,18,8,7,15,3,3,15,8,8,12,15,12,12,9,7,
+ 15,6,2,5,16,17,17,5,9,17,1,5,1,21,9,4,130,0,1,9,15,129,0,32,0,3,3,6,20,22,20,5,
+ 8,7,9,3,1,1,3,12,5,6,2,2,3,5,9,6,1,1,2,5,17,9,3,7,7,130,1,2,5,4,5,134,
+ 0,16,0,6,3,3,18,22,9,8,5,4,12,1,5,5,1,10,9,131,1,16,5,15,1,5,5,1,3,14,16,1,
+ 4,9,5,1,3,3,5,135,0,17,0,12,3,6,15,14,16,5,5,2,5,4,1,5,5,1,7,4,130,1,2,7,
+ 3,1,129,0,7,1,5,0,23,16,3,9,9,130,5,0,9,135,0,129,0,10,12,18,18,17,9,9,13,5,5,1,
+ 1,130,0,7,7,5,4,4,5,8,4,5,133,0,1,23,16,133,9,135,0,130,0,7,18,10,18,15,9,4,4,1,
+ 132,0,6,7,4,4,1,4,5,13,150,0,130,0,5,10,10,9,7,4,1,135,0,4,5,1,1,4,8,151,0,130,
+ 0,0,6,130,5,0,1,137,0,1,7,7,153,0,130,0,2,6,7,1,167,0,130,0,2,6,7,1,167,0,130,0,
+ 2,6,7,1,167,0,130,0,2,10,7,1,167,0,130,0,1,18,9,168,0,86,0,93,0,111,0,133,0,158,0,187,
+ 0,215,0,243,0,16,1,46,1,76,1,110,1,146,1,184,1,222,1,4,2,42,2,81,2,119,2,160,2,200,2,241,
+ 2,23,3,63,3,103,3,142,3,183,3,228,3,12,4,51,4,95,4,134,4,174,4,215,4,255,4,40,5,77,5,116,
+ 5,154,5,188,5,220,5,249,5,9,6,153,0,1,12,18,143,0,139,0,0,14,131,16,1,14,16,133,0,3,20,10,
+ 6,10,142,0,137,0,0,14,134,8,12,13,13,16,21,19,19,12,2,3,10,18,17,17,140,0,137,0,2,21,7,4,
+ 132,7,131,8,11,14,18,6,6,3,3,17,7,8,14,14,17,137,0,137,0,3,20,21,14,7,132,4,0,7,130,8,
+ 12,14,19,19,16,13,7,4,4,1,4,4,7,14,135,0,137,0,5,20,20,21,21,16,7,132,4,7,7,8,8,13,
+ 12,9,4,5,132,7,2,4,13,17,134,0,137,0,132,20,2,21,14,9,131,4,8,7,8,7,16,9,7,23,0,12,
+ 130,11,129,0,0,11,134,0,137,0,0,22,133,20,2,21,17,14,130,4,4,8,8,13,9,7,130,0,130,1,129,0,
+ 1,2,11,133,0,137,0,3,17,13,15,21,133,20,2,17,7,4,130,8,2,16,7,16,130,0,1,1,1,130,0,0,
+ 6,133,0,137,0,4,14,7,4,8,15,133,20,7,17,7,7,13,8,14,7,13,130,0,130,1,129,0,1,6,11,132,
+ 0,136,0,1,17,13,130,4,14,8,8,14,17,21,20,21,12,17,7,7,8,14,7,8,131,0,1,1,1,130,0,0,
+ 6,132,0,133,0,0,12,129,0,0,16,131,4,130,8,11,16,21,18,18,10,20,17,4,13,16,8,7,131,0,1,1,
+ 1,130,0,0,6,132,0,133,0,3,10,6,17,14,130,4,130,8,13,14,15,12,18,6,10,12,20,13,14,19,9,7,
+ 16,131,0,1,1,1,129,0,1,6,11,131,0,133,0,23,6,6,15,16,4,4,8,14,20,17,17,22,11,11,20,10,
+ 6,18,17,15,6,14,4,14,131,0,1,1,1,130,0,0,6,131,0,133,0,9,6,3,15,16,7,8,14,12,10,18,
+ 129,0,2,20,19,11,130,19,5,18,11,6,14,7,13,132,0,0,1,130,0,0,6,131,0,133,0,9,10,3,12,16,
+ 13,8,15,6,12,18,130,0,3,23,22,22,19,131,11,3,6,16,4,13,131,0,0,1,130,0,1,6,11,130,0,133,
+ 0,8,12,6,6,17,17,21,12,6,18,132,0,0,21,130,23,8,22,12,11,6,14,14,4,13,16,129,0,1,1,2,
+ 130,0,0,11,130,0,133,0,7,20,10,10,18,13,8,15,18,132,0,21,21,22,18,6,6,22,22,19,11,6,14,14,
+ 4,4,13,14,2,6,17,17,0,6,130,0,133,0,8,16,15,18,14,4,4,7,13,14,129,0,3,22,12,20,6,130,
+ 1,16,2,12,23,11,11,6,10,16,8,4,4,7,7,13,16,16,10,130,0,133,0,3,14,16,14,7,130,4,22,8,
+ 13,16,18,6,10,12,1,3,10,6,2,2,22,19,11,11,3,6,10,14,14,7,131,4,1,13,16,129,0,132,0,3,
+ 14,14,13,8,131,4,8,7,13,14,9,10,22,10,3,10,130,6,12,3,18,22,11,11,6,3,3,6,6,10,18,16,
+ 130,14,0,17,129,0,132,0,3,14,14,8,7,131,4,21,8,8,14,16,22,23,10,3,18,2,3,12,3,19,22,12,
+ 12,11,12,6,9,10,133,19,0,22,129,0,132,0,2,14,14,13,132,4,23,7,8,14,14,18,10,18,6,12,18,12,
+ 6,6,23,17,16,16,14,9,16,9,16,20,1,130,6,1,21,20,129,0,131,0,3,17,14,14,13,133,4,0,8,130,
+ 14,23,12,21,18,10,12,10,10,15,9,14,14,16,17,16,17,16,17,20,1,2,2,3,21,20,129,0,131,0,4,17,
+ 16,14,8,7,132,4,12,8,8,14,16,22,18,22,22,20,21,17,14,15,130,17,131,23,7,17,19,1,6,10,6,20,
+ 20,129,0,129,0,7,18,18,17,17,16,13,8,8,131,4,5,8,13,14,16,23,21,132,17,0,16,131,17,11,5,1,
+ 5,17,15,11,6,6,10,6,21,20,129,0,1,0,18,130,12,3,18,21,16,13,130,8,0,4,130,8,10,14,14,17,
+ 16,14,14,13,14,17,17,16,130,17,11,1,5,3,1,15,19,19,12,6,12,20,20,129,0,2,10,18,12,130,3,9,
+ 6,15,16,14,13,13,14,8,8,16,131,18,3,12,11,10,12,133,17,10,4,9,16,14,15,22,19,19,20,22,20,130,
+ 0,8,10,18,12,3,2,1,1,10,17,130,10,3,6,15,16,10,130,2,4,12,20,11,11,12,131,17,6,23,7,4,
+ 9,15,16,15,133,22,130,0,4,10,18,18,6,3,130,10,27,20,2,1,1,2,12,20,10,6,3,2,6,18,12,3,
+ 6,17,17,9,5,17,4,4,2,6,17,4,17,129,0,1,22,23,131,0,8,0,10,18,12,3,10,20,18,20,131,10,
+ 23,18,18,12,18,18,6,3,12,18,3,2,15,17,1,7,7,4,1,1,3,4,4,16,17,134,0,129,0,1,10,12,
+ 130,18,29,0,23,10,6,10,10,18,18,12,18,20,10,6,12,6,3,3,6,17,4,1,7,9,3,1,3,5,16,16,
+ 17,134,0,129,0,5,6,10,10,12,10,10,130,18,3,12,12,18,18,130,12,3,18,20,12,11,130,6,4,15,17,4,
+ 5,9,130,5,4,9,16,17,18,18,133,0,129,0,17,10,10,6,3,6,6,10,12,20,10,6,10,12,11,11,10,10,
+ 12,130,18,130,11,9,20,17,13,14,15,9,9,14,16,17,130,18,132,0,130,0,10,10,10,6,3,2,3,10,12,12,
+ 6,10,130,11,6,6,3,3,6,6,12,12,130,11,7,9,8,15,22,22,23,17,17,130,18,0,20,132,18,131,0,12,
+ 10,6,10,2,1,3,6,18,12,10,11,11,10,132,3,1,10,19,130,11,8,8,9,6,10,22,17,16,17,20,130,21,
+ 132,18,132,0,130,10,9,6,3,3,10,12,10,12,19,10,6,130,3,15,6,12,19,11,11,9,8,9,6,1,10,17,
+ 21,22,20,20,132,18,1,20,20,134,0,130,10,0,6,131,10,6,12,18,18,10,10,6,10,130,19,3,18,8,13,12,
+ 130,3,11,20,20,22,22,21,20,21,21,22,22,23,0,135,0,130,10,0,6,131,3,20,10,6,10,6,10,10,19,20,
+ 20,16,14,18,20,10,6,10,10,2,3,6,20,130,23,131,0,137,0,7,10,10,6,3,2,1,1,2,130,3,10,6,
+ 10,12,12,10,10,12,6,6,3,3,131,1,1,10,18,133,0,139,0,3,10,10,6,3,132,1,1,2,2,130,6,3,
+ 10,6,6,3,130,2,4,3,10,12,12,18,133,0,143,0,1,12,12,130,10,1,6,10,130,12,135,18,137,0,
+};
+static const jj_frame pic_mech_f[] = {{48,41,-27,-38,0},{57,42,-28,-41,1446},{48,39,-27,-38,3021},{57,43,-28,-43,4463},{52,55,-24,-52,6104},{46,42,-26,-48,7892},{46,42,-26,-48,9286},{46,42,-26,-48,10684},{44,42,-23,-48,12085}};
+static const jj_sheet pic_mech = {pic_mech_pal, pic_mech_data, pic_mech_f, 9, 8};
+static const uint16_t pic_hog_pal[] = {0,61240,54869,52626,44371,42192,44045,33807,27567,37641,31335,25388,25290,21197,21131,19017,16938,24996,16905,12745,12679,16709,8487,12549,16449,6439,6341,4261,2180,2148,67,2};
+static const uint8_t pic_hog_data[] = {
+ 66,0,75,0,90,0,103,0,115,0,130,0,145,0,160,0,176,0,198,0,221,0,245,0,14,1,34,1,45,1,63,1,
+ 88,1,118,1,149,1,184,1,219,1,7,2,50,2,91,2,132,2,172,2,210,2,249,2,34,3,73,3,108,3,132,3,
+ 142,3,141,0,3,17,0,10,10,151,0,136,0,9,21,17,17,10,10,9,10,9,9,24,150,0,135,0,3,17,9,10,
+ 10,133,17,0,24,150,0,134,0,2,17,9,10,130,17,132,24,151,0,134,0,0,24,131,17,5,24,9,1,3,10,24,
+ 151,0,134,0,0,24,131,17,5,24,3,6,5,1,6,151,0,134,0,0,24,131,17,5,24,3,6,17,10,9,151,0,
+ 134,0,1,24,17,130,24,5,10,3,9,11,21,9,151,0,134,0,10,24,24,10,3,17,6,2,2,4,24,3,137,0,
+ 2,7,8,12,138,0,135,0,1,24,2,130,6,5,1,1,2,5,3,9,134,0,3,5,5,18,18,139,0,135,0,9,
+ 24,6,1,3,9,3,1,3,3,9,133,0,5,5,6,9,10,8,7,139,0,136,0,8,24,6,3,9,6,5,5,6,
+ 10,131,0,7,5,5,9,10,17,17,12,20,139,0,137,0,1,24,10,132,9,131,0,7,7,6,10,17,17,21,23,26,
+ 140,0,147,0,5,7,12,17,17,21,23,143,0,145,0,7,6,3,11,15,21,23,12,8,130,0,1,18,15,138,0,136,
+ 0,1,26,13,132,0,14,29,12,1,1,3,10,26,0,18,7,16,22,27,7,4,138,0,1,0,12,133,0,12,28,26,
+ 19,16,16,22,25,19,13,14,3,3,12,131,0,5,31,8,4,25,12,7,138,0,2,18,2,12,131,0,12,26,19,8,
+ 19,25,16,13,13,14,25,30,23,10,132,0,5,31,28,7,4,25,11,138,0,3,22,2,2,12,129,0,5,26,16,8,
+ 19,25,26,131,30,1,31,31,129,0,10,30,27,16,19,16,25,31,27,16,15,18,138,0,15,14,15,2,2,12,27,20,
+ 16,16,20,25,30,30,29,29,26,130,0,12,28,19,8,2,2,4,14,25,31,26,4,4,26,137,0,15,4,7,18,2,
+ 2,18,27,25,26,28,31,31,22,22,25,25,129,0,2,29,19,16,130,13,7,16,25,28,22,0,15,2,4,129,0,4,
+ 26,25,25,26,29,130,0,13,11,1,7,18,2,2,11,18,26,19,11,14,29,25,130,13,9,25,29,26,20,25,20,25,
+ 28,28,22,130,0,9,18,2,4,26,7,4,4,7,19,25,129,0,20,0,11,1,7,18,4,1,1,5,22,13,4,19,
+ 28,19,13,8,13,25,30,29,130,28,1,30,18,132,0,3,18,2,4,18,130,16,3,13,14,22,0,12,0,31,12,1,
+ 5,15,12,11,8,20,31,20,16,130,25,9,13,8,13,28,29,30,31,29,11,15,132,0,10,31,18,2,4,29,31,31,
+ 22,13,16,28,5,0,30,27,12,4,1,131,4,14,12,30,20,19,7,29,28,13,8,28,23,2,4,11,5,133,0,5,
+ 25,29,19,2,4,12,129,0,2,20,14,26,5,0,30,26,28,26,18,132,15,13,26,31,16,2,7,15,25,27,29,7,
+ 2,5,11,4,133,0,10,22,19,31,18,2,1,11,0,22,14,27,5,0,28,20,28,0,26,131,18,14,22,22,23,26,
+ 4,1,4,11,18,20,11,11,18,11,7,133,0,10,20,14,27,0,8,4,12,0,20,14,29,24,0,30,14,19,28,0,
+ 26,26,29,28,27,28,28,30,30,14,4,1,4,22,27,16,14,13,19,133,0,2,25,13,22,129,0,5,15,0,30,16,
+ 14,30,11,0,31,22,12,19,28,29,27,25,20,20,30,131,0,4,31,12,19,16,7,131,4,0,22,132,0,10,30,16,
+ 14,22,29,28,27,19,11,22,31,129,0,9,30,20,14,11,8,5,4,7,26,31,133,0,2,31,31,30,132,31,132,0,
+ 10,31,27,16,14,11,7,4,5,14,30,0,130,0,7,30,26,16,14,14,16,28,31,148,0,2,31,29,20,130,14,1,
+ 20,30,129,0,132,0,131,31,152,0,131,31,131,0,66,0,77,0,91,0,102,0,114,0,130,0,146,0,161,0,177,0,
+ 199,0,222,0,246,0,15,1,34,1,45,1,63,1,90,1,119,1,151,1,186,1,221,1,9,2,53,2,95,2,137,2,
+ 178,2,217,2,2,3,45,3,84,3,121,3,145,3,155,3,140,0,1,17,17,129,0,0,9,151,0,136,0,8,21,17,
+ 17,10,10,9,10,9,9,151,0,135,0,3,10,9,10,10,133,17,151,0,134,0,2,17,10,10,130,17,132,24,151,0,
+ 134,0,10,24,17,17,21,17,24,9,1,3,10,24,151,0,134,0,10,24,17,17,21,17,24,3,6,5,1,6,151,0,
+ 134,0,0,24,131,17,5,24,3,6,17,10,9,151,0,134,0,1,24,17,130,24,5,10,3,9,11,21,9,151,0,134,
+ 0,10,24,24,10,3,17,6,2,2,4,24,3,137,0,2,7,8,12,138,0,135,0,1,24,2,130,6,5,1,1,2,
+ 5,3,9,134,0,3,5,5,18,18,139,0,135,0,9,24,6,1,3,9,3,1,3,3,9,133,0,5,5,6,9,10,
+ 8,7,139,0,136,0,8,24,6,3,9,6,5,5,6,10,131,0,7,5,5,9,10,17,17,12,20,139,0,137,0,0,
+ 24,133,9,131,0,7,7,6,10,17,17,21,23,26,140,0,147,0,5,7,12,17,17,21,23,143,0,145,0,7,6,3,
+ 11,15,21,23,12,8,130,0,1,18,15,138,0,136,0,3,28,16,13,13,130,0,14,29,12,1,1,3,10,26,0,18,
+ 7,16,22,27,7,4,138,0,133,0,14,19,11,16,25,29,28,16,20,25,19,13,14,3,3,10,131,0,5,31,8,4,
+ 25,12,7,138,0,2,0,11,4,130,0,0,25,130,8,9,14,20,16,13,13,14,25,30,23,10,132,0,5,31,28,7,
+ 4,25,11,138,0,3,0,14,1,5,129,0,6,30,16,8,8,13,20,26,130,30,1,31,31,130,0,1,30,25,130,16,
+ 4,28,27,16,15,18,138,0,16,0,15,11,1,5,0,25,22,25,26,26,27,30,29,29,26,23,130,0,11,27,16,4,
+ 2,2,7,19,31,29,4,4,26,137,0,16,18,2,15,11,1,5,22,26,22,25,22,29,29,22,20,25,25,129,0,2,
+ 27,16,14,130,13,6,19,27,27,22,14,2,4,129,0,4,26,27,25,22,28,130,0,27,0,5,1,15,11,1,5,12,
+ 22,20,4,4,19,31,19,13,13,16,25,29,25,20,25,20,25,28,28,22,129,0,9,18,2,4,26,16,8,4,4,13,
+ 26,129,0,129,0,18,5,1,15,12,2,1,1,11,26,8,8,26,27,16,13,8,13,28,30,130,28,2,29,28,18,131,
+ 0,10,18,2,4,20,18,14,11,11,14,22,0,6,0,31,29,5,1,7,15,130,11,16,27,31,16,19,22,25,25,13,
+ 8,19,29,29,31,31,26,8,20,131,0,10,31,18,2,4,29,31,31,22,13,16,28,6,0,30,27,26,7,2,2,131,
+ 4,14,20,28,25,14,12,30,25,8,13,31,12,2,8,7,7,132,0,5,25,29,19,2,4,12,129,0,2,20,14,26,
+ 5,0,28,22,28,27,22,132,15,14,18,29,31,7,4,11,19,19,29,23,5,2,8,5,7,132,0,10,22,19,31,18,
+ 2,1,11,0,22,14,27,3,0,29,15,25,129,0,0,22,131,18,14,26,20,26,15,2,2,5,15,18,15,8,12,20,
+ 7,12,132,0,10,20,14,27,0,8,4,12,0,20,14,29,4,0,30,14,16,29,129,0,18,26,29,28,27,27,29,27,
+ 31,26,7,2,1,8,26,25,14,14,13,22,132,0,2,25,13,22,129,0,5,15,0,29,16,14,30,11,0,31,20,8,
+ 19,26,28,29,26,16,20,30,132,0,4,26,12,22,13,5,130,4,0,8,132,0,10,30,15,14,22,28,29,28,19,14,
+ 22,31,129,0,9,30,14,5,4,7,11,13,14,26,31,134,0,2,31,31,30,130,31,0,30,132,0,10,31,26,8,4,
+ 5,8,11,14,20,30,0,130,0,1,31,20,130,14,2,20,29,31,148,0,7,31,28,16,14,14,16,26,30,129,0,132,
+ 0,131,31,152,0,131,31,131,0,66,0,76,0,91,0,102,0,115,0,130,0,146,0,161,0,177,0,199,0,222,0,246,
+ 0,15,1,34,1,45,1,63,1,89,1,122,1,154,1,190,1,225,1,13,2,56,2,97,2,138,2,178,2,216,2,255,
+ 2,39,3,78,3,113,3,137,3,147,3,141,0,0,10,130,0,0,9,150,0,136,0,0,21,130,17,5,10,9,10,9,
+ 9,10,150,0,135,0,1,17,9,130,10,133,17,150,0,134,0,5,17,9,10,17,17,21,133,24,150,0,134,0,0,24,
+ 131,17,5,24,9,1,3,10,24,151,0,134,0,10,24,17,17,21,17,24,3,6,5,1,6,151,0,134,0,0,24,131,
+ 17,5,24,3,6,17,10,9,151,0,134,0,1,24,17,130,24,5,10,3,9,11,21,9,151,0,134,0,10,24,24,10,
+ 3,17,6,2,2,4,24,3,137,0,2,7,8,12,138,0,135,0,1,24,2,130,6,5,1,1,2,5,3,9,134,0,
+ 3,5,5,18,18,139,0,135,0,9,24,6,1,3,9,3,1,3,3,9,133,0,5,5,6,9,10,8,7,139,0,136,
+ 0,8,24,6,3,9,6,5,5,6,10,131,0,7,5,5,9,10,17,17,12,20,139,0,137,0,0,24,133,9,131,0,
+ 7,7,6,10,17,17,21,23,26,140,0,147,0,5,7,12,17,17,21,23,143,0,145,0,7,6,3,11,15,21,23,12,
+ 8,130,0,1,18,15,138,0,136,0,0,26,130,13,130,0,14,29,12,1,1,3,10,26,0,18,7,16,22,27,7,4,
+ 138,0,1,0,12,131,0,1,28,27,129,0,10,29,28,16,20,25,19,13,14,3,3,12,131,0,5,31,8,4,25,12,
+ 7,138,0,2,18,2,12,130,0,13,27,13,19,16,19,25,16,13,13,14,25,30,23,10,132,0,5,31,28,7,4,25,
+ 11,138,0,3,22,2,2,12,129,0,11,30,16,7,8,20,20,26,30,29,30,31,31,129,0,10,30,27,16,19,16,25,
+ 31,27,16,15,18,138,0,15,14,15,2,2,12,27,20,28,20,13,13,25,28,31,31,26,130,0,12,28,19,8,2,2,
+ 4,14,25,31,26,4,4,26,137,0,15,4,7,18,2,2,18,27,25,25,29,26,25,30,31,25,25,129,0,2,29,19,
+ 16,130,13,7,16,25,28,22,0,15,2,4,129,0,4,26,25,25,26,29,130,0,13,11,1,7,18,2,2,11,18,26,
+ 19,13,26,30,25,130,13,9,25,29,26,20,25,20,25,28,28,22,130,0,9,18,2,4,26,7,4,4,7,19,25,129,
+ 0,20,0,11,1,7,18,4,1,1,5,22,13,7,19,29,19,13,8,13,25,30,29,130,28,1,30,18,132,0,3,18,
+ 2,4,18,130,16,3,13,14,22,0,25,0,31,12,1,5,15,12,11,8,20,31,19,16,25,22,25,13,8,13,28,29,
+ 30,31,29,11,15,132,0,10,31,18,2,4,29,31,31,22,13,16,28,5,0,30,27,12,4,1,131,4,14,12,30,20,
+ 19,7,29,28,13,8,28,23,2,4,11,5,133,0,5,25,29,19,2,4,12,129,0,2,20,14,26,5,0,30,26,28,
+ 26,18,132,15,13,26,31,16,2,7,15,25,27,29,7,2,5,11,4,133,0,10,22,19,31,18,2,1,11,0,22,14,
+ 27,5,0,28,20,28,0,26,131,18,14,22,22,23,26,4,1,4,11,18,20,11,11,18,11,7,133,0,10,20,14,27,
+ 0,8,4,12,0,20,14,29,8,0,30,14,19,28,0,26,26,27,131,28,11,30,30,14,4,1,4,22,27,16,14,13,
+ 19,133,0,2,25,13,22,129,0,5,15,0,30,16,14,30,11,0,31,22,12,19,28,29,30,25,20,20,30,131,0,4,
+ 31,12,19,16,7,131,4,0,22,132,0,10,30,16,14,22,29,28,27,19,11,22,31,129,0,9,30,20,14,11,8,8,
+ 5,7,26,31,133,0,2,31,31,30,132,31,132,0,10,31,27,16,14,11,7,4,5,14,30,0,130,0,7,30,26,16,
+ 14,14,16,28,31,148,0,2,31,29,20,130,14,1,20,30,129,0,132,0,131,31,152,0,131,31,131,0,66,0,75,0,
+ 89,0,101,0,113,0,128,0,143,0,158,0,174,0,196,0,219,0,243,0,12,1,31,1,42,1,60,1,86,1,111,1,
+ 141,1,175,1,210,1,253,1,41,2,83,2,125,2,167,2,206,2,248,2,35,3,74,3,111,3,135,3,145,3,141,0,
+ 3,17,17,0,10,151,0,136,0,8,21,17,17,10,10,9,10,9,9,151,0,135,0,4,17,9,9,10,10,132,17,151,
+ 0,134,0,2,17,9,10,130,17,132,24,151,0,134,0,0,24,131,17,5,24,9,1,3,10,24,151,0,134,0,0,24,
+ 131,17,5,24,3,6,5,1,6,151,0,134,0,0,24,131,17,5,24,3,6,17,10,9,151,0,134,0,1,24,17,130,
+ 24,5,10,3,9,11,21,9,151,0,134,0,10,24,24,10,3,17,6,2,2,4,24,3,137,0,2,7,8,12,138,0,
+ 135,0,1,24,2,130,6,5,1,1,2,5,3,9,134,0,3,5,5,18,18,139,0,135,0,9,24,6,1,3,9,3,
+ 1,3,3,9,133,0,5,5,6,9,10,8,7,139,0,136,0,8,24,6,3,9,6,5,5,6,10,131,0,7,5,5,
+ 9,10,17,17,12,20,139,0,137,0,0,24,133,9,131,0,7,7,6,10,17,17,21,23,26,140,0,147,0,5,7,12,
+ 17,17,21,23,143,0,145,0,7,6,3,11,15,21,23,12,8,130,0,1,18,15,138,0,136,0,2,28,16,13,131,0,
+ 14,29,12,1,1,3,10,26,0,18,7,16,22,27,7,4,138,0,137,0,10,30,26,13,20,25,19,13,14,3,3,10,
+ 131,0,5,31,8,4,25,12,7,138,0,2,0,11,4,132,0,11,28,16,13,20,19,13,13,14,25,30,23,10,132,0,
+ 5,31,29,7,4,25,11,138,0,3,0,14,1,5,130,0,10,13,8,8,14,20,26,30,29,30,31,31,130,0,1,30,
+ 25,130,16,4,30,27,16,15,18,138,0,16,0,15,11,1,5,0,29,19,13,8,19,25,28,31,31,26,23,130,0,11,
+ 27,16,4,2,2,7,19,31,29,4,4,26,137,0,13,18,2,15,11,1,5,26,30,29,22,22,25,31,30,130,25,129,
+ 0,2,27,16,14,130,13,6,19,28,27,22,14,2,4,129,0,4,26,27,25,22,28,130,0,27,0,5,1,15,11,1,
+ 5,11,22,30,25,26,26,29,19,13,13,16,25,29,25,20,25,20,25,28,28,22,129,0,9,18,2,4,26,16,8,4,
+ 4,13,26,129,0,129,0,18,5,1,15,12,2,1,1,8,27,13,8,25,28,16,13,8,13,28,30,130,28,2,29,28,
+ 18,131,0,10,18,2,4,20,18,14,11,11,14,22,0,6,0,31,29,5,1,7,15,130,11,16,27,30,16,19,22,25,
+ 25,13,8,19,29,29,31,31,26,8,20,131,0,10,31,18,2,4,29,31,31,22,13,16,28,25,0,30,27,26,7,2,
+ 2,4,4,3,4,20,28,25,14,12,30,25,8,13,31,12,2,8,7,7,132,0,5,25,29,19,2,4,12,129,0,2,
+ 20,14,26,5,0,28,22,29,27,22,132,15,14,18,29,31,7,4,11,19,19,29,23,5,2,8,5,7,132,0,10,22,
+ 19,31,18,2,1,11,0,22,14,27,3,0,29,15,22,129,0,19,22,18,18,20,20,26,20,29,15,2,2,5,15,18,
+ 15,8,12,20,7,12,132,0,10,20,14,27,0,8,4,12,0,20,14,29,4,0,30,14,16,29,129,0,18,26,27,22,
+ 20,27,29,27,31,26,7,2,1,8,26,25,14,14,13,22,132,0,2,25,13,22,129,0,5,15,0,29,16,14,30,11,
+ 0,31,20,8,19,26,28,29,25,14,14,30,132,0,4,26,12,22,13,5,130,4,0,8,132,0,10,30,15,14,22,28,
+ 29,28,19,14,22,31,129,0,9,30,14,5,4,7,11,14,16,27,31,134,0,2,31,31,30,130,31,0,30,132,0,10,
+ 31,26,8,4,5,8,11,14,20,30,0,130,0,1,31,20,130,14,2,20,29,31,148,0,7,31,28,16,14,14,16,26,
+ 30,129,0,132,0,131,31,152,0,131,31,131,0,60,0,67,0,75,0,84,0,95,0,108,0,122,0,154,0,191,0,231,
+ 0,14,1,56,1,94,1,133,1,173,1,211,1,249,1,31,2,68,2,99,2,130,2,159,2,186,2,211,2,228,2,244,
+ 2,4,3,19,3,33,3,45,3,151,0,1,7,18,143,0,150,0,2,7,18,20,143,0,149,0,3,5,12,18,7,143,
+ 0,148,0,5,5,9,17,12,22,20,142,0,147,0,7,5,9,17,17,23,26,5,11,141,0,146,0,8,5,9,17,17,
+ 27,27,15,4,8,141,0,134,0,1,10,9,130,17,3,10,10,17,10,129,0,10,5,9,17,17,23,11,16,22,18,5,
+ 18,132,0,131,30,131,0,133,0,1,10,9,131,10,16,9,10,9,6,10,7,11,17,17,23,29,16,8,7,16,20,26,
+ 131,0,6,26,11,7,7,11,20,27,129,0,132,0,0,24,131,17,10,21,24,24,21,17,10,17,11,15,21,23,129,0,
+ 11,31,31,20,28,7,5,18,26,31,22,7,5,130,11,3,13,14,26,0,132,0,0,24,131,17,1,24,24,130,17,12,
+ 24,24,18,18,22,26,31,27,14,20,31,31,8,130,2,3,11,15,15,26,130,31,3,20,14,16,0,132,0,21,24,17,
+ 17,21,17,24,3,1,1,3,10,3,5,9,26,29,11,4,2,13,28,26,129,0,6,18,7,4,1,4,7,18,129,0,
+ 3,30,20,14,26,131,0,0,24,132,17,15,24,3,6,10,9,6,1,2,10,28,8,2,4,13,25,28,131,0,3,31,
+ 27,18,7,130,2,4,8,0,22,14,26,131,0,8,24,24,17,24,24,21,6,3,9,130,10,9,6,10,30,19,11,8,
+ 19,20,29,22,132,0,10,26,26,29,18,5,4,12,0,22,14,29,131,0,21,24,24,21,3,10,10,1,9,4,23,10,
+ 30,0,31,28,19,19,20,25,29,20,18,132,0,5,22,13,22,0,15,12,129,0,2,16,14,29,132,0,13,24,5,2,
+ 6,6,1,2,1,21,6,10,0,28,28,130,27,3,31,31,11,14,132,0,3,29,14,16,26,130,0,3,22,14,20,31,
+ 132,0,20,24,10,1,3,6,3,1,1,3,3,6,28,18,26,30,30,31,26,18,5,8,132,0,1,31,25,130,14,5,
+ 11,7,5,11,29,0,132,0,21,29,24,10,3,9,6,2,3,6,6,8,13,19,20,28,29,18,2,4,7,2,22,132,
+ 0,7,31,26,19,11,8,8,14,28,129,0,2,4,4,12,130,0,20,25,24,10,9,9,6,6,9,16,13,8,13,28,
+ 22,20,5,3,7,18,2,15,134,0,1,31,30,130,31,130,0,27,11,2,1,4,12,30,25,27,23,17,15,7,5,15,
+ 28,28,13,8,19,22,20,7,7,18,28,14,11,19,141,0,27,20,18,12,2,1,7,18,18,14,16,26,25,16,16,25,
+ 31,19,8,16,15,12,20,26,16,4,4,7,25,141,0,25,18,2,7,20,12,2,1,2,1,2,18,23,29,29,19,25,
+ 28,31,31,7,7,25,13,4,8,26,143,0,6,0,12,4,2,7,18,12,130,11,13,4,2,15,30,30,19,4,5,5,
+ 2,11,25,16,20,145,0,129,0,9,22,12,4,1,4,5,2,2,5,20,130,22,0,30,130,22,2,26,29,31,147,0,
+ 130,0,11,30,26,12,5,5,12,26,26,18,18,27,31,154,0,130,0,10,31,26,29,31,31,26,18,18,26,27,28,155,
+ 0,130,0,3,31,19,20,28,130,0,3,31,28,16,26,155,0,131,0,9,26,14,16,22,22,16,14,8,16,31,155,0,
+ 131,0,8,31,26,16,11,7,5,5,11,29,156,0,132,0,6,31,30,25,22,25,27,31,157,0,68,0,74,0,81,0,
+ 90,0,103,0,128,0,154,0,183,0,212,0,246,0,27,1,62,1,99,1,139,1,178,1,215,1,243,1,16,2,47,2,
+ 77,2,105,2,131,2,154,2,176,2,193,2,213,2,229,2,244,2,5,3,23,3,38,3,53,3,66,3,72,3,145,0,
+ 0,18,148,0,144,0,1,8,15,148,0,143,0,3,5,12,15,15,147,0,143,0,3,5,10,17,20,129,0,0,11,144,
+ 0,142,0,4,5,6,10,17,23,129,0,1,7,7,134,0,6,28,16,11,11,16,26,29,129,0,142,0,9,5,9,17,
+ 23,0,31,31,26,12,11,132,0,9,25,13,4,5,5,7,14,19,27,0,141,0,25,5,6,10,17,15,11,20,8,16,
+ 26,19,20,20,26,0,30,16,8,14,28,29,27,16,14,19,0,141,0,18,5,10,10,21,18,18,22,13,8,8,14,2,
+ 1,4,11,11,12,26,31,130,0,3,28,19,16,26,132,0,0,17,135,0,3,6,10,17,23,129,0,19,31,31,30,27,
+ 20,15,11,7,4,2,1,4,5,4,5,12,0,22,14,26,131,0,1,17,9,132,10,13,17,10,9,11,21,21,22,0,
+ 31,28,20,28,29,20,130,0,11,22,22,18,12,7,2,2,12,0,22,14,28,130,0,0,17,135,10,12,9,9,21,18,
+ 22,0,31,25,4,7,25,28,20,131,0,5,26,25,30,0,12,8,129,0,2,19,14,29,129,0,0,24,131,17,0,21,
+ 131,24,12,17,17,9,3,17,31,22,4,4,16,27,28,20,131,0,2,26,14,19,131,0,3,27,14,18,31,129,0,22,
+ 24,17,17,21,17,21,17,6,9,9,17,24,6,9,29,30,8,2,13,25,28,26,20,131,0,10,31,20,12,16,20,16,
+ 14,8,11,27,0,129,0,22,24,17,17,21,17,24,6,1,3,2,6,10,10,26,30,27,8,11,19,25,30,15,18,132,
+ 0,9,30,20,14,8,7,5,7,22,31,0,129,0,11,24,17,21,21,17,24,6,6,10,17,9,23,130,0,7,19,16,
+ 20,25,29,31,7,18,133,0,5,31,29,26,27,27,31,130,0,129,0,7,24,24,21,17,24,6,3,9,130,10,0,12,
+ 130,0,7,27,25,27,30,31,15,7,5,142,0,129,0,15,24,21,3,3,10,2,5,2,14,17,12,19,19,0,19,27,
+ 130,31,4,7,1,11,1,7,141,0,129,0,25,24,10,1,6,6,3,1,1,7,6,6,19,16,25,13,12,30,26,18,
+ 4,5,12,18,14,19,25,139,0,130,0,6,24,6,1,6,6,1,1,130,3,14,13,8,8,19,25,28,22,18,7,7,
+ 19,27,4,4,20,139,0,131,0,22,24,6,9,9,5,3,9,10,22,28,19,8,8,25,26,20,20,12,19,25,7,4,
+ 25,140,0,132,0,20,24,6,9,9,6,9,5,4,14,28,25,8,13,29,12,7,20,20,8,8,26,141,0,133,0,17,
+ 19,18,20,27,26,19,16,8,13,25,13,27,29,4,2,20,19,19,143,0,132,0,130,26,14,22,11,8,18,26,31,25,
+ 25,30,12,5,4,11,29,31,144,0,1,7,2,135,1,8,5,18,7,12,29,26,30,12,18,148,0,4,0,11,7,8,
+ 8,130,11,8,7,11,20,4,3,18,20,20,29,150,0,2,0,20,14,133,12,6,8,2,5,26,22,22,31,151,0,129,
+ 0,0,11,134,2,5,11,26,20,26,29,31,151,0,130,0,0,22,131,27,7,26,26,20,15,27,28,20,30,151,0,131,
+ 0,3,31,28,26,27,129,0,5,27,0,28,16,16,31,151,0,132,0,9,28,14,14,26,28,27,26,16,13,26,152,0,
+ 132,0,9,31,26,14,12,11,7,4,5,19,31,152,0,133,0,2,31,28,20,130,14,1,22,31,153,0,135,0,131,31,
+ 155,0,
+};
+static const jj_frame pic_hog_f[] = {{42,32,-20,-30,0},{42,32,-20,-30,910},{42,32,-20,-30,1833},{42,32,-20,-30,2748},{42,29,-20,-29,3661},{40,33,-18,-31,4474}};
+static const jj_sheet pic_hog = {pic_hog_pal, pic_hog_data, pic_hog_f, 6, 8};
+static const uint16_t pic_bird_pal[] = {0,65396,61136,62957,54729,58702,58508,48390,40039,54184,39845,51878,39589,29447,27334,27237,51655,49510,45413,39298,43268,37059,34946,34882,27076,30945,16773,18626,28737,22561,18432,6177};
+static const uint8_t pic_bird_data[] = {
+ 72,0,78,0,91,0,106,0,123,0,143,0,169,0,201,0,233,0,12,1,46,1,79,1,111,1,143,1,175,1,208,1,
+ 229,1,247,1,13,2,34,2,54,2,78,2,101,2,122,2,144,2,168,2,195,2,227,2,4,3,37,3,62,3,87,3,
+ 101,3,113,3,123,3,130,3,158,0,0,15,135,0,152,0,7,27,27,24,14,14,15,10,24,134,0,150,0,9,24,15,
+ 15,14,14,13,13,14,13,27,134,0,150,0,11,13,13,15,24,24,30,27,30,27,30,12,10,132,0,149,0,14,15,14,
+ 24,27,24,27,15,13,27,31,8,2,4,10,10,130,0,135,0,2,23,31,14,138,0,0,27,130,24,1,27,24,130,1,
+ 1,12,5,131,1,2,4,10,0,131,0,0,23,130,20,3,16,29,26,13,137,0,0,27,130,24,8,27,14,5,14,9,
+ 9,4,3,3,130,1,1,2,15,1,18,9,130,6,131,5,3,16,31,26,26,136,0,1,27,24,130,27,6,12,5,12,
+ 27,24,4,3,131,4,1,10,0,2,0,17,6,130,5,6,1,2,1,5,29,26,14,136,0,11,27,27,15,15,30,2,
+ 8,2,26,24,6,4,130,7,0,24,129,0,5,0,30,20,16,17,9,131,6,3,17,31,14,26,135,0,14,30,15,5,
+ 6,12,2,1,1,13,6,5,7,7,10,24,130,0,130,0,11,21,17,17,16,16,11,9,9,29,31,13,26,134,0,12,
+ 26,14,1,6,9,5,1,1,2,5,9,7,12,132,0,130,0,11,30,28,20,17,17,16,16,11,16,31,26,13,134,0,
+ 11,8,30,12,1,9,13,5,5,6,13,12,24,133,0,132,0,2,30,29,21,130,18,5,16,18,31,26,13,26,131,0,
+ 11,13,1,13,27,12,11,12,8,8,9,12,24,134,0,129,0,0,23,130,20,11,28,28,21,17,18,18,17,20,31,26,
+ 13,14,130,26,131,13,5,26,13,15,26,24,24,136,0,129,0,19,30,11,6,5,5,6,11,11,16,17,18,17,21,31,
+ 31,26,14,14,13,13,130,14,4,13,26,31,31,24,137,0,131,0,0,20,133,16,6,17,18,18,17,18,23,30,136,31,
+ 1,29,30,138,0,132,0,0,22,131,20,135,17,133,21,4,22,21,18,16,28,138,0,132,0,4,30,21,21,23,23,130,
+ 21,131,18,134,17,4,16,16,17,16,28,138,0,134,0,2,21,20,21,130,23,130,22,0,21,133,18,131,20,1,18,29,
+ 138,0,135,0,4,30,22,21,23,23,136,29,6,30,29,23,28,28,23,29,138,0,133,0,8,25,21,25,25,21,22,29,
+ 27,19,134,11,6,12,29,28,22,23,22,29,138,0,133,0,0,21,130,16,4,21,23,19,9,6,135,3,5,19,28,22,
+ 23,22,29,138,0,134,0,5,30,21,23,23,19,6,137,3,1,19,22,130,23,1,29,15,137,0,135,0,3,28,20,19,
+ 6,136,3,2,2,11,28,130,23,3,28,10,12,24,136,0,136,0,0,25,130,3,0,6,135,3,10,25,29,23,28,23,
+ 25,7,4,10,24,12,134,0,136,0,4,9,1,2,3,6,133,3,13,1,11,28,20,18,18,25,8,7,7,4,8,15,
+ 24,133,0,135,0,18,19,2,1,3,6,3,3,5,6,3,3,1,3,22,23,18,18,20,12,131,7,4,4,4,12,24,
+ 15,131,0,135,0,5,12,1,4,3,2,2,131,3,10,1,2,19,30,29,29,30,24,10,15,12,130,10,4,7,4,7,
+ 15,15,130,0,135,0,6,25,19,2,1,1,3,2,130,1,1,2,12,132,0,0,24,130,10,1,15,15,130,12,3,10,
+ 4,4,15,129,0,135,0,5,25,2,1,1,6,2,130,1,1,2,12,134,0,3,24,10,7,7,134,10,130,0,135,0,
+ 4,25,1,1,6,3,130,1,1,2,12,137,0,1,24,24,131,10,1,24,24,131,0,135,0,3,25,6,9,3,130,1,
+ 1,2,12,150,0,136,0,1,25,25,130,1,1,3,12,151,0,137,0,4,25,6,6,12,25,152,0,138,0,1,25,25,
+ 154,0,64,0,70,0,83,0,98,0,113,0,130,0,156,0,189,0,222,0,2,1,35,1,71,1,106,1,140,1,174,1,
+ 208,1,229,1,247,1,13,2,35,2,56,2,79,2,102,2,123,2,146,2,177,2,210,2,246,2,27,3,49,3,70,3,
+ 77,3,158,0,0,15,136,0,152,0,7,27,27,24,14,14,15,8,24,135,0,150,0,9,24,15,15,14,14,13,13,14,
+ 13,24,135,0,150,0,9,13,13,15,24,24,30,27,30,27,30,135,0,149,0,11,15,14,24,27,24,27,15,13,27,31,
+ 12,10,134,0,135,0,2,23,31,14,138,0,0,27,130,24,10,27,24,1,1,2,12,5,4,4,10,12,131,0,131,0,
+ 0,23,130,20,3,16,29,26,13,137,0,0,27,130,24,12,27,14,5,14,8,9,2,1,1,2,2,10,15,129,0,1,
+ 18,9,130,6,131,5,3,16,31,26,26,136,0,1,27,24,130,27,6,12,5,12,27,24,5,2,131,1,0,4,129,0,
+ 2,0,17,6,130,5,6,1,2,1,5,29,26,14,136,0,11,27,27,15,15,30,2,8,2,26,24,6,4,130,3,3,
+ 1,1,4,10,5,0,30,20,16,17,9,131,6,3,17,31,14,26,135,0,10,30,15,5,6,12,2,1,1,13,6,5,
+ 133,4,1,10,24,130,0,11,21,17,17,16,16,11,9,9,29,31,13,26,134,0,10,26,14,1,6,9,5,1,1,2,
+ 5,10,131,7,1,10,24,129,0,130,0,11,30,28,20,17,17,16,16,11,16,31,26,13,134,0,14,8,30,12,1,9,
+ 13,5,5,6,13,8,7,7,10,24,131,0,132,0,2,30,29,21,130,18,5,16,18,31,26,13,26,131,0,6,13,1,
+ 13,27,12,11,12,130,8,3,13,8,10,24,133,0,129,0,0,23,130,20,11,28,28,21,17,18,18,17,20,31,26,13,
+ 14,130,26,131,13,7,26,13,15,26,24,10,10,24,135,0,129,0,19,30,11,6,5,5,6,11,11,16,17,18,17,21,
+ 31,31,26,14,14,13,13,130,14,5,13,26,31,31,24,15,137,0,131,0,0,20,133,16,6,17,18,18,17,18,23,30,
+ 136,31,1,29,30,139,0,132,0,0,22,131,20,135,17,133,21,4,22,21,18,16,28,139,0,132,0,4,30,21,21,23,
+ 23,130,21,131,18,134,17,4,16,16,17,16,28,139,0,134,0,2,21,20,21,130,23,130,22,1,21,20,131,18,132,20,
+ 1,18,29,139,0,135,0,4,30,22,21,23,23,131,29,133,30,5,29,23,28,28,23,29,139,0,133,0,8,25,21,25,
+ 25,21,22,29,25,25,135,19,5,30,28,22,23,22,29,139,0,133,0,0,21,130,16,4,21,21,19,11,11,135,9,5,
+ 25,28,22,23,22,29,139,0,134,0,4,30,21,23,19,11,138,9,7,12,22,23,23,22,29,24,24,137,0,135,0,5,
+ 28,19,9,6,9,11,136,9,0,25,131,23,4,25,7,10,24,24,135,0,135,0,7,19,6,9,11,9,9,6,6,131,
+ 9,14,6,9,28,28,23,28,23,25,10,7,4,7,10,24,24,133,0,135,0,6,19,11,9,3,3,6,9,130,6,5,
+ 5,3,9,23,21,18,130,20,0,24,131,7,4,4,7,10,15,15,131,0,134,0,3,25,9,3,3,130,9,8,4,3,
+ 3,2,2,9,23,23,20,130,18,9,20,24,12,12,10,7,10,7,4,4,130,10,129,0,134,0,11,12,2,5,11,9,
+ 6,3,3,2,3,9,25,130,30,10,29,29,30,30,24,7,10,10,12,15,15,130,10,2,4,7,12,129,0,135,0,3,
+ 24,12,3,3,130,2,1,9,19,137,0,2,12,10,7,134,10,131,0,136,0,5,12,2,2,6,9,19,141,0,1,24,
+ 12,130,10,1,15,24,132,0,137,0,1,12,12,156,0,58,0,64,0,77,0,92,0,107,0,122,0,143,0,169,0,196,
+ 0,227,0,4,1,39,1,75,1,113,1,153,1,195,1,231,1,8,2,41,2,64,2,82,2,107,2,139,2,166,2,191,
+ 2,222,2,252,2,18,3,33,3,158,0,0,15,137,0,152,0,7,27,27,24,14,14,15,8,24,136,0,150,0,9,24,
+ 15,15,14,14,13,13,14,13,24,136,0,150,0,9,13,13,15,24,24,30,27,30,27,30,136,0,149,0,9,15,14,24,
+ 27,24,27,15,13,27,30,137,0,135,0,2,23,31,14,138,0,0,27,130,24,1,27,24,130,1,0,9,137,0,131,0,
+ 0,23,130,20,3,16,29,26,13,137,0,0,27,130,24,5,27,14,5,14,8,6,137,0,1,18,9,130,6,131,5,3,
+ 16,31,26,26,136,0,1,27,24,130,27,4,12,5,12,27,12,137,0,2,0,17,6,130,5,6,1,2,1,5,29,26,
+ 14,136,0,11,27,27,15,15,30,2,8,2,26,24,10,10,135,0,5,0,30,20,16,17,9,131,6,3,17,31,14,26,
+ 135,0,13,30,15,5,6,12,2,1,1,13,6,5,4,7,10,133,0,130,0,11,21,17,17,16,16,11,9,9,29,31,
+ 13,26,134,0,14,26,14,1,6,9,5,1,1,2,5,6,1,2,4,7,132,0,130,0,11,30,28,20,17,17,16,16,
+ 11,18,31,26,13,134,0,10,8,30,12,1,9,13,5,5,6,14,2,130,1,1,2,7,131,0,132,0,11,30,29,21,
+ 17,20,11,9,19,30,26,14,26,131,0,6,13,1,13,27,12,11,12,130,8,2,13,4,2,130,1,1,2,7,130,0,
+ 129,0,0,23,130,20,4,28,23,21,21,12,130,3,2,10,24,14,131,26,131,13,14,26,13,15,26,13,7,4,3,4,
+ 4,2,1,1,2,10,129,0,129,0,18,30,11,6,5,5,9,11,11,25,19,12,9,3,3,9,15,14,14,13,131,14,
+ 6,13,26,31,31,10,7,4,130,3,6,4,4,3,1,4,15,0,131,0,6,20,16,16,25,11,9,12,131,19,4,9,
+ 6,6,12,27,134,31,14,29,30,10,7,7,4,7,4,4,3,4,3,1,8,0,132,0,7,22,20,21,25,19,12,11,
+ 12,131,19,12,12,9,9,19,23,21,21,22,21,18,16,28,15,135,7,130,4,0,10,132,0,2,30,21,21,131,19,1,
+ 12,12,132,19,3,9,9,18,17,130,16,3,17,16,29,15,134,7,4,10,10,15,10,24,134,0,0,21,139,19,2,12,
+ 10,18,131,20,5,18,29,15,7,10,15,132,24,131,0,135,0,2,29,29,25,138,19,6,11,19,28,23,28,23,29,140,
+ 0,133,0,4,25,21,25,25,21,130,25,136,19,5,25,28,22,23,22,29,131,24,0,15,135,0,133,0,0,21,130,16,
+ 1,21,22,132,25,132,19,10,25,29,28,22,23,22,30,15,7,7,8,131,12,1,15,10,130,0,134,0,1,30,21,130,
+ 23,0,22,137,25,8,19,21,23,23,22,30,14,4,7,134,4,0,10,129,0,135,0,3,28,18,20,23,138,28,0,21,
+ 130,23,4,22,29,24,10,10,133,7,0,10,130,0,136,0,4,29,21,18,20,21,130,28,132,29,1,28,23,130,28,4,
+ 23,30,24,12,15,130,12,2,10,7,10,131,0,138,0,5,29,22,20,21,22,22,130,23,2,21,20,18,131,20,2,18,
+ 28,24,130,10,3,8,7,10,24,132,0,140,0,6,30,29,28,28,23,22,20,135,18,6,23,15,7,7,10,10,15,134,
+ 0,144,0,0,30,133,29,130,30,1,29,30,131,24,136,0,60,0,66,0,79,0,94,0,109,0,124,0,145,0,172,0,
+ 202,0,236,0,15,1,51,1,89,1,128,1,169,1,206,1,234,1,3,2,27,2,48,2,69,2,92,2,126,2,150,2,
+ 178,2,210,2,243,2,8,3,27,3,33,3,158,0,0,15,137,0,152,0,7,27,27,24,14,14,15,8,24,136,0,150,
+ 0,9,24,15,15,14,14,13,13,14,13,24,136,0,150,0,9,13,13,15,24,24,30,27,30,27,30,136,0,149,0,9,
+ 15,14,24,27,24,27,15,13,27,30,137,0,135,0,2,23,31,14,138,0,0,27,130,24,5,27,24,1,1,2,9,137,
+ 0,131,0,0,23,130,20,3,16,29,26,13,137,0,0,27,130,24,6,27,14,5,14,8,6,12,136,0,1,18,9,130,
+ 6,131,5,3,16,31,26,26,136,0,1,27,24,130,27,7,12,5,12,27,24,7,7,10,134,0,2,0,17,6,130,5,
+ 6,1,2,1,5,29,26,14,136,0,14,27,27,15,15,30,2,8,2,26,24,5,2,3,7,10,132,0,5,0,30,20,
+ 16,17,9,131,6,3,17,31,14,26,135,0,15,30,15,5,6,12,2,1,1,13,6,5,1,1,2,4,7,131,0,130,
+ 0,11,21,17,17,16,16,11,9,9,29,31,13,26,134,0,10,26,14,1,6,9,5,1,1,2,5,9,131,1,1,2,
+ 7,130,0,130,0,11,30,28,20,17,17,16,16,11,16,31,26,13,134,0,17,8,30,12,1,9,13,5,5,6,13,7,
+ 3,3,2,1,1,2,10,129,0,132,0,2,30,29,21,130,18,5,16,18,31,26,13,26,131,0,6,13,1,13,27,12,
+ 11,12,130,8,2,13,4,3,130,4,4,2,1,4,15,0,129,0,0,23,130,20,11,28,28,21,17,18,18,17,20,31,
+ 26,13,14,130,26,131,13,10,26,13,26,24,10,10,4,3,4,3,3,130,4,2,2,10,0,129,0,19,30,11,6,5,
+ 5,6,11,11,16,17,18,17,21,31,31,26,14,14,13,13,130,14,4,13,26,31,27,10,136,7,2,10,10,24,131,0,
+ 0,20,133,16,6,17,18,18,17,18,23,30,136,31,2,29,30,15,133,7,2,12,10,24,130,0,132,0,0,22,131,20,
+ 135,17,133,21,5,22,21,18,17,28,24,130,10,2,15,24,24,133,0,132,0,4,30,21,21,23,23,130,21,131,18,134,
+ 17,6,16,16,17,16,28,24,24,138,0,134,0,2,21,20,21,130,23,130,22,2,21,18,18,135,20,1,18,29,140,0,
+ 135,0,1,28,22,130,23,131,29,0,30,133,29,4,23,28,28,23,29,140,0,132,0,3,19,11,9,19,135,9,1,11,
+ 11,131,12,5,30,28,22,23,22,29,140,0,132,0,7,19,11,9,19,9,3,4,5,130,4,2,9,9,11,131,12,11,
+ 29,28,22,23,22,29,24,15,12,24,24,15,134,0,133,0,2,25,29,19,141,25,8,19,21,23,23,22,29,24,7,4,
+ 130,10,131,24,130,0,135,0,3,28,18,20,23,138,28,0,21,130,23,4,22,29,24,7,7,130,4,130,7,1,4,7,
+ 129,0,136,0,5,29,21,20,20,23,23,130,28,131,29,1,28,23,130,28,2,23,30,24,130,10,131,7,2,4,7,10,
+ 129,0,138,0,5,29,21,22,23,22,22,130,23,3,28,22,20,18,130,20,11,18,28,24,12,15,15,12,10,10,7,7,
+ 24,130,0,140,0,0,30,130,29,130,23,0,22,134,18,1,22,24,134,10,0,24,131,0,144,0,130,30,131,29,130,30,
+ 2,29,30,15,131,10,1,15,24,133,0,156,0,132,24,135,0,58,0,64,0,77,0,92,0,107,0,122,0,143,0,169,
+ 0,196,0,226,0,1,1,34,1,68,1,104,1,143,1,185,1,214,1,250,1,28,2,57,2,91,2,117,2,147,2,176,
+ 2,202,2,232,2,2,3,21,3,35,3,158,0,0,15,136,0,152,0,7,27,27,24,14,14,15,8,24,135,0,150,0,
+ 9,24,15,15,14,14,13,13,14,13,24,135,0,150,0,9,13,13,15,24,24,30,27,30,27,30,135,0,149,0,9,15,
+ 14,24,27,24,27,15,13,27,30,136,0,135,0,2,23,31,14,138,0,0,27,130,24,1,27,24,130,1,0,9,136,0,
+ 131,0,0,23,130,20,3,16,29,26,13,137,0,0,27,130,24,5,27,14,5,14,8,6,136,0,1,18,9,130,6,131,
+ 5,3,16,31,26,26,136,0,1,27,24,130,27,4,12,5,12,27,12,136,0,2,0,17,6,130,5,6,1,2,1,5,
+ 29,26,14,136,0,10,27,27,15,15,30,2,8,2,26,24,9,135,0,5,0,30,20,16,17,9,131,6,3,17,31,14,
+ 26,135,0,11,30,15,5,6,12,2,1,1,13,6,5,10,134,0,130,0,11,21,17,17,16,16,11,9,9,29,31,13,
+ 26,134,0,12,26,14,1,6,9,5,1,1,2,5,9,4,7,133,0,130,0,11,30,28,20,17,17,16,16,11,16,31,
+ 26,13,134,0,13,8,30,12,1,9,13,5,5,6,14,5,1,3,7,132,0,132,0,2,30,29,21,130,18,5,16,18,
+ 31,26,13,26,131,0,6,13,1,13,27,12,11,12,130,8,5,13,2,1,1,2,7,131,0,129,0,0,23,130,20,11,
+ 28,28,21,17,18,18,17,20,31,26,13,14,130,26,131,13,12,26,13,15,26,13,7,4,3,2,1,1,2,7,130,0,
+ 129,0,19,30,11,6,5,5,6,9,11,16,17,18,17,20,31,31,26,14,14,13,13,130,14,13,13,26,31,31,10,4,
+ 3,4,4,3,1,1,2,7,129,0,131,0,0,20,133,16,130,18,3,17,18,23,30,136,31,3,29,30,10,7,131,3,
+ 5,4,3,1,3,10,0,132,0,12,22,20,20,18,6,5,5,6,16,17,18,18,17,133,21,7,22,21,18,16,28,10,
+ 7,7,130,4,5,3,4,3,1,7,0,132,0,13,30,19,12,19,10,9,9,3,2,2,3,9,12,18,132,17,5,16,
+ 16,17,16,29,15,133,7,4,4,4,2,2,10,133,0,2,19,9,12,130,25,7,19,12,11,4,5,2,6,11,134,20,
+ 2,18,29,15,135,7,2,4,4,10,133,0,3,25,29,25,25,134,19,0,12,130,9,14,19,28,29,23,28,28,23,29,
+ 24,15,12,15,15,12,12,130,15,1,10,24,133,0,2,25,19,19,131,25,134,19,9,11,9,12,30,28,22,23,22,29,
+ 24,136,10,1,24,0,133,0,4,21,16,16,21,22,133,25,130,19,10,25,25,19,25,28,22,23,22,30,14,4,134,7,
+ 0,10,129,0,134,0,5,30,21,22,23,23,21,137,25,7,21,21,23,23,22,30,15,7,130,8,3,10,7,7,15,130,
+ 0,135,0,3,28,20,20,23,138,28,0,21,130,23,2,22,29,24,130,15,3,12,10,7,15,131,0,136,0,5,29,21,
+ 20,20,23,23,130,28,131,29,1,28,23,130,28,2,23,30,24,130,10,2,7,10,24,132,0,138,0,5,29,22,23,23,
+ 22,22,131,23,1,20,18,131,20,2,18,28,24,130,10,0,24,134,0,140,0,0,30,130,29,130,23,0,20,134,18,3,
+ 22,30,24,24,136,0,144,0,1,30,30,132,29,130,30,1,29,30,139,0,
+};
+static const jj_frame pic_bird_f[] = {{40,35,-25,-34,0},{41,31,-25,-34,898},{42,28,-25,-34,1743},{42,29,-25,-34,2544},{41,28,-25,-34,3345}};
+static const jj_sheet pic_bird = {pic_bird_pal, pic_bird_data, pic_bird_f, 5, 8};
+static const uint16_t pic_cft_pal[] = {0,61407,44991,38783,36639,48663,34429,30271,28060,62525,60317,42101,27863,27699,29647,21460,58173,56030,53886,51806,51711,45470,45439,43359,31505,21228,17069,10966,37210,16907,12746,10568};
+static const uint8_t pic_cft_data[] = {
+ 74,0,84,0,98,0,124,0,148,0,170,0,192,0,212,0,228,0,240,0,0,1,18,1,36,1,56,1,76,1,96,1,
+ 116,1,136,1,156,1,176,1,196,1,216,1,236,1,0,2,18,2,38,2,56,2,78,2,98,2,110,2,132,2,152,2,
+ 172,2,194,2,218,2,234,2,244,2,2,7,4,7,146,0,2,7,4,7,2,4,1,4,133,0,134,30,133,0,2,4,
+ 1,4,4,7,4,12,8,15,129,0,0,30,130,25,130,14,130,25,0,30,129,0,4,15,8,12,4,7,129,0,7,27,
+ 15,14,25,29,13,25,25,132,14,7,25,25,13,29,25,14,15,27,129,0,131,0,6,31,14,12,14,25,14,14,130,11,
+ 6,14,14,25,14,12,14,31,131,0,131,0,6,31,12,13,25,14,14,11,130,5,6,11,14,14,25,13,12,31,131,0,
+ 131,0,5,14,13,25,25,14,11,132,5,5,11,14,25,25,13,14,131,0,130,0,3,30,14,25,25,138,14,3,25,25,
+ 14,30,130,0,130,0,1,29,26,142,24,1,26,29,130,0,132,0,3,16,10,18,22,134,0,3,20,18,10,16,132,0,
+ 131,0,4,23,17,10,19,21,134,0,4,21,19,10,17,23,131,0,131,0,4,20,16,16,18,22,134,0,4,22,18,16,
+ 16,20,131,0,130,0,5,23,19,16,16,18,22,134,0,5,22,18,16,16,19,23,130,0,130,0,5,23,19,16,16,18,
+ 22,134,0,5,22,18,16,16,19,23,130,0,130,0,5,23,19,16,16,18,22,134,0,5,22,18,16,16,19,23,130,0,
+ 130,0,5,23,19,16,16,18,22,134,0,5,22,18,16,16,19,23,130,0,130,0,5,23,19,16,16,18,22,134,0,5,
+ 22,18,16,16,19,23,130,0,130,0,5,23,19,16,16,18,22,134,0,5,22,18,16,16,19,23,130,0,130,0,5,23,
+ 19,16,16,18,22,134,0,5,22,18,16,16,19,23,130,0,130,0,5,23,19,16,16,18,22,134,0,5,22,18,16,16,
+ 19,23,130,0,130,0,5,23,19,16,16,18,22,134,0,5,22,18,16,16,19,23,130,0,130,0,5,23,19,16,16,18,
+ 22,134,0,5,22,18,16,16,19,23,130,0,130,0,5,23,20,16,16,18,22,134,0,5,22,18,16,16,20,23,130,0,
+ 131,0,4,19,16,16,18,23,134,0,4,22,18,16,16,19,131,0,130,0,5,28,20,16,16,18,22,134,0,5,22,18,
+ 16,16,20,28,130,0,131,0,4,23,16,10,18,22,134,0,4,22,18,10,16,23,131,0,130,0,6,24,0,18,16,20,
+ 22,22,132,0,6,22,22,20,16,18,0,24,130,0,130,0,5,29,24,24,21,21,19,134,21,5,19,21,21,24,24,29,
+ 130,0,130,0,1,31,25,142,14,1,25,31,130,0,131,0,6,31,29,30,25,25,14,14,130,11,6,14,14,25,25,30,
+ 29,31,131,0,131,0,5,31,15,13,30,31,31,132,29,5,31,31,30,13,15,31,131,0,131,0,5,25,29,13,12,29,
+ 30,132,31,5,30,29,12,13,29,25,131,0,130,0,6,15,14,29,31,13,13,25,132,29,6,25,13,13,31,29,14,15,
+ 130,0,129,0,3,12,8,30,31,129,0,0,29,134,25,0,29,129,0,3,31,30,8,12,129,0,3,4,2,4,27,132,
+ 0,134,31,132,0,3,27,4,2,4,2,4,2,7,146,0,2,7,2,4,76,0,86,0,100,0,118,0,146,0,172,0,
+ 196,0,218,0,238,0,254,0,10,1,26,1,44,1,62,1,82,1,102,1,122,1,142,1,162,1,182,1,202,1,222,1,
+ 242,1,6,2,24,2,42,2,58,2,74,2,88,2,108,2,128,2,146,2,168,2,196,2,222,2,236,2,250,2,4,3,
+ 0,0,130,7,146,0,130,7,0,0,4,7,2,1,2,7,144,0,4,7,2,1,2,7,4,7,1,1,2,8,132,0,
+ 134,30,132,0,4,8,2,1,1,7,5,7,3,2,8,8,15,129,0,0,30,130,25,130,14,130,25,0,30,129,0,5,
+ 15,8,8,2,3,7,10,0,8,7,27,15,6,25,29,13,29,25,132,14,10,25,29,13,29,25,6,15,27,7,8,0,
+ 131,0,7,27,31,14,6,14,25,14,14,130,11,7,14,14,25,14,6,14,31,27,131,0,132,0,6,31,8,13,25,14,
+ 14,11,130,5,6,11,14,14,25,13,8,31,132,0,132,0,5,14,13,25,25,14,11,132,5,5,11,14,25,25,13,14,
+ 132,0,131,0,3,30,14,25,25,138,14,3,25,25,14,30,131,0,131,0,1,29,26,142,24,1,26,29,131,0,133,0,
+ 3,16,10,18,22,134,0,3,22,18,10,16,133,0,132,0,4,23,17,10,19,22,134,0,4,22,19,10,17,23,132,0,
+ 132,0,4,20,16,16,18,22,134,0,4,22,18,16,16,20,132,0,131,0,5,23,19,16,16,18,22,134,0,5,22,18,
+ 16,16,19,23,131,0,131,0,5,23,19,16,16,18,22,134,0,5,22,18,16,16,19,23,131,0,131,0,5,23,19,16,
+ 16,18,22,134,0,5,22,18,16,16,19,23,131,0,131,0,5,23,19,16,16,18,22,134,0,5,22,18,16,16,19,23,
+ 131,0,131,0,5,23,19,16,16,18,22,134,0,5,22,18,16,16,19,23,131,0,131,0,5,23,19,16,16,18,22,134,
+ 0,5,22,18,16,16,19,23,131,0,131,0,5,23,19,16,16,18,22,134,0,5,22,18,16,16,19,23,131,0,131,0,
+ 5,23,19,16,16,18,22,134,0,5,22,18,16,16,19,23,131,0,131,0,5,23,19,16,16,18,22,134,0,5,22,18,
+ 16,16,19,23,131,0,131,0,5,23,19,16,16,18,22,134,0,5,22,18,16,16,19,23,131,0,132,0,4,19,16,16,
+ 18,22,134,0,4,22,18,16,16,19,132,0,132,0,4,22,17,16,18,22,134,0,4,22,18,16,17,22,132,0,133,0,
+ 3,16,10,19,22,134,0,3,23,19,10,16,133,0,131,0,3,26,28,21,17,138,20,3,17,21,28,26,131,0,131,0,
+ 2,30,14,14,140,24,2,14,14,30,131,0,132,0,1,29,25,130,14,0,13,132,11,0,13,130,14,1,25,29,132,0,
+ 132,0,5,31,26,30,30,29,29,132,14,5,29,29,30,30,26,31,132,0,132,0,4,31,14,6,25,31,134,30,4,31,
+ 25,6,14,31,132,0,131,0,6,27,12,29,15,6,25,30,132,31,6,30,25,6,15,29,12,27,131,0,11,0,8,7,
+ 15,8,6,29,31,26,13,25,29,130,25,11,29,25,13,26,31,29,6,8,15,7,8,0,5,7,3,2,6,12,27,130,
+ 0,1,31,30,132,29,1,30,31,130,0,5,27,12,6,2,3,7,4,7,1,1,2,8,144,0,4,8,2,1,1,7,
+ 4,7,2,1,2,7,144,0,4,7,2,1,2,7,0,0,130,7,146,0,130,7,0,0,74,0,86,0,98,0,124,0,
+ 150,0,170,0,188,0,208,0,228,0,244,0,4,1,20,1,38,1,56,1,76,1,96,1,116,1,136,1,156,1,176,1,
+ 196,1,216,1,236,1,0,2,18,2,36,2,54,2,68,2,82,2,102,2,122,2,144,2,166,2,190,2,210,2,222,2,
+ 234,2,3,0,8,7,8,146,0,3,8,7,8,0,3,8,3,1,4,146,0,3,4,1,3,8,4,8,2,1,4,27,
+ 131,0,0,30,130,29,0,25,130,29,0,30,131,0,4,27,4,1,2,8,8,0,8,7,27,8,12,30,31,26,130,25,
+ 130,14,130,25,8,26,31,30,12,8,27,7,8,0,131,0,5,27,14,25,26,13,29,134,14,5,29,13,26,25,14,27,
+ 131,0,132,0,2,31,14,6,131,14,130,5,131,14,2,6,14,31,132,0,132,0,5,30,12,14,25,14,14,132,5,5,
+ 14,14,25,14,12,30,132,0,132,0,5,13,14,25,14,14,11,132,5,5,11,14,14,25,14,13,132,0,131,0,3,30,
+ 25,30,29,138,25,3,29,30,25,30,131,0,131,0,3,29,0,28,19,138,28,3,19,28,0,29,131,0,133,0,3,16,
+ 10,18,22,134,0,3,22,18,10,16,133,0,132,0,4,22,17,16,18,22,134,0,4,22,18,16,16,21,132,0,132,0,
+ 4,19,16,16,18,22,134,0,4,22,18,16,16,19,132,0,131,0,5,23,19,16,16,18,22,134,0,5,22,18,16,16,
+ 19,23,131,0,131,0,5,23,19,16,16,18,22,134,0,5,22,18,16,16,19,23,131,0,131,0,5,23,19,16,16,18,
+ 22,134,0,5,22,18,16,16,19,23,131,0,131,0,5,23,19,16,16,18,22,134,0,5,22,18,16,16,19,23,131,0,
+ 131,0,5,23,19,16,16,18,22,134,0,5,22,18,16,16,19,23,131,0,131,0,5,23,19,16,16,18,22,134,0,5,
+ 22,18,16,16,19,23,131,0,131,0,5,23,19,16,16,18,22,134,0,5,22,18,16,16,19,23,131,0,131,0,5,23,
+ 19,16,16,18,22,134,0,5,22,18,16,16,19,23,131,0,131,0,5,23,19,16,16,18,22,134,0,5,22,18,16,16,
+ 19,23,131,0,131,0,5,23,19,16,16,18,22,134,0,5,22,18,16,16,19,23,131,0,132,0,4,20,16,16,18,22,
+ 134,0,4,22,18,16,16,20,132,0,132,0,4,23,16,10,18,22,134,0,4,22,18,10,16,23,132,0,133,0,4,17,
+ 10,19,23,23,132,0,4,23,23,19,10,17,133,0,131,0,2,29,24,24,140,20,2,24,24,29,131,0,131,0,2,31,
+ 14,14,140,24,2,14,14,31,131,0,132,0,5,30,29,25,25,14,14,132,11,5,14,14,25,25,29,30,132,0,132,0,
+ 5,31,14,25,31,30,30,132,25,5,30,30,31,25,15,31,132,0,132,0,6,30,25,12,14,31,30,30,130,31,6,30,
+ 30,31,14,12,25,30,132,0,131,0,6,15,12,29,29,12,13,29,132,30,6,29,13,12,29,29,12,15,131,0,129,0,
+ 7,8,12,6,12,30,31,31,26,134,25,7,26,31,31,30,12,6,12,8,129,0,5,0,4,1,6,15,27,131,0,134,
+ 31,131,0,5,27,15,6,1,4,0,3,8,2,1,4,146,0,3,4,1,2,8,3,0,7,4,7,146,0,3,7,4,
+ 7,0,76,0,88,0,110,0,134,0,160,0,184,0,206,0,226,0,246,0,6,1,26,1,44,1,64,1,82,1,102,1,
+ 122,1,142,1,162,1,182,1,202,1,222,1,242,1,6,2,26,2,46,2,64,2,82,2,100,2,114,2,128,2,148,2,
+ 168,2,190,2,212,2,236,2,0,3,12,3,24,3,3,0,7,4,7,146,0,3,7,4,7,0,3,8,2,1,4,133,
+ 0,1,30,30,130,31,1,30,30,133,0,3,4,1,2,8,5,0,4,1,8,12,27,130,0,0,29,134,25,0,29,130,
+ 0,5,27,12,8,1,4,0,129,0,8,7,27,8,12,29,31,14,25,25,132,14,8,25,25,14,31,29,12,8,27,7,
+ 129,0,131,0,7,26,29,25,13,13,25,14,14,130,11,7,14,14,25,13,13,25,29,26,131,0,132,0,6,31,13,12,
+ 25,14,14,11,130,5,6,11,14,14,25,12,13,31,132,0,132,0,5,26,12,25,25,14,11,132,5,5,11,14,25,25,
+ 12,26,132,0,131,0,3,31,14,25,25,130,14,132,11,130,14,3,25,25,14,31,131,0,131,0,3,30,29,29,25,138,
+ 29,3,25,29,29,30,131,0,131,0,5,28,0,17,16,20,22,134,0,5,22,20,16,17,0,28,131,0,132,0,4,23,
+ 16,10,18,21,134,0,4,22,18,10,16,23,132,0,131,0,5,28,20,16,16,18,22,134,0,5,22,18,16,16,20,28,
+ 131,0,132,0,4,19,16,16,18,22,134,0,4,22,18,16,16,19,132,0,131,0,5,23,19,16,16,18,22,134,0,5,
+ 22,18,16,16,19,23,131,0,131,0,5,23,19,16,16,18,22,134,0,5,22,18,16,16,19,23,131,0,131,0,5,23,
+ 19,16,16,18,22,134,0,5,22,18,16,16,19,23,131,0,131,0,5,23,19,16,16,18,22,134,0,5,22,18,16,16,
+ 19,23,131,0,131,0,5,23,19,16,16,18,22,134,0,5,22,18,16,16,19,23,131,0,131,0,5,23,19,16,16,18,
+ 22,134,0,5,22,18,16,16,19,23,131,0,131,0,5,23,19,16,16,18,22,134,0,5,22,18,16,16,19,23,131,0,
+ 131,0,5,23,19,16,16,18,22,134,0,5,22,18,16,16,19,23,131,0,131,0,5,23,19,16,16,18,22,134,0,5,
+ 22,18,16,16,19,23,131,0,131,0,5,23,19,16,16,18,22,134,0,5,22,18,16,16,19,23,131,0,131,0,5,23,
+ 19,16,16,18,22,134,0,5,22,18,16,16,19,23,131,0,132,0,4,20,16,16,18,22,134,0,4,22,18,16,16,20,
+ 132,0,132,0,4,23,16,10,18,22,134,0,4,22,18,10,16,23,132,0,133,0,4,17,10,19,23,23,132,0,4,23,
+ 23,19,10,17,133,0,131,0,2,29,24,24,140,20,2,24,24,29,131,0,131,0,2,31,14,14,140,24,2,14,14,31,
+ 131,0,132,0,5,30,29,25,25,14,14,132,11,5,14,14,25,25,29,30,132,0,132,0,5,31,14,25,31,30,30,132,
+ 25,5,30,30,31,25,15,31,132,0,132,0,6,30,25,12,14,31,30,30,130,31,6,30,30,31,14,12,25,30,132,0,
+ 131,0,6,15,12,29,29,12,13,29,132,30,6,29,13,12,29,29,12,15,131,0,129,0,7,8,12,6,12,30,31,31,
+ 26,134,25,7,26,31,31,30,12,6,12,8,129,0,5,0,4,1,6,15,27,131,0,134,31,131,0,5,27,15,6,1,
+ 4,0,3,8,2,1,4,146,0,3,4,1,2,8,3,0,7,4,7,146,0,3,7,4,7,0,80,0,87,0,94,0,
+ 102,0,109,0,122,0,144,0,168,0,188,0,206,0,226,0,246,0,0,1,22,1,48,1,74,1,100,1,126,1,152,1,
+ 178,1,204,1,230,1,0,2,26,2,52,2,76,2,98,2,118,2,138,2,160,2,182,2,200,2,224,2,250,2,10,3,
+ 20,3,32,3,44,3,57,3,64,3,132,0,1,4,7,145,0,131,0,1,3,7,146,0,129,0,2,7,4,7,147,0,
+ 3,0,4,2,4,148,0,2,4,2,7,143,0,5,8,7,4,4,2,4,3,4,2,7,27,131,0,1,30,15,132,13,
+ 1,15,30,131,0,3,27,7,2,4,129,0,7,15,7,14,30,31,26,12,13,132,11,7,13,12,26,31,31,13,7,15,
+ 129,0,130,0,5,30,14,25,15,12,25,134,14,5,25,12,15,25,14,27,130,0,131,0,2,31,13,6,131,14,130,5,
+ 131,14,2,6,13,31,131,0,131,0,5,30,6,14,25,14,14,132,5,5,14,14,25,14,6,30,131,0,131,0,5,13,
+ 14,25,14,14,11,132,5,5,11,14,14,25,14,13,131,0,130,0,0,31,144,24,0,31,130,0,130,0,2,28,22,17,
+ 131,10,0,17,130,20,0,17,131,10,2,17,22,28,130,0,129,0,2,23,21,18,130,9,8,16,18,21,22,21,22,21,
+ 18,16,130,9,2,18,21,23,129,0,129,0,20,23,20,17,9,9,10,18,18,23,21,22,22,23,18,18,10,9,9,17,
+ 20,23,129,0,10,0,23,21,18,10,9,9,10,17,18,23,130,22,10,23,18,17,10,9,9,10,18,21,23,0,10,0,
+ 23,19,18,10,9,9,10,17,18,23,130,22,10,23,18,17,10,9,9,10,18,19,23,0,10,0,23,19,17,10,9,9,
+ 10,17,18,23,130,22,10,23,18,17,10,9,9,10,17,19,23,0,10,0,23,19,17,10,9,9,10,17,18,23,130,22,
+ 10,23,18,17,10,9,9,10,17,19,23,0,10,0,23,19,18,10,9,9,10,17,18,23,130,22,10,23,18,17,10,9,
+ 9,10,17,19,23,0,10,0,23,19,17,10,9,9,10,17,18,23,130,22,10,23,18,17,10,9,9,10,18,19,23,0,
+ 10,0,23,19,17,10,9,9,10,17,18,23,130,22,10,23,18,17,10,9,9,10,18,19,23,0,10,0,23,19,18,10,
+ 9,9,10,17,18,23,130,22,10,23,18,17,10,9,9,10,18,19,23,0,24,0,23,21,18,16,9,9,10,17,18,23,
+ 22,23,22,23,18,17,10,9,9,16,18,21,23,0,130,0,1,19,17,130,9,2,17,18,19,130,21,2,19,18,17,130,
+ 9,1,17,19,130,0,130,0,6,22,18,10,9,9,10,16,132,17,6,16,10,9,9,10,18,23,130,0,130,0,3,30,
+ 21,21,18,130,10,132,16,130,10,3,18,21,21,30,130,0,130,0,5,31,25,14,24,11,24,134,11,5,24,11,24,14,
+ 25,31,130,0,131,0,6,31,30,30,25,25,14,14,130,11,6,14,14,25,25,30,29,31,131,0,131,0,2,31,13,13,
+ 130,31,4,30,29,30,29,30,130,31,2,13,15,31,131,0,131,0,4,25,29,8,12,29,134,31,4,29,12,12,29,25,
+ 131,0,130,0,18,15,14,29,31,12,12,14,30,29,30,29,30,14,12,12,31,29,25,15,130,0,129,0,3,12,8,30,
+ 31,129,0,1,26,14,132,13,1,14,26,129,0,3,31,30,8,12,129,0,3,4,2,4,27,132,0,134,31,132,0,3,
+ 27,7,2,4,2,4,3,4,146,0,2,4,2,4,3,0,7,3,4,144,0,3,3,4,7,0,130,0,1,3,7,142,
+ 0,1,3,4,130,0,130,0,3,7,4,8,8,139,0,0,4,132,0,131,0,1,7,4,146,0,76,0,82,0,90,0,
+ 100,0,117,0,136,0,158,0,178,0,196,0,222,0,250,0,16,1,38,1,58,1,78,1,92,1,112,1,134,1,154,1,
+ 172,1,192,1,214,1,236,1,250,1,16,2,36,2,46,2,66,2,86,2,114,2,130,2,150,2,172,2,191,2,211,2,
+ 226,2,239,2,246,2,142,0,0,7,154,0,141,0,2,4,2,7,153,0,141,0,4,3,7,3,3,4,151,0,140,0,
+ 0,2,130,0,2,3,3,4,129,0,1,4,4,146,0,139,0,1,7,2,132,0,132,4,0,7,130,0,2,4,3,4,
+ 139,0,138,0,1,7,3,134,0,0,4,129,0,5,7,4,0,7,4,3,130,4,138,0,137,0,2,7,3,4,138,0,
+ 2,3,4,4,130,0,2,7,2,4,137,0,136,0,2,4,2,4,139,0,0,8,133,0,2,7,2,4,136,0,136,0,
+ 3,4,2,7,27,131,0,1,27,15,132,12,1,15,27,131,0,3,27,4,2,4,136,0,137,0,22,7,27,12,13,27,
+ 27,15,8,8,12,13,13,11,12,8,8,15,27,27,13,13,27,7,137,0,139,0,6,27,13,12,15,12,8,13,132,14,
+ 6,13,8,12,15,12,13,27,139,0,140,0,0,27,130,12,2,13,14,14,130,5,2,14,14,13,130,12,0,27,140,0,
+ 140,0,5,27,27,8,12,14,14,132,5,5,14,14,12,8,27,27,140,0,140,0,5,15,12,6,12,14,11,132,5,5,
+ 11,14,12,6,12,15,140,0,139,0,2,27,15,12,140,24,2,12,15,27,139,0,135,0,5,21,21,23,19,17,16,142,
+ 10,5,16,17,19,23,22,21,135,0,131,0,6,23,21,19,18,17,16,10,148,9,6,10,16,17,18,19,21,23,131,0,
+ 129,0,5,23,21,18,17,17,10,154,9,5,10,17,17,18,21,23,129,0,6,23,21,22,18,17,18,16,156,9,6,16,
+ 18,17,18,22,21,23,129,0,5,23,21,18,17,17,10,154,9,5,10,17,17,18,21,23,129,0,131,0,6,23,20,19,
+ 18,17,16,10,148,9,6,10,16,17,18,19,20,23,131,0,134,0,6,23,21,22,23,19,17,16,142,9,6,16,17,19,
+ 23,21,21,23,134,0,139,0,0,23,129,0,140,20,129,0,0,23,139,0,140,0,6,27,12,13,24,11,5,5,130,11,
+ 6,5,5,11,24,13,12,27,140,0,140,0,130,27,0,15,130,12,2,13,12,13,130,12,0,15,130,27,140,0,140,0,
+ 133,27,132,15,133,27,140,0,139,0,5,27,13,12,27,15,15,134,27,5,15,15,27,12,13,27,139,0,138,0,5,27,
+ 12,12,15,27,27,136,12,5,27,27,15,12,12,27,138,0,136,0,4,7,4,8,15,27,130,0,1,27,27,132,12,1,
+ 27,27,130,0,4,27,15,8,4,7,136,0,136,0,3,4,1,3,8,144,0,3,8,3,1,4,136,0,136,0,5,7,
+ 4,4,3,2,4,140,0,5,4,2,3,4,4,7,136,0,139,0,3,7,0,4,2,131,0,2,4,2,4,131,0,3,
+ 2,4,0,7,139,0,142,0,1,3,4,129,0,3,3,3,4,3,130,0,1,4,3,142,0,142,0,4,4,4,0,2,
+ 3,129,0,1,3,3,129,0,1,2,4,142,0,143,0,2,3,2,4,131,0,3,2,0,4,3,143,0,143,0,1,4,
+ 4,132,0,2,4,2,2,144,0,151,0,1,3,3,144,0,64,0,71,0,79,0,94,0,112,0,130,0,142,0,161,0,
+ 180,0,206,0,234,0,2,1,22,1,42,1,60,1,82,1,110,1,134,1,160,1,178,1,196,1,216,1,238,1,4,2,
+ 20,2,44,2,67,2,89,2,104,2,112,2,120,2,127,2,140,0,1,3,7,152,0,140,0,2,3,2,4,151,0,140,
+ 0,4,3,7,3,3,4,130,0,1,4,3,144,0,139,0,1,7,2,129,0,7,4,2,4,0,3,3,2,4,143,0,
+ 139,0,1,4,3,130,0,0,4,130,3,3,7,4,2,7,142,0,139,0,1,3,7,136,0,1,4,3,142,0,135,0,
+ 131,7,1,3,4,136,0,6,7,2,3,3,4,7,7,137,0,134,0,0,7,132,3,138,0,7,7,4,7,2,3,3,
+ 4,7,135,0,134,0,3,4,1,4,8,132,0,1,15,12,130,15,1,12,15,132,0,3,8,4,1,4,135,0,134,0,
+ 4,7,4,8,15,15,129,0,1,15,8,134,6,1,8,15,129,0,4,15,15,8,4,7,135,0,136,0,7,27,15,12,
+ 12,27,6,6,12,132,13,7,12,6,6,27,12,12,15,27,137,0,137,0,5,27,15,12,12,6,12,134,13,5,12,6,
+ 12,12,15,27,138,0,138,0,3,27,15,6,12,130,13,130,5,130,13,3,12,6,15,27,139,0,138,0,2,27,12,12,
+ 130,13,132,5,130,13,2,12,12,27,139,0,129,0,130,23,132,0,2,27,27,12,131,13,132,5,131,13,2,12,27,27,
+ 138,0,2,23,21,21,134,0,0,27,130,15,1,13,13,134,5,1,13,13,130,15,0,27,135,0,2,21,23,23,0,0,
+ 130,23,133,0,1,27,27,131,15,134,13,131,15,1,27,27,134,0,130,23,0,0,131,0,0,23,133,0,4,27,27,15,
+ 15,13,134,11,4,13,15,15,27,27,135,0,0,23,130,0,138,0,2,27,15,15,130,27,132,15,130,27,2,15,12,27,
+ 139,0,138,0,4,27,15,12,12,15,134,27,4,15,12,12,15,27,139,0,137,0,5,27,12,12,27,6,6,134,12,5,
+ 6,6,27,12,12,27,138,0,136,0,2,15,12,12,130,27,0,8,134,6,0,8,130,27,2,12,12,15,137,0,134,0,
+ 4,7,2,6,27,27,131,0,134,27,131,0,4,27,27,4,2,7,135,0,134,0,3,4,2,3,7,144,0,3,7,3,
+ 2,4,135,0,135,0,2,7,4,2,130,0,1,7,3,132,0,1,4,4,132,0,2,2,4,7,136,0,137,0,6,4,
+ 4,7,4,4,3,4,131,0,2,3,2,4,130,0,1,3,4,138,0,138,0,1,4,3,130,0,0,3,130,0,7,4,
+ 3,7,3,4,3,3,4,139,0,143,0,4,4,3,0,4,2,131,0,1,3,4,140,0,144,0,2,2,0,3,147,0,
+ 144,0,2,4,2,4,147,0,144,0,1,4,3,148,0,38,0,48,0,72,0,98,0,120,0,138,0,153,0,169,0,185,
+ 0,201,0,217,0,233,0,253,0,11,1,29,1,53,1,69,1,79,1,87,1,2,7,4,7,146,0,2,7,4,7,3,
+ 4,1,7,7,131,0,2,7,4,3,130,4,2,3,4,7,131,0,3,7,7,1,4,24,7,4,7,2,4,7,7,4,
+ 3,3,4,2,1,2,4,3,3,4,7,7,4,2,7,4,7,130,0,6,2,1,2,4,3,4,2,132,1,6,2,4,
+ 3,4,2,1,2,130,0,131,0,4,4,2,3,4,2,134,1,4,2,4,3,2,4,131,0,131,0,3,7,4,4,2,
+ 136,1,2,2,4,4,132,0,131,0,3,4,3,4,2,136,1,3,2,4,3,4,131,0,130,0,3,7,3,3,4,138,
+ 1,3,4,3,3,7,130,0,130,0,3,7,3,4,2,138,1,3,2,4,3,7,130,0,130,0,3,7,3,1,1,138,
+ 2,3,1,1,3,7,130,0,131,0,1,4,3,131,2,132,1,131,2,1,3,4,131,0,132,0,1,4,3,130,4,0,
+ 3,130,2,0,3,130,4,1,3,4,132,0,131,0,130,4,131,3,130,4,131,3,130,4,131,0,130,0,4,4,1,3,
+ 7,4,136,3,4,4,7,3,1,4,130,0,129,0,3,7,2,4,7,129,0,0,4,134,3,0,4,129,0,3,7,4,
+ 2,7,129,0,3,7,2,4,7,132,0,134,7,132,0,3,7,4,2,7,2,4,1,7,146,0,2,7,1,4,1,0,
+ 7,148,0,1,7,0,24,0,30,0,37,0,45,0,55,0,64,0,72,0,81,0,91,0,99,0,106,0,112,0,2,0,
+ 1,1,132,0,3,1,18,17,1,131,0,4,1,18,0,17,1,130,0,1,1,18,129,0,1,17,1,129,0,1,1,18,
+ 130,0,2,17,1,0,1,1,18,131,0,1,10,1,1,1,18,130,0,2,17,1,0,1,1,18,129,0,1,17,1,129,
+ 0,4,1,18,0,17,1,130,0,3,1,18,17,1,131,0,2,0,1,1,132,0,
+};
+static const jj_frame pic_cft_f[] = {{25,36,-12,-18,0},{27,37,-13,-19,756},{27,36,-13,-18,1528},{27,37,-13,-19,2274},{25,39,-12,-19,3066},{43,37,-21,-18,3898},{40,31,-19,-15,4656},{25,18,-12,-8,5295},{8,11,-3,-5,5638}};
+static const jj_sheet pic_cft = {pic_cft_pal, pic_cft_data, pic_cft_f, 9, 8};
+static const uint16_t pic_grav_pal[] = {0,65535,63385,59164,63118,54969,40733,46649,28188,50610,50411,40245,36016,23995,21817,23669,13431,37834,37638,25485,23208,15316,9141,15021,2739,27077,16904,12744,10566,2574,4425,4293};
+static const uint8_t pic_grav_data[] = {
+ 54,0,63,0,73,0,87,0,106,0,122,0,139,0,156,0,173,0,190,0,206,0,222,0,238,0,255,0,18,1,37,1,
+ 55,1,72,1,87,1,104,1,120,1,135,1,149,1,163,1,180,1,190,1,199,1,0,3,131,1,1,3,3,138,0,1,
+ 11,3,133,1,1,3,3,135,0,6,0,12,7,5,5,3,3,130,1,0,3,134,0,129,0,1,12,7,130,5,8,7,
+ 7,5,3,5,16,22,3,11,129,0,130,0,6,11,5,5,11,8,6,13,132,6,0,3,129,0,130,0,8,12,7,11,
+ 8,8,13,22,14,8,131,6,1,3,0,131,0,2,12,16,13,130,22,7,24,13,8,13,8,6,13,0,131,0,13,15,
+ 16,16,11,7,15,21,22,14,8,14,14,13,24,131,0,13,23,16,15,5,1,3,11,13,13,14,16,22,16,24,132,0,
+ 12,22,21,7,5,5,23,19,8,8,16,24,16,24,132,0,12,22,21,5,3,5,31,31,26,19,15,21,16,24,132,0,
+ 12,24,29,19,11,11,26,31,31,28,18,20,26,26,131,0,13,25,29,24,29,30,30,10,17,31,20,4,18,31,31,129,
+ 0,15,25,10,10,26,29,24,24,22,9,4,26,31,26,28,26,0,13,0,25,18,4,10,18,23,30,29,22,4,2,4,
+ 12,130,17,0,0,14,0,18,10,4,18,17,19,29,24,29,17,4,2,2,10,130,0,11,0,25,4,10,20,28,30,13,
+ 13,30,31,17,130,10,130,0,11,0,10,4,18,29,27,27,24,29,11,19,28,133,0,13,0,10,10,23,24,21,27,31,
+ 26,3,11,28,31,31,131,0,10,0,18,18,30,24,13,14,30,25,28,28,130,31,131,0,9,0,25,25,28,30,23,23,
+ 12,9,28,131,31,131,0,130,0,8,28,28,27,27,28,1,12,26,31,133,0,130,0,8,28,28,27,27,28,12,7,12,
+ 28,133,0,130,0,2,27,28,31,129,0,5,26,1,7,31,20,20,131,0,136,0,4,19,11,11,12,20,131,0,136,0,
+ 3,19,7,7,19,132,0,50,0,58,0,69,0,87,0,106,0,124,0,142,0,159,0,176,0,192,0,208,0,223,0,239,
+ 0,1,1,20,1,39,1,57,1,74,1,91,1,109,1,126,1,141,1,156,1,172,1,187,1,0,5,131,1,130,3,137,
+ 0,1,11,7,130,3,131,1,0,3,135,0,129,0,0,11,130,5,0,3,131,1,0,5,129,0,0,7,130,0,129,0,
+ 13,12,7,5,5,7,11,11,6,3,3,8,16,3,7,129,0,130,0,14,11,5,5,11,8,6,14,6,6,3,6,6,
+ 1,5,0,130,0,9,12,11,15,8,14,16,22,16,8,8,130,6,1,7,0,131,0,13,19,16,14,21,21,22,24,16,
+ 8,8,13,6,13,24,131,0,13,19,16,15,7,3,11,15,16,14,13,14,16,13,24,132,0,12,16,15,5,3,3,12,
+ 14,8,14,16,22,16,24,132,0,12,22,21,5,5,7,28,26,15,8,14,22,16,24,132,0,9,22,21,9,5,3,31,
+ 31,28,23,19,130,21,132,0,12,24,29,23,19,12,18,28,31,26,10,18,28,28,130,0,3,18,18,29,24,130,29,7,
+ 10,10,31,26,10,18,31,31,129,0,15,25,4,4,25,29,24,24,22,4,2,17,31,27,27,18,0,15,0,18,18,4,
+ 10,10,25,31,30,24,9,2,2,9,10,10,129,0,14,0,18,18,10,10,18,31,16,21,30,26,4,2,2,10,130,0,
+ 13,0,25,10,10,18,28,30,14,16,15,27,26,20,25,131,0,13,0,18,4,17,24,30,27,29,29,3,1,27,31,31,
+ 131,0,14,0,18,18,29,13,8,23,30,23,9,11,27,31,28,31,130,0,129,0,11,31,28,29,13,14,24,15,12,20,
+ 28,31,31,131,0,129,0,9,31,28,27,26,27,31,28,26,5,12,133,0,129,0,9,27,31,27,26,27,28,28,31,12,
+ 20,133,0,129,0,10,26,26,31,28,28,31,28,19,7,5,19,132,0,130,0,1,26,26,130,28,4,0,20,12,12,20,
+ 132,0,54,0,63,0,77,0,96,0,115,0,131,0,149,0,166,0,183,0,200,0,217,0,233,0,250,0,12,1,32,1,
+ 51,1,70,1,85,1,99,1,114,1,127,1,142,1,158,1,175,1,188,1,195,1,201,1,1,11,3,134,1,0,5,136,
+ 0,129,0,4,11,5,5,3,3,131,1,0,3,134,0,129,0,1,12,11,130,5,8,3,3,5,3,3,11,29,0,7,
+ 130,0,130,0,13,12,7,3,5,11,11,8,6,6,3,6,8,1,7,129,0,131,0,2,11,5,11,130,8,0,16,132,
+ 6,0,1,129,0,131,0,7,12,12,14,13,22,22,24,16,130,8,3,6,6,21,0,132,0,13,21,14,16,15,15,22,
+ 24,14,13,8,14,8,16,0,132,0,13,21,14,15,3,3,7,15,14,16,14,16,16,14,24,132,0,13,24,16,15,5,
+ 3,7,19,14,8,13,22,22,16,24,132,0,13,24,24,15,3,3,12,31,27,19,8,21,22,16,24,132,0,5,29,22,
+ 23,11,5,11,130,31,1,26,18,130,23,132,0,13,30,24,29,26,23,20,17,28,31,18,4,25,31,31,131,0,14,10,
+ 18,29,24,24,29,21,4,17,31,26,18,28,31,0,129,0,14,25,18,4,10,18,30,29,24,15,2,2,17,20,26,18,
+ 129,0,6,0,25,18,18,20,18,18,130,30,5,23,4,2,2,4,10,130,0,11,0,25,18,30,16,23,30,13,14,23,
+ 31,26,130,9,0,17,130,0,129,0,9,26,16,13,23,28,22,24,7,7,23,134,0,129,0,2,28,23,24,131,31,2,
+ 11,1,5,134,0,11,0,31,27,26,30,31,31,30,28,18,19,19,134,0,129,0,130,28,5,30,16,8,15,17,31,135,
+ 0,129,0,9,28,31,28,23,24,6,1,1,3,12,134,0,12,0,20,26,20,20,26,30,19,11,7,5,1,19,133,0,
+ 4,0,20,20,27,26,129,0,5,12,19,7,11,11,20,133,0,1,0,20,132,0,4,3,11,19,12,26,134,0,134,0,
+ 1,11,19,137,0,134,0,0,27,138,0,54,0,63,0,77,0,96,0,115,0,131,0,149,0,166,0,183,0,200,0,217,
+ 0,233,0,250,0,12,1,32,1,48,1,67,1,82,1,96,1,111,1,125,1,140,1,156,1,172,1,186,1,193,1,199,
+ 1,1,11,3,134,1,0,5,136,0,129,0,4,11,5,5,3,3,131,1,0,3,134,0,129,0,1,12,11,130,5,8,
+ 3,3,5,3,3,11,29,0,7,130,0,130,0,13,12,7,3,5,11,11,8,6,6,3,6,8,1,7,129,0,131,0,
+ 2,11,5,11,130,8,0,16,132,6,0,1,129,0,131,0,7,12,12,14,13,22,22,24,16,130,8,3,6,6,21,0,
+ 132,0,13,21,14,16,15,15,22,24,14,13,8,14,8,16,0,132,0,13,21,14,15,3,3,7,15,14,16,14,16,16,
+ 14,24,132,0,13,24,16,15,5,3,7,19,14,8,13,22,22,16,24,132,0,13,24,24,15,3,3,12,31,27,19,8,
+ 21,22,16,24,132,0,5,29,22,23,11,5,11,130,31,1,26,18,130,23,132,0,13,30,24,29,26,23,20,17,28,31,
+ 18,4,25,31,31,131,0,14,10,18,29,24,24,29,21,4,17,31,26,18,28,31,0,129,0,14,25,18,4,10,18,30,
+ 29,24,15,2,2,17,20,26,18,129,0,1,0,25,132,18,130,30,5,23,4,2,2,4,10,130,0,11,0,25,18,30,
+ 22,27,30,13,14,23,31,26,130,9,0,17,130,0,129,0,9,30,14,8,23,28,22,24,7,7,23,134,0,4,0,31,
+ 23,14,24,131,31,2,11,1,5,134,0,3,0,27,26,27,130,31,4,30,28,18,19,19,134,0,10,0,28,27,28,31,
+ 30,16,8,15,17,31,135,0,129,0,9,31,31,28,27,24,6,1,1,3,12,134,0,12,0,26,20,26,19,26,31,19,
+ 11,7,5,1,19,133,0,12,0,27,19,26,26,27,26,19,19,7,11,11,20,133,0,2,0,27,26,131,0,4,3,11,
+ 19,12,26,134,0,134,0,1,11,19,137,0,134,0,0,27,138,0,52,0,61,0,77,0,96,0,114,0,133,0,152,0,
+ 169,0,187,0,204,0,221,0,237,0,255,0,18,1,38,1,57,1,73,1,90,1,106,1,121,1,135,1,150,1,165,1,
+ 180,1,192,1,199,1,0,0,135,11,1,12,15,136,0,1,11,7,132,1,2,5,15,14,132,13,1,14,15,130,0,129,
+ 0,0,7,130,1,4,5,15,16,14,14,132,8,1,13,12,129,0,130,0,8,7,1,5,15,16,12,15,15,14,132,8,
+ 0,13,129,0,131,0,7,3,11,22,11,3,3,5,19,130,21,4,13,14,16,22,0,131,0,15,9,15,22,11,1,1,
+ 11,31,31,28,28,30,29,22,16,0,132,0,7,15,22,11,3,1,11,26,26,131,28,2,31,23,16,132,0,14,23,14,
+ 15,7,3,11,10,10,20,31,18,10,26,28,27,133,0,13,14,22,15,11,15,17,4,17,31,18,4,20,31,0,133,0,
+ 0,22,130,24,9,22,21,10,4,18,25,18,28,26,0,133,0,1,27,30,130,24,3,29,10,2,4,131,17,0,0,132,
+ 0,8,10,10,18,30,29,29,24,20,4,130,2,2,4,17,0,131,0,9,10,4,18,28,29,16,24,23,20,4,130,2,
+ 0,9,129,0,130,0,10,25,18,12,27,28,29,8,22,11,9,10,130,4,0,10,129,0,130,0,13,25,21,8,16,28,
+ 30,22,21,7,3,11,18,17,18,130,0,130,0,10,30,16,13,29,29,23,24,12,9,5,3,133,0,129,0,11,28,27,
+ 28,27,28,29,23,29,20,18,18,11,133,0,129,0,10,28,27,28,18,18,30,21,19,24,23,25,134,0,130,0,9,31,
+ 28,18,25,20,7,3,19,24,29,134,0,131,0,8,26,25,18,7,1,1,7,27,28,134,0,131,0,9,12,12,3,3,
+ 5,3,19,28,26,20,133,0,131,0,9,7,5,3,7,19,19,28,26,20,26,133,0,131,0,2,7,11,20,129,0,3,
+ 28,26,26,20,134,0,131,0,0,12,131,0,2,26,19,28,135,0,136,0,1,26,26,136,0,46,0,52,0,67,0,82,
+ 0,98,0,115,0,133,0,153,0,174,0,195,0,214,0,233,0,252,0,14,1,31,1,48,1,64,1,80,1,93,1,106,
+ 1,119,1,132,1,139,1,138,0,131,16,132,0,134,0,4,11,5,5,11,30,130,29,1,23,21,130,0,134,0,3,9,
+ 1,1,7,131,26,4,31,27,26,28,0,134,0,12,15,5,5,11,12,18,17,17,20,25,18,18,0,133,0,13,16,13,
+ 15,15,16,13,19,10,4,4,10,25,25,28,132,0,14,19,16,8,13,13,8,8,14,23,4,2,2,10,10,20,130,0,
+ 3,11,11,21,24,130,29,5,24,24,29,29,26,9,130,2,0,10,5,0,11,7,3,3,21,130,24,10,31,29,13,24,
+ 31,28,20,9,2,2,10,0,11,130,5,15,11,20,29,8,16,31,29,8,22,25,19,19,25,9,2,9,131,0,15,28,
+ 27,28,29,23,25,29,22,29,20,25,19,20,17,2,9,131,0,15,28,23,27,25,10,10,30,30,23,24,24,26,20,20,
+ 9,17,131,0,2,28,27,28,130,18,9,19,11,5,5,11,24,27,26,10,0,132,0,0,28,130,25,8,19,11,3,1,
+ 1,11,24,30,26,129,0,133,0,13,18,25,20,3,12,5,5,11,19,26,20,26,27,0,133,0,4,18,25,26,5,12,
+ 130,19,0,20,130,26,1,27,0,133,0,130,18,2,19,20,25,130,26,4,20,19,19,26,0,134,0,12,25,18,25,25,
+ 23,28,26,19,20,19,20,28,0,137,0,7,22,13,29,27,19,19,26,28,129,0,136,0,7,29,21,8,22,28,20,20,
+ 28,130,0,135,0,7,28,28,31,23,0,28,26,27,131,0,135,0,3,28,27,26,31,129,0,0,27,132,0,136,0,1,
+ 28,27,136,0,46,0,55,0,67,0,81,0,97,0,112,0,127,0,140,0,154,0,168,0,186,0,204,0,222,0,239,0,
+ 1,1,19,1,35,1,50,1,63,1,73,1,82,1,90,1,96,1,135,0,131,16,1,22,22,130,0,133,0,2,22,16,
+ 16,130,22,130,15,129,0,133,0,0,16,130,22,1,21,12,130,11,1,21,0,131,0,7,22,16,22,21,15,21,22,21,
+ 130,22,1,16,0,131,0,6,16,22,21,7,11,16,22,131,14,1,16,16,130,0,6,22,16,11,7,5,15,13,132,8,
+ 1,14,22,130,0,5,22,11,1,5,15,13,134,8,0,21,129,0,5,12,7,3,5,15,13,134,8,1,13,23,129,0,
+ 4,3,1,1,11,16,134,8,2,13,23,26,6,11,7,5,5,7,14,13,130,8,6,13,14,14,13,21,25,20,5,20,
+ 21,16,20,20,15,130,8,0,14,130,15,3,23,31,26,28,16,28,30,19,18,18,20,13,8,14,15,7,3,5,26,31,
+ 28,0,9,28,28,18,10,4,18,19,13,13,15,130,3,0,12,130,0,129,0,12,25,25,10,4,18,19,21,23,15,15,
+ 11,12,26,129,0,129,0,12,25,18,18,10,4,18,25,23,14,13,16,12,19,129,0,130,0,10,18,25,18,4,10,27,
+ 30,21,8,21,12,130,0,131,0,9,25,18,10,18,26,30,31,21,21,20,130,0,132,0,7,18,18,0,21,14,30,27,
+ 12,131,0,135,0,4,14,8,21,26,12,131,0,134,0,3,28,21,8,16,133,0,134,0,2,26,27,21,134,0,134,0,
+ 130,28,134,0,
+};
+static const jj_frame pic_grav_f[] = {{18,26,-8,-25,0},{18,24,-8,-24,455},{19,26,-10,-25,898},{19,26,-10,-25,1355},{20,25,-11,-24,1810},{20,22,-13,-22,2265},{17,22,-10,-23,2660}};
+static const jj_sheet pic_grav = {pic_grav_pal, pic_grav_data, pic_grav_f, 7, 8};
+static const uint16_t pic_sci_pal[] = {0,65535,65533,63420,61244,57017,52792,50614,44341,44242,44079,31695,17289,21095,6690,4321};
+static const uint8_t pic_sci_data[] = {
+ 22,0,29,0,37,0,44,0,50,0,56,0,62,0,69,0,76,0,83,0,89,0,130,0,3,100,88,130,0,129,0,5,
+ 102,41,189,129,0,129,0,7,56,36,157,160,9,6,24,130,20,71,9,114,35,137,81,90,9,129,36,124,217,160,6,4,
+ 54,156,224,130,0,6,15,216,204,224,130,0,6,15,14,206,224,130,0,131,0,130,15,130,0,22,0,29,0,36,0,44,
+ 0,52,0,60,0,67,0,74,0,81,0,89,0,93,0,131,0,2,99,64,132,0,131,0,3,116,89,131,0,131,0,5,
+ 68,41,221,129,0,130,0,8,84,130,56,170,0,129,0,9,81,41,115,18,58,11,5,18,86,187,100,170,11,6,19,104,
+ 239,235,224,7,12,133,158,240,131,15,0,240,131,14,132,0,1,240,0,240,138,0,20,0,27,0,35,0,42,0,49,0,
+ 56,0,63,0,73,0,83,0,91,0,131,0,3,99,88,130,0,131,0,4,98,137,208,129,0,130,0,7,88,36,155,160,
+ 10,6,132,120,33,67,112,10,145,35,40,133,21,160,10,5,34,75,221,154,0,129,0,1,104,130,12,0,224,130,0,129,
+ 0,1,221,130,12,0,224,130,0,129,0,1,254,131,15,130,0,20,0,27,0,34,0,41,0,48,0,56,0,63,0,71,
+ 0,78,0,87,0,132,0,2,83,80,131,0,132,0,3,70,120,130,0,131,0,7,97,73,157,208,131,0,7,53,38,154,
+ 189,130,0,8,100,147,18,55,208,11,7,181,39,151,87,160,9,12,245,34,104,206,129,0,11,254,196,19,108,236,207,2,
+ 255,176,130,9,129,0,131,15,22,0,28,0,35,0,43,0,51,0,58,0,64,0,70,0,76,0,85,0,91,0,131,0,
+ 1,116,131,0,130,0,3,34,54,130,0,129,0,5,38,36,139,129,0,5,5,24,38,130,11,0,0,7,2,57,66,189,
+ 129,0,9,113,89,113,110,240,9,148,71,179,75,253,9,13,188,215,41,253,129,0,1,255,129,0,3,167,208,134,0,0,
+ 160,129,0,24,0,30,0,37,0,48,0,60,0,70,0,79,0,89,0,99,0,106,0,111,0,115,0,131,0,1,137,136,
+ 0,6,255,14,150,176,135,0,1,255,130,14,2,214,128,131,9,130,0,0,0,132,14,1,147,130,1,0,128,130,0,129,
+ 0,9,239,254,182,99,27,130,0,11,240,254,236,184,81,104,130,0,2,255,224,131,12,7,98,57,39,160,129,0,131,14,
+ 8,9,20,180,53,160,135,0,6,153,10,85,160,139,0,2,163,160,140,0,1,160,
+};
+static const jj_frame pic_sci_f[] = {{10,10,-6,-11,0},{12,10,-7,-13,89},{11,9,-7,-11,182},{12,9,-7,-13,273},{10,10,-6,-10,360},{15,11,-6,-15,451}};
+static const jj_sheet pic_sci = {pic_sci_pal, pic_sci_data, pic_sci_f, 6, 4};
+static const uint16_t pic_wjet_pal[] = {0,65469,63388,61275,59163,57050,54937,50777,50712,46552,44406,40246,38101,33907,31827,25389,10598,4260,2146,34,34,33,0,0};
+static const uint8_t pic_wjet_data[] = {
+ 124,0,132,0,149,0,176,0,218,0,12,1,72,1,130,1,205,1,28,2,114,2,216,2,55,3,179,3,53,4,194,4,
+ 76,5,218,5,105,6,249,6,134,7,23,8,184,8,92,9,242,9,129,10,6,11,152,11,39,12,177,12,66,13,211,13,
+ 108,14,8,15,160,15,48,16,190,16,64,17,196,17,70,18,207,18,106,19,4,20,146,20,28,21,174,21,68,22,231,22,
+ 132,23,29,24,185,24,95,25,8,26,173,26,70,27,195,27,39,28,128,28,203,28,254,28,20,29,28,29,255,0,200,0,
+ 131,22,133,0,255,0,194,0,5,22,23,23,20,21,23,131,22,0,21,132,0,255,0,175,0,132,23,130,22,1,21,22,
+ 133,0,1,17,17,130,18,130,17,1,18,18,132,21,131,0,255,0,154,0,130,22,131,23,130,22,136,0,0,23,131,20,
+ 3,18,20,22,22,131,21,131,0,132,17,5,18,18,17,16,16,18,130,21,2,19,19,21,130,0,255,0,147,0,0,22,
+ 130,23,135,22,0,21,131,22,130,21,131,0,132,17,130,16,6,17,17,19,21,21,19,19,130,0,1,18,15,133,11,5,
+ 10,9,6,6,17,21,130,19,0,21,130,0,255,0,145,0,1,18,21,130,23,0,22,136,18,3,19,20,22,22,131,21,
+ 129,0,2,16,16,15,130,12,6,11,10,6,11,17,18,21,130,19,130,0,16,17,12,6,7,7,6,4,3,4,4,3,
+ 3,17,20,19,21,21,131,0,245,0,134,23,131,22,142,0,4,18,19,21,17,16,139,15,4,17,19,17,20,22,130,21,
+ 3,19,18,15,4,134,6,3,1,15,19,18,130,19,129,0,4,22,15,8,3,1,132,2,4,3,1,15,17,19,130,21,
+ 131,0,241,0,1,23,22,136,18,0,22,131,21,139,0,9,17,19,16,14,15,14,10,7,8,8,132,7,16,6,5,4,
+ 1,10,15,19,17,20,22,21,22,19,19,15,3,3,130,2,15,1,1,2,1,15,19,18,21,19,19,0,17,16,13,5,
+ 3,132,2,4,3,4,6,17,17,131,21,131,0,215,0,131,22,132,23,131,22,138,0,131,18,136,17,0,18,130,21,1,
+ 19,21,137,0,8,18,16,13,10,7,7,8,8,5,137,4,13,5,3,4,13,16,18,18,22,21,19,18,15,4,4,132,
+ 2,13,3,1,15,19,18,21,19,19,0,18,15,8,5,1,132,2,4,3,1,15,18,18,130,21,132,0,207,0,0,22,
+ 130,23,136,22,4,23,22,22,21,21,131,22,0,21,135,0,2,17,16,14,136,10,4,6,15,18,18,21,130,19,136,0,
+ 4,18,17,10,6,4,130,3,140,2,130,3,9,5,16,17,18,22,19,17,15,8,3,132,2,11,3,1,15,19,18,21,
+ 19,21,17,17,15,4,134,2,6,3,10,16,17,21,21,19,133,0,190,0,130,22,131,23,2,22,23,23,130,22,2,21,
+ 0,22,136,23,1,22,22,130,23,6,17,21,23,23,22,20,22,131,21,133,0,3,22,16,7,8,135,7,8,6,1,8,
+ 22,17,21,19,19,21,135,0,3,18,16,10,6,147,2,10,3,3,6,16,17,21,19,17,16,10,3,132,2,12,3,1,
+ 15,19,18,21,19,21,18,16,6,4,1,132,2,7,4,1,13,22,17,21,21,19,133,0,179,0,135,23,135,22,131,23,
+ 5,21,22,21,21,19,23,130,16,139,15,0,13,131,15,1,23,18,132,21,132,0,3,21,16,6,6,130,4,134,3,1,
+ 5,15,131,19,0,21,134,0,4,17,16,12,5,3,148,2,9,3,3,13,21,17,19,17,16,12,3,132,2,11,3,1,
+ 15,19,18,21,21,18,17,15,6,1,133,2,7,4,6,15,18,19,21,19,21,133,0,157,0,0,22,134,23,1,22,22,
+ 131,23,131,22,129,0,1,23,23,131,22,132,23,130,22,8,23,23,22,22,16,14,12,16,22,130,19,5,23,15,10,11,
+ 11,8,131,6,2,7,7,8,131,5,7,6,4,3,1,3,15,21,20,132,21,131,0,3,20,15,5,5,137,4,6,1,
+ 10,21,18,21,19,19,134,0,3,18,15,6,3,150,2,7,3,5,16,18,18,17,16,13,133,2,10,3,1,13,18,19,
+ 19,21,17,17,8,5,133,2,7,3,1,10,22,17,21,21,19,134,0,145,0,0,22,130,23,1,22,22,130,0,130,22,
+ 141,23,0,22,130,21,3,22,22,21,21,130,22,0,18,130,15,0,13,135,12,9,10,7,5,4,16,22,18,22,15,6,
+ 138,8,131,7,7,6,7,6,7,5,4,10,17,133,21,130,0,2,18,15,5,138,4,7,1,13,22,18,21,19,19,21,
+ 133,0,2,17,14,4,130,3,135,2,4,3,3,2,2,3,135,2,7,4,1,13,19,18,17,17,13,133,2,9,3,3,
+ 10,16,18,21,18,17,15,8,134,2,7,3,4,15,17,19,21,19,21,134,0,142,0,0,21,133,22,130,21,132,23,2,
+ 22,18,18,135,17,130,16,7,20,21,19,22,16,10,9,9,131,10,130,9,130,8,1,9,9,131,8,8,9,9,8,1,
+ 12,20,19,23,15,134,8,137,7,131,6,4,5,1,9,20,19,130,21,1,19,21,129,0,2,17,10,6,138,4,3,3,
+ 10,16,17,131,19,132,0,4,21,16,8,5,2,131,3,13,2,4,5,5,4,5,6,7,7,6,6,7,9,4,132,2,
+ 8,3,1,14,19,18,17,18,14,1,133,2,7,4,3,16,18,19,17,18,12,134,2,7,3,3,10,18,17,22,21,21,
+ 135,0,141,0,134,23,3,21,21,22,21,132,16,4,15,11,11,10,9,133,7,9,9,7,1,16,23,18,23,15,6,10,
+ 130,9,136,10,134,9,6,8,4,5,17,19,23,15,137,8,134,7,131,6,9,7,5,3,15,22,19,21,19,19,21,129,
+ 0,2,16,6,7,139,4,3,1,15,19,18,130,19,132,0,4,18,16,7,5,2,130,3,4,2,3,9,11,12,130,14,
+ 1,13,13,130,12,1,10,3,132,2,8,3,1,14,19,18,18,19,15,1,133,2,7,4,1,15,19,18,17,15,8,134,
+ 2,7,3,4,17,17,18,21,21,22,135,0,139,0,1,22,17,132,15,8,13,16,22,19,22,15,6,7,8,130,9,137,
+ 10,9,12,11,1,15,23,18,23,15,9,11,139,10,135,9,6,6,1,17,21,22,16,9,137,8,136,7,6,6,6,7,
+ 3,4,17,21,131,19,6,0,21,16,6,7,4,5,130,4,0,5,132,4,5,5,1,15,22,18,21,130,19,131,0,4,
+ 21,16,7,6,2,132,3,12,8,16,16,19,20,18,18,21,22,23,17,12,3,130,1,10,2,1,3,1,15,19,18,18,
+ 19,15,3,133,2,7,4,1,15,18,17,17,12,1,134,2,6,4,4,16,18,22,21,21,136,0,139,0,3,23,12,6,
+ 9,130,10,10,1,13,23,19,21,13,10,13,12,13,13,138,12,9,11,11,2,16,23,18,23,15,8,11,140,10,134,9,
+ 6,6,1,17,22,21,18,11,140,8,134,7,14,6,6,5,3,13,23,18,19,19,20,0,21,16,7,6,131,5,2,4,
+ 7,5,132,4,3,3,9,16,21,131,19,131,0,4,21,16,8,6,2,132,3,1,9,18,130,17,2,18,17,17,129,0,
+ 3,18,15,5,7,131,6,8,7,1,13,19,19,18,19,15,4,133,2,7,4,1,15,17,18,15,8,3,133,2,7,3,
+ 1,15,17,19,22,21,21,136,0,139,0,2,23,10,12,130,14,8,13,3,13,23,20,22,15,9,13,137,12,132,11,8,
+ 12,3,16,23,18,23,15,8,11,142,10,131,9,7,10,6,1,17,22,19,23,12,134,8,130,7,7,6,6,7,8,8,
+ 9,9,8,132,7,10,1,10,23,18,19,21,19,0,21,17,6,133,5,1,8,5,132,4,3,5,1,16,21,131,19,131,
+ 0,3,23,16,9,5,133,3,6,6,16,17,19,21,21,19,130,0,2,17,17,13,130,9,10,12,13,15,15,16,17,21,
+ 0,18,14,5,133,2,6,4,1,15,18,17,15,3,134,2,3,4,3,16,18,131,21,136,0,139,0,14,23,9,12,13,
+ 12,12,13,6,12,22,21,23,15,9,13,139,12,130,11,7,12,4,15,23,18,23,15,8,134,11,138,10,130,9,13,4,
+ 2,17,22,19,23,12,8,9,8,8,9,7,4,133,12,3,13,15,15,11,133,7,3,1,12,23,18,130,19,3,0,22,
+ 17,6,133,5,1,6,5,133,4,3,1,15,19,20,130,19,0,18,131,0,2,16,10,5,133,3,6,4,15,18,18,21,
+ 19,19,131,0,136,17,0,18,130,0,3,18,14,6,3,132,2,6,3,1,15,21,16,4,3,133,2,7,4,1,15,19,
+ 18,22,21,21,137,0,139,0,14,23,9,12,13,12,13,13,8,9,17,21,23,16,9,14,143,12,6,7,11,21,19,23,
+ 15,6,130,11,3,9,8,8,9,133,10,15,8,8,6,5,7,10,11,10,12,15,20,22,19,23,12,8,131,9,2,8,
+ 1,16,131,23,6,22,22,23,18,13,6,8,131,7,3,1,12,23,18,130,19,3,0,21,16,6,132,5,4,4,5,8,
+ 5,5,131,4,2,3,6,17,131,19,0,21,131,0,2,16,12,5,133,3,6,2,13,19,18,21,19,19,144,0,3,18,
+ 13,7,3,132,2,5,3,1,15,19,16,4,134,2,3,3,8,16,17,131,21,137,0,139,0,2,23,13,12,130,13,8,
+ 14,10,3,16,22,23,16,8,13,134,12,1,11,11,132,10,17,9,11,3,13,22,19,22,17,15,6,5,4,12,15,15,
+ 14,7,11,130,10,2,11,3,6,130,15,130,16,1,21,23,130,0,2,23,11,8,131,9,7,8,1,15,23,18,19,19,
+ 20,129,0,3,21,14,6,8,130,7,4,8,1,13,23,18,130,19,5,22,20,15,7,5,6,131,5,4,4,8,4,5,
+ 5,131,4,6,2,16,18,21,19,19,21,131,0,2,17,14,4,132,3,7,4,1,13,19,18,21,19,19,144,0,3,19,
+ 13,7,3,132,2,4,3,1,16,18,10,134,2,7,4,1,13,22,17,21,22,21,138,0,139,0,14,23,15,11,13,13,
+ 12,14,12,1,15,22,23,16,7,13,131,12,3,10,10,9,9,130,8,11,9,10,10,11,12,15,21,22,21,0,23,22,
+ 130,16,5,17,22,23,16,6,11,130,10,4,11,3,6,23,23,130,22,0,23,132,0,2,23,10,8,132,9,6,1,15,
+ 23,18,19,19,21,129,0,11,23,15,6,8,8,7,7,8,1,13,23,18,130,19,12,21,18,10,7,5,6,6,5,6,
+ 4,3,9,6,132,5,4,4,3,17,18,20,130,19,0,21,130,0,2,18,15,4,132,3,7,4,1,12,18,18,21,19,
+ 19,144,0,2,22,13,7,133,2,5,3,1,16,16,5,2,134,3,6,5,15,17,20,22,21,22,138,0,139,0,14,23,
+ 16,11,14,13,13,14,12,1,15,22,23,16,6,13,130,12,2,13,5,13,137,18,1,23,22,132,0,1,23,23,131,0,
+ 11,16,9,10,11,10,10,11,4,6,17,20,18,130,19,132,0,2,23,11,8,132,9,2,1,15,23,131,19,129,0,2,
+ 23,15,6,132,8,4,1,13,23,18,21,130,19,2,18,6,7,130,6,5,5,6,4,1,8,8,132,5,5,4,3,15,
+ 18,18,21,130,19,130,0,4,21,15,3,4,4,130,3,7,4,1,12,19,18,21,19,19,144,0,2,22,15,8,133,3,
+ 4,4,1,16,11,3,134,4,6,3,10,18,18,22,21,21,139,0,139,0,14,23,16,10,14,13,13,14,11,1,15,23,
+ 22,15,6,13,130,12,3,13,4,6,23,131,22,145,0,14,17,10,10,11,11,10,11,7,5,16,22,19,21,19,21,132,
+ 0,1,22,13,133,9,2,3,15,22,131,19,129,0,2,23,15,6,132,8,3,3,12,23,18,131,19,2,22,9,5,132,
+ 6,3,4,8,16,8,133,5,4,3,4,21,18,21,130,19,130,0,2,21,15,3,130,4,10,3,3,4,1,12,22,18,
+ 21,19,19,21,143,0,2,19,15,10,131,4,6,5,5,4,3,12,8,4,133,5,7,4,4,16,17,20,22,21,21,139,
+ 0,139,0,21,23,17,10,14,13,13,14,11,1,15,23,22,16,8,12,13,12,12,13,4,6,23,131,19,145,0,2,18,
+ 13,9,131,11,7,9,3,15,23,18,21,19,21,132,0,1,22,14,133,9,3,4,13,20,21,130,19,129,0,2,23,15,
+ 5,132,8,3,4,10,18,20,130,19,2,20,17,9,133,6,2,3,11,17,134,5,4,3,6,18,18,21,130,19,130,0,
+ 2,21,15,3,133,4,7,1,13,22,17,21,19,19,21,144,0,1,16,10,133,6,2,5,3,7,135,6,6,3,9,17,
+ 18,22,21,21,140,0,139,0,21,23,18,9,14,13,13,14,11,1,16,23,21,17,12,11,13,12,12,13,4,7,23,130,
+ 19,0,21,145,0,2,22,14,9,131,11,7,10,1,12,23,18,19,19,21,132,0,1,22,15,132,9,4,10,6,10,17,
+ 21,130,19,129,0,3,23,13,6,9,131,8,3,6,6,16,22,130,19,2,21,16,9,133,6,4,2,15,18,12,6,133,
+ 5,3,3,12,22,18,130,19,130,0,2,21,15,4,133,6,7,1,13,22,18,21,19,19,21,144,0,11,16,11,7,8,
+ 8,7,7,8,6,3,6,8,130,7,10,6,6,7,5,3,16,17,18,22,21,22,140,0,139,0,21,23,20,9,14,13,
+ 13,14,12,1,16,23,19,20,13,11,14,12,12,14,4,7,23,131,19,145,0,3,23,15,9,12,131,11,6,1,12,23,
+ 18,19,19,21,132,0,1,22,17,132,9,4,10,8,5,17,22,130,19,129,0,3,23,15,7,9,131,8,3,7,3,15,
+ 22,130,19,2,22,15,8,133,6,4,1,16,23,16,5,132,6,8,7,1,9,23,18,21,19,19,21,129,0,3,21,15,
+ 6,9,131,8,8,9,3,11,17,19,21,19,19,20,144,0,1,18,12,133,8,1,6,6,131,7,131,6,7,4,3,16,
+ 18,22,21,19,21,140,0,139,0,22,22,20,10,14,13,13,14,12,1,16,23,19,22,13,11,14,13,12,14,4,8,23,
+ 20,130,19,145,0,3,23,15,9,12,131,11,6,1,11,23,18,19,19,21,132,0,11,22,22,9,9,10,9,9,10,8,
+ 1,16,22,130,19,129,0,2,23,15,9,133,8,2,1,15,23,130,19,1,22,11,133,8,6,6,1,16,23,16,5,9,
+ 131,8,4,9,3,8,16,20,131,19,129,0,2,21,15,8,133,10,2,5,8,16,132,19,144,0,1,19,12,133,8,0,
+ 6,130,7,133,6,4,1,15,17,18,21,130,19,0,21,139,0,140,0,24,18,10,14,13,13,14,13,3,15,23,18,23,
+ 15,10,14,13,12,14,5,7,23,21,19,19,21,145,0,3,23,15,8,12,130,11,7,12,1,11,23,18,19,19,21,132,
+ 0,2,22,22,9,130,10,5,9,10,8,1,16,22,130,19,5,22,0,22,16,10,8,132,9,10,1,15,23,18,19,19,
+ 23,10,8,10,9,130,10,6,9,1,16,23,16,7,10,132,11,4,8,1,12,23,18,130,19,129,0,3,21,15,8,11,
+ 132,12,3,8,5,16,21,131,19,144,0,3,19,12,7,8,131,7,134,6,130,5,4,3,10,16,17,21,130,19,0,21,
+ 139,0,140,0,1,18,9,130,14,19,13,14,6,15,23,18,23,15,10,14,13,12,14,6,6,22,22,19,21,21,135,22,
+ 1,21,21,135,0,3,23,15,8,12,130,11,4,12,1,11,23,18,130,19,132,0,2,22,22,9,132,10,4,8,1,16,
+ 23,19,131,21,3,22,17,11,9,132,10,9,1,15,23,18,19,18,23,12,9,12,130,11,8,12,10,1,16,22,20,15,
+ 10,13,132,12,3,1,14,23,18,130,19,5,21,0,20,16,10,11,132,12,3,9,3,15,21,131,19,144,0,1,18,11,
+ 130,7,135,6,132,5,5,4,1,16,17,18,21,130,19,0,21,138,0,140,0,1,18,8,130,14,17,13,14,8,15,23,
+ 18,23,15,11,14,13,13,14,7,6,18,22,22,134,23,4,22,22,21,21,19,135,0,3,23,15,8,12,130,11,3,12,
+ 1,12,23,130,19,0,21,132,0,2,22,22,9,131,10,4,11,9,1,16,23,133,21,2,22,12,10,130,11,10,12,11,
+ 1,15,23,18,19,19,22,12,12,132,13,16,9,1,16,21,23,15,7,14,14,13,13,14,13,1,13,22,18,131,19,4,
+ 0,20,17,13,10,130,12,6,11,12,10,1,15,21,18,130,19,144,0,2,18,11,8,131,6,3,5,6,4,4,130,5,
+ 132,4,4,3,10,18,17,21,131,19,138,0,140,0,23,18,8,12,14,14,13,14,9,13,22,19,23,15,10,14,13,13,
+ 14,10,4,15,22,20,17,131,16,7,15,15,16,23,20,19,19,20,134,0,3,23,15,9,12,130,11,3,12,1,12,23,
+ 130,19,0,21,132,0,3,23,20,9,11,131,12,3,10,1,16,22,133,18,15,22,12,12,14,13,13,14,12,1,15,23,
+ 18,19,22,16,10,132,14,10,13,6,4,16,22,22,16,9,13,14,14,130,13,3,9,4,16,22,131,19,14,0,18,22,
+ 14,9,12,11,11,10,11,9,1,15,22,18,130,19,144,0,2,18,13,8,133,5,1,4,6,133,4,7,3,3,4,1,
+ 12,18,18,21,131,19,137,0,140,0,19,18,9,11,14,14,13,14,8,11,21,19,23,13,9,14,13,13,14,12,5,132,
+ 8,130,9,7,10,3,14,23,19,19,21,19,134,0,2,23,16,10,132,12,2,3,12,23,130,19,0,21,132,0,3,22,
+ 20,9,12,130,13,4,14,11,3,10,10,130,7,132,8,132,14,8,13,1,15,23,18,19,22,15,9,132,14,18,12,1,
+ 10,17,22,18,21,13,12,14,12,13,12,13,12,1,15,23,18,130,19,5,20,0,22,15,9,11,131,10,4,9,1,15,
+ 22,18,130,19,144,0,3,20,13,8,5,133,4,2,3,9,4,134,3,5,4,3,15,19,18,21,130,19,0,21,136,0,
+ 140,0,14,20,10,11,14,14,13,14,9,5,17,21,23,15,11,14,130,13,0,14,130,10,131,11,9,12,13,14,10,6,
+ 17,22,19,19,21,135,0,2,16,11,12,130,13,3,14,6,12,23,130,19,0,21,133,0,2,18,8,13,132,14,2,11,
+ 11,10,135,11,133,14,7,1,15,23,18,19,23,13,6,132,14,8,12,1,15,22,19,18,23,13,10,132,12,3,10,2,
+ 13,18,131,19,5,21,0,22,15,8,10,132,9,3,1,15,22,18,130,19,144,0,2,18,15,8,131,4,5,3,4,4,
+ 3,15,4,134,3,5,4,2,9,16,17,21,131,19,136,0,140,0,2,22,14,10,131,14,7,10,1,16,22,22,16,12,
+ 14,131,13,134,14,6,13,13,14,11,1,16,23,130,19,135,0,2,17,12,12,131,14,2,9,12,23,130,19,0,21,133,
+ 0,2,20,7,13,132,14,135,15,135,14,22,10,6,16,22,19,19,23,13,8,14,13,13,12,13,12,1,15,23,18,18,
+ 21,16,10,130,11,6,10,10,11,8,1,16,22,130,19,5,21,0,22,15,7,9,132,8,6,1,15,22,18,21,19,19,
+ 144,0,4,18,15,8,3,4,133,3,1,16,15,130,3,132,2,5,4,1,15,21,17,21,130,19,0,21,135,0,140,0,
+ 2,23,15,10,131,14,7,10,1,16,23,22,16,12,13,141,14,3,12,1,16,23,130,19,135,0,2,22,12,13,131,14,
+ 6,11,10,22,21,19,21,19,133,0,3,20,9,12,15,147,14,8,1,12,23,19,21,19,23,14,9,132,12,7,11,1,
+ 15,23,22,23,18,16,132,10,5,9,10,8,1,16,22,130,19,5,21,17,22,15,6,8,131,7,7,6,1,15,22,18,
+ 21,19,19,144,0,3,17,16,8,2,132,3,5,4,3,15,16,1,3,134,2,3,4,6,16,17,132,19,0,21,134,0,
+ 140,0,2,23,16,9,131,14,7,11,1,17,23,22,17,12,13,141,14,3,12,1,16,23,130,19,135,0,1,23,13,132,
+ 14,6,13,6,16,22,19,21,19,133,0,2,22,11,10,140,14,133,13,10,14,6,6,16,22,21,21,18,23,15,9,130,
+ 11,4,10,11,9,4,9,131,10,1,9,8,131,9,6,8,9,6,2,11,18,21,130,19,4,18,22,15,6,7,132,6,
+ 2,1,15,21,131,19,144,0,3,17,17,9,2,132,3,6,4,3,12,18,15,3,3,133,2,5,3,2,6,17,18,21,
+ 131,19,134,0,140,0,2,23,16,10,131,14,6,12,2,17,23,21,20,12,137,14,132,15,6,14,1,15,23,19,21,21,
+ 135,0,1,23,13,133,14,2,1,15,23,130,19,133,0,2,22,13,9,132,14,133,13,135,12,10,5,3,15,23,20,21,
+ 22,0,23,15,8,130,10,3,9,10,9,9,140,8,4,7,4,1,17,21,130,19,2,18,22,15,131,6,130,5,3,1,
+ 12,17,21,130,19,0,21,140,0,6,18,18,20,18,21,10,2,134,3,4,8,17,17,13,1,134,2,5,4,3,16,18,
+ 18,21,131,19,133,0,141,0,2,16,10,15,131,14,5,4,16,23,19,23,13,132,14,135,12,7,11,12,9,4,16,23,
+ 19,21,136,0,2,23,13,13,132,14,5,1,15,23,18,19,19,133,0,3,22,15,9,14,140,12,130,11,7,10,1,8,
+ 15,22,21,22,22,129,0,2,22,13,8,133,9,1,8,9,132,8,135,7,11,4,4,20,20,21,19,19,18,22,14,7,
+ 6,132,5,3,3,6,16,22,130,19,0,21,135,0,132,17,5,18,20,22,18,19,9,135,3,6,7,17,17,16,6,1,
+ 3,132,2,4,3,3,5,16,17,132,19,0,21,132,0,141,0,2,16,9,15,130,14,6,15,7,16,23,19,23,13,132,
+ 14,5,6,4,7,9,10,12,130,13,4,14,15,16,22,22,138,0,13,23,13,12,14,14,13,14,13,1,15,23,18,19,
+ 19,133,0,3,22,16,9,12,131,11,4,9,9,10,9,9,131,8,7,7,7,4,7,15,17,23,20,131,0,4,22,17,
+ 12,8,9,133,8,138,7,130,6,3,5,3,16,21,130,19,4,18,23,15,7,6,132,5,3,4,3,16,22,130,19,0,
+ 22,131,0,0,18,130,17,2,18,18,19,130,18,5,22,21,18,17,7,4,134,3,5,5,17,17,21,13,5,134,2,5,
+ 3,1,13,22,17,21,131,19,132,0,141,0,1,16,8,131,14,6,15,7,15,23,19,23,13,132,14,12,6,10,17,17,
+ 18,18,20,20,21,22,23,23,22,139,0,3,23,13,11,13,131,12,5,1,15,23,18,19,19,133,0,2,23,16,8,130,
+ 11,16,10,11,6,3,9,12,15,15,16,17,16,17,17,16,16,23,22,133,0,3,23,15,7,9,133,8,138,7,132,6,
+ 10,3,8,22,18,19,19,18,23,15,7,6,132,5,3,4,2,16,22,130,19,0,21,130,0,0,18,130,17,12,16,16,
+ 14,9,12,16,17,18,22,18,17,8,5,134,3,0,5,130,17,2,16,8,3,134,2,5,3,3,15,18,18,21,130,19,
+ 0,21,131,0,141,0,1,16,6,131,14,7,15,7,15,22,19,23,13,13,131,14,6,9,12,23,22,22,21,22,145,0,
+ 14,23,13,9,12,11,12,12,11,1,15,23,18,19,19,21,132,0,2,23,17,7,132,10,5,5,3,18,21,21,22,132,
+ 23,137,0,3,23,15,4,9,132,8,142,7,5,6,7,3,8,22,18,130,19,2,22,15,7,131,6,130,5,6,1,16,
+ 22,19,21,19,19,129,0,3,17,18,12,9,130,8,10,6,5,4,4,15,17,19,17,17,11,6,134,3,8,6,18,18,
+ 19,18,16,5,2,3,132,2,4,3,1,12,18,17,132,19,131,0,141,0,2,16,6,13,131,14,6,6,13,22,19,23,
+ 13,12,131,14,6,11,10,22,21,19,19,20,145,0,2,23,13,8,132,11,6,1,15,23,18,19,19,21,132,0,2,23,
+ 17,7,130,10,5,9,10,5,3,17,22,131,19,140,0,3,23,15,5,9,141,8,1,9,8,133,7,3,6,4,15,22,
+ 130,19,2,22,15,9,133,6,5,5,1,16,22,19,20,130,18,5,17,17,18,9,6,3,132,4,7,3,5,17,18,18,
+ 17,13,7,134,3,6,6,18,17,22,17,17,13,130,3,132,2,5,4,1,15,18,18,21,131,19,130,0,141,0,24,17,
+ 10,11,14,13,13,14,7,4,21,19,23,13,11,13,12,12,13,11,8,17,22,19,19,21,145,0,11,23,12,7,11,10,
+ 10,11,11,3,15,23,18,130,19,133,0,10,16,5,10,9,10,9,10,6,3,16,22,131,19,140,0,2,23,15,6,130,
+ 9,130,8,136,6,1,7,9,132,8,10,7,8,1,11,23,18,19,19,21,17,11,133,6,3,5,1,16,22,131,18,5,
+ 20,22,22,23,10,7,133,4,9,3,4,17,18,18,17,15,7,3,4,132,3,7,6,17,17,21,18,18,16,9,130,3,
+ 132,2,4,3,5,16,17,18,131,19,0,21,129,0,133,0,132,22,130,0,13,22,14,10,13,12,12,13,6,1,21,19,
+ 23,12,9,131,12,3,10,5,16,23,130,19,145,0,3,23,13,7,11,130,10,4,11,5,15,23,18,130,19,133,0,1,
+ 16,6,132,10,3,7,3,15,22,131,19,140,0,3,22,15,7,10,131,9,1,5,7,136,16,1,15,7,133,8,2,1,
+ 11,18,130,19,2,18,22,12,133,6,15,5,1,16,23,22,23,22,17,16,15,13,11,9,8,4,5,131,4,9,3,3,
+ 17,18,18,17,15,7,3,4,132,3,9,5,16,18,21,21,18,17,14,6,4,130,3,130,2,5,3,3,9,17,17,21,
+ 131,19,129,0,131,0,3,21,22,22,21,130,22,0,21,129,0,24,23,15,9,12,12,11,12,6,1,22,19,23,13,8,
+ 12,11,11,12,10,1,15,23,19,19,21,145,0,2,23,15,8,132,11,3,6,12,21,21,130,19,133,0,1,17,8,131,
+ 10,4,11,8,3,13,22,131,19,140,0,3,17,12,9,10,130,9,4,10,3,10,23,22,132,23,4,22,23,16,5,9,
+ 132,8,8,5,1,15,23,18,19,18,23,12,133,6,1,5,4,133,10,8,9,6,6,4,7,8,4,5,5,130,4,2,
+ 3,3,17,130,18,2,16,6,3,130,4,130,3,9,5,16,18,19,19,21,17,17,13,2,132,3,7,2,2,3,3,16,
+ 17,18,21,131,19,0,0,129,0,133,23,0,22,131,21,14,0,23,15,8,12,11,11,12,5,3,22,20,23,13,8,132,
+ 11,6,1,15,23,18,19,19,22,133,0,131,22,134,0,2,23,16,9,131,11,4,12,9,4,16,22,130,19,133,0,2,
+ 17,10,9,131,11,3,10,3,9,23,131,19,140,0,3,16,6,10,10,130,9,4,10,1,10,23,18,130,19,131,0,1,
+ 16,12,134,8,9,1,15,23,18,19,18,23,12,7,7,132,6,1,7,6,131,5,0,4,130,5,0,6,134,5,9,4,
+ 4,10,18,18,20,18,16,6,3,132,4,10,3,4,15,18,18,19,19,18,17,16,9,133,3,5,2,3,3,8,16,17,
+ 132,19,0,21,1,0,17,132,16,2,15,22,22,130,19,14,22,23,15,8,12,11,11,12,6,3,22,21,23,15,8,132,
+ 11,6,1,15,23,18,21,21,22,134,21,3,22,22,21,21,133,0,2,23,16,9,132,12,3,10,1,16,23,130,19,133,
+ 0,10,18,12,9,12,11,12,12,11,4,6,23,131,19,139,0,2,23,16,4,130,10,6,9,9,10,3,9,23,19,130,
+ 21,131,0,3,23,15,6,9,132,8,10,1,15,23,18,19,19,22,15,9,6,7,140,6,137,5,7,1,16,20,21,20,
+ 18,17,6,134,4,11,3,13,19,18,21,19,21,17,17,12,7,2,132,3,5,2,4,1,10,18,17,132,19,8,23,16,
+ 4,8,7,7,8,1,10,131,21,14,22,23,15,8,12,11,11,12,6,4,22,21,22,16,9,130,11,5,12,11,1,15,
+ 23,22,137,23,130,21,1,19,21,132,0,2,22,18,10,132,12,3,11,1,16,23,130,19,133,0,2,22,14,9,131,12,
+ 3,13,4,4,23,131,19,139,0,2,23,16,6,131,10,5,9,10,3,9,23,19,130,21,131,0,3,23,15,7,9,132,
+ 8,7,4,8,16,21,19,19,20,18,131,7,1,6,7,138,6,135,5,8,1,12,18,18,21,21,18,17,7,134,4,4,
+ 2,11,19,18,21,130,19,4,17,16,7,4,2,133,3,8,4,4,15,18,18,21,19,19,21,2,23,16,9,131,12,2,
+ 8,1,20,130,23,14,22,23,16,8,12,11,11,12,8,4,17,22,22,16,10,132,12,2,2,13,16,130,15,2,13,13,
+ 12,130,13,6,11,13,23,20,19,19,21,132,0,2,22,23,11,130,13,5,12,14,11,1,16,23,130,19,133,0,2,23,
+ 15,9,131,12,7,13,4,5,23,20,19,19,21,139,0,2,23,16,8,132,10,4,9,3,9,23,19,130,21,132,0,2,
+ 18,12,7,133,8,9,1,16,23,19,19,20,21,16,7,8,131,7,139,6,132,5,10,3,7,17,21,20,21,22,19,17,
+ 7,5,133,4,6,1,9,19,18,21,19,19,129,0,3,18,15,6,4,133,3,4,4,3,8,16,19,130,21,0,22,10,
+ 23,16,8,12,11,11,12,6,2,17,17,131,16,1,14,9,131,12,6,9,4,16,22,21,18,10,132,12,6,9,8,9,
+ 8,8,7,7,131,6,8,7,4,5,17,22,19,21,19,21,132,0,2,23,11,12,130,13,4,14,11,1,16,23,130,19,
+ 133,0,3,23,16,9,13,130,12,7,13,4,6,23,21,19,19,21,139,0,2,22,15,8,132,10,4,7,3,13,23,19,
+ 130,21,132,0,3,23,12,7,9,131,8,3,7,1,15,22,130,19,3,21,20,13,8,132,7,137,6,130,5,13,6,6,
+ 4,3,15,21,18,22,22,0,18,16,8,6,133,5,3,1,8,19,18,130,21,129,0,2,17,17,13,130,3,131,2,3,
+ 3,4,1,16,131,21,0,0,2,23,16,9,131,12,1,8,8,132,9,2,8,8,11,130,12,8,13,9,5,17,22,19,
+ 23,10,12,130,13,141,14,6,1,12,23,18,19,19,21,132,0,10,23,10,11,14,13,13,14,11,1,16,23,130,19,133,
+ 0,3,23,16,9,13,130,12,7,13,4,7,23,21,19,19,21,139,0,2,18,12,9,132,10,4,4,3,16,22,19,130,
+ 21,132,0,3,22,15,9,9,132,8,13,6,3,17,22,19,21,21,18,23,15,7,6,8,8,141,7,7,6,4,11,16,
+ 21,20,21,22,129,0,6,21,16,5,6,5,6,6,130,7,6,1,9,21,18,22,19,22,130,0,6,18,15,10,9,10,
+ 12,12,130,13,5,12,15,17,20,22,22,129,0,3,0,15,6,13,130,12,131,13,132,14,12,13,13,14,13,14,7,3,
+ 22,22,19,23,13,10,144,14,6,1,13,23,18,21,19,19,132,0,10,23,10,11,14,13,13,14,11,1,16,23,130,19,
+ 0,21,132,0,3,23,16,8,13,131,12,6,4,7,23,21,19,19,21,139,0,1,17,4,132,10,3,11,5,5,18,132,
+ 21,132,0,2,21,18,10,133,9,3,6,1,17,22,130,21,5,0,18,23,16,13,7,132,5,1,4,4,130,6,131,7,
+ 7,6,10,14,22,20,20,22,20,131,0,1,17,14,135,15,3,16,18,21,22,133,0,9,18,17,15,16,17,18,21,21,
+ 22,21,130,18,131,0,6,0,17,11,12,14,13,14,131,13,135,14,9,13,14,7,10,22,21,21,23,16,6,144,14,6,
+ 1,13,23,18,21,19,19,132,0,10,23,9,10,14,13,13,14,11,1,16,23,130,19,0,21,132,0,3,23,15,7,14,
+ 130,12,7,13,5,7,23,21,19,19,21,139,0,10,18,10,9,10,10,9,9,10,5,1,22,131,21,133,0,3,21,22,
+ 12,6,131,7,6,6,7,15,18,21,21,22,131,0,3,23,21,15,15,133,16,135,15,2,16,22,18,136,0,136,22,0,
+ 21,153,0,3,0,23,15,6,141,14,11,13,14,11,1,16,23,21,21,0,23,15,9,143,14,6,1,13,23,18,19,19,
+ 21,132,0,2,23,11,10,131,14,3,12,1,15,23,130,19,133,0,2,23,16,8,132,12,6,4,6,23,21,19,21,21,
+ 139,0,4,23,16,5,9,9,130,8,5,6,16,22,21,21,22,135,0,1,21,17,134,16,2,22,22,21,135,0,136,23,
+ 132,22,1,23,23,175,0,129,0,2,21,13,10,141,14,5,11,1,15,23,21,21,130,0,3,17,11,10,12,136,14,130,
+ 13,7,14,14,1,12,23,18,21,21,133,0,3,23,15,7,12,130,11,6,8,1,16,23,19,21,21,134,0,2,21,15,
+ 10,131,11,5,9,8,23,21,21,22,141,0,0,22,131,18,4,20,18,18,23,22,139,0,0,22,133,23,0,22,202,0,
+ 130,0,3,23,13,5,12,137,14,6,13,10,2,15,20,22,21,132,0,12,23,15,9,7,9,11,11,10,9,9,7,6,
+ 6,130,5,6,4,4,15,22,19,21,22,133,0,2,23,21,12,131,13,4,12,15,18,22,21,136,0,0,22,135,23,0,
+ 22,146,0,4,23,22,22,23,23,225,0,131,0,4,23,15,11,8,10,133,9,7,8,8,4,9,15,23,22,22,133,0,
+ 6,21,23,16,15,15,13,14,137,15,3,16,23,21,22,136,0,0,22,134,23,1,22,22,139,0,133,22,251,0,132,0,
+ 1,23,17,138,16,1,18,23,139,0,2,23,23,22,137,23,255,0,165,0,134,0,137,23,255,0,193,0,
+};
+static const jj_frame pic_wjet_f[] = {{211,61,0,0,0}};
+static const jj_sheet pic_wjet = {pic_wjet_pal, pic_wjet_data, pic_wjet_f, 1, 8};
+static const uint16_t pic_wjoy_pal[] = {0,65491,65458,65390,65262,65227,65098,64969,64872,64807,64742,64839,62790,64676,64481,45953,35328,20832,4160,0,0,0,0,0};
+static const uint8_t pic_wjoy_data[] = {
+ 116,0,154,0,220,0,60,1,173,1,48,2,175,2,38,3,152,3,37,4,180,4,70,5,210,5,88,6,245,6,132,7,
+ 22,8,182,8,75,9,237,9,124,10,15,11,167,11,71,12,228,12,123,13,9,14,148,14,28,15,163,15,43,16,180,16,
+ 64,17,215,17,115,18,19,19,160,19,39,20,188,20,83,21,227,21,119,22,21,23,173,23,77,24,246,24,139,25,18,26,
+ 169,26,22,27,133,27,249,27,113,28,245,28,111,29,233,29,25,30,59,30,148,0,136,19,138,0,144,19,139,0,0,23,
+ 135,19,139,0,136,19,133,0,149,19,140,0,136,19,132,0,149,19,139,0,0,23,150,19,130,0,146,0,130,23,133,22,
+ 130,23,135,0,0,19,130,23,140,22,130,23,0,19,136,0,1,23,23,133,22,130,23,137,0,130,23,2,22,23,22,132,
+ 23,131,0,151,23,0,19,136,0,139,23,129,0,1,23,19,152,23,135,0,130,23,148,22,130,23,0,0,146,0,2,23,
+ 23,17,132,15,4,16,15,17,23,19,132,0,131,23,0,16,141,15,2,16,15,18,130,23,133,0,2,23,23,18,135,15,
+ 1,23,23,135,0,2,23,23,17,135,15,1,18,23,129,0,1,23,19,149,15,131,23,134,0,1,23,18,135,15,6,17,
+ 23,19,0,23,23,16,146,15,5,16,15,16,22,23,23,133,0,2,23,23,18,149,15,3,17,23,23,0,145,0,3,19,
+ 23,17,14,133,12,3,6,6,18,23,131,0,4,23,19,23,17,15,145,12,0,15,130,23,132,0,1,23,18,134,12,3,
+ 5,5,23,23,135,0,3,23,23,13,12,132,7,9,5,5,17,23,23,0,23,18,12,12,144,6,130,5,1,12,15,130,
+ 23,132,0,4,19,23,16,5,5,132,6,8,5,16,23,19,19,23,16,5,5,135,6,138,7,3,12,12,15,18,130,23,
+ 131,0,3,23,18,6,5,149,12,2,17,23,19,145,0,13,19,23,17,14,12,11,9,9,11,9,12,5,17,23,130,0,
+ 6,23,23,18,14,13,8,11,141,9,7,11,9,11,5,5,15,23,19,130,0,4,23,23,18,12,10,132,9,3,11,5,
+ 16,23,135,0,3,23,18,13,11,133,9,8,7,7,19,23,0,23,18,13,11,144,9,130,11,5,7,5,15,19,20,23,
+ 131,0,3,19,23,15,12,133,9,7,12,16,23,23,19,23,15,12,146,9,8,11,9,9,12,13,15,23,19,23,129,0,
+ 6,23,23,18,5,7,9,11,145,9,4,11,12,15,23,19,145,0,4,19,23,17,14,9,131,11,4,9,11,5,17,23,
+ 129,0,5,23,19,23,17,13,10,130,9,140,11,131,9,4,5,12,18,23,23,129,0,4,23,23,18,13,13,132,11,4,
+ 9,5,15,23,19,133,0,4,19,23,15,13,9,133,11,8,13,15,19,23,0,23,18,13,8,144,11,131,9,2,11,5,
+ 15,130,23,130,0,3,19,23,16,12,133,11,7,12,15,23,23,19,23,15,13,147,11,130,9,4,11,12,15,20,23,129,
+ 0,5,23,23,18,5,7,9,147,11,3,12,16,23,19,145,0,4,19,23,17,14,9,131,11,4,9,8,5,17,23,129,
+ 0,4,23,23,17,13,10,147,11,3,9,9,5,15,130,23,129,0,4,23,18,15,10,8,131,11,4,9,11,12,18,19,
+ 133,0,4,19,19,15,11,9,132,11,9,13,13,18,23,23,0,23,18,13,8,148,11,5,9,9,7,15,23,23,130,0,
+ 3,19,23,16,12,133,11,7,12,16,23,23,19,23,15,13,151,11,11,9,12,15,18,23,0,23,23,18,5,7,9,147,
+ 11,3,12,16,23,19,145,0,4,19,23,17,14,9,131,11,11,9,8,5,17,23,0,19,23,17,13,10,8,150,11,3,
+ 5,12,19,23,129,0,3,19,23,17,12,132,11,5,9,11,5,15,23,19,132,0,3,23,17,13,9,132,11,10,8,10,
+ 15,18,23,0,23,23,18,13,8,151,11,3,12,17,23,23,129,0,3,19,23,16,10,133,11,7,12,16,23,23,19,23,
+ 15,13,151,11,11,8,13,13,18,23,23,0,23,18,5,7,9,147,11,3,12,16,23,19,145,0,4,19,23,17,14,11,
+ 131,8,11,11,8,5,17,23,0,19,23,15,13,11,11,131,8,141,11,131,8,5,9,7,5,18,23,23,129,0,5,23,
+ 17,14,10,8,11,130,8,4,11,5,15,23,19,131,0,4,19,23,16,13,9,131,8,12,11,11,12,17,23,19,0,23,
+ 23,18,13,7,11,132,8,139,11,131,8,5,11,8,13,14,23,23,129,0,4,19,23,16,10,11,130,8,10,11,11,12,
+ 16,23,23,19,23,15,13,11,133,8,140,11,131,8,4,11,8,13,17,23,129,0,4,23,18,5,7,11,132,8,142,11,
+ 3,8,16,23,19,145,0,4,19,23,17,14,11,132,8,8,7,5,17,23,0,19,23,15,7,133,8,1,7,7,137,8,
+ 1,7,7,133,8,3,5,17,23,23,129,0,3,19,23,16,12,133,8,4,7,5,17,23,19,130,0,4,23,17,14,12,
+ 7,131,8,4,7,11,14,17,23,129,0,4,23,23,18,13,7,133,8,0,7,137,8,0,7,134,8,2,14,18,23,129,
+ 0,3,19,23,16,12,133,8,8,12,16,23,23,19,23,15,13,11,133,8,0,7,137,8,1,7,7,132,8,2,7,13,
+ 13,131,23,2,18,5,7,133,8,1,7,7,139,8,4,11,12,16,23,19,145,0,4,19,23,17,14,11,131,7,9,8,
+ 7,5,17,23,0,23,18,14,8,131,7,3,8,7,7,8,137,7,1,11,8,132,7,4,8,5,12,23,23,129,0,4,
+ 19,23,15,13,8,133,7,3,5,17,23,19,129,0,4,23,23,17,13,12,133,7,3,12,16,23,19,129,0,5,23,23,
+ 18,13,7,8,132,7,0,8,137,7,1,8,8,133,7,2,13,15,23,129,0,3,19,23,16,12,131,7,10,8,7,8,
+ 16,23,23,19,23,16,13,11,132,7,1,8,11,138,7,0,11,134,7,0,14,131,23,1,18,5,134,7,0,8,140,7,
+ 4,8,13,16,23,19,145,0,4,19,23,17,14,11,133,7,7,5,17,23,0,23,17,14,11,132,7,2,6,5,15,137,
+ 16,1,14,13,133,7,3,5,5,23,23,130,0,3,23,17,14,8,132,7,4,8,5,15,19,23,129,0,3,23,23,17,
+ 13,134,7,3,13,15,23,19,129,0,3,23,23,18,13,134,7,0,14,136,16,2,15,14,12,133,7,2,13,15,23,129,
+ 0,3,19,23,16,12,133,7,8,8,16,23,23,19,23,16,14,8,132,7,2,12,14,15,136,16,1,15,13,133,7,1,
+ 6,13,131,23,1,18,5,134,7,1,14,15,141,16,2,18,23,0,145,0,3,19,23,17,14,134,7,7,5,17,23,0,
+ 23,16,13,11,133,7,1,5,17,137,23,1,13,13,133,7,3,5,5,23,23,130,0,3,19,23,15,13,133,7,3,6,
+ 5,18,23,129,0,4,23,18,15,10,6,133,7,2,14,17,23,130,0,4,23,23,18,13,6,133,7,0,14,136,23,2,
+ 18,13,12,133,7,8,13,15,23,19,0,19,23,16,12,132,7,8,6,7,16,23,23,19,23,16,14,133,7,2,12,14,
+ 18,136,23,0,18,134,7,1,6,14,131,23,1,18,6,134,7,1,14,17,143,23,0,0,145,0,4,19,23,17,14,7,
+ 131,6,9,7,6,5,17,23,0,23,16,14,7,131,6,3,7,7,5,17,137,19,3,13,13,6,7,130,6,4,7,5,
+ 5,23,23,130,0,3,19,19,16,14,133,6,9,7,5,18,23,23,0,23,18,13,8,132,6,4,7,13,15,23,19,130,
+ 0,5,23,23,18,13,6,7,131,6,1,7,14,136,19,4,18,13,8,6,7,130,6,9,7,13,15,23,19,0,19,23,
+ 16,12,131,6,10,7,6,7,16,23,23,19,23,16,14,7,130,6,4,7,6,12,14,17,136,19,1,17,12,132,6,2,
+ 7,5,13,131,23,3,18,6,7,7,132,6,1,14,17,141,19,0,23,129,0,145,0,4,19,23,17,14,7,133,6,7,
+ 5,17,23,0,23,16,14,7,133,6,3,5,17,23,19,133,0,3,23,23,14,13,133,6,3,5,5,23,23,131,0,3,
+ 23,23,14,7,133,6,1,5,5,131,23,2,16,13,5,132,6,3,5,14,17,23,131,0,4,23,23,18,13,5,133,6,
+ 2,14,23,23,132,0,4,23,23,18,13,7,133,6,8,13,15,23,19,0,19,23,16,12,133,6,7,7,16,23,23,19,
+ 23,16,14,133,6,3,12,14,17,23,133,0,3,23,23,18,12,133,6,1,5,14,131,23,2,18,6,7,133,6,2,14,
+ 17,23,143,0,145,0,3,19,23,17,14,134,6,7,5,17,23,0,23,16,14,7,133,6,3,5,17,23,19,133,0,4,
+ 23,20,14,13,5,132,6,3,5,5,23,23,131,0,4,23,23,15,13,4,132,6,1,5,5,131,23,2,14,13,5,132,
+ 6,3,7,14,23,23,131,0,4,23,23,18,13,4,133,6,2,14,23,23,132,0,4,23,23,18,14,7,133,6,8,14,
+ 15,23,19,0,19,23,16,8,132,6,8,5,7,16,23,23,19,23,16,14,132,6,4,5,12,14,17,23,133,0,4,23,
+ 23,18,12,5,132,6,1,4,13,131,23,1,18,7,134,6,2,14,17,23,143,0,145,0,5,19,23,17,14,6,5,130,
+ 6,10,5,6,5,17,23,0,23,16,14,6,5,130,6,5,5,6,5,17,23,19,133,0,4,23,20,14,13,4,131,6,
+ 130,5,1,23,23,131,0,3,23,23,18,13,134,6,7,5,16,23,23,17,14,7,5,131,6,4,4,13,16,23,23,131,
+ 0,4,23,23,18,13,4,133,6,2,14,23,23,132,0,5,23,23,18,14,7,5,132,6,9,14,15,23,19,0,19,23,
+ 16,12,5,131,6,10,4,6,16,23,23,19,23,16,14,6,5,130,6,4,5,12,14,17,23,133,0,4,23,23,18,12,
+ 4,132,6,1,4,13,131,23,3,18,7,6,5,131,6,3,5,14,17,23,143,0,145,0,4,19,23,17,14,6,134,5,
+ 7,17,23,0,23,16,14,6,4,131,5,4,6,5,17,23,19,133,0,4,23,20,14,13,4,134,5,1,23,23,131,0,
+ 5,23,23,18,14,12,4,133,5,5,6,23,23,15,13,4,132,5,1,6,13,130,23,131,0,4,23,23,18,13,4,133,
+ 5,2,14,23,23,132,0,5,23,23,18,14,7,4,132,5,8,14,15,23,19,0,19,23,16,7,132,5,9,4,6,16,
+ 23,23,19,23,16,14,6,131,5,4,4,8,14,18,23,133,0,4,23,23,18,12,4,132,5,1,4,13,131,23,3,18,
+ 7,6,4,132,5,2,14,17,23,143,0,145,0,4,19,23,17,14,5,132,4,8,5,5,17,23,0,23,16,14,6,132,
+ 4,4,5,5,17,23,19,133,0,5,23,20,14,13,4,5,131,4,3,5,5,23,23,132,0,5,23,18,15,12,4,5,
+ 131,4,5,5,12,23,23,15,10,131,4,6,5,4,12,14,18,23,23,131,0,5,23,23,18,13,4,5,131,4,3,5,
+ 14,23,23,132,0,6,23,23,18,14,7,4,5,131,4,8,14,15,23,19,0,19,23,16,7,131,4,10,5,4,6,16,
+ 23,23,19,23,16,14,5,130,4,5,5,4,7,14,18,23,133,0,5,23,23,18,12,4,5,130,4,2,5,3,13,131,
+ 23,2,18,7,6,133,4,2,14,17,23,143,0,145,0,3,19,23,17,14,133,4,8,5,5,17,23,0,23,16,14,5,
+ 132,4,4,5,5,17,23,19,133,0,4,23,20,14,13,3,132,4,3,5,5,23,23,132,0,4,19,23,17,13,7,133,
+ 4,4,5,17,18,15,3,133,4,3,12,15,19,23,132,0,4,23,23,18,13,3,133,4,2,14,23,23,132,0,4,23,
+ 23,18,14,6,133,4,8,14,15,23,19,0,19,23,16,7,133,4,7,6,16,23,23,19,23,16,14,133,4,3,7,14,
+ 18,23,133,0,3,23,23,18,12,133,4,1,3,13,131,23,2,18,12,6,133,4,2,14,17,23,143,0,145,0,3,19,
+ 23,17,14,134,4,7,5,17,23,0,23,16,14,5,132,4,4,5,5,17,23,19,133,0,4,23,20,14,13,3,132,4,
+ 3,5,5,23,23,133,0,4,23,18,14,6,3,132,4,3,3,15,16,13,132,4,5,3,12,14,17,23,19,132,0,4,
+ 23,23,18,13,2,133,4,2,14,23,23,132,0,4,23,23,18,14,6,133,4,8,14,15,23,19,0,19,23,16,7,132,
+ 4,8,3,5,16,22,23,19,23,16,14,132,4,4,3,7,14,18,23,133,0,4,23,23,18,12,2,132,4,1,2,13,
+ 131,23,2,18,12,6,132,4,3,3,14,17,23,143,0,145,0,5,19,23,17,13,4,3,132,4,8,5,17,23,0,23,
+ 16,14,4,3,132,4,3,5,17,23,19,133,0,4,23,20,14,13,2,132,4,3,5,5,23,23,133,0,4,19,23,17,
+ 6,2,132,4,4,3,12,15,5,3,131,4,4,2,5,15,18,23,133,0,4,23,23,18,13,2,133,4,0,14,136,23,
+ 3,18,14,6,3,132,4,8,14,15,23,19,0,19,23,16,7,132,4,10,2,5,16,22,23,19,23,16,14,4,3,130,
+ 4,4,2,7,14,18,23,133,0,4,23,23,18,12,2,132,4,1,2,13,131,23,3,18,12,6,3,131,4,4,3,14,
+ 17,23,19,137,23,132,0,145,0,4,19,23,17,13,4,131,3,10,2,4,5,17,23,0,23,16,14,4,2,130,3,5,
+ 2,4,5,17,23,19,133,0,5,23,20,14,13,2,4,130,3,4,2,5,6,23,23,134,0,4,23,17,14,4,2,130,
+ 3,5,2,4,5,13,4,2,131,3,4,4,12,17,23,19,133,0,5,23,23,18,13,1,4,131,3,1,4,14,136,23,
+ 3,18,14,5,2,131,3,10,4,14,15,23,19,0,19,23,16,7,2,131,3,9,2,5,16,22,23,19,23,16,14,4,
+ 131,3,4,2,7,14,18,23,133,0,4,23,23,18,12,2,131,3,2,4,1,13,131,23,3,18,12,6,2,131,3,2,
+ 2,14,17,141,23,130,0,145,0,4,19,23,17,13,4,132,2,8,3,5,17,23,0,23,16,14,4,132,2,4,4,5,
+ 17,23,19,133,0,5,23,20,14,13,2,3,131,2,3,5,12,23,23,134,0,3,19,19,16,4,133,2,2,5,13,5,
+ 132,2,3,4,15,17,23,134,0,5,23,23,18,13,1,3,131,2,1,3,14,135,17,5,18,17,14,6,2,3,131,2,
+ 8,14,15,23,19,0,19,23,16,6,131,2,10,3,2,5,16,22,23,19,23,16,14,4,130,2,5,3,2,6,14,18,
+ 23,133,0,5,23,23,18,12,1,3,130,2,2,3,1,13,131,23,4,18,12,5,2,3,131,2,1,14,16,139,18,1,
+ 23,23,130,0,145,0,4,19,23,17,13,4,132,2,8,3,5,17,23,0,23,16,14,4,132,2,4,4,5,17,23,19,
+ 133,0,4,23,20,14,13,1,132,2,3,5,12,23,23,134,0,3,19,23,16,14,132,2,3,1,5,5,1,132,2,3,
+ 5,16,23,19,134,0,4,23,23,18,13,1,132,2,1,3,6,136,5,2,3,5,5,133,2,2,14,15,23,129,0,3,
+ 19,23,16,6,132,2,9,1,4,16,22,23,19,23,16,14,3,131,2,4,1,6,14,18,23,133,0,4,23,23,18,12,
+ 1,132,2,1,1,13,131,23,3,18,13,5,1,132,2,0,13,133,12,134,13,2,18,23,23,129,0,145,0,3,19,23,
+ 17,13,132,2,9,1,3,5,17,23,0,23,16,14,4,131,2,5,1,4,5,17,23,19,133,0,4,23,20,14,13,1,
+ 131,2,4,1,5,12,23,23,135,0,2,23,17,14,132,2,3,1,4,4,1,132,2,3,14,15,23,19,134,0,4,23,
+ 23,18,13,1,133,2,140,1,132,2,3,1,14,17,23,129,0,3,19,23,16,6,132,2,8,1,4,16,22,23,19,23,
+ 16,14,132,2,4,1,6,14,18,23,133,0,4,23,23,18,12,1,132,2,1,1,13,131,23,3,18,13,6,1,132,2,
+ 140,1,3,13,16,23,23,129,0,145,0,3,19,23,17,13,132,2,10,1,3,5,17,23,0,23,16,14,4,1,130,2,
+ 5,1,4,5,17,23,19,133,0,4,23,20,14,13,1,131,2,4,1,5,12,23,23,135,0,4,23,23,15,10,1,131,
+ 2,1,1,1,132,2,3,4,14,17,23,135,0,4,23,23,18,13,1,150,2,4,1,11,14,23,23,129,0,3,19,23,
+ 16,6,132,2,8,1,4,16,22,23,19,23,16,14,132,2,4,1,6,14,18,23,133,0,4,23,23,18,13,1,132,2,
+ 1,1,13,131,23,3,18,13,6,1,144,2,4,1,13,16,23,23,129,0,145,0,3,19,23,17,13,132,2,10,1,3,
+ 5,17,23,0,23,16,14,4,1,130,2,5,1,4,5,17,23,19,133,0,4,23,19,14,13,1,131,2,4,1,5,12,
+ 23,23,135,0,4,19,19,16,14,1,137,2,4,1,13,15,23,19,135,0,4,23,23,18,13,1,150,2,4,1,13,16,
+ 23,23,129,0,4,19,23,16,6,1,131,2,8,1,4,16,22,23,19,23,16,14,132,2,4,1,6,14,18,23,133,0,
+ 4,23,23,18,12,1,132,2,1,1,13,131,23,3,18,13,6,1,144,2,4,1,13,16,23,23,129,0,145,0,3,19,
+ 23,17,13,132,2,10,1,3,5,17,23,0,23,16,14,4,1,130,2,5,1,4,5,17,23,19,133,0,4,23,19,14,
+ 13,1,131,2,4,1,6,12,23,23,136,0,3,23,19,13,1,137,2,4,1,13,17,23,23,135,0,4,23,23,18,13,
+ 1,149,2,4,1,11,14,18,23,130,0,4,19,23,16,6,1,131,2,8,1,4,16,22,23,19,23,16,14,132,2,4,
+ 1,6,14,18,23,133,0,4,23,23,18,12,1,132,2,1,1,13,131,23,3,18,13,6,1,144,2,4,1,13,16,23,
+ 23,129,0,145,0,3,19,23,17,13,132,2,10,1,3,5,17,23,0,23,16,14,4,1,130,2,5,1,4,5,17,23,
+ 19,133,0,4,23,19,14,13,1,131,2,4,1,6,12,23,23,136,0,4,23,23,15,12,1,136,2,3,4,14,23,23,
+ 136,0,4,23,23,18,13,1,148,2,5,1,11,14,18,23,23,130,0,4,19,23,16,6,1,131,2,8,1,4,16,22,
+ 23,19,23,16,14,132,2,4,1,6,14,18,23,133,0,4,23,23,18,13,1,132,2,1,1,14,131,23,3,18,13,6,
+ 1,144,2,4,1,13,16,23,23,129,0,145,0,3,19,23,17,13,132,2,10,1,3,5,17,23,0,23,16,14,4,1,
+ 130,2,5,1,4,5,17,23,19,133,0,4,23,19,14,13,1,131,2,4,1,6,12,23,23,136,0,4,23,23,18,10,
+ 1,135,2,4,1,10,16,21,23,136,0,4,23,23,18,13,1,146,2,6,1,2,8,14,17,23,23,131,0,3,19,23,
+ 16,6,132,2,8,1,4,16,22,23,19,23,16,14,132,2,4,1,6,14,18,23,133,0,4,23,23,18,13,1,132,2,
+ 1,1,14,131,23,3,18,14,6,1,144,2,4,1,13,16,23,23,129,0,145,0,4,19,23,17,13,4,132,2,8,3,
+ 5,17,23,0,23,16,14,4,132,2,4,4,5,17,23,19,133,0,4,23,19,14,13,1,131,2,4,1,6,12,23,23,
+ 136,0,5,23,23,18,14,7,1,134,2,4,4,13,18,23,23,136,0,4,23,23,18,13,1,133,2,132,1,135,2,5,
+ 11,13,14,18,23,23,132,0,3,19,23,16,6,132,2,8,1,4,16,22,23,19,23,16,14,132,2,4,1,6,14,18,
+ 23,133,0,4,23,23,18,13,1,132,2,1,1,14,131,23,3,18,14,6,1,132,2,140,1,3,12,16,23,23,129,0,
+ 145,0,4,19,23,17,13,4,132,2,8,4,5,17,23,0,23,16,14,4,132,2,4,4,6,17,23,19,133,0,5,23,
+ 19,14,13,1,3,131,2,3,7,12,23,23,137,0,5,23,18,15,8,1,3,131,2,5,3,1,7,14,18,23,137,0,
+ 5,23,23,18,13,1,3,131,2,0,3,132,13,132,2,7,3,1,11,14,17,18,23,19,133,0,3,19,23,16,6,131,
+ 2,10,3,1,5,16,22,23,19,23,16,14,4,130,2,5,3,2,7,14,18,23,133,0,5,23,23,18,13,1,3,130,
+ 2,2,3,1,14,131,23,4,18,14,7,2,3,131,2,141,13,2,18,23,23,129,0,145,0,5,19,23,17,13,4,2,
+ 130,3,10,2,4,5,17,23,0,23,16,14,4,2,130,3,5,2,5,6,17,23,19,133,0,4,23,19,14,13,2,131,
+ 3,4,2,7,12,23,23,137,0,5,19,23,17,14,6,2,132,3,4,4,10,16,23,23,137,0,5,23,23,18,13,1,
+ 4,131,3,1,4,14,130,18,2,15,6,2,132,3,4,4,13,18,23,19,134,0,4,19,23,16,7,2,131,3,10,2,
+ 5,16,22,23,19,23,16,14,4,2,130,3,4,2,7,14,18,23,133,0,4,23,23,18,13,1,132,3,1,1,14,131,
+ 23,3,18,14,7,2,131,3,2,2,14,17,139,18,1,23,23,130,0,145,0,6,19,23,17,13,4,3,4,130,3,18,
+ 4,5,17,23,0,23,17,14,4,3,4,3,4,3,5,6,17,23,19,133,0,13,23,19,14,13,2,4,3,3,4,3,
+ 7,13,23,23,138,0,14,23,17,14,6,2,4,3,3,4,2,6,14,17,23,19,137,0,5,23,23,18,13,2,4,131,
+ 3,1,4,14,130,23,12,16,14,3,4,4,3,3,4,1,13,16,19,23,134,0,3,19,23,16,7,131,3,10,4,2,
+ 5,16,22,23,19,23,16,14,4,130,3,5,4,2,7,14,18,23,133,0,5,23,23,18,13,2,4,130,3,2,4,1,
+ 14,131,23,10,18,14,7,2,4,3,3,4,3,14,17,141,23,130,0,145,0,3,19,23,17,14,133,4,8,5,5,17,
+ 23,0,23,17,14,5,132,4,4,5,6,17,23,19,133,0,4,23,19,14,13,3,132,4,3,7,13,23,23,138,0,4,
+ 19,22,16,5,3,132,4,3,6,15,18,23,138,0,4,23,23,18,13,2,133,4,0,14,130,23,2,18,14,3,132,4,
+ 4,3,10,14,23,23,134,0,3,19,23,16,7,132,4,8,3,6,16,22,23,19,23,16,14,132,4,4,3,11,14,18,
+ 23,133,0,4,23,23,18,13,2,132,4,1,2,14,131,23,3,18,14,7,3,132,4,3,14,17,23,19,136,23,133,0,
+ 145,0,4,19,23,17,14,5,132,4,8,5,5,17,23,0,23,16,14,6,132,4,4,6,6,17,23,19,133,0,4,23,
+ 19,14,13,3,132,4,3,8,13,23,23,138,0,3,19,23,16,5,133,4,3,6,16,18,23,138,0,4,23,23,18,13,
+ 3,132,4,1,5,14,131,23,1,14,10,134,4,3,14,16,23,23,133,0,3,19,23,16,7,133,4,8,6,16,23,23,
+ 19,23,16,14,5,132,4,3,11,14,18,23,133,0,4,23,23,18,13,3,132,4,1,3,14,131,23,2,18,14,12,133,
+ 4,2,14,17,23,143,0,145,0,5,19,23,17,14,6,4,130,5,10,4,5,5,17,23,0,23,16,14,6,4,130,5,
+ 5,4,6,7,17,23,19,133,0,4,23,19,14,13,4,131,5,4,4,12,13,23,23,138,0,4,19,23,16,6,4,131,
+ 5,4,4,7,15,18,23,138,0,4,23,23,18,13,4,133,5,0,14,131,23,2,18,14,4,132,5,4,4,13,15,23,
+ 19,133,0,4,19,23,16,11,4,131,5,10,4,6,16,23,23,19,23,16,14,5,4,130,5,4,4,12,14,18,23,133,
+ 0,4,23,23,18,13,4,132,5,1,3,14,131,23,3,18,14,12,4,131,5,3,4,14,17,23,143,0,145,0,5,19,
+ 23,17,14,6,5,130,6,10,5,6,5,17,23,0,23,16,14,6,5,130,6,5,5,7,12,17,23,19,133,0,4,23,
+ 19,14,14,4,131,6,4,5,12,13,23,23,138,0,4,19,23,16,6,4,131,6,4,5,7,15,18,23,138,0,4,23,
+ 23,18,14,4,131,6,2,5,6,14,131,23,3,18,14,12,4,132,6,3,5,15,18,19,133,0,4,19,23,16,11,5,
+ 131,6,10,4,7,16,23,23,19,23,16,14,6,5,130,6,4,5,12,14,18,23,133,0,4,23,23,18,14,4,132,6,
+ 1,4,14,131,23,3,18,14,12,5,131,6,3,5,14,17,23,143,0,129,0,137,23,133,0,3,19,23,17,14,134,6,
+ 7,5,17,23,0,23,17,14,7,131,6,5,5,7,12,17,23,19,133,0,4,23,19,14,14,5,131,6,4,5,12,13,
+ 23,23,138,0,4,19,23,16,6,5,131,6,4,5,8,16,18,23,138,0,4,23,23,18,14,4,133,6,0,14,131,23,
+ 3,18,15,13,4,133,6,3,14,16,23,19,132,0,3,19,23,16,11,132,6,8,5,7,16,23,23,19,23,16,14,132,
+ 6,4,5,12,14,18,23,133,0,4,23,23,18,14,5,132,6,1,4,14,131,23,3,18,14,12,5,132,6,2,14,17,
+ 23,143,0,3,0,23,23,18,133,16,2,18,23,19,132,0,4,19,23,17,14,7,132,6,8,7,5,17,23,0,23,17,
+ 14,7,132,6,4,12,12,17,23,19,133,0,3,23,19,14,14,133,6,3,10,14,23,23,138,0,3,19,23,16,7,133,
+ 6,3,8,16,18,23,138,0,4,23,23,18,14,5,132,6,9,7,14,23,23,0,23,23,17,14,11,133,6,3,7,15,
+ 18,23,132,0,3,19,23,16,10,133,6,8,8,16,23,23,19,23,16,14,7,132,6,3,12,14,18,23,133,0,4,23,
+ 23,18,14,5,132,6,1,5,14,131,23,2,18,14,12,133,6,2,14,17,23,143,0,2,19,23,17,134,14,3,13,17,
+ 23,19,131,0,3,19,23,17,14,134,7,8,5,17,23,0,23,17,14,8,6,131,7,4,12,12,17,23,19,133,0,4,
+ 23,19,14,14,6,131,7,4,6,13,14,23,23,138,0,4,19,23,16,7,6,131,7,4,6,11,16,18,23,138,0,4,
+ 23,23,18,14,6,133,7,2,14,23,23,129,0,4,23,18,15,12,6,131,7,5,6,12,14,17,23,19,131,0,3,19,
+ 23,16,9,131,6,9,7,6,8,16,23,23,19,23,16,14,132,7,4,6,10,14,18,23,133,0,4,23,23,18,14,6,
+ 132,7,1,6,14,131,23,3,18,14,10,6,131,7,3,6,14,17,23,143,0,3,19,23,16,12,132,7,4,11,5,15,
+ 23,19,131,0,3,19,23,17,14,134,7,7,6,17,23,0,23,17,14,11,132,7,4,12,12,17,23,19,133,0,4,23,
+ 19,14,14,6,132,7,3,13,14,23,23,138,0,3,19,23,16,8,133,7,3,9,16,18,23,138,0,4,23,23,18,14,
+ 6,133,7,2,14,23,23,129,0,3,19,23,17,13,134,7,3,14,16,19,23,131,0,5,19,23,16,9,6,6,131,7,
+ 8,9,16,23,23,19,23,16,14,8,131,7,4,6,13,14,18,23,133,0,4,23,23,18,14,6,132,7,1,6,14,131,
+ 23,2,18,14,13,133,7,2,14,17,23,143,0,5,19,23,16,8,7,8,130,7,2,8,6,15,133,23,4,19,23,17,
+ 14,11,131,8,10,7,11,6,17,23,0,23,17,14,11,7,130,8,3,7,12,12,17,137,19,2,14,14,7,131,8,4,
+ 7,13,14,23,23,138,0,4,19,23,16,11,7,131,8,4,7,10,16,18,23,138,0,4,23,23,18,14,7,133,8,2,
+ 14,23,23,130,0,4,23,17,15,11,7,131,8,5,7,13,14,17,23,23,130,0,3,19,23,16,10,133,7,8,10,16,
+ 23,23,19,23,16,14,11,131,8,3,7,13,14,17,136,19,2,18,14,7,132,8,1,7,14,131,23,3,18,14,13,7,
+ 131,8,2,7,14,17,140,23,1,19,19,129,0,4,19,23,16,11,8,131,11,3,9,6,15,23,133,19,3,23,17,14,
+ 11,130,8,10,11,11,12,6,17,23,0,23,17,14,9,132,8,2,12,12,17,137,23,11,14,14,8,11,8,8,11,8,
+ 13,14,23,23,138,0,13,19,23,16,9,8,11,8,8,11,8,10,16,18,23,138,0,5,23,23,18,14,7,11,131,8,
+ 3,11,14,23,23,130,0,3,19,23,16,13,130,11,7,8,11,8,11,14,18,23,23,130,0,3,19,23,16,10,131,7,
+ 10,8,7,10,16,23,23,19,23,16,14,11,130,8,4,11,8,13,14,18,136,23,3,18,14,7,11,130,8,2,11,7,
+ 14,131,23,11,18,14,13,8,11,8,8,11,8,14,17,23,138,19,131,23,0,0,4,19,23,16,11,8,131,11,1,9,
+ 12,137,15,1,14,10,132,11,8,12,12,17,23,0,23,17,14,10,132,11,1,12,13,138,16,3,14,14,8,9,130,11,
+ 4,8,13,14,23,23,138,0,4,23,23,16,10,8,131,11,4,8,10,16,18,23,138,0,4,23,23,18,14,7,132,11,
+ 3,9,14,23,23,130,0,4,19,23,16,14,8,131,11,5,9,7,14,15,19,23,130,0,3,19,23,16,13,131,7,9,
+ 8,8,10,16,23,23,19,23,16,14,132,11,2,7,14,14,138,15,0,7,133,11,1,7,14,131,23,3,18,14,13,8,
+ 132,11,0,14,141,15,3,16,17,23,19,3,19,23,16,10,133,9,1,10,10,136,11,0,10,134,9,7,14,17,23,0,
+ 23,18,15,10,133,9,138,10,2,9,10,10,132,9,4,11,14,16,23,23,138,0,3,19,23,16,10,133,9,3,13,16,
+ 18,23,138,0,4,23,23,18,14,8,133,9,2,14,23,23,131,0,3,23,18,15,13,134,9,3,14,19,23,23,129,0,
+ 3,19,23,16,13,131,8,10,11,8,10,16,23,23,19,23,16,14,10,132,9,1,10,9,139,7,134,9,0,14,131,23,
+ 3,18,14,13,11,132,9,0,10,134,8,134,11,3,12,16,23,19,3,19,23,16,14,132,9,3,10,9,9,10,134,9,
+ 0,10,133,9,10,10,13,16,23,23,0,19,23,16,10,10,146,9,0,10,130,9,5,10,11,14,18,23,23,138,0,13,
+ 19,23,16,10,9,10,9,9,10,9,13,16,18,23,138,0,5,23,23,18,14,11,10,131,9,3,10,14,23,23,131,0,
+ 5,19,23,15,14,9,10,130,9,5,10,11,14,16,23,23,129,0,6,19,23,16,13,11,8,8,130,11,8,10,16,23,
+ 23,19,23,16,14,10,131,9,1,10,9,140,10,131,9,3,10,9,14,14,131,23,4,18,14,14,9,10,132,9,134,10,
+ 132,9,5,10,9,10,16,23,19,4,0,23,18,16,13,150,10,9,14,16,23,19,0,19,23,16,14,9,150,10,5,9,
+ 14,14,18,23,23,138,0,4,19,23,16,10,9,132,10,3,13,16,18,23,138,0,4,23,23,18,14,9,133,10,2,14,
+ 23,23,132,0,3,23,18,14,9,133,10,3,14,15,18,23,129,0,3,19,23,16,13,131,11,9,9,9,13,16,23,23,
+ 19,23,16,14,153,10,8,14,17,23,23,0,23,19,16,13,149,10,2,16,23,19,5,0,19,23,15,14,9,148,10,3,
+ 13,14,18,23,129,0,4,19,23,17,14,13,151,10,3,14,16,19,23,139,0,2,19,23,16,134,10,3,13,16,18,23,
+ 138,0,4,23,23,18,14,9,133,10,2,14,23,23,132,0,4,23,23,14,14,9,132,10,9,9,14,16,23,19,0,19,
+ 23,16,13,130,11,130,9,7,13,16,23,23,19,23,16,14,151,10,11,9,14,14,18,23,23,0,19,23,17,14,13,148,
+ 10,2,16,23,19,6,0,23,23,17,14,13,9,145,10,5,11,14,14,17,23,23,130,0,5,23,23,17,14,13,9,148,
+ 10,1,14,16,130,23,139,0,2,23,23,16,134,10,3,13,16,18,23,138,0,4,23,23,18,14,9,133,10,2,14,23,
+ 23,132,0,3,23,23,17,14,134,10,8,14,16,23,19,0,19,23,16,13,130,11,130,9,7,13,16,23,23,19,23,16,
+ 14,150,10,5,9,13,14,16,18,23,130,0,4,19,18,16,14,9,146,10,3,13,16,23,19,129,0,5,23,23,17,14,
+ 13,9,143,10,5,9,13,14,17,23,23,131,0,6,23,19,23,17,14,13,9,146,10,4,14,15,18,23,23,140,0,4,
+ 23,23,16,10,9,132,10,3,13,16,18,23,138,0,4,23,23,18,14,9,133,10,2,14,23,23,132,0,5,23,23,18,
+ 14,14,9,133,10,9,15,18,23,0,19,23,16,13,11,11,131,9,7,13,16,23,23,19,23,16,14,150,10,4,13,14,
+ 16,23,23,131,0,4,23,23,19,15,14,147,10,2,16,23,19,130,0,6,19,23,17,14,14,13,13,139,10,7,13,10,
+ 13,14,17,23,19,23,132,0,7,23,23,18,15,15,10,13,13,141,10,6,13,9,14,15,16,23,19,141,0,3,19,23,
+ 16,13,133,10,3,13,16,18,23,138,0,3,23,23,18,14,133,10,3,13,14,23,23,133,0,4,23,18,15,14,9,132,
+ 10,22,13,14,17,23,0,19,23,16,13,12,11,11,9,10,9,13,16,23,23,19,23,16,14,147,10,7,13,10,14,14,
+ 16,23,19,23,132,0,6,23,23,19,16,14,10,13,143,10,3,13,16,23,19,130,0,130,23,1,18,16,130,14,0,13,
+ 138,14,5,15,16,17,23,19,23,134,0,130,23,1,17,15,144,14,1,15,16,130,23,142,0,2,19,23,17,135,14,2,
+ 16,23,19,138,0,5,23,23,18,14,14,13,130,14,4,13,14,15,23,23,133,0,5,23,23,18,14,14,13,132,14,10,
+ 15,23,19,0,19,23,17,14,14,13,13,131,14,5,16,23,19,19,23,16,146,14,0,13,130,14,1,15,18,130,23,134,
+ 0,130,23,4,15,15,14,14,13,142,14,2,16,23,19,132,0,130,23,3,17,16,17,17,135,16,3,17,17,16,17,131,
+ 23,136,0,131,23,3,16,16,17,17,137,16,3,17,17,16,18,130,23,144,0,4,23,18,17,16,17,130,16,4,17,16,
+ 17,23,19,139,0,3,23,19,16,17,131,16,4,17,16,17,23,23,134,0,4,23,23,17,16,17,130,16,4,17,16,17,
+ 23,19,129,0,4,23,18,17,16,17,130,16,8,17,16,17,23,19,0,23,23,17,148,16,0,17,130,23,137,0,3,23,
+ 19,23,18,145,16,2,18,23,23,134,0,0,19,143,23,1,19,23,140,0,0,19,146,23,0,19,146,0,139,23,141,0,
+ 138,23,136,0,138,23,130,0,139,23,129,0,1,23,19,152,23,140,0,0,19,148,23,0,0,136,0,141,19,145,0,144,
+ 19,150,0,135,19,144,0,136,19,138,0,136,19,133,0,136,19,132,0,149,19,145,0,145,19,130,0,
+};
+static const jj_frame pic_wjoy_f[] = {{216,57,0,0,0}};
+static const jj_sheet pic_wjoy = {pic_wjoy_pal, pic_wjoy_data, pic_wjoy_f, 1, 8};
+static const uint16_t pic_hero_pal[] = {0,65535,65535,65535,65535,65535,65533,65530,65498,65368,65460,65297,65204,58932,65103,58832,64782,50448,58509,54250,42161,35854,37737,25455,35495,27273,27109,22852,17005,12746,12614,10435};
+static const uint8_t pic_hero_data[] = {
+ 40,1,48,1,62,1,85,1,117,1,148,1,186,1,221,1,5,2,45,2,84,2,130,2,173,2,210,2,244,2,21,3,
+ 48,3,84,3,115,3,145,3,176,3,203,3,242,3,30,4,77,4,125,4,176,4,230,4,29,5,90,5,151,5,212,5,
+ 15,6,71,6,130,6,193,6,0,7,60,7,120,7,178,7,235,7,39,8,107,8,176,8,238,8,49,9,119,9,184,9,
+ 245,9,48,10,105,10,162,10,209,10,249,10,37,11,86,11,142,11,196,11,1,12,60,12,123,12,178,12,233,12,40,13,
+ 102,13,173,13,242,13,57,14,126,14,196,14,9,15,85,15,169,15,252,15,79,16,160,16,243,16,64,17,140,17,216,17,
+ 34,18,97,18,143,18,189,18,228,18,2,19,34,19,71,19,114,19,151,19,188,19,224,19,253,19,30,20,62,20,90,20,
+ 115,20,145,20,174,20,211,20,0,21,47,21,91,21,131,21,175,21,212,21,0,22,46,22,97,22,157,22,221,22,27,23,
+ 84,23,139,23,180,23,227,23,16,24,66,24,115,24,164,24,216,24,12,25,60,25,103,25,147,25,189,25,231,25,14,26,
+ 52,26,87,26,122,26,150,26,176,26,203,26,229,26,253,26,22,27,45,27,69,27,92,27,114,27,135,27,156,27,175,27,
+ 190,27,205,27,217,27,224,27,208,0,2,27,26,27,146,0,208,0,4,26,19,26,27,31,131,0,0,31,139,0,202,0,
+ 2,30,27,31,130,0,5,27,24,24,26,27,31,129,0,2,31,24,27,138,0,194,0,5,27,24,26,26,27,31,129,0,
+ 0,27,130,24,13,30,0,31,26,24,24,26,27,31,0,31,24,24,31,137,0,195,0,25,24,24,26,24,24,26,27,31,
+ 27,24,22,22,27,31,27,26,22,25,27,27,31,31,24,24,26,31,136,0,194,0,4,31,30,26,27,26,130,24,19,26,
+ 27,26,24,22,22,26,27,27,24,22,26,27,27,31,26,24,26,27,31,129,0,1,31,31,131,0,191,0,131,26,131,27,
+ 0,26,131,24,9,27,27,22,22,24,26,27,24,22,24,130,27,8,26,22,24,27,31,31,0,27,27,131,0,188,0,5,
+ 27,24,24,19,24,26,133,27,0,26,131,24,9,26,26,22,22,24,26,26,22,22,26,130,27,8,22,24,26,27,31,31,
+ 26,26,31,130,0,188,0,2,30,24,19,132,26,131,27,14,26,26,24,22,24,24,26,24,22,22,24,26,24,22,24,130,
+ 27,2,24,22,26,130,27,2,24,26,31,130,0,188,0,1,30,27,134,26,131,27,3,26,24,22,22,130,24,1,22,22,
+ 130,24,7,22,22,26,27,26,24,22,26,130,27,3,24,26,27,31,129,0,186,0,3,27,26,24,26,130,27,11,26,26,
+ 24,26,27,26,27,27,26,26,24,22,131,24,0,22,130,24,7,22,22,26,27,27,24,22,25,130,27,5,24,26,27,31,
+ 31,0,185,0,6,26,19,24,27,27,31,27,130,26,130,24,7,26,24,26,27,26,26,24,22,134,24,7,22,22,26,27,
+ 27,26,22,24,130,27,5,24,26,27,31,31,0,184,0,1,24,19,134,27,130,26,131,24,1,22,24,130,26,1,24,22,
+ 134,24,6,22,26,27,27,26,22,24,130,27,2,24,26,27,130,31,183,0,1,24,19,135,27,130,26,131,24,4,26,24,
+ 24,26,26,137,24,5,26,27,27,26,24,26,130,27,2,26,26,27,130,31,182,0,1,26,24,136,27,131,26,130,24,131,
+ 26,2,27,26,26,135,24,5,26,27,27,26,24,26,130,27,1,26,27,131,31,181,0,1,30,26,137,27,131,26,132,27,
+ 132,31,1,27,27,133,26,130,27,1,26,26,132,27,132,31,181,0,1,30,26,136,27,130,26,4,27,26,22,17,17,130,
+ 15,4,17,17,22,25,27,130,31,138,27,1,31,27,130,31,2,27,31,31,181,0,1,26,24,135,27,5,26,26,27,27,
+ 22,15,137,12,3,15,17,25,30,130,31,134,27,132,31,0,27,130,31,180,0,0,31,130,24,134,27,4,26,27,25,18,
+ 14,141,12,2,15,21,25,132,31,0,27,133,31,0,27,131,31,182,0,0,31,134,27,4,26,27,22,16,15,133,12,1,
+ 9,9,137,12,1,17,24,136,31,0,27,130,31,1,27,31,181,0,1,27,26,134,27,4,26,19,18,15,13,130,12,134,
+ 9,137,12,2,15,22,26,138,31,0,0,179,0,5,26,31,24,24,26,26,132,27,3,24,18,18,15,130,12,0,9,131,
+ 12,131,9,139,12,5,17,22,25,27,27,30,130,31,2,27,31,0,178,0,5,26,24,19,26,24,26,132,27,4,26,22,
+ 18,18,15,130,12,1,22,26,131,24,4,21,17,13,9,9,138,12,8,14,15,16,18,18,19,22,25,31,129,0,176,0,
+ 1,27,24,130,19,2,26,25,26,131,27,5,26,26,19,18,18,15,130,12,4,24,27,27,26,26,130,24,3,25,22,15,
+ 9,138,12,1,13,15,131,18,1,14,25,129,0,175,0,8,27,24,19,22,24,24,22,26,24,131,27,5,26,27,22,18,
+ 18,15,131,12,11,17,22,24,26,27,26,24,24,26,26,22,13,138,12,1,15,15,130,18,1,15,22,129,0,173,0,11,
+ 27,24,22,22,24,24,26,26,17,24,24,26,130,27,2,26,26,27,130,18,0,13,131,12,7,16,18,18,22,27,31,26,
+ 24,130,26,0,17,138,12,0,15,130,18,1,15,22,129,0,171,0,2,26,24,24,130,22,6,24,22,26,22,22,24,24,
+ 131,27,6,26,24,26,24,18,18,15,130,12,1,15,18,130,21,3,19,22,27,27,130,26,1,27,17,137,12,5,15,15,
+ 18,18,14,22,129,0,169,0,14,26,24,19,22,24,22,24,22,24,26,0,24,22,24,24,131,27,10,26,24,26,22,18,
+ 18,15,12,12,14,22,132,31,3,27,26,27,27,130,26,1,27,15,136,12,5,14,18,18,19,15,17,129,0,167,0,3,
+ 26,24,22,22,130,24,1,22,25,131,0,3,30,15,19,24,130,27,3,26,26,24,26,130,18,5,15,12,12,17,31,21,
+ 130,13,9,25,31,31,30,27,31,26,24,26,25,134,12,2,17,22,24,130,26,1,24,22,129,0,164,0,0,26,130,24,
+ 4,22,24,24,22,26,135,0,2,22,19,24,130,27,3,26,24,26,24,130,18,4,15,12,12,25,20,130,2,2,9,21,
+ 30,130,31,4,30,31,26,27,27,132,12,2,15,25,27,131,26,2,27,26,24,129,0,162,0,8,26,24,22,24,26,26,
+ 24,24,27,137,0,2,26,17,24,130,27,3,26,24,26,19,130,18,4,15,12,15,22,9,130,5,2,21,21,30,131,31,
+ 3,27,27,31,22,132,12,9,22,26,24,24,26,27,27,25,26,26,129,0,161,0,1,24,22,130,26,1,27,26,138,0,
+ 4,27,27,31,25,22,130,27,130,26,131,18,9,15,12,18,20,9,5,2,13,25,25,130,31,4,26,20,27,19,18,132,
+ 12,10,16,26,26,27,30,31,26,18,18,15,25,129,0,160,0,4,24,24,26,26,27,139,0,6,27,24,16,16,19,25,
+ 26,130,27,2,26,26,24,131,18,7,15,12,15,17,9,5,2,20,132,31,3,30,13,22,18,132,12,2,15,18,22,132,
+ 31,2,27,15,15,130,0,159,0,3,24,24,26,26,141,0,12,24,14,12,9,12,14,24,31,27,27,26,26,22,130,18,
+ 8,16,13,12,15,17,9,5,2,21,132,31,3,25,13,19,15,131,12,11,15,18,18,19,22,25,30,31,20,31,22,18,
+ 130,0,158,0,4,24,19,19,24,26,140,0,1,27,18,130,9,8,8,9,14,22,27,27,26,26,22,130,18,0,15,130,
+ 12,13,17,13,6,2,20,27,31,31,26,26,21,13,19,14,131,12,11,15,18,18,19,13,21,30,31,13,21,22,17,130,
+ 0,157,0,5,26,24,18,24,26,27,140,0,13,27,12,9,19,22,17,8,9,16,22,31,26,26,19,130,18,0,15,130,
+ 12,12,13,13,9,2,9,27,27,22,18,22,13,17,18,131,12,0,15,131,18,7,9,25,31,31,20,13,21,22,130,0,
+ 157,0,5,24,18,22,19,24,26,140,0,16,26,9,17,24,19,19,18,8,10,16,27,27,26,19,18,18,16,132,12,10,
+ 18,17,13,9,20,25,17,21,17,17,18,132,12,5,13,19,22,18,17,13,130,31,2,20,9,17,131,0,156,0,6,26,
+ 16,22,19,19,24,24,140,0,16,25,9,19,19,18,22,24,22,9,12,25,27,26,19,18,18,15,132,12,3,13,15,18,
+ 18,131,17,1,18,18,132,12,12,9,9,12,19,22,18,13,27,31,31,13,8,19,131,0,156,0,7,24,19,24,19,26,
+ 19,24,26,138,0,17,25,25,9,18,15,15,26,24,26,13,8,22,31,26,19,18,18,15,131,12,131,9,130,12,130,15,
+ 133,12,12,9,12,12,15,24,19,9,26,27,22,13,9,22,131,0,156,0,8,27,24,19,26,19,19,24,24,26,136,0,
+ 15,25,9,25,13,15,15,13,24,24,26,13,7,17,31,27,22,130,18,130,12,134,9,134,12,1,14,15,131,12,9,18,
+ 22,19,13,20,22,17,6,13,24,131,0,157,0,8,19,24,24,19,26,19,24,24,26,134,0,16,31,13,13,21,21,9,
+ 18,9,19,24,24,18,9,9,22,25,19,130,18,2,13,12,12,135,9,133,12,14,13,18,18,15,18,18,22,22,18,19,
+ 17,20,13,12,15,132,0,157,0,9,22,26,19,26,22,22,24,24,22,24,133,0,16,20,9,20,21,30,9,13,13,9,
+ 18,19,19,18,12,13,13,17,130,18,0,15,130,12,3,9,9,13,20,130,17,1,13,13,132,12,0,15,130,19,9,22,
+ 22,18,15,15,16,18,19,16,17,132,0,157,0,7,26,22,24,24,22,26,22,19,131,24,130,0,17,30,21,17,17,21,
+ 31,25,8,15,12,12,18,18,15,12,13,12,17,130,18,0,15,130,12,2,9,9,17,131,21,13,20,20,17,17,15,15,
+ 13,12,14,16,16,18,16,15,131,12,2,18,14,22,132,0,158,0,15,19,26,19,24,24,19,24,22,19,24,24,26,26,
+ 31,25,30,130,20,3,23,25,20,8,134,12,2,13,17,17,130,18,131,12,9,15,20,20,25,22,21,22,22,21,21,130,
+ 20,131,17,1,15,15,132,12,2,15,15,21,132,0,158,0,6,22,24,22,26,24,22,26,130,22,130,24,10,25,25,21,
+ 17,20,20,17,17,22,20,8,131,12,11,8,17,17,15,21,17,18,18,15,12,12,13,130,20,6,25,17,6,13,17,17,
+ 21,130,22,1,21,21,130,20,132,17,3,13,15,15,21,132,0,158,0,15,27,22,24,26,22,24,24,22,24,24,19,19,
+ 27,17,13,13,130,20,130,17,9,22,21,9,7,7,6,13,26,17,13,130,21,4,17,15,12,12,17,130,20,11,25,21,
+ 2,5,2,5,6,8,9,13,17,21,131,22,7,21,21,20,20,17,18,15,22,132,0,159,0,3,22,22,26,22,131,24,
+ 6,26,24,22,25,8,9,17,130,20,12,25,25,17,20,25,26,21,17,22,27,31,21,9,132,21,1,17,17,131,20,1,
+ 22,22,131,6,1,5,5,130,2,3,6,8,9,13,130,17,130,21,2,19,15,25,132,0,160,0,30,22,22,24,26,24,
+ 24,26,24,24,27,20,8,13,20,20,17,25,31,31,20,20,23,29,30,31,31,30,30,26,9,20,132,21,131,20,9,17,
+ 21,25,13,6,9,9,6,8,9,131,6,132,2,4,13,21,21,17,15,133,0,161,0,11,22,19,26,24,24,26,24,24,
+ 27,9,9,17,130,20,6,30,31,30,17,21,25,29,133,30,1,17,13,132,21,133,20,21,25,13,8,8,9,9,8,8,
+ 13,8,9,13,8,6,8,6,2,17,21,22,17,21,133,0,162,0,20,24,25,22,24,26,24,26,25,7,12,17,20,20,
+ 17,23,25,20,17,21,25,30,133,29,1,23,12,133,21,131,20,3,17,22,20,2,132,5,2,6,6,5,130,6,7,9,
+ 6,13,21,21,22,17,25,133,0,164,0,7,22,22,26,24,26,20,8,13,131,20,130,17,5,20,21,29,29,23,20,130,
+ 23,3,28,28,20,17,132,21,132,20,5,21,21,9,8,9,9,130,8,0,6,131,8,2,6,6,17,130,21,1,17,31,
+ 133,0,165,0,6,27,22,22,27,13,8,13,134,20,4,21,25,30,23,20,132,23,3,28,28,21,17,132,21,133,20,3,
+ 17,17,18,18,135,15,7,16,15,17,21,22,17,25,31,133,0,166,0,5,26,19,25,9,9,17,134,20,5,21,25,30,
+ 30,23,28,132,23,2,28,28,25,133,21,133,20,132,21,134,22,131,21,2,17,25,31,133,0,162,0,1,16,16,131,0,
+ 3,25,8,13,17,134,20,4,25,25,29,30,30,134,23,3,28,28,29,25,133,21,137,20,131,21,0,22,130,21,3,22,
+ 20,21,29,134,0,162,0,2,14,14,16,130,0,2,21,15,13,132,20,3,17,20,21,25,130,30,1,23,20,135,23,5,
+ 28,29,29,28,25,22,131,21,137,20,130,21,1,22,22,130,21,1,25,30,134,0,162,0,3,14,11,16,18,129,0,2,
+ 17,17,13,130,20,10,17,17,21,25,30,31,29,29,22,12,21,136,23,1,29,29,130,28,2,25,25,22,130,21,1,20,
+ 20,131,17,1,20,20,134,21,2,25,29,30,134,0,161,0,24,16,11,14,14,16,0,25,17,17,15,20,20,17,20,25,
+ 30,31,31,30,23,23,12,12,14,18,135,23,2,29,23,23,130,28,2,23,28,28,130,25,0,22,135,21,130,22,0,25,
+ 130,29,135,0,161,0,24,16,11,14,11,14,19,21,17,17,19,17,20,17,25,30,30,31,31,23,23,17,10,14,15,19,
+ 134,23,1,28,28,130,23,1,28,28,130,20,7,23,28,28,27,30,28,28,25,131,29,0,30,130,29,2,28,28,30,135,
+ 0,161,0,26,16,11,11,10,10,16,17,17,15,19,19,17,20,29,30,31,31,30,23,25,10,12,14,18,18,21,20,132,
+ 23,1,28,29,130,23,1,28,23,130,20,2,29,31,28,132,23,0,28,132,29,131,28,1,29,30,134,0,161,0,22,14,
+ 11,10,9,8,15,21,17,15,19,19,17,20,29,30,30,31,28,23,21,9,12,14,130,18,2,19,28,28,131,23,7,28,
+ 29,28,23,28,28,20,23,131,30,6,23,28,31,21,20,28,29,130,28,0,29,130,28,0,29,136,0,161,0,28,14,10,
+ 10,6,5,8,21,17,14,19,19,22,26,29,30,25,31,23,23,21,9,12,14,18,19,19,23,23,28,133,23,130,29,5,
+ 28,23,28,23,28,30,131,31,2,23,20,28,131,29,132,28,136,0,160,0,27,18,14,10,10,5,2,6,22,21,11,19,
+ 19,24,31,30,30,25,25,23,23,21,9,12,14,15,19,24,30,140,28,2,20,20,23,130,30,7,31,30,28,23,30,29,
+ 29,30,131,28,1,29,25,136,0,160,0,29,18,11,10,10,2,6,25,25,23,15,14,19,24,27,27,31,20,20,23,23,
+ 21,9,12,14,16,18,18,22,30,29,134,28,3,23,28,28,23,130,20,0,29,130,30,13,23,23,28,28,29,28,28,29,
+ 28,29,30,30,29,26,135,0,152,0,130,16,132,0,30,18,11,10,10,2,21,30,20,21,25,15,14,22,31,27,31,17,
+ 17,23,23,21,9,12,14,14,18,18,19,30,29,29,136,28,130,20,10,23,30,31,30,28,20,23,23,28,29,28,132,29,
+ 2,25,19,22,135,0,152,0,3,16,14,16,18,131,0,27,16,11,10,10,9,25,25,21,21,25,25,14,19,26,27,31,
+ 20,17,23,23,21,9,12,14,14,18,18,22,130,29,132,28,0,29,130,28,2,23,28,29,130,30,6,23,23,20,20,23,
+ 29,28,130,29,5,30,25,22,22,19,18,135,0,152,0,4,16,11,14,16,18,130,0,29,16,11,10,8,20,25,25,21,
+ 23,25,30,30,22,22,26,31,20,13,28,20,23,10,12,14,14,16,19,22,26,30,130,29,130,28,2,29,30,29,131,30,
+ 2,31,30,30,132,23,131,29,2,25,22,24,130,22,0,18,135,0,152,0,4,16,14,11,14,16,130,0,5,16,11,8,
+ 6,20,21,131,25,18,30,23,30,25,22,26,21,9,25,23,23,12,10,12,12,14,18,18,22,131,25,17,28,28,29,30,
+ 30,29,29,30,30,31,30,31,28,23,23,20,23,23,130,29,0,30,133,22,1,18,24,134,0,152,0,5,16,14,11,11,
+ 14,18,129,0,21,16,11,7,6,20,9,21,25,30,29,30,20,25,29,30,26,22,8,25,28,23,13,130,10,4,12,18,
+ 19,21,21,130,25,133,29,5,30,30,31,31,30,30,133,23,130,29,8,30,25,21,24,25,24,24,22,25,134,0,152,0,
+ 1,16,11,130,10,23,16,18,0,16,11,6,6,13,6,20,25,30,30,21,21,25,23,25,30,25,8,21,30,25,131,10,
+ 5,12,16,19,21,20,30,130,25,1,29,29,131,30,4,31,31,30,31,29,133,23,131,29,2,30,22,25,130,22,2,25,
+ 25,31,133,0,152,0,28,18,11,10,10,7,10,16,18,16,11,7,5,13,6,13,21,25,30,23,21,23,25,25,21,25,
+ 9,17,30,25,131,10,10,14,18,19,26,13,21,30,25,25,28,29,130,30,130,31,1,30,31,134,23,132,29,8,27,21,
+ 22,22,25,31,30,30,31,132,0,143,0,130,16,0,18,133,0,14,14,10,8,5,5,9,16,18,11,8,5,20,13,13,
+ 20,130,25,23,29,25,21,21,20,30,13,13,29,24,9,10,12,10,12,18,19,26,25,13,21,25,25,28,130,30,130,31,
+ 2,30,31,29,134,23,132,29,3,25,22,24,22,130,30,2,29,30,31,131,0,143,0,0,16,130,14,2,16,16,18,130,
+ 0,2,16,10,8,130,2,9,9,18,14,8,6,21,23,9,13,20,131,25,9,30,25,25,30,13,9,25,22,9,10,130,
+ 12,16,18,19,24,26,30,22,29,28,28,30,30,31,31,30,30,31,30,133,23,1,20,23,130,29,11,28,28,24,25,22,
+ 24,25,25,30,25,29,31,131,0,143,0,1,16,14,131,11,6,14,16,16,0,16,10,8,131,2,10,12,16,8,6,20,
+ 21,23,13,17,20,21,131,25,19,30,30,21,8,21,21,9,10,12,15,12,15,18,19,22,24,24,28,28,29,130,30,130,
+ 31,8,30,23,23,28,23,23,20,20,23,131,29,11,28,30,22,21,22,25,30,21,30,30,25,30,131,0,143,0,3,18,
+ 14,11,11,130,10,6,11,14,16,18,11,8,5,131,2,11,14,10,2,9,13,20,23,20,13,17,20,23,132,25,13,8,
+ 20,21,9,12,12,18,19,10,12,18,19,18,22,131,29,1,30,30,130,28,3,23,23,28,23,130,20,0,23,131,29,12,
+ 28,28,25,20,21,25,26,31,29,21,25,30,31,131,0,144,0,12,16,11,11,10,8,6,8,9,11,16,14,9,5,131,
+ 2,30,5,9,5,9,8,8,17,25,20,20,13,13,17,20,21,21,25,13,13,22,10,15,12,12,19,22,13,10,15,18,
+ 25,130,28,130,29,8,28,20,20,23,28,20,20,23,28,132,29,1,28,29,132,25,1,22,26,130,30,1,31,31,131,0,
+ 144,0,4,16,14,11,10,8,130,2,4,6,11,16,10,6,133,2,11,6,13,9,8,9,20,25,25,23,20,20,17,130,
+ 13,12,20,9,22,12,12,15,15,10,15,24,21,13,22,130,28,10,29,29,28,29,31,23,23,30,29,23,28,131,29,16,
+ 28,28,30,28,25,23,25,26,25,21,21,24,22,24,26,25,25,131,0,144,0,4,16,14,11,10,8,131,2,3,6,16,
+ 10,6,134,2,25,9,13,9,9,20,25,23,25,25,21,21,20,21,21,25,9,21,17,12,12,15,17,15,12,24,30,131,
+ 28,10,29,28,30,31,30,25,30,29,23,28,28,131,29,9,28,29,0,30,21,23,25,25,22,22,133,21,0,26,131,0,
+ 141,0,0,16,130,18,4,16,11,10,10,6,131,2,2,12,11,8,135,2,11,9,17,9,13,21,25,25,21,13,13,6,
+ 20,130,21,8,13,21,22,17,13,13,17,22,25,133,28,0,30,130,25,3,22,30,28,23,133,29,1,28,29,129,0,5,
+ 30,21,25,25,22,22,133,25,0,31,131,0,140,0,0,16,131,14,4,16,14,10,10,8,131,2,3,8,11,9,5,135,
+ 2,0,8,130,13,10,20,21,13,13,5,13,20,20,17,13,20,130,21,130,22,1,23,23,131,28,9,29,29,23,21,23,
+ 25,25,30,29,28,133,29,0,28,132,0,1,30,25,130,21,4,25,24,22,25,27,132,0,139,0,2,18,14,11,130,10,
+ 5,11,16,11,10,10,6,130,2,3,5,9,10,6,137,2,131,9,16,6,6,9,13,13,9,6,2,2,5,2,2,13,
+ 21,21,28,29,130,28,10,29,30,30,29,29,30,25,25,30,29,28,130,29,130,28,0,29,134,0,131,25,2,22,25,31,
+ 133,0,139,0,2,18,14,11,131,10,5,14,11,10,10,9,6,130,2,2,6,10,7,139,2,5,6,5,2,2,5,5,
+ 136,2,11,13,13,25,30,29,30,30,31,23,21,23,23,130,25,2,30,30,29,131,28,1,29,30,138,0,1,26,27,135,
+ 0,139,0,3,16,16,14,11,131,10,10,11,11,10,10,8,5,2,2,5,8,8,154,2,7,9,20,13,30,29,29,30,
+ 29,132,20,1,25,25,130,30,3,28,28,27,26,150,0,140,0,3,16,16,14,11,130,10,1,11,11,130,10,6,7,5,
+ 2,2,7,8,5,154,2,6,20,17,20,29,25,30,21,132,20,0,23,130,30,4,21,17,20,22,24,150,0,141,0,130,
+ 16,13,11,10,11,11,14,11,10,10,9,6,5,2,6,6,156,2,3,20,21,21,25,135,20,1,23,28,130,20,2,21,
+ 22,24,150,0,142,0,131,16,3,11,11,14,14,130,10,4,9,6,5,2,5,157,2,1,6,9,142,20,0,22,130,24,
+ 148,0,143,0,7,16,16,18,16,16,14,14,11,130,10,1,7,6,160,2,1,5,13,141,20,5,24,22,21,22,22,24,
+ 146,0,142,0,10,18,18,16,16,14,14,11,10,10,9,8,131,6,160,2,2,5,9,13,138,20,1,21,22,130,20,4,
+ 21,21,22,24,24,143,0,138,0,130,16,15,14,11,11,10,9,8,7,6,6,5,2,6,2,2,5,5,162,2,1,6,
+ 13,137,20,11,22,21,21,20,20,21,20,20,21,22,22,24,141,0,135,0,8,18,16,14,11,10,9,8,6,5,176,2,
+ 0,9,134,20,1,13,20,130,21,10,22,22,21,20,21,21,20,21,21,22,22,140,0,132,0,7,16,16,14,14,11,11,
+ 9,6,180,2,1,5,9,131,20,11,13,9,5,9,13,15,15,17,21,22,21,20,130,21,130,22,140,0,131,0,3,16,
+ 14,11,11,130,10,0,7,183,2,0,6,130,9,4,5,2,5,6,8,130,10,1,17,24,131,21,2,22,19,19,141,0,
+ 132,0,2,14,11,11,130,10,1,8,6,188,2,1,6,8,130,10,7,14,18,17,17,21,22,19,19,143,0,132,0,1,
+ 16,14,130,11,6,10,10,9,7,6,6,5,183,2,12,5,6,8,10,11,16,16,11,11,14,16,19,19,144,0,133,0,
+ 1,18,16,130,14,1,11,11,130,10,0,8,132,6,0,5,178,2,8,8,11,16,14,14,11,11,14,16,147,0,134,0,
+ 1,18,16,132,14,1,11,11,131,10,1,9,6,178,2,7,5,9,9,11,14,14,16,16,149,0,136,0,4,18,16,16,
+ 14,14,130,11,3,14,14,9,6,182,2,4,7,11,16,18,16,149,0,138,0,0,18,130,16,3,14,16,16,9,134,2,
+ 1,6,6,168,2,1,6,6,133,2,1,6,10,130,16,148,0,140,0,4,16,18,16,12,5,132,2,0,5,130,6,169,
+ 2,3,8,11,10,6,133,2,2,9,16,16,148,0,139,0,3,18,16,16,8,132,2,4,5,7,8,6,5,130,2,0,
+ 5,166,2,5,6,10,14,11,9,5,131,2,3,5,9,16,18,147,0,138,0,4,16,16,14,10,5,130,2,7,6,8,
+ 10,10,9,8,8,5,150,2,1,5,8,143,2,7,5,6,10,11,14,14,11,8,130,2,4,5,6,9,16,16,146,0,
+ 136,0,11,18,16,16,11,10,10,7,6,8,12,11,11,130,10,1,9,7,152,2,1,12,8,141,2,10,5,6,7,10,
+ 10,11,16,14,11,8,5,130,6,2,7,14,18,146,0,136,0,15,16,14,11,11,10,10,11,11,14,16,14,11,10,11,
+ 10,6,153,2,1,8,12,141,2,2,6,6,8,130,10,3,14,16,14,11,132,10,1,11,16,146,0,136,0,0,16,132,
+ 14,130,16,5,14,11,11,14,12,5,154,2,2,6,14,6,138,2,3,5,6,6,8,132,10,0,14,130,16,133,14,0,
+ 18,145,0,137,0,131,16,7,18,18,14,11,11,14,16,9,148,2,1,5,5,134,2,1,12,9,135,2,5,5,2,5,
+ 6,7,8,133,10,4,11,14,16,18,18,132,16,146,0,141,0,6,18,14,11,14,16,16,6,149,2,0,5,130,6,131,
+ 2,2,5,12,12,134,2,2,5,6,6,130,8,135,10,1,11,16,153,0,141,0,4,16,11,14,16,12,132,2,0,5,
+ 142,2,13,6,6,2,5,8,10,10,8,7,6,6,8,14,14,132,2,3,5,5,6,8,139,10,2,11,14,18,152,0,
+ 141,0,130,16,0,9,131,2,130,6,0,5,137,2,11,5,5,2,6,10,10,8,7,10,14,11,11,131,10,1,16,14,
+ 131,2,3,5,6,6,7,141,10,1,14,18,152,0,141,0,10,18,16,8,2,5,2,2,8,8,7,6,136,2,7,5,
+ 5,6,5,2,8,14,11,130,10,2,16,16,14,130,11,2,14,18,9,131,2,130,6,1,8,11,140,10,1,11,16,152,
+ 0,140,0,2,18,14,5,130,2,4,6,10,10,7,6,135,2,1,6,8,130,6,10,2,2,9,16,14,11,10,10,14,
+ 16,18,130,16,1,18,12,131,2,0,5,130,6,6,8,16,11,11,10,11,11,134,10,2,11,14,16,152,0,139,0,1,
+ 18,12,131,2,4,7,10,10,6,5,136,2,15,9,8,5,6,5,2,2,9,16,16,14,11,14,16,11,9,130,12,0,
+ 8,130,2,3,6,8,8,7,130,6,3,12,16,11,11,130,14,4,11,11,10,11,11,130,14,0,16,152,0,138,0,1,
+ 18,12,130,2,5,5,9,11,10,6,6,136,2,10,6,12,6,5,6,6,2,5,12,16,14,130,16,4,14,8,2,2,
+ 5,131,2,4,6,9,10,10,8,130,6,2,8,16,16,133,14,0,11,130,14,2,11,14,18,152,0,137,0,10,18,16,
+ 8,2,2,6,10,14,11,7,6,137,2,14,8,12,6,6,8,6,2,8,14,16,11,9,10,9,7,130,5,132,2,0,
+ 8,130,10,0,8,130,6,3,7,11,18,18,130,16,134,14,0,16,153,0,136,0,10,18,16,11,10,8,9,11,16,14,
+ 8,6,138,2,12,12,9,5,6,9,12,9,11,16,14,9,2,5,130,2,0,5,133,2,0,9,130,10,0,9,131,6,
+ 1,10,16,131,0,0,18,133,16,154,0,136,0,10,16,14,11,11,10,14,16,14,10,7,5,137,2,5,6,14,8,5,
+ 6,10,131,16,1,11,6,139,2,132,10,0,7,130,6,1,9,16,165,0,135,0,11,16,14,14,11,11,14,16,14,14,
+ 9,6,5,137,2,11,9,14,6,5,7,11,16,16,14,11,10,6,138,2,0,6,131,10,1,11,8,130,6,2,8,14,
+ 18,164,0,135,0,10,16,11,14,14,16,18,16,14,16,9,5,136,2,12,5,6,14,12,6,6,8,14,16,14,11,11,
+ 6,139,2,132,10,7,14,9,6,7,8,8,11,18,164,0,135,0,131,16,0,18,129,0,3,16,12,6,5,136,2,12,
+ 6,10,16,12,5,6,9,14,16,14,11,8,5,135,2,4,5,5,2,6,11,131,10,1,14,12,130,8,2,9,11,18,
+ 164,0,136,0,0,18,132,0,3,16,9,6,5,135,2,12,6,10,10,16,9,5,6,10,16,16,11,9,6,136,2,5,
+ 6,5,5,9,14,11,130,10,7,14,16,10,9,10,10,14,16,164,0,141,0,4,16,11,8,6,5,134,2,13,6,10,
+ 10,14,16,8,5,6,11,16,14,10,7,5,134,2,7,5,6,5,5,6,11,14,14,130,11,7,16,0,16,10,11,11,
+ 14,18,164,0,141,0,3,16,10,9,6,134,2,13,6,10,11,11,16,16,8,6,8,14,16,14,9,6,131,2,2,5,
+ 2,2,130,6,8,5,5,8,16,16,11,14,11,16,129,0,0,18,130,14,0,16,165,0,140,0,4,18,14,10,10,6,
+ 132,2,14,6,8,10,10,14,14,16,14,10,9,10,16,16,11,7,131,2,5,5,2,2,5,8,7,130,6,5,10,16,
+ 18,16,14,16,131,0,2,18,16,18,166,0,140,0,3,18,14,11,8,131,2,1,5,8,130,10,0,14,130,16,7,11,
+ 10,10,11,16,16,10,6,130,2,5,5,5,2,2,7,9,130,6,2,7,14,18,129,0,0,16,174,0,140,0,3,18,
+ 14,9,5,131,2,0,8,130,10,21,14,16,18,0,16,14,11,11,14,18,16,10,7,5,2,6,6,2,2,6,9,10,
+ 130,6,1,9,16,178,0,140,0,2,16,10,6,131,2,6,6,10,11,11,14,16,16,129,0,0,16,130,14,13,16,18,
+ 14,10,8,7,7,6,2,2,5,8,11,9,130,7,1,14,18,178,0,139,0,2,18,11,6,131,2,2,5,10,14,131,
+ 16,130,0,3,14,11,14,16,129,0,15,16,10,10,9,8,5,2,5,6,8,14,12,8,8,10,16,179,0,138,0,2,
+ 18,16,8,132,2,3,9,14,16,18,132,0,4,18,14,11,14,18,129,0,15,16,11,10,8,5,2,2,5,7,9,14,
+ 14,9,10,14,18,179,0,138,0,2,16,10,5,131,2,2,8,14,16,134,0,3,18,14,11,16,130,0,14,18,16,9,
+ 6,2,2,5,6,8,9,14,16,10,11,16,180,0,137,0,2,18,14,6,131,2,2,7,11,16,136,0,2,14,14,18,
+ 130,0,14,18,14,7,6,2,5,6,7,8,10,16,16,11,16,18,180,0,137,0,1,16,8,131,2,2,6,11,16,137,
+ 0,1,16,16,130,0,11,18,16,9,6,5,2,5,6,8,9,14,18,130,16,181,0,136,0,1,18,12,131,2,2,6,
+ 11,16,138,0,1,18,18,130,0,13,18,14,7,6,2,2,6,7,8,11,16,0,16,16,182,0,135,0,2,18,14,6,
+ 130,2,2,6,11,16,143,0,10,18,16,8,6,5,2,2,6,8,10,16,186,0,135,0,1,16,9,130,2,2,6,10,
+ 16,144,0,9,16,12,6,5,2,2,6,8,9,16,187,0,134,0,7,16,11,8,6,2,6,10,16,144,0,10,18,12,
+ 6,6,2,2,6,7,8,14,18,187,0,133,0,7,18,14,10,10,8,8,10,14,145,0,9,14,7,6,2,2,5,7,
+ 8,14,18,188,0,133,0,1,16,11,131,10,0,14,145,0,9,16,8,6,5,2,5,6,8,14,18,189,0,132,0,2,
+ 18,14,11,130,10,0,14,145,0,9,18,9,6,5,2,2,6,8,12,18,190,0,132,0,5,16,14,14,11,11,14,146,
+ 0,1,14,6,130,2,3,6,8,10,16,191,0,131,0,6,18,14,11,14,11,16,18,145,0,1,16,8,130,2,3,5,
+ 8,11,16,192,0,131,0,5,16,14,14,11,16,18,145,0,1,18,9,130,2,3,5,7,11,16,193,0,130,0,4,18,
+ 14,14,11,14,147,0,8,14,7,5,2,5,8,11,14,18,193,0,130,0,3,16,14,11,14,147,0,8,16,11,9,8,
+ 6,8,10,14,16,194,0,129,0,3,18,14,11,16,147,0,8,18,14,14,11,11,10,10,14,18,195,0,129,0,2,16,
+ 11,14,148,0,7,16,11,14,14,11,11,14,18,196,0,3,0,16,11,14,148,0,0,16,132,14,0,16,198,0,2,0,
+ 16,14,149,0,5,16,11,14,11,14,16,199,0,1,16,16,150,0,3,16,11,16,16,201,0,152,0,1,16,16,203,0,
+};
+static const jj_frame pic_hero_f[] = {{103,147,0,0,0}};
+static const jj_sheet pic_hero = {pic_hero_pal, pic_hero_data, pic_hero_f, 1, 8};
+static const uint16_t pic_digits_pal[] = {0,61310,57051,44407,19085,4259,32,0};
+static const uint8_t pic_digits_data[] = {
+ 26,0,36,0,42,0,48,0,54,0,60,0,66,0,72,0,78,0,84,0,90,0,97,0,105,0,129,0,0,112,130,5,
+ 0,96,129,0,8,5,50,17,36,0,8,4,18,51,19,96,8,116,18,84,18,96,8,116,18,116,18,96,8,116,18,116,
+ 18,96,8,116,18,116,18,96,8,116,34,116,18,112,8,116,34,116,35,112,8,116,34,51,35,112,2,6,64,131,3,1,
+ 64,129,0,0,112,131,6,1,112,26,0,30,0,34,0,38,0,42,0,46,0,50,0,54,0,58,0,62,0,66,0,70,
+ 0,76,0,4,6,86,0,4,83,19,112,4,65,34,112,4,83,19,112,4,115,19,112,4,115,19,112,4,115,19,112,4,
+ 115,19,112,4,116,19,112,4,116,35,112,4,116,51,112,0,0,130,6,0,0,26,0,36,0,42,0,48,0,54,0,60,
+ 0,68,0,76,0,83,0,90,0,97,0,103,0,109,0,129,0,0,112,130,5,0,96,129,0,8,5,50,17,37,0,8,
+ 116,18,50,19,112,8,4,51,100,19,112,8,7,118,83,19,112,2,6,64,130,2,2,19,112,2,4,16,130,2,2,53,
+ 0,6,116,34,85,112,129,0,3,116,34,131,7,0,0,1,116,130,2,3,50,55,1,116,133,3,0,112,0,0,134,6,
+ 0,0,26,0,36,0,42,0,48,0,54,0,62,0,69,0,76,0,83,0,89,0,95,0,102,0,111,0,129,0,0,112,
+ 130,5,0,96,129,0,8,5,50,17,37,0,8,116,18,50,19,112,8,4,51,100,19,112,0,0,130,7,4,83,19,112,
+ 129,0,6,116,34,20,112,129,0,6,116,34,20,0,129,0,6,119,84,19,112,8,5,51,116,35,112,8,116,33,51,35,
+ 112,2,6,64,131,3,1,80,129,0,0,112,130,6,2,119,0,26,0,32,0,38,0,44,0,51,0,59,0,65,0,71,
+ 0,78,0,85,0,91,0,97,0,105,0,131,0,4,117,87,0,130,0,5,116,17,64,130,0,5,82,33,64,129,0,6,
+ 115,34,20,0,2,7,64,130,2,2,20,0,8,5,50,50,20,0,8,116,34,51,20,0,1,83,130,2,3,50,55,1,
+ 100,131,3,2,35,112,8,7,102,83,20,0,131,0,4,83,37,0,131,0,0,112,130,6,0,0,26,0,32,0,39,0,
+ 45,0,53,0,59,0,66,0,73,0,80,0,86,0,92,0,99,0,109,0,1,6,132,5,1,96,3,116,18,130,1,1,
+ 55,8,116,18,51,36,112,4,116,18,96,130,7,0,0,8,116,18,51,71,0,3,5,50,130,1,1,71,129,0,6,84,
+ 67,19,112,129,0,130,7,3,65,55,8,5,51,116,35,112,8,116,33,51,35,112,2,6,64,131,3,1,80,129,0,0,
+ 112,130,6,0,112,129,0,26,0,36,0,42,0,48,0,54,0,60,0,68,0,75,0,81,0,87,0,93,0,100,0,109,
+ 0,129,0,0,112,130,5,0,112,129,0,8,5,50,17,37,0,8,4,18,50,19,112,8,116,18,100,52,112,8,116,18,
+ 85,119,0,2,116,16,130,2,2,53,0,1,116,131,2,2,19,112,8,116,34,84,35,112,8,116,34,116,35,112,8,116,
+ 34,51,35,112,2,6,64,131,3,1,80,129,0,0,112,130,6,2,119,0,26,0,32,0,38,0,44,0,50,0,58,0,
+ 64,0,70,0,77,0,85,0,93,0,100,0,107,0,1,6,132,5,1,112,8,4,18,18,19,112,8,116,18,50,18,112,
+ 8,4,51,83,20,0,0,0,130,7,4,82,20,0,130,0,5,116,18,96,130,0,5,115,19,112,130,0,3,83,20,129,
+ 0,129,0,4,116,34,80,129,0,129,0,4,116,35,112,129,0,129,0,3,99,52,130,0,129,0,3,118,103,130,0,26,
+ 0,36,0,42,0,48,0,54,0,60,0,66,0,74,0,80,0,86,0,92,0,99,0,108,0,129,0,0,112,130,5,0,
+ 96,129,0,8,5,50,17,37,0,8,4,18,50,19,112,8,116,18,100,19,112,8,116,18,83,19,112,8,5,49,34,20,
+ 112,2,5,48,130,2,2,20,0,8,116,34,84,19,112,8,116,34,116,35,112,8,116,34,51,35,112,2,6,64,131,3,
+ 1,80,129,0,0,112,130,6,2,119,0,26,0,36,0,42,0,48,0,54,0,60,0,66,0,74,0,80,0,86,0,92,
+ 0,99,0,108,0,129,0,0,112,130,5,0,96,129,0,8,5,50,17,37,0,8,4,18,51,19,112,8,116,18,100,19,
+ 112,8,116,18,84,19,112,8,116,17,34,19,112,2,6,64,130,2,2,19,112,8,7,117,84,19,112,8,5,51,116,35,
+ 112,8,4,33,51,35,112,2,6,64,131,3,1,80,129,0,0,112,130,6,2,119,0,26,0,34,0,40,0,46,0,52,
+ 0,60,0,68,0,76,0,84,0,90,0,96,0,102,0,112,0,3,6,86,129,0,3,101,96,9,116,18,103,49,55,9,
+ 116,17,69,33,55,9,116,18,51,33,55,2,116,16,131,2,2,19,112,2,116,16,131,2,2,19,112,2,116,16,131,2,
+ 2,19,112,2,116,16,130,3,3,65,55,9,116,19,101,65,55,9,116,19,119,65,55,9,116,35,112,67,55,0,0,130,
+ 6,129,0,130,6,0,0,
+};
+static const jj_frame pic_digits_f[] = {{9,12,-1,1,0},{5,12,0,1,105},{9,12,-1,1,181},{9,12,-1,1,290},{9,12,0,1,401},{9,12,-1,1,506},{9,12,-1,1,615},{9,12,-1,1,724},{9,12,-1,1,831},{9,12,-1,1,939},{10,12,-1,1,1047}};
+static const jj_sheet pic_digits = {pic_digits_pal, pic_digits_data, pic_digits_f, 11, 4};
+static const uint16_t pic_prize_pal[] = {0,65535,65535,65529,65535,65500,65469,63389,61273,61238,65293,65229,63118,65132,60907,59162,57016,56881,56682,52790,46549,58634,54537,54375,44272,44009,23571,55847,27278,49347,13041,12715};
+static const uint8_t pic_prize_data[] = {
+ 88,0,90,0,92,0,94,0,96,0,98,0,100,0,102,0,104,0,106,0,108,0,116,0,133,0,151,0,171,0,196,0,
+ 222,0,250,0,23,1,52,1,79,1,107,1,137,1,168,1,197,1,226,1,255,1,28,2,53,2,81,2,108,2,133,2,
+ 157,2,175,2,188,2,194,2,196,2,198,2,200,2,202,2,204,2,206,2,208,2,210,2,170,4,170,4,170,4,170,4,
+ 170,4,170,4,170,4,170,4,170,4,170,4,144,4,135,8,0,6,144,4,141,4,1,6,9,132,14,6,13,14,21,21,
+ 18,17,8,142,4,140,4,3,8,14,23,22,133,11,1,10,12,130,13,0,9,141,4,139,4,2,8,18,23,133,22,8,
+ 14,13,13,10,12,14,13,14,17,140,4,138,4,3,6,18,23,21,130,23,8,18,14,14,18,23,14,13,10,9,130,10,
+ 0,9,139,4,138,4,20,17,23,21,23,22,14,22,11,9,14,9,12,23,14,11,11,21,18,18,21,15,138,4,137,4,
+ 22,6,18,23,22,23,14,22,13,13,10,14,9,5,9,23,13,11,12,11,11,13,17,7,137,4,137,4,23,9,23,21,
+ 23,23,22,13,11,13,11,14,9,3,5,18,21,11,10,18,18,21,17,7,6,136,4,137,4,17,17,23,21,23,23,22,
+ 22,14,13,11,14,9,9,3,9,23,13,11,130,22,2,23,16,7,136,4,137,4,2,12,23,22,131,23,3,18,13,12,
+ 14,131,9,8,22,14,10,11,14,14,23,20,7,136,4,137,4,2,18,23,22,131,23,4,18,13,12,18,10,130,9,3,
+ 18,18,10,22,130,23,1,20,7,136,4,136,4,12,6,18,22,22,23,22,23,23,18,13,12,18,13,130,10,8,21,18,
+ 10,12,14,14,18,24,15,136,4,136,4,0,7,130,22,21,23,21,23,23,18,13,12,22,11,13,13,11,18,18,10,14,
+ 22,21,23,24,15,6,135,4,137,4,23,18,22,18,23,14,23,23,18,13,13,22,11,13,13,11,22,14,11,23,25,23,
+ 25,20,15,136,4,137,4,23,17,23,12,23,14,23,22,22,13,11,22,18,13,11,14,23,13,10,14,21,18,23,20,15,
+ 136,4,137,4,17,19,23,14,22,23,21,22,23,18,13,11,18,23,18,23,18,11,12,130,23,2,25,19,15,136,4,137,
+ 4,11,15,22,21,14,23,21,22,22,23,21,13,14,130,23,8,13,11,14,23,22,23,24,16,7,136,4,138,4,7,17,
+ 23,14,14,23,23,22,22,132,23,2,14,11,12,131,23,2,20,16,7,136,4,138,4,8,15,22,23,14,14,23,21,21,
+ 22,130,23,3,14,13,11,21,130,23,3,24,19,15,7,136,4,138,4,21,7,19,22,23,21,14,18,22,18,18,14,13,
+ 13,11,21,25,23,25,24,20,16,7,137,4,139,4,7,7,19,22,23,23,22,22,18,130,13,1,11,23,130,25,3,24,
+ 20,19,15,138,4,139,4,4,6,7,19,24,22,131,23,10,22,23,23,25,25,24,20,20,19,15,7,138,4,140,4,3,
+ 6,7,16,20,135,24,5,20,20,19,16,15,7,139,4,142,4,2,7,15,15,136,16,1,15,7,141,4,144,4,137,7,
+ 143,4,170,4,170,4,170,4,170,4,170,4,170,4,170,4,170,4,88,0,105,0,123,0,145,0,170,0,196,0,223,0,
+ 251,0,24,1,51,1,80,1,110,1,141,1,172,1,201,1,230,1,3,2,31,2,58,2,90,2,124,2,160,2,197,2,
+ 240,2,27,3,71,3,115,3,159,3,201,3,245,3,32,4,75,4,119,4,163,4,207,4,251,4,34,5,75,5,118,5,
+ 160,5,201,5,231,5,1,6,21,6,141,4,1,8,12,131,14,6,12,18,22,22,14,9,6,143,4,139,4,3,6,17,
+ 21,21,133,11,5,12,13,14,14,12,8,142,4,138,4,4,6,14,23,23,22,131,18,8,13,11,11,10,11,13,13,14,
+ 16,141,4,137,4,19,6,14,23,22,22,23,23,21,18,18,22,22,13,13,12,12,10,10,11,8,140,4,137,4,15,9,
+ 23,22,23,23,14,22,12,9,12,10,14,23,13,11,10,130,14,1,18,7,139,4,137,4,16,18,23,22,23,14,22,14,
+ 11,10,14,9,3,12,23,13,11,12,130,14,1,19,7,138,4,136,4,22,8,22,21,23,23,22,14,11,13,11,14,9,
+ 3,3,22,18,11,10,13,13,14,17,7,138,4,136,4,17,17,23,18,23,23,21,18,13,13,11,14,9,9,3,12,23,
+ 11,12,130,23,2,22,16,7,137,4,136,4,2,12,23,21,131,23,3,18,13,12,14,131,9,8,22,14,10,11,14,13,
+ 22,19,7,137,4,136,4,18,18,23,22,23,22,23,23,18,13,12,18,10,9,10,9,18,18,10,18,130,23,1,20,7,
+ 137,4,135,4,24,6,18,23,22,23,22,23,23,18,13,12,18,11,10,9,10,21,18,10,14,21,18,22,20,15,137,4,
+ 135,4,0,7,130,22,21,23,21,23,23,18,13,12,21,13,13,11,11,21,18,10,12,18,14,21,24,15,6,136,4,135,
+ 4,25,6,18,22,18,23,18,23,23,18,13,13,22,11,13,13,11,22,14,11,23,25,23,25,20,15,6,136,4,136,4,
+ 23,17,23,14,23,14,23,23,21,13,12,23,14,11,11,13,23,13,11,18,22,21,23,20,15,137,4,136,4,17,17,23,
+ 14,23,23,22,22,23,14,11,12,22,23,14,23,22,11,11,130,23,2,25,19,15,137,4,136,4,11,15,23,18,18,23,
+ 18,23,22,22,18,11,14,130,23,2,13,11,14,130,23,2,24,16,7,137,4,136,4,5,7,18,23,12,18,23,130,22,
+ 1,23,22,130,23,2,14,13,11,131,23,2,24,16,7,137,4,137,4,8,16,23,23,12,18,23,18,18,21,130,23,3,
+ 14,13,11,14,130,23,2,24,20,15,138,4,134,4,9,6,8,8,15,17,23,23,14,14,18,130,22,13,18,13,13,11,
+ 18,25,23,23,25,20,19,16,8,6,136,4,132,4,1,8,12,131,14,13,12,14,22,23,23,21,18,18,13,11,11,13,
+ 14,22,131,14,6,13,13,18,21,18,14,8,134,4,130,4,4,6,12,22,23,13,132,11,2,12,18,22,130,23,6,22,
+ 21,18,14,21,22,13,132,11,1,10,12,130,13,1,12,7,132,4,4,4,4,6,12,23,133,22,5,18,13,11,10,14,
+ 23,130,22,3,25,22,23,23,132,22,9,18,13,13,10,10,14,12,14,14,7,131,4,16,4,4,12,23,22,22,23,23,
+ 21,14,14,18,23,14,13,10,9,130,10,14,18,22,23,22,23,23,22,14,14,18,23,18,13,11,9,130,10,1,17,7,
+ 130,4,39,4,8,23,22,23,23,14,22,13,9,12,10,9,23,18,13,10,14,18,14,21,23,22,23,14,22,14,12,12,
+ 10,9,22,18,13,10,14,18,18,21,19,130,4,42,4,12,23,21,23,18,22,14,13,10,13,10,3,9,23,14,11,12,
+ 12,14,23,21,23,18,22,18,13,11,13,12,3,3,22,18,11,12,12,11,11,14,15,4,4,42,6,18,22,22,23,22,
+ 14,11,13,11,14,10,3,5,12,23,11,10,14,18,22,22,23,22,18,11,13,11,13,10,3,5,9,23,13,10,14,18,
+ 18,21,16,7,4,42,8,22,21,23,23,22,22,14,13,11,14,10,9,3,3,22,14,11,18,22,22,23,23,22,22,14,
+ 13,11,14,10,9,3,3,22,18,10,18,23,22,23,20,7,4,2,9,23,21,131,23,4,22,13,11,18,10,130,9,5,
+ 18,21,10,12,22,21,131,23,4,22,14,11,18,10,130,9,3,12,23,11,10,130,14,2,22,7,4,11,12,23,18,23,
+ 23,22,23,22,13,11,18,10,130,9,14,12,22,11,14,23,18,23,23,22,23,22,14,11,18,11,130,9,3,10,23,11,
+ 14,130,23,2,25,15,7,11,17,23,21,23,22,23,23,22,13,11,18,13,130,10,5,14,22,11,14,23,21,131,23,4,
+ 22,14,11,18,13,130,10,3,13,22,11,12,130,14,2,22,16,7,10,18,23,18,23,18,23,23,22,13,11,22,131,13,
+ 14,14,22,11,14,23,18,23,21,23,23,22,14,11,22,14,130,13,9,14,22,11,12,21,18,21,22,16,7,10,17,23,
+ 14,23,14,23,23,22,13,11,22,130,13,28,11,18,21,11,22,23,14,23,18,22,23,22,14,11,22,13,11,13,11,14,
+ 22,11,21,25,23,23,24,16,7,42,19,23,14,23,18,22,23,22,14,11,22,21,13,11,13,23,14,10,14,23,14,22,
+ 21,21,23,22,14,11,18,22,13,11,13,23,18,10,12,21,18,22,24,16,7,36,15,23,18,18,23,22,22,23,22,13,
+ 11,18,23,18,23,23,13,11,23,23,18,14,23,22,22,23,22,13,11,14,23,22,22,23,13,11,22,130,23,2,24,15,
+ 7,4,7,18,23,12,23,130,22,3,23,21,14,11,130,23,7,14,11,13,23,22,23,12,23,130,22,3,23,22,14,11,
+ 130,23,9,18,11,11,22,22,23,23,20,15,7,6,4,19,23,18,12,23,23,130,22,131,23,2,18,13,11,131,23,3,
+ 21,12,23,23,130,22,131,23,3,21,13,10,22,130,23,3,24,19,15,4,9,4,7,22,23,18,12,23,22,18,21,130,
+ 23,3,18,13,11,14,132,23,5,21,12,22,22,18,21,130,23,0,18,130,13,130,23,4,25,20,16,7,4,15,4,4,
+ 16,22,23,22,14,18,18,22,21,18,13,13,11,14,131,25,22,20,22,23,22,14,18,18,22,21,18,13,13,11,13,23,
+ 25,23,25,20,19,15,7,4,9,4,4,7,16,22,23,23,22,21,21,130,13,1,11,18,131,25,130,20,0,22,130,23,
+ 16,21,21,14,13,13,11,14,25,25,23,25,20,20,16,7,4,4,130,4,3,7,16,24,22,131,23,1,22,22,130,23,
+ 9,25,24,20,19,16,15,16,24,22,22,130,23,10,22,21,23,23,25,25,24,20,20,16,7,130,4,131,4,3,7,15,
+ 19,20,135,24,3,20,19,16,15,130,7,2,15,19,20,135,24,4,20,20,19,15,7,131,4,132,4,2,7,15,15,136,
+ 16,2,15,7,7,130,4,2,7,7,15,136,16,2,15,7,7,132,4,134,4,1,7,7,133,15,130,7,134,4,130,7,
+ 133,15,1,7,7,134,4,88,0,94,0,109,0,128,0,149,0,172,0,196,0,222,0,250,0,19,1,49,1,80,1,111,
+ 1,142,1,171,1,201,1,232,1,7,2,38,2,67,2,98,2,129,2,159,2,190,2,220,2,251,2,26,3,57,3,87,
+ 3,117,3,147,3,176,3,205,3,233,3,7,4,36,4,65,4,93,4,121,4,148,4,174,4,197,4,216,4,226,4,147,
+ 4,130,6,147,4,143,4,2,8,9,17,131,18,3,17,17,8,6,143,4,140,4,4,6,9,18,21,21,131,18,130,21,
+ 3,22,21,12,8,141,4,139,4,7,8,18,23,14,14,18,18,22,132,23,4,22,22,23,21,17,140,4,138,4,6,8,
+ 21,23,12,18,23,23,130,21,132,23,5,22,23,22,23,17,6,138,4,137,4,7,6,18,23,14,23,23,21,22,133,23,
+ 7,18,21,18,22,23,22,23,9,138,4,137,4,8,17,23,22,18,22,22,23,23,21,132,18,8,14,13,18,21,23,18,
+ 13,14,15,137,4,137,4,9,17,23,18,22,18,23,21,14,10,12,130,10,130,12,7,10,11,21,18,11,14,16,7,136,
+ 4,137,4,8,17,18,11,23,22,22,11,11,18,134,14,7,12,12,18,18,11,14,19,7,136,4,136,4,12,9,23,14,
+ 11,22,23,22,18,22,14,13,13,11,130,10,8,9,9,12,23,13,11,12,19,7,136,4,135,4,12,6,18,23,18,11,
+ 13,23,23,21,13,11,13,11,130,9,9,3,5,9,21,14,11,10,18,19,7,136,4,135,4,0,16,130,23,9,14,11,
+ 13,21,21,14,14,13,11,10,130,9,8,12,23,14,11,10,13,22,19,7,136,4,135,4,25,16,22,22,23,23,18,11,
+ 11,14,21,22,22,18,18,14,18,21,14,11,10,12,11,13,22,19,7,136,4,135,4,2,16,18,13,130,23,4,18,14,
+ 11,10,11,132,13,9,11,10,12,10,12,12,14,24,16,7,136,4,135,4,2,16,23,10,131,23,18,18,23,14,14,18,
+ 9,14,11,10,18,9,14,10,13,11,14,24,16,7,136,4,135,4,25,16,23,13,11,23,23,22,18,23,18,18,23,10,
+ 18,13,11,18,10,14,10,11,18,14,14,16,7,136,4,135,4,25,16,23,23,14,11,18,23,22,23,14,18,23,10,14,
+ 13,10,21,10,14,13,14,22,14,14,16,7,136,4,135,4,0,7,130,23,21,14,13,13,14,23,21,22,23,12,22,18,
+ 12,18,14,13,14,11,18,13,14,19,7,136,4,136,4,0,17,131,23,19,14,14,10,18,12,14,18,12,21,12,12,13,
+ 10,13,11,18,11,12,19,7,136,4,135,4,25,6,18,23,25,22,22,21,23,12,23,11,12,18,10,21,10,13,12,10,
+ 14,13,13,10,18,19,7,136,4,135,4,25,16,23,23,25,23,22,18,23,11,23,11,11,18,10,21,10,11,13,11,14,
+ 13,10,12,22,19,7,136,4,135,4,1,16,22,131,23,9,22,23,14,23,12,12,21,10,21,12,130,14,6,10,12,11,
+ 14,22,19,7,136,4,135,4,2,16,18,13,130,23,2,18,18,14,130,18,13,21,18,14,14,13,10,11,10,12,12,14,
+ 18,19,7,136,4,135,4,2,16,23,10,131,23,18,18,22,12,14,18,9,14,11,10,14,9,14,10,12,11,14,20,16,
+ 7,136,4,135,4,25,16,23,13,11,23,25,22,18,23,18,18,23,10,18,13,12,21,10,14,10,11,18,14,17,15,7,
+ 136,4,135,4,25,16,23,23,14,13,22,23,22,23,14,18,23,10,14,13,10,21,10,14,12,14,22,14,17,15,6,136,
+ 4,135,4,0,7,130,23,21,14,11,13,18,23,22,23,23,12,21,14,12,18,13,14,14,11,18,14,17,16,7,136,4,
+ 136,4,0,17,130,23,20,22,14,14,10,18,12,14,18,12,21,12,12,13,10,13,11,18,11,17,16,7,136,4,136,4,
+ 24,15,25,23,22,22,21,23,12,23,10,10,18,9,18,10,13,12,10,14,13,11,11,18,16,7,136,4,136,4,24,16,
+ 25,25,23,22,18,23,11,23,11,12,18,10,21,10,11,13,11,18,11,10,18,24,16,7,136,4,136,4,0,16,131,23,
+ 19,22,23,14,23,11,12,18,10,21,12,14,18,13,10,12,11,18,18,16,7,136,4,136,4,0,16,131,23,19,18,18,
+ 14,21,18,18,22,18,14,14,13,10,11,9,14,11,18,24,16,7,136,4,136,4,0,16,132,23,18,14,22,10,18,12,
+ 10,14,10,12,12,10,14,10,14,11,21,20,15,7,136,4,136,4,24,16,23,14,25,23,22,14,23,12,23,18,10,21,
+ 10,14,14,10,14,10,14,14,21,20,15,6,136,4,136,4,23,16,23,23,18,23,23,18,23,11,23,18,10,21,10,14,
+ 13,10,18,12,14,12,21,20,15,137,4,136,4,0,7,130,23,11,14,14,18,23,18,23,22,12,23,12,14,14,130,12,
+ 4,14,11,21,20,15,137,4,137,4,0,17,130,23,18,22,14,14,12,18,14,18,18,12,18,10,12,13,10,14,11,24,
+ 19,15,137,4,137,4,22,7,25,23,22,22,21,23,11,23,10,10,14,9,21,10,13,13,10,14,12,20,16,7,137,4,
+ 138,4,21,15,25,23,23,18,23,11,23,11,12,18,10,21,10,11,13,10,24,20,19,15,7,137,4,138,4,20,7,15,
+ 24,22,23,23,14,23,11,11,18,10,21,11,14,18,24,20,19,15,7,138,4,139,4,6,7,15,16,20,24,24,25,131,
+ 22,1,24,24,130,20,2,16,15,7,139,4,140,4,2,7,7,15,130,16,132,20,5,19,16,16,15,7,7,140,4,142,
+ 4,130,7,134,15,130,7,142,4,88,0,90,0,92,0,94,0,106,0,120,0,136,0,152,0,167,0,181,0,197,0,217,
+ 0,237,0,3,1,24,1,44,1,64,1,83,1,103,1,123,1,144,1,165,1,186,1,207,1,228,1,249,1,14,2,35,
+ 2,56,2,77,2,98,2,119,2,140,2,161,2,181,2,200,2,218,2,235,2,250,2,9,3,22,3,33,3,35,3,37,
+ 3,170,4,170,4,170,4,155,4,1,6,9,134,4,1,6,6,131,4,156,4,2,13,10,8,131,4,2,3,13,6,131,
+ 4,156,4,10,9,13,13,11,9,9,10,13,12,7,7,130,4,156,4,10,7,13,10,10,13,13,10,13,16,15,7,130,
+ 4,157,4,1,12,10,130,3,4,10,13,19,15,7,130,4,157,4,1,11,10,130,3,3,9,13,17,7,131,4,156,4,
+ 2,9,13,10,130,3,4,9,10,13,9,6,130,4,153,4,16,19,12,13,14,13,13,10,9,9,10,13,14,14,12,5,
+ 4,4,152,4,1,17,27,130,14,130,18,9,10,10,14,20,20,16,15,7,4,4,151,4,18,17,29,27,13,21,25,25,
+ 22,20,14,13,20,20,16,16,15,7,7,4,150,4,13,17,29,27,21,17,14,25,25,21,20,16,17,19,16,130,7,130,
+ 4,149,4,10,17,29,27,21,17,17,12,13,21,21,17,130,15,0,7,133,4,148,4,12,17,29,27,21,17,17,27,27,
+ 21,14,14,21,15,130,7,133,4,147,4,5,17,29,27,21,17,17,130,27,130,29,2,24,15,7,135,4,146,4,5,17,
+ 29,27,21,17,17,130,27,130,29,3,25,20,16,7,135,4,145,4,5,17,29,27,21,17,17,130,27,130,29,3,25,20,
+ 19,15,136,4,144,4,5,17,29,27,21,17,17,130,27,130,29,4,25,20,19,15,7,136,4,143,4,5,17,29,27,21,
+ 17,17,130,27,130,29,4,25,20,19,15,7,137,4,142,4,5,17,29,27,21,17,17,130,27,130,29,4,25,20,19,15,
+ 7,138,4,141,4,5,17,29,27,21,17,17,130,27,130,29,4,25,20,19,15,7,139,4,140,4,5,17,29,27,21,17,
+ 17,130,27,130,29,4,25,20,19,15,7,140,4,139,4,5,17,29,27,21,17,17,130,27,130,29,4,25,20,19,15,7,
+ 141,4,138,4,5,17,29,27,21,17,17,130,27,130,29,4,25,20,19,15,7,142,4,137,4,5,17,29,27,21,17,17,
+ 130,27,130,29,4,25,20,19,15,7,143,4,136,4,5,17,29,27,21,17,17,130,27,130,29,4,25,20,19,15,7,144,
+ 4,135,4,5,17,29,27,21,17,17,130,27,130,29,4,25,20,19,15,7,145,4,134,4,5,17,29,27,21,17,17,130,
+ 27,130,29,4,25,20,19,15,7,146,4,133,4,5,17,29,27,21,17,17,130,27,130,29,4,25,20,19,15,7,147,4,
+ 132,4,5,17,29,27,21,17,17,130,27,130,29,4,25,20,19,15,7,148,4,131,4,5,17,29,27,21,17,17,130,27,
+ 130,29,4,25,20,19,15,7,149,4,131,4,4,25,27,21,17,17,130,27,130,29,4,25,20,19,15,7,150,4,131,4,
+ 3,17,21,17,17,130,27,130,29,4,25,20,19,15,7,151,4,131,4,2,16,21,17,130,27,130,29,4,25,20,19,15,
+ 7,152,4,131,4,1,6,24,130,27,130,29,4,25,20,19,15,7,153,4,132,4,1,7,25,131,29,4,25,20,19,15,
+ 7,154,4,132,4,9,7,15,20,25,27,24,20,19,15,7,155,4,133,4,7,7,7,16,19,19,16,15,7,156,4,134,
+ 4,5,7,7,15,15,7,7,157,4,170,4,170,4,88,0,90,0,96,0,109,0,125,0,138,0,152,0,167,0,193,0,
+ 222,0,249,0,26,1,64,1,100,1,129,1,152,1,183,1,210,1,239,1,4,2,27,2,51,2,76,2,92,2,108,2,
+ 124,2,139,2,155,2,172,2,188,2,204,2,220,2,232,2,244,2,4,3,22,3,44,3,67,3,88,3,112,3,134,3,
+ 152,3,164,3,171,3,170,4,157,4,0,5,139,4,157,4,2,10,11,5,132,4,1,9,9,130,4,157,4,12,8,13,
+ 13,12,5,6,5,10,13,7,7,4,4,158,4,1,11,10,132,13,4,11,15,7,4,4,158,4,1,9,13,131,9,5,
+ 13,17,16,7,4,4,158,4,2,8,13,9,130,3,5,13,17,15,7,4,4,141,4,8,7,16,20,26,26,24,24,20,
+ 16,135,4,1,10,10,131,3,5,10,13,9,7,4,4,139,4,1,20,26,131,30,133,28,18,24,15,4,4,16,9,13,
+ 13,10,10,9,3,10,10,13,13,11,3,4,137,4,2,20,26,30,138,26,4,28,30,26,26,25,131,18,9,14,10,10,
+ 13,18,20,19,19,8,6,135,4,2,7,26,30,134,26,2,20,24,24,131,26,17,30,31,30,17,18,25,25,22,20,17,
+ 13,14,20,20,16,15,15,7,134,4,2,7,26,30,131,26,24,20,19,16,15,15,16,20,26,26,24,26,30,26,26,20,
+ 12,28,28,25,20,20,14,19,19,15,130,7,0,4,133,4,2,7,26,30,131,26,6,19,15,15,16,19,20,24,131,26,
+ 9,30,30,26,20,20,16,18,25,22,24,130,16,1,15,7,131,4,132,4,2,7,26,30,132,26,130,20,134,26,11,28,
+ 30,30,20,20,26,26,19,12,14,25,16,130,7,132,4,132,4,1,20,30,140,26,132,28,10,30,26,20,26,26,30,30,
+ 28,28,16,7,134,4,131,4,1,15,30,131,26,0,20,133,26,1,30,30,132,28,5,26,26,30,26,26,30,130,31,2,
+ 24,16,7,134,4,131,4,1,26,30,130,26,1,20,20,131,26,131,30,133,28,1,26,28,133,31,2,24,15,7,134,4,
+ 130,4,1,15,30,131,26,0,20,131,26,132,30,131,28,4,25,25,28,28,30,132,31,2,28,15,7,134,4,130,4,1,
+ 20,30,135,26,134,30,130,28,130,25,130,28,132,31,0,20,135,4,130,4,1,26,30,133,26,137,30,1,28,28,132,25,
+ 131,28,3,31,31,26,7,134,4,4,4,4,7,30,30,132,26,138,30,1,28,28,132,25,132,28,3,31,28,7,7,133,
+ 4,3,4,4,20,31,130,30,1,26,26,140,30,130,28,0,25,134,28,3,31,31,16,7,133,4,3,4,4,20,31,145,
+ 30,138,28,3,31,31,16,7,133,4,3,4,4,20,31,147,30,135,28,130,31,1,19,7,133,4,3,4,4,20,31,152,
+ 30,130,28,130,31,1,19,7,133,4,4,4,4,20,31,31,153,30,131,31,1,19,7,133,4,2,4,4,7,130,31,151,
+ 30,131,31,2,28,16,7,133,4,3,4,4,7,30,130,31,149,30,132,31,2,26,16,7,133,4,130,4,0,26,132,31,
+ 145,30,134,31,2,20,15,7,133,4,130,4,0,16,134,31,141,30,136,31,2,19,15,7,133,4,131,4,0,28,136,31,
+ 135,30,138,31,2,26,16,15,134,4,131,4,0,19,155,31,2,20,16,7,134,4,132,4,0,26,153,31,2,24,19,15,
+ 135,4,132,4,1,15,30,149,31,5,30,31,28,19,16,7,135,4,133,4,3,16,30,31,30,145,31,5,30,31,28,20,
+ 19,15,136,4,133,4,5,7,16,30,31,30,30,141,31,7,30,30,31,28,20,19,15,7,136,4,134,4,3,7,16,28,
+ 31,130,30,136,31,130,30,6,31,31,26,20,19,15,7,137,4,135,4,4,7,15,26,31,31,138,30,7,31,31,28,24,
+ 19,19,15,7,138,4,136,4,4,7,15,19,26,28,130,31,130,30,131,31,6,28,24,20,19,16,15,7,139,4,137,4,
+ 5,7,15,15,16,20,26,132,28,7,26,26,20,19,19,16,15,7,141,4,139,4,0,7,130,15,0,16,133,19,4,16,
+ 16,15,7,7,142,4,141,4,1,7,7,134,15,1,7,7,145,4,146,4,1,7,7,149,4,88,0,104,0,128,0,153,
+ 0,188,0,223,0,249,0,20,1,56,1,95,1,136,1,168,1,198,1,230,1,14,2,52,2,88,2,129,2,166,2,200,
+ 2,231,2,6,3,46,3,80,3,115,3,151,3,194,3,232,3,6,4,39,4,71,4,103,4,134,4,165,4,192,4,223,
+ 4,3,5,41,5,79,5,112,5,135,5,159,5,179,5,189,5,142,4,3,15,19,19,24,130,17,3,19,19,16,6,144,
+ 4,136,4,130,6,5,7,16,24,24,19,16,132,8,7,9,19,17,19,16,15,7,6,139,4,134,4,2,15,24,17,130,
+ 19,2,17,19,8,136,5,7,8,9,19,17,20,17,17,15,137,4,132,4,13,6,7,24,24,20,19,16,9,8,5,5,
+ 3,8,8,131,3,10,8,8,3,5,5,3,9,19,24,24,16,130,15,133,4,15,4,4,7,19,17,20,20,24,19,19,
+ 16,9,8,3,8,8,137,3,0,8,130,3,2,8,8,9,130,17,2,24,17,16,131,4,12,4,7,24,24,19,20,19,
+ 9,9,8,3,3,5,144,3,130,5,131,9,2,19,24,19,130,4,11,4,20,24,20,24,19,9,8,8,3,8,8,147,
+ 3,10,5,8,9,9,19,19,17,25,20,4,4,7,4,20,24,24,19,9,9,8,130,9,0,8,130,3,0,5,135,3,
+ 130,8,0,5,130,3,130,8,130,9,0,17,130,24,1,15,4,3,6,24,24,19,131,9,5,19,16,9,3,5,5,130,
+ 8,0,5,132,3,9,5,8,9,9,8,3,5,3,5,8,132,9,4,17,24,24,16,7,2,15,24,17,130,9,130,17,
+ 1,9,9,130,8,130,9,11,8,5,3,3,5,3,8,9,9,19,9,9,131,8,2,19,17,19,130,9,3,17,24,20,
+ 7,8,19,25,17,19,9,19,17,24,19,136,9,132,8,130,9,1,17,19,132,9,9,16,17,17,19,9,9,17,24,24,
+ 15,1,15,24,132,17,1,24,17,132,9,1,17,19,136,9,2,19,17,17,133,9,130,17,5,9,19,17,24,20,15,2,
+ 7,24,24,130,17,3,24,24,17,19,131,9,1,17,17,136,9,130,17,132,9,2,17,17,24,131,17,2,24,20,15,10,
+ 4,16,25,24,17,17,24,24,17,17,19,130,9,2,24,17,17,134,9,4,17,17,24,17,19,130,9,3,19,17,24,24,
+ 130,17,3,24,24,19,15,8,4,6,20,25,24,24,25,25,24,132,17,10,24,24,17,17,19,9,9,16,19,17,17,130,
+ 24,2,17,19,19,130,17,133,24,2,20,16,7,6,4,6,7,19,24,25,25,130,24,131,17,2,24,25,24,134,17,3,
+ 24,24,25,24,132,17,2,24,25,25,130,24,3,20,19,15,7,5,4,4,7,7,16,19,130,20,6,24,25,24,24,25,
+ 24,25,131,24,130,17,6,24,24,25,25,24,17,17,130,24,1,25,24,131,20,3,19,15,7,4,130,4,1,6,7,131,
+ 15,1,16,20,130,24,3,20,20,25,25,132,24,131,25,130,24,12,25,25,24,20,20,19,16,16,15,15,7,4,4,132,
+ 4,11,6,7,6,4,7,15,16,16,19,19,16,24,134,25,3,24,25,24,20,130,24,4,20,20,19,16,15,130,7,131,
+ 4,134,4,5,6,8,8,9,17,17,131,14,8,25,24,25,22,22,24,22,25,23,130,14,131,17,2,19,15,6,134,4,
+ 131,4,3,5,9,12,11,136,14,8,25,24,22,14,18,24,24,25,21,131,14,130,13,4,14,13,12,9,8,132,4,3,
+ 4,4,9,12,130,13,3,14,12,17,17,132,19,10,16,24,25,18,14,14,18,24,25,24,20,131,19,130,17,8,14,14,
+ 13,13,12,9,6,4,4,5,4,9,13,10,13,17,130,19,134,16,9,15,24,25,18,12,12,18,22,24,20,135,16,8,
+ 19,19,17,14,11,13,12,6,4,4,6,14,10,13,17,131,16,130,15,131,7,10,4,19,22,14,12,12,14,18,24,19,
+ 15,132,7,132,15,5,19,14,10,13,9,4,8,4,8,14,11,11,12,17,15,7,135,4,9,24,22,14,12,10,12,18,
+ 24,19,7,133,4,9,6,8,9,12,11,10,13,17,16,7,4,4,7,16,18,14,130,13,0,12,130,9,6,8,5,8,
+ 5,7,25,18,131,12,6,18,25,19,15,8,5,8,130,9,1,12,11,130,13,4,14,17,20,16,7,7,4,6,7,16,
+ 19,17,14,14,133,13,5,11,11,12,14,13,13,130,11,2,13,14,12,131,11,131,13,8,14,14,17,19,20,20,16,15,
+ 7,5,4,4,6,7,15,16,130,19,130,17,130,14,139,13,3,14,18,18,14,130,17,131,19,4,16,15,7,7,4,131,
+ 4,130,7,3,15,15,16,20,131,24,1,22,18,134,12,7,13,18,22,25,22,22,24,20,132,16,2,15,7,7,130,4,
+ 133,4,9,15,19,19,24,22,18,18,22,18,17,130,12,132,10,7,9,12,14,22,22,14,18,22,130,24,0,15,134,4,
+ 132,4,7,16,22,14,18,22,18,14,14,132,12,0,10,133,12,4,10,12,12,18,22,130,18,3,14,18,24,15,133,4,
+ 131,4,9,15,22,12,10,10,14,14,12,12,10,130,12,0,10,137,12,3,10,12,14,14,130,12,1,18,24,133,4,131,
+ 4,8,16,22,12,18,14,12,12,10,10,130,12,0,10,135,12,0,10,133,12,5,10,12,12,18,25,16,132,4,131,4,
+ 5,16,22,18,18,12,10,131,12,133,10,132,12,130,10,133,12,4,10,10,22,24,7,131,4,132,4,6,24,25,12,12,
+ 14,22,14,130,12,0,10,139,12,11,10,10,12,12,18,22,14,12,22,24,15,6,130,4,132,4,6,16,25,18,14,22,
+ 22,12,130,10,2,12,12,10,132,12,1,10,10,132,12,9,10,10,12,22,22,18,25,24,15,7,130,4,132,4,5,7,
+ 24,25,18,24,18,131,12,1,18,12,131,10,12,12,14,12,12,10,10,12,18,14,12,12,14,22,130,25,2,20,16,7,
+ 130,4,133,4,10,7,24,25,25,22,18,14,14,22,22,14,131,12,18,14,18,18,14,12,12,18,24,22,18,18,22,25,
+ 25,24,20,19,15,7,130,4,133,4,9,7,15,19,24,24,25,22,22,25,22,133,18,1,25,22,130,18,0,22,132,25,
+ 5,24,20,20,19,16,7,131,4,134,4,4,7,15,16,19,20,131,24,138,25,131,24,130,20,3,19,16,15,7,132,4,
+ 136,4,5,7,15,15,16,19,19,130,20,131,24,133,20,131,19,3,16,16,15,7,134,4,138,4,1,7,7,131,15,130,
+ 16,1,19,19,133,16,130,15,130,7,136,4,143,4,130,7,130,15,134,7,141,4,88,0,90,0,92,0,94,0,96,0,
+ 98,0,120,0,142,0,168,0,202,0,237,0,15,1,41,1,70,1,98,1,118,1,134,1,145,1,156,1,167,1,180,1,
+ 192,1,206,1,219,1,234,1,250,1,10,2,26,2,45,2,66,2,86,2,106,2,122,2,141,2,160,2,179,2,196,2,
+ 211,2,224,2,235,2,241,2,243,2,245,2,247,2,170,4,170,4,170,4,170,4,170,4,136,4,1,19,24,130,25,1,
+ 19,15,138,4,1,19,24,130,25,1,24,16,136,4,134,4,1,20,27,134,29,1,25,15,134,4,1,19,27,134,29,1,
+ 25,16,134,4,133,4,0,24,130,29,131,27,131,29,0,16,132,4,2,24,29,29,130,27,133,29,0,19,133,4,132,4,
+ 9,24,29,29,27,27,21,14,21,21,27,131,29,0,16,130,4,5,24,29,27,21,14,21,130,27,132,29,0,19,132,4,
+ 131,4,12,19,29,29,27,21,17,9,9,17,17,14,27,27,130,29,7,15,4,20,29,21,17,17,21,131,27,133,29,0,
+ 15,131,4,130,4,11,7,29,29,27,21,17,17,14,21,27,27,23,130,27,7,29,29,25,20,27,21,9,21,132,27,134,
+ 29,0,25,131,4,130,4,6,19,29,29,27,14,17,21,136,27,130,29,2,27,17,21,130,27,138,29,0,16,130,4,130,
+ 4,5,25,29,29,27,14,21,131,27,130,29,130,27,3,29,29,27,21,130,27,140,29,3,20,6,4,4,7,4,4,6,
+ 27,29,29,27,23,130,27,134,29,6,27,27,29,27,23,27,27,141,29,3,25,7,4,4,2,4,4,7,131,29,1,27,
+ 27,139,29,130,27,142,29,3,25,15,7,4,2,4,4,7,131,29,1,27,27,157,29,3,25,15,7,4,130,4,0,25,
+ 162,29,3,25,15,7,4,130,4,0,24,162,29,3,24,15,7,4,130,4,0,16,162,29,3,20,15,7,4,130,4,1,
+ 7,27,160,29,4,25,16,15,4,4,131,4,0,20,160,29,4,20,16,7,4,4,131,4,1,7,27,158,29,5,25,19,
+ 15,7,4,4,132,4,0,16,157,29,3,28,20,16,7,130,4,132,4,1,6,20,155,29,4,25,20,19,15,7,130,4,
+ 132,4,2,6,7,20,153,29,4,25,20,19,16,7,131,4,133,4,2,6,7,20,151,29,4,25,20,19,16,7,132,4,
+ 134,4,2,7,7,20,149,29,4,25,20,19,16,7,133,4,135,4,4,7,7,20,29,27,144,29,5,27,25,20,19,16,
+ 7,134,4,136,4,5,7,7,20,29,27,27,140,29,6,27,27,25,20,19,16,7,135,4,137,4,5,7,7,20,29,27,
+ 27,138,29,130,27,3,20,19,16,7,136,4,138,4,3,7,7,20,29,131,27,132,29,132,27,3,20,19,16,7,137,4,
+ 139,4,3,7,7,20,29,139,27,3,20,19,16,7,138,4,140,4,3,7,7,20,29,134,27,6,25,27,27,20,19,16,
+ 7,139,4,141,4,3,7,7,20,29,132,25,6,24,27,27,20,19,16,7,140,4,142,4,13,6,7,20,29,25,24,25,
+ 24,27,29,20,19,16,7,141,4,143,4,11,6,7,20,29,27,25,27,27,20,19,16,7,142,4,144,4,2,6,7,20,
+ 130,29,3,20,19,16,7,143,4,145,4,7,6,7,19,24,20,19,16,7,144,4,146,4,5,6,7,15,16,15,7,145,
+ 4,148,4,130,7,146,4,170,4,170,4,170,4,88,0,94,0,108,0,125,0,139,0,160,0,184,0,208,0,234,0,3,
+ 1,28,1,53,1,78,1,103,1,130,1,157,1,184,1,210,1,234,1,2,2,20,2,44,2,70,2,100,2,137,2,180,
+ 2,224,2,12,3,53,3,94,3,136,3,168,3,209,3,251,3,39,4,83,4,127,4,163,4,195,4,223,4,1,5,28,
+ 5,38,5,40,5,146,4,130,7,148,4,143,4,8,15,16,16,19,16,19,16,16,15,145,4,141,4,4,15,16,16,8,
+ 9,131,8,3,9,16,16,15,143,4,140,4,2,15,16,8,136,9,2,8,16,15,142,4,139,4,2,15,17,9,131,17,
+ 0,12,130,9,5,17,12,17,9,17,16,141,4,138,4,3,7,16,17,22,130,10,5,11,11,17,9,17,12,130,11,2,
+ 13,19,7,140,4,138,4,11,16,8,9,24,23,22,22,14,11,12,17,12,131,13,3,22,8,19,7,139,4,137,4,20,
+ 7,19,8,9,24,22,12,14,12,13,11,11,13,13,11,11,23,24,3,19,15,139,4,137,4,9,15,19,9,9,17,25,
+ 14,10,11,11,132,13,6,23,24,9,9,19,19,7,138,4,137,4,0,19,131,9,0,17,130,23,1,18,11,130,13,1,
+ 23,24,131,9,1,20,7,138,4,137,4,0,20,131,9,9,17,22,12,12,11,11,13,11,23,24,132,9,2,24,15,6,
+ 137,4,137,4,2,20,17,9,130,17,0,25,132,13,1,11,22,131,17,4,9,9,24,15,7,137,4,137,4,0,24,131,
+ 17,9,24,12,11,13,13,11,13,11,12,24,132,17,2,24,16,7,137,4,137,4,14,20,24,17,17,24,12,13,13,11,
+ 13,18,11,13,11,18,131,17,3,24,24,15,7,137,4,137,4,4,16,24,17,24,12,131,13,6,23,25,13,13,11,12,
+ 24,130,17,3,24,24,15,7,137,4,137,4,14,7,24,24,14,11,13,11,13,23,24,24,22,10,13,11,131,17,3,25,
+ 20,15,7,137,4,138,4,2,20,25,18,130,13,14,23,24,17,24,25,14,13,13,14,24,17,24,24,16,15,138,4,138,
+ 4,1,7,28,131,25,0,24,130,17,0,24,131,25,5,17,24,28,20,16,7,138,4,136,4,130,15,2,19,28,24,134,
+ 17,1,24,24,130,17,5,28,24,20,19,15,7,137,4,133,4,0,15,133,19,130,24,136,17,130,24,133,19,0,15,135,
+ 4,131,4,3,15,16,16,9,133,8,1,9,17,136,24,0,17,135,8,2,16,16,15,133,4,130,4,2,15,16,8,135,
+ 9,2,8,5,9,134,24,2,9,5,8,135,9,2,8,16,16,132,4,2,4,4,16,134,17,130,9,130,17,2,9,17,
+ 20,130,19,2,20,17,9,133,17,130,9,131,17,0,19,131,4,2,4,7,18,132,12,4,13,25,17,9,17,130,12,8,
+ 18,18,17,20,15,19,17,9,23,133,12,3,17,9,17,22,131,12,0,16,130,4,4,6,19,9,18,12,130,11,18,10,
+ 22,24,17,13,11,13,10,22,17,9,24,15,17,9,8,17,22,12,131,11,3,12,17,23,12,130,11,4,12,20,7,4,
+ 4,3,15,16,9,17,130,23,35,14,11,12,23,11,11,13,11,18,25,17,8,17,20,17,8,9,17,25,23,22,23,14,
+ 11,12,22,13,11,13,11,14,17,16,19,7,4,21,19,9,9,17,18,12,12,11,13,11,10,13,13,11,18,25,17,9,
+ 9,17,24,17,130,9,3,24,22,12,12,130,11,10,10,11,13,11,14,18,9,9,19,7,4,0,19,130,9,3,17,18,
+ 14,14,131,13,3,11,18,25,17,130,9,2,19,24,19,131,9,3,24,22,14,14,131,13,2,11,14,18,130,9,2,20,
+ 16,4,0,24,130,9,0,17,130,22,6,18,11,13,11,14,25,17,131,9,2,19,25,19,131,9,0,25,130,22,5,18,
+ 11,13,11,14,18,131,9,2,24,19,7,1,24,9,130,17,8,18,11,10,11,13,13,11,25,24,131,17,4,9,17,25,
+ 17,9,130,17,8,24,25,12,10,11,11,13,11,22,131,17,3,9,24,20,7,0,24,131,17,0,22,132,13,2,11,22,
+ 25,133,17,0,25,132,17,1,25,23,132,13,1,11,14,132,17,2,24,20,7,0,24,130,17,10,22,11,11,13,11,11,
+ 13,11,13,23,24,131,17,2,24,28,24,130,17,9,25,23,11,11,13,11,11,13,13,11,132,17,2,24,19,7,14,20,
+ 17,17,22,11,11,13,11,18,23,11,13,10,22,25,131,17,16,25,28,25,17,17,25,23,11,11,13,11,14,23,11,13,
+ 11,14,131,17,2,24,16,7,35,15,24,18,13,11,13,11,18,25,25,14,11,13,12,23,24,17,17,24,28,20,28,24,
+ 24,23,11,11,13,11,14,25,25,18,11,13,11,130,17,3,24,20,16,7,42,4,24,14,10,13,11,18,25,17,17,22,
+ 11,13,10,18,25,17,17,25,24,16,24,28,25,22,10,13,11,14,25,24,25,23,11,13,10,12,17,17,24,20,15,7,
+ 6,4,15,22,18,18,22,25,130,17,23,24,22,18,18,22,25,17,24,28,20,16,15,24,25,22,18,18,22,25,17,17,
+ 24,25,22,130,18,5,17,24,20,16,7,4,2,4,4,19,130,24,132,17,131,24,12,17,24,28,20,19,15,7,15,28,
+ 25,17,24,24,131,17,131,24,6,17,24,20,19,15,7,4,5,4,4,7,16,24,24,136,17,10,24,28,20,19,15,7,
+ 4,7,16,24,24,136,17,7,24,24,20,20,16,7,4,4,130,4,2,7,16,20,137,24,3,20,19,15,7,130,4,2,
+ 7,15,20,137,24,3,20,19,16,7,130,4,131,4,3,7,15,16,20,132,24,5,20,20,19,16,15,7,132,4,3,7,
+ 15,16,20,132,24,5,20,20,19,16,15,7,131,4,132,4,2,7,7,15,134,16,2,15,7,7,134,4,3,7,7,15,
+ 15,133,16,2,15,7,7,132,4,134,4,135,7,140,4,134,7,135,4,170,4,88,0,90,0,92,0,94,0,110,0,132,
+ 0,143,0,155,0,169,0,192,0,209,0,229,0,249,0,13,1,31,1,48,1,68,1,98,1,130,1,159,1,185,1,212,
+ 1,242,1,20,2,49,2,78,2,111,2,152,2,188,2,222,2,4,3,40,3,70,3,105,3,141,3,177,3,217,3,0,
+ 4,31,4,49,4,61,4,73,4,84,4,90,4,170,4,170,4,170,4,142,4,0,7,132,4,1,15,15,131,4,1,16,
+ 20,141,4,140,4,16,7,20,28,26,16,16,20,26,28,28,20,16,16,24,28,28,19,140,4,138,4,1,16,24,144,28,
+ 0,16,139,4,138,4,1,20,31,143,28,1,31,20,139,4,138,4,2,19,31,31,142,28,2,31,28,7,138,4,138,4,
+ 3,24,31,28,28,130,31,1,28,28,134,31,5,28,28,31,28,15,7,137,4,137,4,1,7,28,133,31,0,28,138,31,
+ 2,24,15,7,137,4,137,4,0,19,134,31,1,28,31,132,28,131,31,3,26,19,16,7,137,4,137,4,0,26,134,31,
+ 1,28,31,133,28,5,31,31,26,19,19,15,138,4,137,4,0,26,137,31,0,28,130,31,6,28,31,31,20,16,15,7,
+ 138,4,137,4,0,26,136,31,1,28,28,132,31,3,28,19,15,7,139,4,137,4,0,26,135,31,1,28,28,133,31,2,
+ 24,16,7,140,4,137,4,0,28,135,31,10,28,28,31,28,28,31,31,28,20,16,7,140,4,137,4,2,24,31,31,131,
+ 28,5,31,31,28,28,31,28,130,31,9,24,17,14,14,12,12,18,18,17,8,134,4,137,4,12,19,31,31,28,28,31,
+ 28,31,31,28,28,31,28,130,31,10,25,14,11,13,13,11,13,12,14,14,8,133,4,137,4,5,16,31,31,28,28,31,
+ 134,28,14,31,31,28,28,25,21,18,21,18,11,10,12,12,13,9,132,4,138,4,2,28,31,31,137,28,14,31,28,31,
+ 28,18,12,14,18,23,13,10,10,11,11,9,131,4,138,4,0,20,130,31,135,28,130,31,13,25,23,11,12,13,3,17,
+ 23,11,12,13,13,14,15,130,4,137,4,1,7,20,133,31,132,28,19,31,31,25,21,13,13,11,12,9,5,18,21,10,
+ 14,18,18,19,7,4,4,135,4,3,16,24,28,31,131,28,130,31,130,28,130,31,17,23,22,18,13,13,12,9,3,9,
+ 22,11,14,23,23,17,7,4,4,133,4,1,15,26,135,28,135,31,0,25,130,23,2,14,11,12,130,9,2,22,13,10,
+ 130,22,2,15,6,4,132,4,1,16,31,135,28,135,31,0,25,131,23,14,14,11,14,10,9,10,22,13,12,22,22,18,
+ 16,7,4,131,4,1,15,31,132,28,133,31,0,28,133,31,18,25,21,23,23,14,11,14,13,11,11,22,14,12,14,14,
+ 17,16,7,4,131,4,13,20,31,28,28,31,28,28,31,31,28,28,31,28,28,130,31,3,28,28,31,31,130,23,1,13,
+ 12,131,13,8,23,10,18,25,23,25,16,7,4,131,4,1,7,28,132,31,130,28,2,31,28,26,133,31,19,28,31,31,
+ 23,22,18,10,25,31,28,31,31,25,14,22,23,22,16,7,4,132,4,3,15,26,31,28,136,31,0,28,131,31,19,28,
+ 31,31,18,23,21,25,31,15,4,4,7,26,31,22,23,24,16,7,4,133,4,3,16,31,31,28,130,31,131,28,0,31,
+ 130,26,0,28,130,31,17,22,23,21,14,31,15,4,15,16,4,4,31,23,23,20,16,7,4,130,4,0,16,130,20,0,
+ 28,130,31,136,28,22,24,20,20,24,23,14,18,22,13,31,20,16,31,31,20,4,28,25,20,19,15,4,4,2,4,4,
+ 28,139,31,134,28,8,26,24,25,23,21,18,14,22,28,130,31,8,20,4,31,24,19,16,7,4,4,3,4,7,31,31,
+ 133,28,130,31,0,28,130,31,131,28,131,31,1,17,22,130,23,9,31,28,20,20,7,4,28,24,16,7,130,4,1,4,
+ 7,136,31,4,28,20,19,20,28,130,31,11,28,31,31,28,31,28,16,20,24,18,31,24,131,4,4,20,31,20,15,7,
+ 130,4,1,4,7,134,31,8,28,24,20,19,16,15,15,20,28,132,31,15,28,19,16,15,16,19,31,7,4,20,24,28,
+ 31,24,16,7,131,4,3,4,7,31,24,132,20,3,19,19,16,15,130,7,22,15,16,20,28,31,31,28,20,19,15,7,
+ 7,15,28,7,4,31,28,28,20,16,15,7,131,4,4,4,4,15,16,19,132,16,2,15,7,7,130,4,9,7,7,15,
+ 16,20,20,19,19,15,7,130,4,8,28,7,4,28,31,28,31,28,7,132,4,4,4,4,7,15,15,132,7,135,4,6,
+ 7,7,15,16,16,15,7,131,4,0,28,130,4,130,7,1,31,16,132,4,148,4,1,7,7,133,4,1,31,20,132,15,
+ 2,31,19,7,131,4,156,4,0,19,133,31,2,28,16,7,131,4,157,4,1,15,16,132,19,1,16,7,131,4,157,4,
+ 0,7,133,15,1,7,7,131,4,159,4,131,7,134,4,88,0,90,0,92,0,94,0,96,0,98,0,100,0,111,0,124,
+ 0,135,0,152,0,177,0,202,0,225,0,252,0,30,1,61,1,92,1,125,1,159,1,195,1,235,1,18,2,58,2,98,
+ 2,140,2,178,2,210,2,242,2,21,3,54,3,79,3,106,3,131,3,153,3,169,3,188,3,205,3,220,3,226,3,228,
+ 3,230,3,232,3,234,3,170,4,170,4,170,4,170,4,170,4,170,4,140,4,1,7,20,137,16,0,7,144,4,140,4,
+ 1,6,26,138,30,2,26,20,15,141,4,142,4,0,26,140,30,1,26,20,139,4,141,4,2,6,7,26,130,30,131,26,
+ 134,30,1,26,20,137,4,139,4,5,7,4,7,7,15,26,130,30,130,26,130,20,1,26,26,131,30,1,26,16,135,4,
+ 138,4,3,7,26,30,26,134,30,2,26,26,15,130,4,2,7,20,26,131,30,0,20,134,4,139,4,0,15,137,30,9,
+ 26,26,20,4,4,7,4,7,20,26,130,30,0,26,133,4,140,4,0,16,130,30,130,26,130,30,130,26,7,16,20,26,
+ 30,30,26,15,26,130,30,0,26,132,4,137,4,4,6,4,7,7,19,130,30,16,26,30,28,24,26,30,26,4,15,30,
+ 30,24,24,30,26,15,26,130,30,0,20,131,4,137,4,1,16,30,130,26,132,30,130,10,12,24,30,26,26,30,22,10,
+ 10,17,30,26,15,26,130,30,0,16,130,4,138,4,0,20,134,30,23,28,10,13,13,10,24,30,26,30,13,10,14,10,
+ 17,30,26,15,26,30,30,26,7,4,4,139,4,0,26,130,30,130,26,17,30,22,10,13,13,10,24,30,30,28,10,13,
+ 13,10,17,30,26,26,130,30,2,16,4,4,136,4,2,7,16,26,132,30,130,26,22,30,22,10,13,13,10,24,30,30,
+ 28,10,13,13,10,17,30,26,26,30,30,20,4,6,133,4,2,7,16,26,133,30,130,26,24,20,16,26,30,22,10,13,
+ 13,10,24,30,30,28,10,13,13,10,17,30,30,26,30,26,6,7,5,7,7,15,20,20,26,132,30,131,26,21,20,16,
+ 7,4,4,7,26,30,24,10,13,13,10,24,30,30,28,10,13,13,10,17,130,30,2,26,7,7,2,20,16,26,133,30,
+ 131,26,1,20,15,130,4,24,7,7,4,16,30,31,10,13,13,10,10,31,30,31,18,10,13,13,10,25,30,30,26,15,
+ 7,6,4,4,7,16,20,26,26,132,30,131,26,26,16,7,4,4,15,30,30,10,10,13,10,10,28,30,30,24,10,13,
+ 13,10,25,30,26,30,26,15,7,9,4,4,7,15,15,16,19,20,20,26,132,30,131,26,23,20,26,30,10,10,13,10,
+ 10,28,30,30,24,10,13,13,10,25,30,26,30,30,26,15,7,130,4,1,7,7,130,15,4,16,16,20,20,26,131,30,
+ 25,26,26,30,30,10,10,13,10,10,28,30,30,24,10,13,13,10,25,30,26,26,30,30,20,15,7,134,4,1,7,7,
+ 130,15,0,26,130,30,130,26,17,30,13,10,13,10,10,28,30,30,25,10,13,13,10,25,30,26,20,130,30,2,20,7,
+ 7,137,4,1,7,26,134,30,8,28,10,13,10,10,28,30,26,30,130,13,11,10,25,30,26,7,26,30,30,26,19,7,
+ 7,137,4,0,16,131,26,132,30,15,18,10,10,28,30,20,20,30,25,10,10,25,30,26,7,26,130,30,3,20,16,4,
+ 4,138,4,3,6,15,16,20,130,30,16,26,30,30,28,30,30,20,4,15,30,30,28,28,30,20,7,26,130,30,4,24,
+ 19,15,4,4,138,4,2,7,6,20,130,30,131,26,1,30,30,130,26,1,16,20,130,26,2,20,7,26,130,30,5,24,
+ 19,16,7,4,4,139,4,0,20,137,30,2,26,26,16,131,4,2,7,20,26,130,30,3,24,19,16,7,130,4,138,4,
+ 0,7,133,26,131,30,8,26,26,15,4,4,7,15,26,26,131,30,3,24,19,16,15,131,4,140,4,3,7,16,16,20,
+ 131,30,130,26,130,20,0,26,132,30,4,26,20,19,16,15,132,4,139,4,3,7,15,15,16,131,30,131,26,134,30,5,
+ 26,20,19,19,16,7,133,4,141,4,0,7,141,30,6,26,20,19,19,16,15,7,134,4,140,4,1,7,26,137,30,8,
+ 26,26,20,20,19,19,16,15,7,136,4,141,4,2,7,15,19,135,20,130,19,3,16,16,15,7,138,4,141,4,2,6,
+ 15,15,136,16,3,15,15,7,7,140,4,142,4,138,7,144,4,170,4,170,4,170,4,170,4,
+};
+static const jj_frame pic_prize_f[] = {{43,43,-21,-21,0},{43,43,-21,-21,722},{43,43,-21,-21,2279},{43,43,-21,-21,3529},{43,43,-21,-21,4334},{43,43,-21,-21,5273},{43,43,-21,-21,6742},{43,43,-21,-21,7501},{43,43,-21,-21,8821},{43,43,-21,-21,9935}};
+static const jj_sheet pic_prize = {pic_prize_pal, pic_prize_data, pic_prize_f, 10, 8};
+static const uint16_t pic_stoken_pal[] = {0,63416,59221,65262,57076,65197,65132,61103,54931,63019,52785,50738,48625,52588,42287,39978};
+static const uint8_t pic_stoken_data[] = {
+ 42,0,49,0,59,0,75,0,90,0,107,0,118,0,130,0,143,0,156,0,170,0,185,0,198,0,213,0,226,0,237,0,
+ 253,0,11,1,24,1,36,1,46,1,135,0,3,235,188,135,0,133,0,0,64,133,1,1,43,132,0,131,0,2,65,16,
+ 130,2,2,68,32,130,1,0,224,130,0,130,0,6,129,72,71,64,130,2,4,72,34,240,129,0,129,0,2,141,144,131,
+ 3,4,104,42,80,130,3,0,160,129,0,19,14,24,253,153,101,122,86,101,148,176,3,8,18,131,13,11,102,117,102,89,
+ 244,16,0,0,130,2,15,205,51,86,86,101,159,178,30,1,225,130,2,14,223,221,150,101,159,178,65,192,1,193,130,2,
+ 9,221,119,102,89,251,131,2,0,176,7,226,74,188,213,130,6,2,89,224,130,11,2,130,192,1,244,130,12,14,213,102,
+ 85,101,220,188,196,224,0,0,130,11,0,208,130,6,11,89,149,102,203,188,143,3,14,173,130,6,12,89,255,86,93,203,
+ 184,240,19,15,201,86,89,254,249,85,124,200,224,129,0,0,240,131,9,4,252,190,240,130,9,4,219,143,0,129,0,132,
+ 15,3,203,188,131,15,2,232,240,129,0,130,0,4,251,139,176,133,12,2,184,240,130,0,132,0,5,235,136,170,130,8,
+ 1,239,131,0,134,0,0,240,131,14,1,255,133,0,
+};
+static const jj_frame pic_stoken_f[] = {{20,20,0,0,0}};
+static const jj_sheet pic_stoken = {pic_stoken_pal, pic_stoken_data, pic_stoken_f, 1, 4};
+/* the HUD digits' advances */
+static const uint8_t pic_digit_adv[] = {8,4,7,7,8,7,7,8,7,7,8};
+#endif
diff --git a/games/jetpackjoyride/src/assets.h b/games/jetpackjoyride/src/assets.h
deleted file mode 100644
index a4461b56..00000000
--- a/games/jetpackjoyride/src/assets.h
+++ /dev/null
@@ -1,1651 +0,0 @@
-/* Generated by tools/assets.py. Artwork: Halfbrick; see assets/README.md. */
-#ifndef JJ_ASSETS_H
-#define JJ_ASSETS_H
-#include <stdint.h>
-typedef struct { uint16_t w,h; const uint16_t *palette,*rows; const uint8_t *data; uint8_t bits; } jj_sprite;
-static const uint16_t jj_barry_palette_0[] = {0x0,0xffff,0xff36,0xfeec,0xd657,0xed90,0xb48f,0xa4cf,0xc501,0xccaa,0xb3ec,0x936d,0x6b4e,0x8340,0xa2ea,0x82e8,0x8289,0x6a05,0x528e,0x5202,0x71a3,0x5943,0x4206,0x40e1,0x3820,0x316b,0x1928,0x2923,0x18c6,0x1081,0x0,0x0};
-static const uint16_t jj_barry_palette_1[] = {0x0,0xffff,0xff36,0xfeec,0xd657,0xed90,0xb48f,0xa4cf,0xc501,0xccaa,0xb3ec,0x936d,0x6b4e,0x8340,0xa2ea,0x82e8,0x8289,0x6a05,0x963c,0x5202,0x71a3,0x5943,0x4206,0x40e1,0x3820,0x7d37,0x6c74,0x2923,0x5bd1,0x1081,0x324a,0x0};
-static const uint16_t jj_barry_palette_2[] = {0x0,0xffff,0xff36,0xfeec,0xd657,0xed90,0xb48f,0xa4cf,0xc501,0xccaa,0xb3ec,0x936d,0x6b4e,0x8340,0xa2ea,0x82e8,0x8289,0x6a05,0xaa4f,0x5202,0x71a3,0x5943,0x4206,0x40e1,0x3820,0x79ab,0x6148,0x2923,0x40e6,0x1081,0x0,0x0};
-static const uint16_t jj_barry_palette_3[] = {0x0,0xffff,0xff36,0xfeec,0xd657,0xed90,0xb48f,0xa4cf,0xc501,0xccaa,0xb3ec,0x936d,0x6b4e,0x8340,0xa2ea,0x82e8,0x8289,0x6a05,0x64c8,0x5202,0x71a3,0x5943,0x4206,0x40e1,0x3820,0x4ba6,0x3ac5,0x2923,0x2a03,0x1081,0x0,0x0};
-static const uint16_t jj_lab_palette[] = {
- 0x0,0xbdf8,0x9d35,0x8452,0x73b1,0x636f,0x52ef,0x4ace,0x4ace,0x4a8b,0x428d,0x3a4c,0x320c,0x29ec,0x31ea,0x21aa,0x216a,0x2968,0x1949,0x1929,0x1929,0x1929,0x1928,0x1928,
- 0x1929,0x1929,0x1929,0x1929,0x1929,0x1927,0x1907,0x884,
-};
-static const uint16_t jj_lab_rows[] = {
- 0,2,120,249,378,507,625,723,725,746,748,766,784,806,808,827,829,831,833,854,880,899,901,903,
- 905,923,984,1024,1114,1198,1271,1361,1467,1543,1619,1689,1746,1818,1888,1932,1990,2038,2083,2127,2167,2210,2258,2307,
- 2351,2396,2447,2496,2542,2589,2629,2673,2717,2772,2836,2873,2915,2970,3019,3061,3098,3155,3220,3294,3367,3443,3516,3595,
- 3672,3752,3832,3918,4008,4094,4182,4277,4368,4455,4571,4672,4764,4855,4946,5043,5145,5254,5349,5446,5555,5640,5707,5758,
- 5810,
-};
-static const uint8_t jj_lab_data[] = {
- 255,31,130,30,3,31,31,30,30,130,29,0,30,130,29,7,30,29,29,30,30,29,29,30,
- 130,29,130,30,1,31,31,132,30,3,31,31,30,30,130,29,0,30,130,29,7,30,29,29,
- 30,30,29,29,30,130,29,130,30,1,31,31,132,30,3,31,31,30,30,130,29,0,30,130,
- 29,7,30,29,29,30,30,29,29,30,130,29,130,30,1,31,31,132,30,3,31,31,30,30,
- 130,29,0,30,130,29,7,30,29,29,30,30,29,29,30,130,29,130,30,3,31,31,30,30,
- 30,17,17,29,5,14,30,17,29,31,31,15,31,31,29,17,31,31,17,17,31,31,17,29,
- 31,31,17,17,30,9,9,30,130,17,28,29,5,14,30,17,29,31,31,15,31,31,29,17,
- 31,31,17,17,31,31,17,29,31,31,17,17,30,9,9,30,130,17,28,29,5,14,30,17,
- 29,31,31,15,31,31,29,17,31,31,17,17,31,31,17,29,31,31,17,17,30,9,9,30,
- 130,17,29,29,5,14,30,17,29,31,31,15,31,31,29,17,31,31,17,17,31,31,17,29,
- 31,31,17,17,30,9,9,30,17,10,17,17,29,9,17,29,14,29,31,31,14,130,31,16,
- 14,31,31,17,17,31,31,15,29,31,31,15,17,29,9,9,29,130,17,8,29,9,17,29,
- 14,29,31,31,14,130,31,16,14,31,31,17,17,31,31,15,29,31,31,15,17,29,9,14,
- 29,130,17,8,29,9,17,29,14,29,31,31,14,130,31,16,14,31,31,17,17,31,31,15,
- 29,31,31,15,17,29,9,9,30,130,17,8,29,9,17,29,14,29,31,31,14,130,31,17,
- 14,31,31,17,17,31,31,15,29,31,31,15,17,29,9,9,29,17,127,17,15,30,29,31,
- 17,15,29,31,31,14,31,31,29,14,31,31,17,17,31,31,14,29,31,31,14,17,29,31,
- 29,29,15,17,15,30,29,31,17,15,29,31,31,14,31,31,29,14,31,31,17,17,31,31,
- 14,29,31,31,14,17,29,31,29,29,15,17,15,30,29,31,17,15,29,31,31,14,31,31,
- 29,14,31,31,17,17,31,31,14,29,31,31,14,17,29,31,29,29,15,17,15,30,29,31,
- 17,15,29,31,31,14,31,31,29,14,31,31,17,17,31,31,14,29,31,31,14,17,29,31,
- 29,29,15,130,17,1,30,29,130,17,15,31,17,15,17,31,17,15,29,31,17,17,31,29,
- 17,17,31,131,17,1,30,30,132,17,1,30,29,130,17,15,31,17,15,17,31,17,15,29,
- 31,17,17,31,29,15,17,31,131,17,1,30,30,132,17,1,30,29,130,17,15,31,17,15,
- 17,31,17,15,29,31,17,17,31,29,15,17,31,131,17,1,30,30,132,17,1,30,29,130,
- 17,15,31,17,15,17,31,17,15,29,31,17,17,31,29,15,17,31,131,17,3,30,30,17,
- 17,130,14,0,11,131,14,16,9,11,14,11,9,14,14,9,9,14,14,9,9,14,14,9,
- 11,137,14,0,11,131,14,16,9,11,14,11,9,14,14,9,9,14,14,9,9,14,14,9,
- 11,137,14,0,11,131,14,16,9,11,14,11,9,14,14,9,9,14,14,9,9,14,14,9,
- 11,137,14,0,11,131,14,16,9,11,14,11,9,14,14,9,9,14,14,9,9,14,14,9,
- 11,134,14,255,29,133,1,1,2,2,157,1,1,2,2,157,1,1,2,2,157,1,0,2,
- 152,1,255,2,133,2,0,3,158,2,0,3,158,2,0,3,158,2,0,3,152,2,133,1,
- 0,2,158,1,0,2,158,1,0,2,158,1,0,2,152,1,133,1,1,2,2,157,1,1,
- 2,2,157,1,1,2,2,156,1,1,2,2,152,1,255,2,131,2,1,3,3,157,2,0,
- 3,158,2,0,3,158,2,0,3,154,2,255,3,255,4,255,4,144,6,1,5,5,157,6,
- 1,5,5,157,6,1,5,5,157,6,0,5,141,6,143,7,2,6,6,8,156,7,2,6,
- 6,8,156,7,2,6,6,8,156,7,2,5,6,8,140,7,143,12,0,11,158,12,0,11,
- 158,12,0,11,157,12,1,11,11,142,12,255,23,255,15,255,13,137,12,139,13,147,12,139,
- 13,147,12,139,13,147,12,139,13,137,12,136,22,1,16,12,136,13,3,12,13,22,18,144,
- 22,1,16,12,137,13,1,12,16,145,22,1,18,12,136,13,6,12,13,22,18,22,22,18,
- 131,22,1,18,18,131,22,5,18,18,22,22,16,12,136,13,4,12,13,22,18,22,134,18,
- 137,31,2,15,12,13,135,12,148,31,2,15,12,13,133,12,2,13,11,17,147,31,2,15,
- 12,13,134,12,0,13,148,31,2,15,12,13,135,12,138,31,1,27,28,134,27,3,30,31,
- 13,11,134,12,2,30,30,26,131,27,16,26,26,25,25,30,30,25,27,26,27,27,28,27,
- 28,30,30,13,134,12,6,11,15,30,28,28,25,24,132,25,3,30,30,21,27,133,25,4,
- 30,31,13,11,13,132,12,3,11,30,30,28,134,27,3,25,30,30,28,134,27,3,30,31,
- 13,11,134,12,2,30,30,28,136,27,1,23,26,134,27,3,28,30,30,13,132,11,3,10,
- 22,30,24,135,27,3,25,23,30,25,135,27,3,30,30,12,11,131,12,2,11,13,30,136,
- 27,3,25,30,30,25,134,27,3,25,30,30,13,132,11,3,10,29,30,25,135,27,3,25,
- 30,23,25,134,27,3,25,30,30,12,132,11,3,10,22,30,25,135,27,1,26,23,1,23,
- 26,135,27,2,28,30,30,132,15,2,29,30,28,136,27,3,25,23,30,25,136,27,1,31,
- 23,133,12,0,30,137,27,3,25,30,30,25,136,27,1,31,30,132,15,2,29,30,28,136,
- 27,3,25,30,23,25,135,27,2,28,31,30,132,15,2,29,30,26,136,27,1,26,23,0,
- 23,130,24,0,26,134,27,0,30,132,31,0,30,134,27,9,26,27,24,24,25,23,30,21,
- 24,24,134,27,2,30,30,12,131,11,1,13,30,133,27,10,24,27,27,24,25,30,30,21,
- 24,24,26,134,27,0,30,132,31,1,30,28,133,27,131,24,3,25,30,23,25,130,24,134,
- 27,0,30,132,31,1,30,28,133,27,5,24,27,24,27,24,23,1,22,19,130,20,131,24,
- 130,27,0,28,132,27,0,25,130,27,131,24,12,20,20,24,20,21,23,30,19,24,20,20,
- 24,24,132,27,7,30,11,10,11,11,10,12,30,131,27,13,24,24,20,20,24,24,19,30,
- 30,19,23,20,24,20,130,24,130,27,0,28,132,27,0,26,130,27,131,24,130,20,4,23,
- 21,30,23,21,131,20,130,24,130,27,0,25,132,27,0,25,131,27,130,24,5,20,20,24,
- 20,19,23,1,22,19,132,20,1,24,24,140,27,0,24,134,20,3,19,23,30,18,131,20,
- 0,24,130,27,9,28,27,30,11,10,11,11,10,12,30,131,27,0,24,132,20,3,19,30,
- 30,18,133,20,0,24,141,27,0,24,133,20,3,18,30,23,19,133,20,0,24,140,27,1,
- 24,24,133,20,1,19,22,1,22,19,130,20,131,24,139,27,131,24,132,20,3,19,23,30,
- 18,130,20,1,24,24,130,27,9,28,27,30,11,10,11,11,10,12,30,131,27,1,24,24,
- 131,20,3,19,30,30,18,131,20,131,24,138,27,131,24,132,20,3,18,30,23,19,131,20,
- 131,24,138,27,132,24,131,20,1,19,22,1,22,19,132,20,0,24,142,27,0,24,133,20,
- 3,18,23,30,18,131,20,132,27,2,30,30,11,131,10,1,12,30,132,27,0,24,131,20,
- 3,19,30,30,18,132,20,0,24,142,27,0,24,133,20,3,18,30,23,19,132,20,0,24,
- 142,27,0,24,133,20,1,19,22,1,23,27,132,24,144,27,132,24,4,27,28,23,30,21,
- 131,24,132,27,1,30,30,132,10,1,12,30,133,27,131,24,4,25,30,30,28,27,132,24,
- 143,27,132,24,4,27,28,30,23,25,132,24,144,27,134,24,0,23,1,22,12,130,24,145,
- 27,11,24,27,27,24,24,27,18,12,30,30,21,23,130,24,132,27,1,30,30,132,10,1,
- 12,30,133,27,131,24,7,21,30,30,12,16,27,24,24,147,27,130,24,4,20,12,30,23,
- 19,130,24,4,27,24,27,27,24,141,27,1,24,27,132,24,0,23,2,23,17,27,151,25,
- 6,24,25,23,17,30,30,25,136,27,1,30,30,132,10,1,12,30,137,27,5,25,30,30,
- 17,22,28,130,25,130,26,1,25,24,134,26,3,25,24,26,26,131,25,6,26,25,27,17,
- 30,23,26,136,27,0,24,134,27,0,24,137,27,1,26,23,1,30,31,155,30,3,31,30,
- 30,25,136,27,8,30,30,10,8,10,10,8,11,30,137,27,0,25,131,30,0,22,151,23,
- 5,22,29,30,30,27,26,155,27,1,26,23,2,22,15,23,137,22,132,23,137,22,5,23,
- 22,14,30,30,25,136,27,2,30,30,10,131,8,1,11,30,137,27,8,25,30,30,13,16,
- 22,20,20,22,132,20,133,22,137,20,5,22,18,13,30,23,26,155,27,1,26,23,3,23,
- 14,27,28,151,26,5,28,22,14,30,30,25,136,27,1,30,30,131,8,2,7,11,30,137,
- 27,5,25,30,30,14,22,28,151,27,5,28,23,14,30,23,26,155,27,1,26,23,1,23,
- 30,153,27,5,24,30,30,23,30,25,136,27,1,30,30,131,8,2,7,11,30,137,27,0,
- 25,131,30,0,24,151,27,5,24,27,30,30,23,26,155,27,1,26,23,1,23,21,154,27,
- 4,24,21,23,30,25,135,27,9,28,30,30,8,7,7,8,6,10,30,137,27,4,25,30,
- 30,21,24,154,27,3,21,30,23,26,155,27,1,26,23,0,23,156,27,3,26,23,30,25,
- 136,27,8,30,30,8,6,7,7,6,10,30,137,27,3,25,30,30,25,155,27,3,25,30,
- 23,26,155,27,1,26,23,0,23,157,24,3,23,30,28,27,130,24,132,27,8,30,30,7,
- 6,6,7,6,10,30,132,27,133,24,3,30,30,25,27,153,24,3,27,25,30,23,157,24,
- 0,23,1,22,19,155,20,5,19,23,30,13,18,24,130,20,131,27,2,30,30,7,131,6,
- 1,10,30,131,27,0,24,132,20,3,19,30,30,18,155,20,3,18,30,23,19,155,20,1,
- 19,22,1,22,19,155,20,5,19,23,30,14,18,21,130,19,0,25,130,26,1,27,23,132,
- 6,1,10,30,131,27,0,24,132,20,3,19,23,30,18,155,20,3,18,30,23,19,155,20,
- 1,19,22,1,22,19,155,20,1,19,23,130,30,0,22,132,23,131,30,132,6,1,10,30,
- 131,27,0,24,132,20,3,19,23,30,18,155,20,3,18,30,23,19,155,20,1,19,22,1,
- 22,19,155,20,4,19,23,30,17,22,135,29,1,30,29,131,6,2,5,10,30,131,27,0,
- 24,132,20,3,19,30,30,18,155,20,3,18,30,23,19,155,20,1,19,22,1,22,19,155,
- 20,5,19,23,30,10,16,21,130,18,12,25,25,26,25,27,30,6,5,6,6,5,10,30,
- 131,27,0,24,132,20,3,19,23,30,18,155,20,3,18,30,23,19,155,20,1,19,22,1,
- 22,19,155,20,5,19,23,30,30,23,19,130,20,131,27,8,30,30,6,5,6,6,5,10,
- 30,131,27,0,24,132,20,3,19,29,30,18,155,20,3,18,30,23,19,155,20,1,19,22,
- 1,22,19,155,20,3,19,23,30,18,131,20,0,24,131,27,2,30,29,6,131,5,1,8,
- 30,132,27,132,20,3,19,23,30,18,155,20,3,18,30,23,19,155,20,1,19,22,1,22,
- 19,155,20,3,19,23,29,21,131,20,0,24,131,27,1,30,8,133,5,1,15,30,130,27,
- 0,24,132,20,3,19,23,30,18,155,20,3,18,30,23,19,155,20,1,19,22,0,20,157,
- 18,1,23,29,130,18,131,20,4,27,26,30,11,4,134,5,3,16,27,24,24,130,20,131,
- 18,1,22,29,157,18,1,29,23,157,18,0,22,157,18,3,16,22,29,16,131,18,5,19,
- 20,20,30,12,4,135,5,5,6,20,27,20,20,19,131,18,3,16,22,29,16,155,18,3,
- 16,29,22,21,155,18,1,21,18,157,18,3,16,22,29,16,132,18,4,20,21,30,8,4,
- 135,5,4,4,15,27,19,20,132,18,3,16,22,29,16,155,18,4,16,29,22,13,16,153,
- 18,2,16,13,18,0,18,157,16,2,22,22,16,133,18,3,19,30,10,4,135,5,3,4,
- 15,27,19,131,18,6,16,18,16,22,29,16,18,131,16,144,18,132,16,7,18,16,22,23,
- 14,16,18,16,149,18,4,16,18,18,14,22,0,18,157,16,5,22,22,16,18,16,16,130,
- 18,3,19,30,10,4,135,5,2,4,15,27,130,18,130,16,5,18,16,22,29,16,18,153,
- 16,5,18,16,29,22,30,23,131,18,0,20,130,18,6,20,18,18,20,18,20,20,138,18,
- 2,23,30,22,158,16,1,22,22,132,16,130,18,1,30,10,137,4,3,15,25,16,18,133,
- 16,1,22,29,157,16,3,29,29,17,17,153,29,2,17,17,29,158,16,1,18,22,135,16,
- 1,30,10,137,4,1,15,21,135,16,1,22,22,157,16,3,17,22,10,15,130,16,1,15,
- 15,143,16,0,15,131,16,2,15,10,18,0,16,157,15,1,16,17,130,15,132,16,1,30,
- 8,137,4,1,15,21,131,16,131,15,1,17,22,131,15,147,16,133,15,7,17,18,30,22,
- 16,16,20,30,131,27,136,30,132,27,0,20,130,16,2,22,30,16,158,15,1,16,17,132,
- 15,130,16,1,30,8,137,4,3,13,21,16,16,133,15,1,17,22,137,15,136,16,138,15,
- 1,17,16,130,15,2,18,14,10,145,11,6,15,18,16,16,15,15,16,158,15,1,16,17,
- 134,15,2,16,23,8,137,4,1,13,18,135,15,1,17,22,157,15,1,17,16,130,15,2,
- 23,10,3,144,4,2,3,5,18,131,15,0,16,159,15,0,17,135,15,1,23,14,136,4,
- 2,5,15,16,135,15,1,17,17,157,15,1,17,16,130,15,1,22,8,147,4,1,15,16,
- 131,15,157,15,3,13,15,17,13,135,15,1,30,11,135,4,1,13,16,135,15,3,13,16,
- 17,13,131,15,2,16,23,20,132,22,1,23,23,132,22,2,20,22,18,134,15,0,17,131,
- 15,1,22,6,147,4,1,14,16,131,15,0,15,157,13,1,15,17,131,13,132,15,2,16,
- 30,7,133,4,1,11,18,132,15,130,13,130,15,1,17,13,130,15,2,16,15,8,141,11,
- 2,10,12,18,132,15,1,13,17,132,15,0,5,130,4,133,5,130,6,132,5,130,4,1,
- 11,16,131,15,0,15,157,13,1,15,17,134,13,130,15,1,18,17,132,4,1,5,18,131,
- 15,133,13,2,11,15,17,130,13,4,15,22,8,3,3,141,4,4,3,11,18,13,15,130,
- 13,10,17,15,13,13,16,14,4,4,3,9,31,130,30,132,31,131,30,9,31,6,4,4,
- 8,16,13,15,13,15,158,13,1,15,15,136,13,130,15,132,4,2,6,15,15,135,13,3,
- 14,11,15,17,130,13,4,18,10,4,4,5,140,4,4,5,5,3,14,16,131,13,10,17,
- 15,13,13,16,12,4,4,3,11,29,130,17,4,29,30,31,30,30,131,17,5,30,8,4,
- 4,6,16,130,13,0,15,158,13,1,15,15,137,13,1,15,15,131,4,2,3,5,16,132,
- 15,14,14,14,15,13,15,29,17,17,13,13,16,12,4,4,5,142,1,4,2,5,4,15,
- 15,130,13,5,15,15,13,13,16,10,130,4,1,14,17,130,14,130,29,1,17,17,131,14,
- 5,17,11,3,4,5,15,130,13,0,14,0,13,157,12,1,14,15,132,12,132,13,1,15,
- 15,131,4,3,3,5,15,15,136,14,5,11,17,17,12,15,14,131,4,143,1,20,5,3,
- 5,15,13,13,12,15,15,13,13,16,6,3,4,4,17,14,9,9,14,130,17,2,11,14,
- 14,130,9,1,17,14,130,4,0,15,131,13,0,13,157,12,1,14,15,135,12,12,13,13,
- 15,14,4,3,4,4,3,5,15,13,13,135,12,9,8,15,15,12,13,14,4,3,4,4,
- 143,1,19,5,3,3,11,13,13,12,15,14,12,13,15,5,3,3,4,29,17,14,14,130,
- 17,3,14,9,14,17,130,14,9,17,17,4,4,3,12,13,13,12,13,158,12,2,14,15,
- 11,136,12,8,13,14,4,3,4,4,3,5,15,136,12,11,14,17,14,15,11,13,14,4,
- 3,3,5,3,141,1,40,3,4,3,3,11,13,12,12,15,14,12,13,15,4,3,3,5,
- 29,11,11,14,29,3,6,14,14,17,17,14,9,8,14,29,4,3,3,10,15,12,12,13,
- 0,12,157,11,1,12,14,133,11,131,12,8,13,14,4,3,4,4,3,5,13,132,12,132,
- 11,9,10,14,15,11,13,14,4,3,4,3,141,4,24,5,4,3,4,3,11,13,12,11,
- 15,14,12,13,14,4,4,3,6,17,14,15,17,17,1,5,130,17,10,14,9,8,9,17,
- 30,5,3,3,7,15,130,12,158,11,2,12,14,10,136,11,2,13,14,4,131,3,2,5,
- 13,12,137,11,5,14,14,11,13,14,4,130,3,0,4,130,14,1,11,11,135,14,0,6,
- 131,3,13,11,13,11,11,14,14,11,15,11,3,4,3,9,29,130,17,5,14,1,7,29,
- 17,14,130,11,10,17,29,31,6,3,3,5,15,11,11,12,3,11,7,10,11,151,10,4,
- 11,10,7,12,14,133,10,131,11,2,12,13,4,131,3,1,5,12,132,11,133,10,9,14,
- 14,10,12,14,4,4,5,4,17,140,31,41,30,5,3,5,4,11,12,11,10,14,12,10,
- 15,8,3,4,3,14,29,14,17,15,9,2,17,29,15,11,14,14,11,11,14,29,9,3,
- 3,4,13,11,11,12,2,11,14,11,153,10,3,11,14,11,14,137,10,2,12,12,4,131,
- 3,3,4,12,11,11,136,10,9,12,14,10,12,12,4,3,2,9,29,130,14,3,17,30,
- 29,17,132,14,14,29,30,7,4,2,3,11,12,11,10,14,12,10,15,6,130,3,24,14,
- 14,8,14,14,9,14,29,17,11,14,11,6,7,6,8,14,11,3,3,4,12,11,10,11,
- 1,14,17,155,14,2,17,14,14,137,10,2,11,12,4,131,3,1,4,11,138,10,9,12,
- 14,10,11,12,4,2,2,8,14,130,9,3,11,17,14,14,132,9,35,17,30,6,4,2,
- 3,11,11,10,10,14,11,10,14,5,3,3,4,17,14,8,9,14,14,29,17,14,9,14,
- 8,9,9,8,9,14,14,130,3,3,11,11,10,11,1,11,6,155,10,3,6,11,12,8,
- 136,10,2,11,12,4,131,3,1,4,11,137,10,18,8,11,14,10,11,12,4,2,2,8,
- 14,8,8,6,9,14,11,11,6,131,8,29,17,30,6,4,2,3,11,11,10,10,14,11,
- 10,12,4,3,3,4,17,11,9,9,14,17,17,14,9,9,11,9,131,8,8,14,17,4,
- 3,3,8,11,10,11,2,11,11,10,153,8,0,10,130,11,3,8,10,8,8,134,10,1,
- 12,4,131,3,1,4,11,134,10,32,8,10,10,8,11,14,8,11,11,4,2,2,8,14,
- 8,9,7,9,11,9,11,6,8,9,9,8,17,29,6,4,2,3,11,130,10,11,14,11,
- 10,11,4,3,3,5,17,9,6,8,130,17,3,9,1,14,14,132,6,8,9,17,4,3,
- 3,6,11,10,10,2,10,14,10,153,8,4,10,14,10,11,7,134,8,130,10,1,11,4,
- 131,3,0,4,131,10,135,8,28,11,12,8,10,11,4,2,2,8,14,7,7,6,14,9,
- 9,14,6,8,7,6,9,17,29,6,4,2,3,11,130,10,3,12,11,11,10,130,3,4,
- 9,29,14,9,11,130,17,3,1,1,17,17,132,9,8,14,29,5,3,3,5,11,8,10,
- 1,10,6,154,8,4,7,6,10,11,7,136,8,1,10,11,132,3,1,4,10,137,8,10,
- 7,11,12,6,10,11,4,2,2,9,17,130,14,3,11,9,14,17,133,14,12,31,6,4,
- 2,3,11,10,8,6,12,10,11,7,130,3,4,14,29,11,14,17,130,14,17,1,1,30,
- 14,9,9,14,9,9,14,31,6,3,3,4,11,8,10,5,8,7,8,7,8,8,130,7,
- 2,8,8,7,130,8,0,7,132,8,2,7,8,8,132,7,8,8,7,10,11,7,8,8,
- 7,7,132,8,1,10,11,132,3,1,4,10,133,8,130,7,37,8,7,10,14,11,10,11,
- 4,2,2,9,30,17,11,8,8,14,17,17,11,8,11,9,9,17,31,6,4,2,3,10,
- 8,10,12,12,10,11,6,130,3,130,14,22,17,17,12,9,14,1,1,29,11,8,12,9,
- 8,12,17,30,9,3,3,4,10,8,10,0,8,130,7,0,8,153,7,3,10,11,7,8,
- 132,7,130,8,1,10,11,132,3,1,4,10,130,8,2,7,7,8,130,7,29,8,7,10,
- 14,14,11,11,4,2,2,9,30,14,10,9,14,17,17,11,9,12,12,9,14,29,31,6,
- 4,2,3,130,11,4,15,14,10,11,4,130,3,0,14,130,17,11,14,8,9,14,1,1,
- 17,7,11,11,8,11,130,17,0,11,130,3,2,10,8,10,0,8,142,7,1,8,8,139,
- 7,3,6,10,11,6,134,7,3,8,8,10,11,132,3,1,4,10,131,8,134,7,9,10,
- 14,6,11,11,4,2,2,9,29,130,14,3,17,17,14,11,131,14,19,17,30,31,6,4,
- 2,3,11,11,10,7,14,10,11,4,3,3,4,30,29,130,17,9,9,11,17,1,1,11,
- 14,17,14,14,132,17,130,3,2,8,8,10,0,8,156,7,3,6,10,11,6,134,7,3,
- 8,7,10,11,132,3,0,4,131,8,134,7,35,6,10,11,8,10,10,4,2,2,8,14,
- 8,6,6,14,17,9,14,8,7,6,6,9,17,30,6,4,2,3,10,8,10,10,11,11,
- 10,130,3,2,5,17,11,130,9,6,14,14,30,1,1,14,14,130,9,10,8,9,9,14,
- 17,4,3,3,6,10,8,0,8,156,7,3,6,10,11,6,134,7,3,8,7,10,11,132,
- 3,0,4,131,8,134,7,10,6,10,11,14,10,10,4,2,2,8,14,130,8,21,9,11,
- 9,11,7,8,7,9,9,14,30,6,4,2,3,10,8,10,15,11,12,8,130,3,26,6,
- 17,9,9,6,9,14,17,17,9,2,14,14,6,9,9,6,7,8,9,17,4,3,3,5,
- 10,8,0,8,139,7,132,8,139,7,3,6,10,11,6,134,7,3,8,7,8,11,132,3,
- 4,4,8,8,7,8,134,7,18,6,10,11,6,8,11,4,2,2,8,14,7,8,7,9,
- 9,14,14,6,130,8,13,9,17,30,6,4,2,3,10,8,8,6,11,14,6,130,3,26,
- 9,17,9,9,7,9,17,17,11,11,14,9,11,9,8,9,8,7,9,9,17,5,3,3,
- 4,10,8,0,8,137,7,2,8,10,10,132,11,0,8,137,7,3,6,10,11,6,133,7,
- 5,8,8,7,10,12,4,131,3,4,5,10,7,8,8,135,7,17,10,11,7,10,11,4,
- 3,2,8,14,8,8,7,9,14,11,9,7,131,8,30,17,31,5,4,2,3,11,8,8,
- 7,11,14,5,3,4,3,14,14,9,8,6,9,17,14,9,14,14,8,14,9,6,131,8,
- 7,9,17,8,3,3,4,10,10,0,8,134,7,5,8,7,7,12,4,2,130,4,6,3,
- 5,12,7,7,8,8,134,7,1,10,11,132,7,130,8,2,7,10,11,134,4,0,10,131,
- 8,132,7,18,8,7,10,11,7,10,10,4,3,2,8,14,6,7,6,9,14,9,14,131,
- 6,30,7,17,31,5,4,2,3,11,10,8,7,11,14,5,3,4,4,14,14,9,8,9,
- 17,14,8,2,14,9,11,17,14,130,9,9,8,8,9,14,9,3,4,4,10,10,0,8,
- 136,7,2,12,6,3,132,4,2,3,6,12,137,7,2,10,11,6,134,7,3,10,12,4,
- 3,134,4,1,11,8,136,7,17,10,11,7,10,11,4,2,2,9,17,9,9,11,14,8,
- 11,14,14,130,9,12,14,29,30,5,4,2,3,11,8,8,7,11,15,131,4,12,29,17,
- 14,14,17,14,9,9,1,5,14,14,17,134,14,1,17,14,130,4,1,8,10,136,10,2,
- 12,10,3,135,4,1,10,12,136,10,2,11,14,8,134,10,2,13,5,3,135,4,1,6,
- 11,135,10,34,8,11,12,8,12,8,4,4,3,10,29,9,9,14,8,10,14,17,14,9,
- 9,14,17,14,29,5,4,3,4,12,11,10,10,14,15,130,4,22,5,17,11,14,17,14,
- 8,10,14,3,9,17,17,14,8,6,10,14,17,15,11,11,14,130,4,1,8,12,134,11,
- 5,10,11,12,4,4,5,135,4,3,11,11,10,10,131,11,3,10,10,11,11,134,10,4,
- 12,10,4,4,5,133,4,3,5,4,7,11,132,10,13,11,10,10,11,11,10,8,3,4,
- 6,5,9,29,9,130,14,5,17,17,29,14,9,14,130,17,20,31,5,4,6,5,6,12,
- 10,10,12,14,5,4,4,8,29,17,17,29,14,9,130,14,2,17,29,17,130,14,6,17,
- 29,29,17,14,17,29,130,4,1,6,12,136,3,0,4,138,5,1,4,4,144,3,2,4,
- 5,4,137,5,1,4,4,138,3,22,4,4,5,5,4,9,17,5,5,9,5,5,9,9,
- 3,9,9,3,9,14,17,6,4,130,5,0,4,130,3,23,4,5,5,4,9,29,5,5,
- 9,5,5,9,9,3,9,9,3,9,9,3,9,9,5,5,130,9,4,6,4,5,4,3,
- 137,5,139,6,147,5,140,6,139,5,130,6,18,5,9,17,5,9,14,5,9,17,9,9,
- 17,9,5,17,9,17,8,4,130,6,133,5,29,6,5,17,17,5,9,14,5,9,17,9,
- 9,17,9,5,17,9,5,9,9,5,9,17,9,17,10,5,6,6,5,198,6,17,14,17,
- 9,29,9,9,29,17,9,17,29,9,9,29,9,31,11,5,138,6,24,29,17,9,29,9,
- 9,29,17,9,17,29,9,9,29,9,9,29,9,9,29,14,9,31,14,5,130,6,196,7,
- 13,8,6,11,17,17,29,17,17,29,17,14,29,17,14,130,17,2,29,14,8,138,7,23,
- 29,29,17,29,17,17,29,17,17,29,29,17,29,29,17,17,29,17,17,29,17,17,29,17,
- 131,7,
-};
-static const jj_sprite jj_lab = {128,96,jj_lab_palette,jj_lab_rows,jj_lab_data,8};
-static const uint16_t jj_floor_palette[] = {
- 0x0,0xce9a,0xbe39,0xbe19,0xb5d8,0xad97,0x9d36,0x8474,0x52ee,0x39e9,0x31a9,0x2126,0x18e6,0x10c5,0x1083,0x0,
-};
-static const uint16_t jj_floor_rows[] = {
- 0,2,20,40,58,60,78,96,130,148,189,234,271,
-};
-static const uint8_t jj_floor_data[] = {
- 255,8,198,6,0,112,144,6,1,119,139,6,0,112,145,6,0,112,132,6,199,5,2,101,
- 96,142,5,0,96,140,5,2,101,96,142,5,0,96,132,5,202,1,0,32,142,1,0,32,
- 142,1,0,32,142,1,0,32,131,1,255,4,149,2,0,48,158,2,0,48,159,2,1,51,
- 155,2,1,51,136,2,149,3,1,68,157,3,1,68,159,3,0,80,156,3,0,80,136,3,
- 1,170,139,9,135,10,1,153,137,10,139,9,136,10,0,144,137,10,139,9,137,10,0,144,
- 136,10,139,9,136,10,0,144,135,10,1,204,139,13,147,12,139,13,147,12,139,13,147,12,
- 139,13,145,12,10,187,170,189,184,156,192,130,10,147,11,8,170,189,184,156,192,130,10,147,
- 11,8,170,189,184,156,192,130,10,147,11,8,170,189,184,156,192,130,10,145,11,5,255,233,
- 188,130,10,4,188,169,224,147,15,3,233,188,130,10,4,188,169,224,147,15,3,233,188,130,
- 10,4,188,169,224,147,15,3,233,188,130,10,4,188,169,224,145,15,13,238,186,205,186,172,
- 219,171,147,14,11,186,205,186,172,219,171,147,14,11,186,205,186,172,219,171,147,14,11,186,
- 205,186,172,219,171,145,14,
-};
-static const jj_sprite jj_floor = {128,12,jj_floor_palette,jj_floor_rows,jj_floor_data,4};
-static const uint16_t jj_jetpack_word_palette[] = {
- 0x0,0xf79c,0xe6fb,0xce79,0xb5d8,0x9d15,0x7c53,0x39e8,0x863,0x22,0x22,0x21,0x0,0x0,0x0,0x0,
-};
-static const uint16_t jj_jetpack_word_rows[] = {
- 0,9,31,54,92,131,177,225,278,336,409,484,560,647,732,826,916,1008,1100,1195,1295,1397,1501,1603,
- 1701,1798,1898,1994,2086,2181,2278,2380,2487,2589,2687,2776,2869,2961,3049,3149,3258,3358,3457,3554,3655,3756,3862,3965,
- 4067,4167,4275,4381,4482,4570,4646,4706,4756,4792,4819,4827,
-};
-static const uint8_t jj_jetpack_word_data[] = {
- 255,0,194,0,3,187,203,133,0,255,0,173,0,130,15,2,204,176,136,0,6,252,251,172,
- 240,130,11,1,170,131,0,255,0,169,0,10,191,221,255,204,186,176,132,0,0,144,136,8,
- 131,10,1,155,130,0,255,0,150,0,1,188,131,15,130,12,0,176,135,0,0,240,131,10,
- 2,154,176,132,10,130,0,2,136,112,132,8,130,7,5,138,169,154,130,0,255,0,142,0,
- 4,252,221,176,134,10,2,139,192,132,11,130,0,130,8,133,7,11,136,154,169,160,8,134,
- 134,4,3,49,124,130,9,0,160,130,0,246,0,0,176,130,15,1,203,143,0,6,136,172,
- 252,144,137,8,132,11,5,171,135,118,130,5,5,68,36,136,130,9,4,160,8,112,131,3,
- 10,33,18,33,123,154,160,131,0,239,0,10,223,253,220,205,252,192,130,11,140,0,130,8,
- 1,151,138,6,6,86,152,138,176,130,10,2,135,16,134,2,1,23,132,9,4,8,132,48,
- 135,1,2,104,128,130,10,131,0,237,0,5,255,201,170,132,8,5,171,170,154,137,0,130,
- 8,0,112,130,5,0,64,135,3,15,34,18,71,136,171,170,135,34,134,1,1,120,130,9,
- 4,168,134,64,134,1,4,34,120,144,130,10,131,0,211,0,4,220,252,192,132,15,130,12,
- 1,187,136,0,1,152,138,7,5,137,170,154,136,0,3,136,116,132,3,138,1,12,33,38,
- 136,154,152,115,32,134,1,1,120,130,9,4,168,133,48,135,1,2,106,128,130,10,132,0,
- 190,0,1,187,132,15,3,220,202,130,0,1,223,130,13,134,11,2,172,192,130,10,0,192,
- 132,11,133,0,3,167,101,134,3,4,66,39,128,130,9,0,160,135,0,4,137,115,32,145,
- 1,10,33,88,139,168,116,32,134,1,8,120,153,168,135,80,135,1,6,55,137,169,160,132,
- 0,180,0,0,240,134,13,130,11,1,205,131,15,2,204,176,130,10,131,12,16,252,203,186,
- 188,207,135,202,186,160,130,11,1,171,132,0,2,198,32,135,3,9,34,23,138,153,171,134,
- 0,3,135,50,147,1,9,33,104,138,135,82,134,1,7,120,169,168,166,136,1,2,41,128,
- 130,10,133,0,164,0,2,188,192,131,15,4,203,176,0,132,11,139,15,3,184,139,131,10,
- 4,200,119,96,138,5,131,4,2,56,176,133,10,131,0,1,166,136,2,4,18,35,128,131,
- 9,0,160,133,0,3,135,66,150,1,6,56,138,136,96,135,1,1,120,130,9,3,135,66,
- 135,1,5,120,154,154,133,0,155,0,2,204,176,130,13,134,11,0,192,130,11,1,170,134,
- 15,0,144,130,8,135,7,8,100,38,186,154,112,131,4,133,3,1,67,131,2,7,50,33,
- 55,139,131,10,0,176,130,0,1,134,139,2,6,24,138,153,160,133,0,2,135,32,150,1,
- 2,33,80,131,8,0,96,135,1,7,104,153,136,114,134,1,3,34,136,131,10,133,0,142,
- 0,9,255,205,252,203,160,130,11,0,192,139,15,6,207,186,171,128,133,7,3,101,84,136,
- 3,10,67,23,200,197,52,64,144,3,3,33,105,132,10,130,0,1,117,140,2,6,136,169,
- 154,176,132,0,2,117,32,134,1,138,2,134,1,0,64,131,8,0,96,135,1,7,72,138,
- 135,50,133,1,4,33,120,128,130,10,134,0,141,0,133,15,3,186,171,132,15,0,128,130,
- 7,135,6,1,86,130,10,1,197,133,3,141,4,8,50,74,156,100,64,146,3,2,33,112,
- 131,10,6,154,15,115,48,138,2,4,22,136,160,130,9,131,0,3,151,50,132,1,0,32,
- 132,3,1,68,130,3,1,67,134,1,0,64,131,8,0,96,134,1,2,34,112,130,8,1,
- 115,135,1,2,88,128,130,10,135,0,139,0,1,203,133,8,5,185,186,100,131,5,130,4,
- 134,3,7,67,24,202,180,134,5,141,4,5,34,137,198,130,4,146,3,2,35,160,131,9,
- 5,160,199,35,138,2,4,19,168,160,130,9,131,0,3,135,50,133,1,0,64,136,7,1,
- 99,134,1,0,80,130,8,1,151,134,1,2,33,112,130,8,0,64,134,1,4,33,105,128,
- 130,10,135,0,138,0,3,200,83,130,4,8,34,250,199,69,64,141,5,7,65,140,171,68,
- 130,5,144,4,5,33,138,183,131,4,145,3,3,33,108,131,9,4,12,115,48,132,2,0,
- 48,132,2,4,19,120,160,130,9,131,0,3,183,50,133,1,1,106,132,8,4,176,151,48,
- 131,2,9,18,20,136,152,114,133,1,6,33,120,135,48,134,1,3,35,120,130,10,136,0,
- 138,0,3,247,53,130,6,6,50,171,199,64,144,5,6,40,202,180,64,131,5,143,4,5,
- 33,138,168,132,4,1,52,133,3,0,64,136,3,9,20,248,153,160,183,134,2,0,48,133,
- 2,3,21,184,130,9,131,0,3,183,66,133,1,3,88,137,130,10,4,0,136,96,131,3,
- 9,69,86,136,168,98,133,1,5,33,120,149,136,1,5,92,139,170,136,0,138,0,13,247,
- 70,85,100,39,204,116,144,5,6,40,201,180,64,134,5,140,4,2,33,128,130,10,133,4,
- 1,36,133,3,3,86,84,132,3,3,20,248,130,9,2,12,112,134,2,0,48,133,2,7,
- 21,200,169,152,131,0,4,116,33,32,131,1,2,55,128,131,9,130,0,1,136,133,7,130,
- 8,4,0,134,48,135,1,3,121,99,135,1,6,39,138,186,160,136,0,138,0,14,247,54,
- 85,101,39,203,132,96,143,5,6,39,201,196,64,130,5,130,4,1,85,133,4,130,3,130,
- 4,5,54,171,186,133,4,1,34,135,8,0,96,133,3,3,21,200,130,9,2,11,112,134,
- 2,1,51,133,2,2,55,160,131,9,131,0,4,117,33,32,130,1,3,33,120,131,9,132,
- 0,1,172,130,15,133,0,3,134,50,134,1,2,122,96,136,1,5,89,139,170,137,0,138,
- 0,14,247,70,86,101,38,251,132,96,133,5,0,96,136,5,23,22,201,198,67,35,85,100,
- 69,84,83,38,86,130,7,5,143,171,186,133,4,2,34,240,131,11,3,203,199,133,3,3,
- 21,248,130,9,3,184,99,133,2,1,51,133,2,3,22,184,130,9,131,0,4,134,33,32,
- 130,1,4,33,120,128,130,9,143,0,3,150,50,134,1,2,120,80,134,1,1,33,130,8,
- 2,186,160,137,0,139,0,12,134,86,101,98,79,168,64,133,5,1,68,132,3,131,4,27,
- 108,186,191,118,103,139,196,69,84,82,28,255,204,251,130,0,2,200,48,132,4,3,34,218,
- 130,9,3,160,199,133,3,3,21,248,130,9,3,184,67,132,2,2,18,64,133,2,3,23,
- 200,130,9,0,160,130,0,1,134,130,2,130,1,4,33,104,128,130,9,143,0,2,182,48,
- 135,1,1,135,134,1,7,34,71,139,171,138,0,139,0,2,166,80,131,6,5,20,249,131,
- 131,5,2,99,80,136,7,2,143,192,131,0,131,15,4,192,181,64,131,5,4,49,138,128,
- 130,9,131,0,1,200,133,4,12,50,186,154,153,12,115,64,131,3,19,21,248,169,154,130,
- 50,50,35,17,67,132,2,3,22,136,131,9,130,0,1,151,132,2,8,18,22,136,153,160,
- 143,0,2,247,48,134,1,2,39,64,135,2,3,23,137,130,10,138,0,139,0,2,198,80,
- 131,6,5,20,249,131,131,5,2,98,48,132,15,144,0,2,198,64,131,5,7,50,124,154,
- 153,131,0,2,200,80,132,4,12,50,138,154,154,15,115,64,131,3,3,37,200,130,9,1,
- 168,134,3,2,21,96,134,2,2,23,160,130,9,0,160,130,0,2,167,16,133,2,6,22,
- 152,153,160,143,0,2,167,64,135,2,1,99,134,2,6,22,136,186,160,139,0,139,0,2,
- 247,64,131,6,17,20,249,132,86,85,99,44,137,152,144,0,2,199,64,131,5,7,66,108,
- 154,154,132,0,1,149,133,4,2,39,192,130,9,5,160,247,36,130,3,3,66,72,131,9,
- 1,168,133,3,5,33,119,19,132,2,2,23,176,131,9,5,160,10,113,133,2,3,23,168,
- 130,9,0,160,143,0,2,117,32,132,3,1,34,135,3,7,33,104,154,171,139,0,139,0,
- 2,247,64,131,6,13,36,249,182,70,85,98,47,130,9,0,160,144,0,2,247,64,132,5,
- 6,36,249,169,160,132,0,1,166,133,4,2,39,192,130,9,5,160,247,36,130,3,4,67,
- 39,192,130,9,1,167,133,3,5,34,135,51,133,2,2,72,160,131,9,5,0,167,35,130,
- 2,4,51,23,160,131,9,0,176,143,0,1,133,133,3,1,33,135,3,3,20,136,130,10,
- 140,0,139,0,2,247,64,131,6,17,36,249,198,70,85,98,47,169,154,144,0,2,248,64,
- 132,5,2,36,240,130,9,0,160,132,0,2,199,48,131,4,3,82,111,130,9,4,160,247,
- 48,130,4,10,52,49,124,137,154,96,133,3,5,19,251,98,132,3,13,33,137,169,154,0,
- 167,52,130,3,5,68,22,138,130,9,0,160,143,0,3,134,52,140,3,7,33,90,139,170,
- 140,0,139,0,2,247,64,131,6,14,52,249,199,70,85,99,47,160,130,9,144,0,2,248,
- 64,132,5,2,35,240,130,9,0,160,132,0,2,247,48,132,4,9,20,248,153,160,199,134,
- 4,8,22,248,153,164,64,132,3,5,19,188,83,132,4,3,34,122,131,9,4,0,167,48,
- 133,4,3,37,138,131,9,143,0,3,150,52,140,3,8,35,120,154,153,160,139,0,139,0,
- 2,247,80,131,6,17,52,248,247,70,101,99,44,185,154,144,0,2,248,48,132,5,2,35,
- 240,130,9,0,160,132,0,3,247,53,131,4,11,19,248,153,160,200,99,132,4,6,22,248,
- 153,176,133,4,6,82,58,182,48,132,5,4,65,43,128,130,9,4,160,167,48,133,5,2,
- 51,112,132,9,143,0,1,150,140,3,131,2,3,120,138,130,9,0,176,138,0,139,0,2,
- 247,64,131,6,6,84,249,247,64,131,6,7,50,139,154,188,134,11,1,171,134,0,2,248,
- 48,132,5,2,35,240,131,9,132,0,3,248,53,130,4,6,81,61,137,144,131,10,0,96,
- 132,4,9,81,111,137,159,84,132,5,5,34,185,116,132,5,12,98,60,138,153,160,167,64,
- 133,5,2,50,112,132,9,143,0,1,149,135,3,135,2,3,21,152,132,9,138,0,140,0,
- 1,116,131,6,6,84,186,247,64,131,6,4,66,143,192,134,15,0,176,130,10,0,144,134,
- 0,2,248,48,132,5,2,36,240,131,9,132,0,13,247,53,69,69,36,250,188,130,11,2,
- 246,64,132,5,8,22,248,154,133,80,131,6,7,82,59,139,69,132,6,4,35,168,160,130,
- 9,3,10,134,133,5,2,49,112,132,9,143,0,1,133,131,3,141,2,2,120,128,131,9,
- 0,160,137,0,140,0,1,115,132,6,5,56,191,115,131,6,4,82,120,128,132,7,3,102,
- 140,130,9,0,160,133,0,2,248,64,132,5,2,36,240,130,9,0,160,132,0,2,247,64,
- 132,5,2,36,176,134,8,1,101,132,6,7,22,248,155,116,132,6,7,81,75,154,100,132,
- 6,4,81,107,128,130,9,4,168,182,64,132,5,2,49,112,132,9,143,0,2,150,48,134,
- 2,0,48,135,2,4,17,120,160,131,9,0,160,136,0,140,0,1,115,131,6,6,82,123,
- 247,48,132,6,0,32,132,3,131,4,2,23,240,131,9,134,0,0,128,133,5,2,36,240,
- 130,9,0,160,132,0,2,247,48,132,6,2,66,80,135,3,133,6,7,22,248,156,116,132,
- 6,17,65,107,154,116,101,101,86,21,248,130,9,5,160,198,69,131,4,2,49,112,132,9,
- 143,0,2,166,48,133,2,4,18,65,32,132,1,5,33,56,138,131,9,136,0,140,0,1,
- 116,132,6,5,23,252,116,132,6,134,5,130,6,6,68,170,153,160,134,0,2,166,80,131,
- 6,2,68,240,130,9,0,160,132,0,2,247,48,133,6,137,5,133,6,7,22,248,159,83,
- 132,6,7,49,138,154,132,133,5,3,36,122,130,9,4,160,198,48,132,4,2,49,112,132,
- 9,143,0,2,151,64,133,2,2,19,112,135,1,5,33,104,138,130,9,0,160,135,0,140,
- 0,2,133,80,131,6,4,22,250,128,143,6,3,65,140,130,9,134,0,2,198,80,131,6,
- 2,84,240,131,9,133,0,1,115,148,6,9,67,123,153,245,70,130,5,9,100,26,202,187,
- 100,133,5,3,22,248,130,9,4,12,99,64,132,3,1,23,132,9,143,0,4,135,65,32,
- 132,1,2,56,96,136,1,2,57,128,132,9,0,176,134,0,140,0,2,133,80,131,6,6,
- 22,249,134,80,141,6,3,65,140,130,9,134,0,2,247,80,132,6,6,56,185,169,144,132,
- 0,1,131,148,6,8,21,249,169,246,64,132,5,1,49,131,8,3,118,69,132,4,2,22,
- 176,131,9,2,140,96,133,3,3,33,122,130,9,0,160,143,0,2,135,64,134,1,2,39,
- 112,135,1,5,33,88,138,130,9,0,160,134,0,140,0,2,246,80,131,6,6,22,248,182,
- 80,141,6,6,65,140,153,160,134,0,2,247,80,132,6,6,39,249,169,144,132,0,2,132,
- 80,143,6,12,86,98,40,186,168,230,64,130,5,1,69,135,3,133,4,4,50,39,192,130,
- 9,2,140,96,131,3,9,35,33,122,169,154,143,0,2,136,64,133,1,5,33,108,98,134,
- 1,4,33,121,128,132,9,133,0,140,0,2,246,80,131,6,6,38,248,246,80,141,6,6,
- 65,140,154,160,134,0,2,247,80,132,6,3,22,248,130,9,132,0,2,133,80,134,6,138,
- 5,9,34,124,171,176,246,142,4,134,3,2,23,192,130,9,4,140,99,48,132,2,6,22,
- 154,153,160,136,0,133,8,3,168,165,133,1,5,33,88,132,136,1,3,72,138,131,9,133,
- 0,140,0,2,246,80,131,6,6,70,248,247,80,131,6,0,80,135,4,6,83,107,186,176,
- 135,0,2,247,80,132,6,3,22,248,130,9,132,0,3,166,86,136,5,133,4,12,49,71,
- 203,176,11,133,48,135,4,140,3,2,23,192,130,9,4,140,99,48,132,2,2,20,128,130,
- 9,0,160,133,0,135,8,4,188,136,64,135,1,4,89,135,32,134,1,5,33,88,138,130,
- 9,0,160,132,0,140,0,2,246,80,131,6,6,86,248,247,80,131,6,2,50,80,130,6,
- 131,7,3,140,187,137,0,2,247,64,132,6,6,22,248,153,160,132,0,2,198,64,132,5,
- 130,3,1,68,132,5,5,68,122,202,131,0,5,199,67,68,146,3,2,21,128,130,9,4,
- 140,99,48,132,2,2,19,128,130,9,1,171,130,0,1,154,131,8,9,119,136,154,136,66,
- 134,1,5,89,136,82,134,1,5,34,120,154,130,9,0,160,131,0,140,0,2,246,64,131,
- 6,6,85,185,247,80,131,6,2,53,240,130,12,132,15,0,192,139,0,3,247,70,131,5,
- 6,22,248,153,160,132,0,2,247,48,131,5,6,65,70,119,176,134,15,0,176,133,0,3,
- 246,36,148,3,10,33,138,153,140,99,48,132,2,2,18,128,131,9,3,160,9,131,7,13,
- 101,34,103,138,136,66,18,132,1,5,90,136,116,136,1,3,57,138,131,9,131,0,140,0,
- 2,246,64,131,6,6,84,138,247,80,131,6,2,84,240,131,9,144,0,2,247,48,132,5,
- 6,22,248,153,160,132,0,3,247,53,131,4,4,22,252,192,132,10,137,0,3,246,36,148,
- 3,3,34,122,130,9,1,198,132,3,131,2,3,137,154,131,8,1,182,132,2,3,50,19,
- 131,8,3,83,18,130,1,8,33,90,136,151,32,134,1,5,34,104,138,130,9,0,160,130,
- 0,140,0,2,246,64,131,6,6,82,123,247,80,131,6,6,84,139,153,160,144,0,2,247,
- 48,132,5,6,38,248,153,160,132,0,3,247,53,131,4,3,21,184,130,9,140,0,2,247,
- 48,132,4,137,3,1,68,133,3,8,20,200,153,183,64,133,3,1,34,135,8,3,247,51,
- 133,2,8,23,152,134,49,32,130,1,8,33,90,138,136,80,136,1,2,39,128,132,9,2,
- 160,0,140,0,14,247,69,101,101,23,207,99,96,131,5,2,55,192,130,9,145,0,1,114,
- 132,5,3,38,248,130,9,132,0,3,247,37,131,4,3,20,139,130,9,140,0,2,198,48,
- 132,4,1,35,136,5,0,64,133,3,3,19,248,130,9,2,133,32,132,3,1,34,132,12,
- 6,168,120,99,48,133,2,7,23,152,134,49,130,2,11,18,21,136,168,135,50,135,1,3,
- 88,138,130,9,2,160,0,132,0,0,192,133,11,3,15,132,132,5,5,23,255,115,132,5,
- 5,23,248,154,145,0,1,115,132,5,2,53,192,131,9,133,0,2,115,80,131,4,3,35,
- 139,130,9,140,0,1,134,133,4,3,22,251,133,12,2,180,64,132,3,8,34,123,153,140,
- 80,133,3,1,34,132,7,5,101,66,36,134,2,7,23,152,135,49,132,2,9,20,136,154,
- 136,98,134,1,5,33,120,138,130,9,1,160,1,0,133,12,6,187,170,159,128,132,5,6,
- 65,127,199,48,132,5,5,22,248,153,135,0,1,204,135,0,2,133,64,131,5,3,67,140,
- 130,9,133,0,1,115,132,5,6,50,124,137,144,140,0,0,112,134,4,6,22,216,169,160,
- 130,9,2,165,64,133,3,7,21,248,152,197,133,3,1,35,134,2,131,3,134,2,6,23,
- 153,135,48,133,2,3,19,120,130,9,2,136,80,136,1,2,88,128,132,9,0,0,2,12,
- 192,130,13,8,204,250,169,156,192,132,5,6,65,127,199,48,132,5,5,22,216,154,135,11,
- 3,203,186,133,0,2,133,64,132,5,5,23,248,153,133,0,1,116,132,5,6,65,127,137,
- 144,139,0,2,247,32,133,4,3,22,248,130,10,130,0,3,199,52,131,3,8,65,111,137,
- 140,80,140,3,139,2,7,22,137,168,131,135,2,9,121,137,168,135,50,133,1,5,33,88,
- 138,130,9,0,160,2,247,48,131,4,7,55,201,171,189,132,5,6,65,127,183,64,132,5,
- 3,22,251,137,15,3,186,169,133,0,1,182,133,5,5,23,248,153,133,0,0,128,134,5,
- 5,23,248,153,139,0,2,247,48,133,4,5,22,248,170,131,0,4,200,52,64,130,3,3,
- 65,88,130,9,1,167,142,3,137,2,1,23,130,10,2,136,48,134,2,3,22,152,130,9,
- 3,135,82,135,1,4,39,136,160,130,9,2,247,48,131,5,3,18,218,130,12,0,240,133,
- 5,4,23,250,128,133,5,1,22,130,8,136,7,4,185,169,176,132,0,13,246,86,85,101,
- 23,248,153,133,0,1,166,133,5,5,23,248,153,139,0,3,247,53,132,4,5,22,248,170,
- 132,0,2,134,48,133,4,7,22,248,153,166,142,3,135,2,8,23,248,187,152,48,134,2,
- 11,22,152,153,160,135,66,133,1,8,33,72,137,170,176,2,247,64,131,5,4,19,252,176,
- 130,8,133,5,5,22,202,182,132,5,5,52,84,67,133,2,2,22,240,130,9,0,160,132,
- 0,2,246,80,131,6,6,81,127,137,144,133,0,2,246,64,132,5,5,23,248,153,139,0,
- 3,247,69,131,4,6,49,127,138,160,132,0,2,247,32,133,4,8,23,248,153,184,64,143,
- 3,132,2,3,20,136,130,11,2,136,48,134,2,11,22,168,154,160,8,99,134,1,7,33,
- 106,154,171,2,247,64,131,5,1,35,132,5,1,68,132,5,6,38,248,246,80,132,6,134,
- 5,7,102,86,82,124,130,9,132,0,2,246,64,131,6,7,81,127,137,154,132,0,2,246,
- 64,132,5,6,23,248,153,160,138,0,3,166,69,131,4,6,19,123,154,160,132,0,1,247,
- 134,4,9,35,139,153,168,134,145,3,13,34,103,170,176,9,115,50,132,3,3,22,168,130,
- 10,4,0,136,64,133,3,8,67,87,155,184,0,3,247,70,139,5,131,6,7,81,127,143,
- 100,143,6,3,81,124,130,9,132,0,2,246,48,131,6,7,81,127,137,154,132,0,2,246,
- 64,132,5,6,23,248,153,160,138,0,3,130,69,130,4,3,81,91,131,10,132,0,3,170,
- 99,132,4,12,49,124,154,160,187,100,48,134,2,1,50,134,3,4,123,171,176,130,0,2,
- 200,64,135,5,4,121,170,128,131,0,5,136,118,119,134,8,131,0,2,7,64,144,6,7,
- 81,124,156,131,143,6,3,81,124,130,9,132,0,2,246,48,131,6,7,81,127,137,155,132,
- 0,3,246,70,131,5,6,23,248,153,160,138,0,14,132,69,84,69,20,248,170,176,133,0,
- 2,247,32,132,3,11,36,139,171,176,10,199,142,6,4,120,184,160,133,0,3,138,154,131,
- 11,3,170,136,135,0,137,8,133,0,3,15,100,143,6,8,37,202,171,247,64,142,6,3,
- 81,127,130,9,133,0,1,99,131,6,7,81,127,137,154,132,0,13,246,70,85,101,23,248,
- 170,139,0,2,199,32,132,3,5,39,186,186,134,0,1,200,134,7,3,172,171,133,0,0,
- 192,135,15,133,12,2,252,128,137,0,135,8,154,0,4,0,132,80,141,6,11,35,139,171,
- 0,197,69,140,6,6,81,127,154,160,133,0,1,115,132,5,5,23,249,170,133,0,2,200,
- 80,131,4,6,81,127,155,176,140,0,9,167,135,136,120,251,138,0,0,192,134,15,0,160,
- 199,0,5,0,251,83,139,6,5,35,127,172,131,0,4,183,67,64,130,5,1,68,133,3,
- 5,34,124,155,134,0,1,214,131,5,5,69,140,171,135,0,9,203,171,186,186,187,144,0,
- 134,15,221,0,130,0,2,248,96,137,4,6,50,88,251,192,132,0,2,191,112,141,6,3,
- 143,171,135,0,0,192,134,15,1,203,138,0,134,12,247,0,131,0,1,207,139,7,2,255,
- 160,136,0,130,15,1,188,138,15,0,176,139,0,132,10,255,0,140,0,134,0,137,15,255,
- 0,187,0,
-};
-static const jj_sprite jj_jetpack_word = {205,59,jj_jetpack_word_palette,jj_jetpack_word_rows,jj_jetpack_word_data,4};
-static const uint16_t jj_joyride_word_palette[] = {
- 0x0,0xffd1,0xff2f,0xfe8b,0xfdc9,0xfd67,0xfce6,0xf526,0xf443,0xab41,0x5160,0x840,0x0,0x0,0x0,0x0,
-};
-static const uint16_t jj_joyride_word_rows[] = {
- 0,43,109,182,266,352,428,499,568,638,717,803,899,997,1105,1203,1305,1405,1513,1612,1715,1816,1927,2032,
- 2130,2216,2298,2381,2464,2549,2634,2721,2822,2931,3031,3126,3223,3318,3419,3520,3631,3735,3843,3947,4049,4145,4237,4308,
- 4382,4458,4538,4621,4699,4779,4854,4902,
-};
-static const uint8_t jj_joyride_word_data[] = {
- 147,0,136,12,138,0,0,176,142,12,0,176,138,0,136,12,138,0,137,12,132,0,148,12,
- 139,0,137,12,131,0,0,240,148,12,0,176,138,0,150,12,2,240,0,146,0,1,255,133,
- 14,130,15,134,0,1,252,130,15,140,14,3,255,207,135,0,1,255,133,14,130,15,136,0,
- 130,15,133,14,130,15,130,0,130,15,0,224,146,15,1,207,135,0,139,15,1,0,138,15,
- 137,14,132,15,134,0,130,15,148,14,3,252,240,145,0,2,255,160,135,9,1,252,132,0,
- 130,15,0,176,144,9,0,224,130,15,132,0,2,207,176,135,9,1,252,134,0,2,207,176,
- 135,9,5,175,192,252,148,9,0,160,130,15,134,0,1,251,135,9,5,175,204,252,149,9,
- 0,176,130,15,132,0,2,207,160,149,9,2,255,0,145,0,3,251,152,133,5,2,58,240,
- 131,0,4,251,185,112,144,5,4,74,188,240,130,0,3,207,183,133,5,3,55,252,134,0,
- 4,207,165,80,132,4,8,41,204,15,181,80,143,4,131,3,3,75,252,132,0,4,207,163,
- 48,132,4,7,58,252,255,115,146,4,6,85,122,207,192,130,0,4,207,162,64,148,5,2,
- 159,192,144,0,6,255,184,133,112,130,5,3,115,159,130,0,7,204,184,117,119,141,5,13,
- 100,52,252,240,15,251,119,131,5,4,117,58,240,134,0,2,251,144,130,7,12,85,117,83,
- 175,15,184,80,146,7,5,83,58,252,131,0,3,206,165,134,7,4,174,204,240,145,7,130,
- 5,14,117,87,155,204,0,207,163,112,146,5,4,117,158,192,144,0,4,255,185,96,132,5,
- 10,114,159,0,252,233,112,146,5,12,100,58,252,0,207,183,96,132,5,4,115,159,192,132,
- 0,4,207,183,96,133,5,7,121,188,15,184,148,5,5,100,74,252,130,0,3,206,167,134,
- 5,6,174,204,248,96,149,5,10,117,155,192,12,250,48,149,5,2,158,192,144,0,4,255,
- 185,96,133,5,8,41,240,12,233,128,148,5,11,100,58,252,0,203,151,132,5,4,100,75,
- 192,132,0,3,252,166,133,5,8,119,175,176,251,128,149,5,11,101,122,204,0,206,167,133,
- 5,7,122,236,206,136,150,5,9,119,155,240,207,163,149,5,2,158,192,144,0,4,255,185,
- 96,133,5,8,41,240,207,152,112,149,5,11,100,58,204,12,250,119,132,5,4,66,175,192,
- 131,0,3,254,136,134,5,7,155,192,15,184,152,5,8,155,240,12,234,96,133,5,7,122,
- 236,206,136,151,5,8,104,191,252,250,48,149,5,2,158,192,144,0,5,255,185,100,132,5,
- 7,41,240,207,150,152,5,8,58,252,0,203,128,134,5,3,57,204,131,0,4,251,134,64,
- 132,5,9,121,236,0,251,132,149,5,10,70,139,252,12,234,96,132,5,9,71,174,204,232,
- 132,150,5,8,72,174,204,250,48,148,5,3,73,236,144,0,6,255,185,100,80,130,4,7,
- 82,159,12,185,133,4,0,80,145,4,11,83,156,208,12,234,117,131,4,4,83,43,240,130,
- 0,5,207,152,69,132,4,10,138,192,15,251,132,80,148,4,10,84,105,239,12,234,112,131,
- 4,11,84,90,236,206,136,69,150,4,8,104,236,207,163,80,147,4,3,89,236,144,0,4,
- 255,185,112,133,4,7,41,240,250,133,132,4,1,53,139,6,133,4,9,51,191,0,207,152,
- 134,4,9,60,252,0,207,150,133,4,9,121,236,0,255,184,133,4,0,80,138,6,0,112,
- 133,4,8,104,223,12,234,112,133,4,7,90,236,206,136,133,4,140,6,134,4,6,143,204,
- 250,48,133,4,0,80,141,6,3,137,251,144,0,4,255,185,112,133,4,7,41,240,250,133,
- 132,4,2,51,160,136,11,2,152,80,133,4,2,59,240,130,0,3,203,151,133,4,8,57,
- 204,0,251,144,133,4,10,56,156,192,15,235,128,134,4,0,144,136,11,1,150,133,4,8,
- 104,223,12,234,112,133,4,7,90,236,206,136,133,4,1,137,136,11,1,167,133,4,7,56,
- 252,207,163,133,4,1,89,142,11,1,240,144,0,5,255,185,115,132,4,6,41,240,250,128,
- 134,4,1,59,136,14,1,152,134,4,2,59,240,130,0,3,207,152,133,4,8,51,252,11,
- 249,128,133,4,11,88,191,240,15,235,131,133,4,0,144,136,14,1,151,132,4,9,54,141,
- 240,206,167,132,4,9,53,174,252,232,131,132,4,1,137,136,14,1,183,133,4,7,56,252,
- 207,163,133,4,2,89,208,139,14,130,15,0,0,144,0,6,255,185,115,64,130,3,8,66,
- 159,15,168,64,134,3,0,176,134,12,4,188,152,64,134,3,1,191,131,0,2,250,128,133,
- 3,8,67,172,12,201,64,131,3,5,67,104,207,130,0,5,254,184,52,131,3,1,73,136,
- 12,2,151,64,130,3,10,67,104,223,12,234,80,131,3,11,67,90,239,206,136,52,131,3,
- 3,137,203,134,12,1,183,132,3,9,67,143,204,250,52,130,3,4,67,89,176,140,12,130,
- 0,144,0,4,255,185,112,134,3,6,159,15,168,64,134,3,1,191,133,0,4,191,152,64,
- 134,3,1,191,131,0,3,254,135,134,3,6,127,191,168,64,133,3,3,90,239,130,0,3,
- 254,184,133,3,3,73,252,132,0,3,206,151,133,3,8,104,223,12,234,80,133,3,7,90,
- 236,206,136,133,3,2,137,240,134,0,2,251,112,134,3,7,143,204,250,52,132,3,3,89,
- 191,142,0,144,0,4,255,185,112,134,3,6,159,15,168,64,134,3,2,191,192,132,0,4,
- 191,152,64,134,3,1,191,131,0,4,252,166,32,133,3,6,123,207,168,64,132,3,4,72,
- 191,192,130,0,4,254,184,32,133,3,2,159,192,132,0,3,206,151,133,3,8,104,223,12,
- 234,80,133,3,7,74,236,206,136,133,3,2,137,240,134,0,2,251,112,133,3,6,40,252,
- 207,160,134,3,3,73,191,142,0,144,0,4,255,185,64,134,3,5,159,15,168,135,3,1,
- 191,133,0,3,191,152,135,3,1,191,131,0,4,255,184,64,133,3,6,41,251,132,32,132,
- 3,3,74,220,131,0,4,254,184,32,133,3,2,159,192,132,0,3,206,151,132,3,9,38,
- 141,240,206,165,132,3,9,36,174,204,232,98,132,3,2,137,240,134,0,3,251,114,132,3,
- 7,40,252,207,164,132,3,4,36,155,240,142,0,144,0,5,255,185,66,133,3,7,159,15,
- 168,50,130,3,4,35,59,240,133,0,5,191,152,50,130,3,4,35,59,240,132,0,4,251,
- 132,32,132,3,6,42,250,133,32,130,3,5,35,138,252,131,0,4,254,184,32,133,3,2,
- 159,192,132,0,3,206,151,132,3,9,38,141,240,206,165,132,3,9,36,174,204,232,98,131,
- 3,3,40,159,134,0,3,251,114,132,3,9,40,252,207,164,50,130,3,4,36,155,240,142,
- 0,144,0,4,255,185,64,133,2,7,57,240,250,131,132,2,3,51,191,133,0,4,191,152,
- 48,132,2,3,51,191,132,0,4,204,166,48,133,2,3,156,183,133,2,3,56,175,132,0,
- 3,254,184,133,2,3,57,252,132,0,3,206,149,133,2,8,104,223,12,234,80,133,2,7,
- 74,236,206,134,133,2,2,137,240,134,0,2,251,128,134,2,7,143,204,250,67,132,2,3,
- 73,191,142,0,144,0,4,255,185,64,133,2,7,57,240,250,131,132,2,3,51,191,133,0,
- 4,191,152,48,132,2,3,51,191,132,0,4,191,168,48,132,2,5,51,169,113,132,2,3,
- 137,204,132,0,4,254,184,16,132,2,3,57,252,132,0,3,206,149,132,2,9,23,141,240,
- 206,164,132,2,8,20,174,204,232,96,133,2,2,137,240,134,0,2,251,128,133,2,8,25,
- 252,207,164,48,132,2,3,73,191,142,0,144,0,4,255,185,64,133,2,7,57,240,250,131,
- 132,2,3,51,191,133,0,3,191,152,133,2,3,51,191,133,0,2,205,144,135,2,1,168,
- 133,2,4,24,175,192,132,0,4,254,184,16,133,2,3,159,204,131,0,3,205,149,132,2,
- 9,23,141,240,206,164,132,2,9,20,174,204,232,113,132,2,2,137,240,134,0,3,251,129,
- 132,2,8,25,252,207,165,48,131,2,4,19,155,240,142,0,144,0,5,255,185,49,132,2,
- 8,57,240,250,130,16,130,2,4,19,59,240,133,0,5,191,152,33,130,2,4,19,59,240,
- 133,0,3,190,168,132,2,4,19,72,16,132,2,3,56,252,133,0,4,254,184,16,131,2,
- 2,18,144,134,15,3,207,149,132,2,9,23,141,240,206,164,132,2,9,20,174,204,232,113,
- 131,2,3,24,159,134,0,3,251,129,132,2,9,25,252,207,165,33,130,2,3,19,155,136,
- 15,0,224,130,15,130,0,144,0,4,255,185,48,132,1,8,35,159,15,168,32,132,1,3,
- 51,191,133,0,4,191,152,32,132,1,3,51,191,134,0,2,203,144,133,1,2,36,128,131,
- 1,5,33,137,204,133,0,5,254,184,18,131,1,1,41,136,11,1,151,131,1,10,33,120,
- 223,12,234,64,131,1,11,33,58,236,206,134,18,131,1,2,137,240,134,0,2,251,128,134,
- 1,7,159,204,250,82,132,1,1,57,138,11,130,15,130,0,144,0,4,255,185,48,133,1,
- 7,57,240,250,130,132,1,3,51,191,133,0,4,191,152,32,132,1,3,51,191,134,0,3,
- 207,150,133,1,1,50,133,1,3,139,239,133,0,3,254,184,133,1,1,37,137,3,0,64,
- 133,1,8,120,223,12,234,64,133,1,7,58,236,206,135,133,1,2,137,240,134,0,2,251,
- 128,134,1,7,159,204,250,82,132,1,0,48,140,8,4,175,192,0,144,0,4,255,185,48,
- 133,1,7,57,240,250,130,132,1,3,51,191,133,0,4,191,152,32,132,1,3,51,191,134,
- 0,3,205,152,133,1,0,48,133,1,3,120,191,134,0,3,254,184,152,1,8,89,223,12,
- 234,64,133,1,7,58,236,206,135,133,1,2,137,240,134,0,2,251,128,134,1,7,159,204,
- 250,82,145,1,5,74,223,0,144,0,4,255,185,48,133,1,7,57,240,250,130,132,1,3,
- 51,191,133,0,4,191,152,32,132,1,3,52,191,135,0,3,254,132,139,1,3,89,207,134,
- 0,3,254,184,151,1,9,56,190,240,206,164,133,1,7,58,236,206,135,133,1,2,137,240,
- 134,0,2,251,128,134,1,7,159,204,250,114,145,1,5,89,223,0,144,0,4,255,185,48,
- 133,1,7,57,240,250,130,132,1,3,51,191,133,0,4,191,152,32,132,1,3,52,191,135,
- 0,3,253,151,138,1,4,56,191,192,134,0,3,254,184,151,1,9,57,191,0,206,164,133,
- 1,7,58,236,206,135,133,1,2,137,240,134,0,2,251,128,134,1,7,159,204,250,114,145,
- 1,5,89,223,0,144,0,4,255,185,48,133,1,7,57,240,250,130,132,1,3,51,191,133,
- 0,4,191,152,32,132,1,3,52,191,135,0,3,254,181,138,1,3,57,191,135,0,3,254,
- 184,150,1,10,56,175,192,12,234,64,133,1,7,58,236,206,151,133,1,2,137,240,134,0,
- 2,235,128,134,1,7,159,204,250,98,145,1,5,89,223,0,144,0,4,255,185,48,133,1,
- 7,57,240,250,130,132,1,3,51,191,133,0,4,191,152,32,132,1,3,52,191,136,0,3,
- 251,147,137,1,3,90,236,135,0,3,254,184,149,1,4,56,175,192,130,0,3,206,164,133,
- 1,7,58,236,206,151,133,1,2,137,240,134,0,2,235,128,134,1,7,159,204,250,98,145,
- 1,5,89,223,0,144,0,4,255,185,48,133,1,7,57,240,250,130,132,1,3,51,191,133,
- 0,4,191,152,32,132,1,3,53,191,136,0,3,206,164,137,1,2,155,192,136,0,3,254,
- 184,148,1,5,56,174,255,130,0,3,206,164,133,1,7,58,239,206,151,133,1,2,137,240,
- 134,0,2,235,128,134,1,7,159,204,250,130,145,1,5,89,223,0,144,0,4,255,185,48,
- 133,1,7,57,240,250,130,132,1,3,52,191,133,0,4,191,168,32,132,1,3,53,191,136,
- 0,4,207,168,32,135,1,3,73,252,136,0,3,254,184,146,1,6,56,138,236,240,131,0,
- 3,206,164,133,1,7,58,236,206,151,133,1,2,137,240,134,0,2,235,128,134,1,7,159,
- 204,250,130,145,1,5,74,223,0,144,0,4,255,185,48,132,1,8,35,159,15,168,32,132,
- 1,3,52,191,133,0,4,191,168,32,132,1,3,53,191,137,0,3,251,147,135,1,3,137,
- 204,136,0,5,254,184,18,131,1,7,40,152,135,18,131,1,6,40,155,236,240,132,0,3,
- 206,164,131,1,9,33,74,236,206,150,133,1,2,137,240,134,0,2,235,128,134,1,7,159,
- 204,250,130,132,1,0,48,138,8,6,152,175,192,0,144,0,5,255,185,49,132,2,8,57,
- 240,250,130,16,130,2,4,19,75,240,133,0,5,191,168,33,130,2,4,19,91,240,137,0,
- 5,207,152,33,131,2,4,20,155,240,137,0,4,254,184,16,131,2,8,18,159,203,131,16,
- 131,2,5,19,158,207,133,0,4,206,164,16,131,2,9,20,174,204,233,97,131,2,3,24,
- 159,134,0,3,235,129,132,2,9,25,252,207,168,33,130,2,2,19,144,137,11,0,192,130,
- 15,130,0,144,0,5,255,185,65,132,2,7,57,240,250,131,131,2,4,19,75,240,133,0,
- 3,191,168,132,2,4,19,91,240,137,0,3,207,168,133,2,4,24,158,192,137,0,4,254,
- 184,16,133,2,6,157,252,151,16,131,2,4,19,154,240,134,0,3,206,165,132,2,9,20,
- 174,207,233,129,132,2,2,137,240,134,0,3,251,129,132,2,8,25,252,207,168,48,131,2,
- 3,20,155,140,15,130,0,144,0,4,255,185,64,133,2,7,57,240,250,131,132,2,3,52,
- 191,133,0,4,191,168,48,132,2,3,71,191,138,0,2,206,144,134,2,3,138,252,137,0,
- 4,254,184,16,132,2,6,57,252,218,112,133,2,4,56,174,192,133,0,3,206,165,133,2,
- 7,74,236,254,152,133,2,2,137,240,134,0,2,251,128,133,2,8,25,252,207,168,48,132,
- 2,3,73,191,142,0,144,0,4,255,185,64,132,2,8,51,159,15,168,48,132,2,3,68,
- 191,133,0,4,191,168,48,132,2,3,71,191,138,0,2,204,144,134,2,3,138,236,137,0,
- 5,254,184,35,131,2,7,57,252,251,132,131,2,6,50,72,191,192,132,0,3,206,165,131,
- 2,9,50,74,236,254,152,133,2,2,137,240,134,0,2,251,128,134,2,7,159,204,250,131,
- 132,2,3,73,191,142,0,144,0,5,255,185,66,133,3,5,159,15,168,133,3,3,69,191,
- 133,0,3,191,168,132,3,4,36,123,240,138,0,3,207,146,132,3,4,40,174,192,137,0,
- 4,254,184,32,133,3,6,159,204,234,112,134,3,3,139,239,132,0,3,206,165,132,3,9,
- 37,174,207,233,130,132,3,2,137,240,134,0,3,251,130,132,3,7,41,252,207,168,132,3,
- 4,36,155,240,142,0,1,0,136,15,133,0,4,255,185,80,134,3,6,159,15,168,64,132,
- 3,3,69,191,133,0,4,191,168,64,132,3,3,88,191,138,0,2,207,144,134,3,3,138,
- 236,137,0,4,254,184,32,132,3,8,73,252,207,168,64,132,3,4,40,157,240,132,0,3,
- 206,165,132,3,8,37,174,255,233,128,133,3,2,137,240,134,0,2,251,128,133,3,8,41,
- 252,207,168,64,132,3,3,89,191,142,0,3,15,254,133,13,2,255,192,131,0,4,255,185,
- 112,134,3,6,159,15,168,64,132,3,3,85,191,133,0,4,191,168,64,132,3,3,88,191,
- 138,0,2,207,144,134,3,3,138,236,137,0,3,254,184,133,3,8,73,252,207,185,80,133,
- 3,3,72,255,132,0,3,206,166,133,3,7,90,236,254,152,133,3,2,137,240,134,0,2,
- 251,128,134,3,7,159,204,250,132,132,3,3,89,191,142,0,3,12,186,133,9,2,171,192,
- 131,0,5,255,185,115,132,4,8,57,240,250,132,48,130,4,5,53,91,252,132,0,5,191,
- 168,67,130,4,4,55,139,240,138,0,3,207,147,132,4,4,56,174,192,137,0,4,254,184,
- 48,131,4,9,52,159,192,207,152,133,4,4,56,156,192,131,0,3,206,166,131,3,10,67,
- 106,236,254,152,48,131,4,3,56,159,134,0,3,251,131,132,4,9,57,252,207,168,67,130,
- 4,4,53,155,240,142,0,2,207,144,134,8,3,58,252,131,0,3,251,151,133,4,7,57,
- 240,250,133,132,4,3,117,191,133,0,4,191,168,80,132,4,3,120,191,138,0,3,207,147,
- 132,4,4,56,174,192,137,0,4,254,184,48,133,4,7,159,192,12,185,134,4,3,137,252,
- 131,0,4,206,166,48,131,4,8,54,174,255,233,128,133,4,2,137,240,134,0,3,251,131,
- 132,4,8,57,252,207,168,80,132,4,3,121,191,142,0,3,206,164,132,3,4,67,175,192,
- 132,15,2,185,112,134,4,6,159,15,168,80,132,4,4,117,191,192,132,15,4,191,168,80,
- 132,4,3,120,191,138,0,2,207,144,134,4,3,138,236,137,0,3,254,184,133,4,9,89,
- 252,0,207,152,133,4,4,89,175,192,130,0,3,206,166,133,4,7,106,239,254,152,133,4,
- 3,137,204,132,15,3,207,184,133,4,8,57,252,207,168,112,132,4,4,105,191,192,137,15,
- 3,204,0,2,206,160,134,5,1,74,134,15,3,201,100,132,5,7,73,240,250,135,132,5,
- 2,117,176,136,14,2,168,112,131,5,4,70,139,240,138,0,3,207,148,132,5,4,72,174,
- 192,137,0,4,254,184,64,133,5,9,159,192,15,203,132,133,5,3,138,252,130,0,3,206,
- 166,133,4,8,106,239,254,152,64,132,5,1,138,136,15,2,185,64,132,5,9,73,252,207,
- 168,116,130,5,3,70,156,142,15,0,0,2,206,160,134,5,1,73,135,10,1,134,132,5,
- 8,116,159,15,168,112,132,5,2,120,160,134,11,4,171,152,112,132,5,3,104,191,138,0,
- 3,207,148,133,5,3,138,236,137,0,4,254,184,64,132,5,11,105,252,0,255,200,132,132,
- 5,3,121,188,130,0,3,206,166,133,4,7,106,239,254,152,133,5,1,137,137,10,1,132,
- 132,5,8,73,252,207,168,112,132,5,1,105,140,10,3,187,240,2,206,160,134,5,0,96,
- 137,7,0,96,133,5,7,138,240,250,150,133,5,140,8,0,96,132,5,3,136,191,138,0,
- 2,207,144,134,5,3,138,252,137,0,3,254,184,133,5,3,105,252,130,0,3,252,152,133,
- 5,10,120,174,192,12,234,96,131,4,9,84,106,239,254,152,133,5,0,128,139,3,134,5,
- 7,159,204,250,134,132,5,2,103,64,135,5,131,6,3,121,251,4,207,152,112,132,6,1,
- 85,135,6,1,85,133,6,7,155,240,203,149,133,6,140,5,132,6,4,88,172,240,138,0,
- 3,207,149,132,6,4,88,175,192,137,0,4,255,184,80,133,6,2,159,192,130,0,5,207,
- 184,133,131,6,10,88,155,192,12,234,96,133,5,8,138,239,206,136,80,132,6,0,80,145,
- 6,9,136,236,207,168,133,145,6,4,87,158,192,3,15,169,150,6,8,137,236,12,249,128,
- 152,6,3,138,252,138,0,3,207,149,133,6,3,138,252,137,0,4,255,184,80,133,6,2,
- 159,192,131,0,4,203,166,112,132,6,9,136,191,192,206,168,133,5,7,138,239,206,152,151,
- 6,8,88,174,240,250,144,149,6,2,159,192,4,12,249,128,148,6,10,120,175,192,207,152,
- 112,150,6,4,136,175,192,138,0,2,207,144,134,6,3,138,252,137,0,4,255,184,80,133,
- 6,2,159,192,131,0,3,206,168,133,6,9,88,156,240,206,168,131,5,9,101,138,239,206,
- 152,151,6,9,136,191,240,207,152,148,6,2,159,192,4,12,233,128,148,6,3,137,239,130,
- 0,3,206,168,149,6,4,137,175,192,139,0,2,207,144,134,6,3,138,252,137,0,4,255,
- 184,80,133,6,2,159,192,132,0,2,203,144,134,6,8,136,239,12,234,128,131,5,9,101,
- 138,239,206,152,151,6,11,137,191,0,204,168,133,146,6,2,158,192,5,0,254,168,145,6,
- 5,120,158,255,130,0,4,252,233,128,147,6,4,137,175,192,140,0,2,207,144,134,6,3,
- 138,252,137,0,4,255,184,80,133,6,2,159,192,132,0,3,207,152,133,6,8,89,191,12,
- 234,128,131,5,9,102,138,239,206,152,150,6,3,137,188,131,0,4,207,168,128,146,6,2,
- 158,192,7,0,252,234,136,143,6,4,137,188,240,132,0,4,204,184,128,144,6,6,120,153,
- 220,240,140,0,3,207,151,132,6,4,120,175,192,138,0,3,251,151,133,6,2,159,192,132,
- 0,4,204,168,112,133,6,21,137,240,206,168,117,87,103,138,236,254,136,148,6,5,136,155,
- 204,131,0,5,252,234,136,143,6,4,118,158,192,130,0,4,252,234,144,142,8,4,153,223,
- 240,134,0,4,252,186,144,144,8,4,154,204,240,141,0,2,207,144,135,8,2,191,240,137,
- 0,2,255,192,135,8,2,159,192,133,0,2,204,144,135,8,5,191,12,250,135,8,5,175,
- 207,233,149,8,4,154,207,192,133,0,4,252,234,144,145,8,2,159,192,131,0,131,15,1,
- 169,140,10,0,192,130,15,136,0,130,15,2,185,144,140,10,2,154,224,130,15,142,0,2,
- 255,176,135,10,1,207,139,0,2,252,144,135,10,1,255,133,0,2,255,176,134,10,6,159,
- 240,15,176,134,10,6,154,252,255,192,148,9,1,172,130,15,135,0,131,15,0,160,144,9,
- 2,175,192,133,0,1,252,130,15,137,14,130,15,1,207,138,0,1,252,130,15,140,14,3,
- 255,207,145,0,130,15,132,14,131,15,140,0,130,15,132,14,130,15,135,0,130,15,132,14,
- 131,15,1,0,130,15,132,14,131,15,1,0,130,15,145,14,132,15,139,0,1,252,130,15,
- 141,14,130,15,0,0,136,0,140,12,0,176,144,0,0,176,142,12,0,176,148,0,136,12,
- 143,0,136,12,137,0,0,240,135,12,132,0,0,240,136,12,131,0,0,240,148,12,0,176,
- 144,0,145,12,1,0,
-};
-static const jj_sprite jj_joyride_word = {210,55,jj_joyride_word_palette,jj_joyride_word_rows,jj_joyride_word_data,4};
-static const uint16_t jj_hero_palette[] = {
- 0x0,0xffff,0xffff,0xffff,0xffff,0xfffe,0xfffd,0xfff0,0xffdb,0xff79,0xffb4,0xff32,0xfeb5,0xee74,0xfeb0,0xfe10,0xfdaf,0xfd4c,0xfd0d,0xd591,0xb572,0xc4ef,0xfc2e,0xfc2b,
- 0xd44d,0xac4d,0xd3aa,0xdae8,0x9cd2,0x9c4e,0x9b6a,0x83ac,0x6350,0x8ac8,0x8246,0x5a88,0x3a4d,0xc0a3,0x61a5,0x5185,0x4903,0x31ca,0x2969,0x28e4,0x1861,0x20,0x5,0x0,
-};
-static const uint16_t jj_hero_rows[] = {
- 0,7,23,46,73,103,136,168,202,234,263,297,332,364,389,421,455,490,527,567,606,654,701,748,
- 795,843,891,939,986,1036,1088,1139,1189,1238,1286,1334,1377,1412,1449,1490,1533,1577,1625,1671,1712,1762,1817,1870,
- 1924,1976,2033,2093,2157,2220,2281,2343,2406,2462,2514,2559,2589,2618,2655,2690,2730,2762,2791,2821,2849,2885,2918,2968,
- 3016,3063,3104,3143,3184,3231,3281,3327,3379,3422,3466,3509,3550,3592,3632,3665,3697,3730,3761,3791,3820,3843,3865,3886,
- 3906,3926,3945,3964,3981,3997,4011,4023,4032,
-};
-static const uint8_t jj_hero_data[] = {
- 184,0,1,34,39,140,0,180,0,0,39,130,0,6,33,34,39,43,0,40,38,135,0,174,
- 0,17,34,34,38,39,0,43,34,33,39,44,38,33,34,39,44,43,33,39,134,0,174,0,
- 21,38,34,34,33,33,38,39,33,30,38,40,34,30,38,39,43,34,34,43,0,0,43,130,
- 0,172,0,26,34,34,39,38,39,38,33,33,34,38,33,30,34,38,30,33,39,40,34,33,
- 39,43,0,39,43,0,0,169,0,29,42,34,27,33,34,38,39,40,39,34,33,33,34,34,
- 30,30,34,33,30,38,39,34,30,38,40,40,34,43,0,0,170,0,28,38,34,38,38,34,
- 38,39,40,38,34,30,33,34,33,30,33,33,30,34,39,34,30,34,39,38,34,40,0,0,
- 168,0,30,34,34,38,40,39,38,34,34,38,38,39,38,33,30,33,33,30,33,33,30,33,
- 39,38,30,34,39,38,34,39,44,44,167,0,13,34,33,38,40,40,38,34,34,33,34,33,
- 33,38,38,133,33,11,30,33,39,38,33,34,39,38,34,40,43,43,166,0,1,34,34,132,
- 40,2,38,34,34,131,33,1,34,34,134,33,9,39,38,33,34,39,38,34,40,43,43,165,
- 0,1,39,34,132,40,2,39,38,34,130,38,0,39,130,40,0,39,131,34,5,33,34,39,
- 38,34,38,130,39,2,43,40,43,165,0,1,39,38,132,40,26,38,34,38,38,33,30,25,
- 25,30,33,38,40,43,40,39,38,38,39,39,38,39,40,40,43,43,40,43,164,0,2,39,
- 33,34,131,40,130,38,1,33,19,134,12,5,19,25,38,43,43,40,130,39,2,40,43,43,
- 130,40,0,43,164,0,2,39,38,38,131,40,3,38,34,25,15,138,12,4,19,33,43,44,
- 43,134,40,0,43,164,0,3,43,38,40,39,130,40,5,34,24,16,13,12,12,131,9,134,
- 12,5,15,30,39,43,44,44,130,43,1,40,43,163,0,3,34,34,33,38,130,40,12,39,
- 25,18,16,12,12,19,21,21,19,13,12,9,135,12,7,21,30,33,33,38,39,43,0,162,
- 0,4,33,26,30,38,34,130,40,13,38,24,24,16,12,12,34,40,38,34,33,30,25,13,
- 135,12,6,15,16,18,18,21,0,0,160,0,24,34,33,26,33,33,30,34,38,40,39,38,
- 30,18,19,12,12,13,24,30,34,38,34,34,38,25,135,12,5,16,21,24,16,30,0,158,
- 0,27,34,33,30,30,33,33,30,30,34,39,40,38,34,38,24,19,15,12,12,16,24,25,
- 30,38,38,34,38,33,134,12,5,15,16,24,16,30,0,156,0,20,34,30,26,30,30,33,
- 33,34,30,30,33,40,40,38,33,34,24,24,15,12,21,134,39,2,34,38,30,133,12,5,
- 15,24,25,19,30,0,154,0,6,34,33,26,30,33,33,34,130,0,23,34,17,34,40,40,
- 34,34,33,24,24,15,12,35,28,6,9,31,44,43,43,39,34,38,15,130,12,7,19,33,
- 34,34,38,34,30,0,151,0,6,34,34,33,33,34,33,34,134,0,5,30,33,40,40,34,
- 34,130,24,12,12,19,29,1,1,13,31,43,44,43,39,39,33,130,12,8,19,38,34,34,
- 38,34,34,38,0,150,0,4,34,33,34,38,38,135,0,35,34,33,38,33,40,40,34,34,
- 24,24,21,12,19,20,5,5,31,39,43,44,31,31,24,15,12,12,15,24,39,40,43,39,
- 24,16,35,0,149,0,3,34,33,38,38,136,0,17,27,14,12,16,34,40,39,34,33,24,
- 24,19,12,15,19,5,5,39,130,44,15,29,19,19,12,12,13,19,24,33,42,43,35,35,
- 19,0,0,148,0,3,38,26,26,38,136,0,37,40,15,9,13,8,15,34,40,38,30,24,
- 24,16,12,15,19,5,3,34,43,39,34,20,21,15,12,12,15,19,24,13,31,44,28,29,
- 25,0,0,148,0,3,34,26,30,34,136,0,23,34,12,25,30,19,8,15,38,38,30,24,
- 24,15,12,12,15,19,6,20,34,25,21,20,19,130,12,10,19,24,24,13,39,45,28,13,
- 30,0,0,147,0,0,34,130,26,1,33,38,135,0,11,35,13,30,24,33,25,9,30,40,
- 30,24,21,131,12,2,16,21,19,130,21,0,19,130,12,8,9,12,24,26,13,43,44,13,
- 13,130,0,147,0,1,34,26,130,30,0,34,134,0,12,35,29,13,19,21,38,33,8,21,
- 40,30,24,24,130,12,6,9,9,10,12,12,15,15,133,12,6,16,30,13,33,33,9,21,
- 130,0,148,0,5,26,33,30,30,33,34,132,0,21,39,13,29,20,13,13,33,33,12,12,
- 35,30,24,24,15,12,12,9,9,12,9,10,131,12,10,15,21,16,16,30,26,24,25,20,
- 9,25,130,0,148,0,130,33,4,30,33,30,34,34,130,0,36,29,13,31,35,12,12,13,
- 24,24,12,13,19,24,24,15,12,12,9,13,25,21,19,19,13,13,12,12,19,24,26,26,
- 19,15,16,24,16,30,130,0,148,0,3,33,33,30,34,131,30,17,34,38,43,35,20,29,
- 39,20,12,12,15,16,15,12,19,24,24,19,130,12,7,21,29,30,29,30,25,25,21,131,
- 19,6,16,13,12,12,15,16,33,130,0,148,0,5,33,30,33,33,30,33,130,30,2,34,
- 35,31,130,20,20,29,20,9,12,9,9,21,19,29,21,18,12,12,19,25,31,31,9,13,
- 20,21,132,25,130,21,3,19,16,16,33,130,0,149,0,132,33,35,34,33,30,33,9,19,
- 20,20,29,20,31,29,13,12,25,34,13,29,29,25,21,13,25,25,29,31,6,1,1,5,
- 6,9,13,19,21,25,130,29,2,21,16,35,130,0,150,0,21,30,30,34,33,34,33,34,
- 20,9,20,20,31,44,31,20,35,39,39,43,39,19,21,130,31,131,25,6,33,13,8,9,
- 8,9,6,130,5,5,6,6,13,31,25,21,131,0,151,0,20,30,33,33,34,33,34,9,
- 13,20,20,35,43,28,29,35,42,42,41,42,29,19,130,31,130,25,16,21,31,20,6,9,
- 8,6,9,8,9,6,9,6,19,31,25,29,131,0,152,0,15,34,30,34,34,31,8,19,
- 20,20,28,20,20,31,41,36,32,130,36,4,20,25,31,31,29,130,25,1,29,20,135,6,
- 5,8,9,29,31,25,35,131,0,154,0,3,33,33,28,9,132,20,3,28,35,35,28,131,
- 32,5,36,25,29,31,31,29,131,25,132,21,132,19,130,29,0,43,131,0,152,0,5,18,
- 0,0,34,13,12,132,20,3,29,35,39,36,132,32,5,36,31,29,29,31,29,132,25,130,
- 29,133,31,2,25,35,43,131,0,151,0,6,17,14,23,0,39,19,13,131,20,5,29,35,
- 39,39,32,28,132,32,6,36,41,35,31,31,29,29,134,25,0,29,130,31,2,29,31,41,
- 132,0,151,0,6,17,11,18,0,31,19,19,130,20,6,31,39,43,36,31,12,21,133,32,
- 0,41,130,36,4,35,35,31,31,29,131,25,0,29,131,31,1,41,42,132,0,151,0,17,
- 16,14,14,23,29,19,17,20,20,35,43,44,41,32,15,12,16,31,131,32,7,36,36,32,
- 36,36,28,32,32,130,35,0,31,132,35,130,41,0,43,132,0,151,0,18,14,11,10,16,
- 25,21,17,21,28,39,43,43,32,29,10,15,24,25,29,130,32,16,36,36,32,32,36,28,
- 28,41,42,32,36,32,32,41,41,36,42,130,36,0,42,132,0,150,0,20,23,11,10,6,
- 10,25,15,17,26,31,39,39,42,32,20,10,16,24,24,32,36,130,32,131,36,14,32,36,
- 41,43,41,43,36,28,41,41,36,41,36,36,41,133,0,150,0,18,18,11,10,1,9,31,
- 15,17,26,39,39,35,32,32,20,10,15,24,30,137,36,1,28,32,130,43,8,36,32,41,
- 41,42,36,36,41,35,133,0,145,0,0,22,131,0,20,18,10,10,6,35,31,31,17,26,
- 39,43,29,28,32,20,10,16,16,24,33,42,132,36,1,32,36,130,28,11,43,43,32,28,
- 32,36,36,41,41,42,42,33,133,0,144,0,2,23,14,18,130,0,21,18,10,9,20,35,
- 28,35,30,17,38,43,29,28,32,20,10,16,16,24,33,42,41,130,36,18,41,36,36,32,
- 32,42,43,36,28,28,32,41,36,42,42,33,33,24,25,132,0,144,0,9,18,14,14,23,
- 0,0,18,10,8,29,130,31,12,42,35,30,38,29,20,32,28,10,12,16,24,30,130,41,
- 1,36,36,131,42,2,43,43,42,131,32,7,41,42,41,33,30,33,25,25,132,0,144,0,
- 37,23,14,11,15,23,0,18,9,9,20,29,35,39,35,31,35,38,31,13,36,28,10,10,
- 12,16,24,31,35,35,36,41,42,41,42,42,43,43,41,131,32,7,42,42,35,30,33,33,
- 30,30,132,0,145,0,11,14,10,10,18,23,17,8,9,9,20,35,39,130,31,10,35,35,
- 9,39,31,10,10,12,16,25,29,130,35,2,41,42,42,131,43,131,32,9,36,42,41,41,
- 35,30,33,33,35,43,131,0,139,0,0,18,132,0,30,15,10,6,9,22,18,9,6,13,
- 9,31,39,35,35,31,29,31,13,35,30,10,10,12,16,30,31,28,35,35,41,42,131,43,
- 0,42,132,32,9,42,42,41,35,30,30,39,43,39,43,130,0,138,0,18,18,14,15,18,
- 18,0,0,16,10,5,1,9,23,10,8,31,20,20,31,130,35,15,31,39,13,29,29,10,
- 12,12,24,30,38,35,35,41,41,42,131,43,131,32,4,28,32,41,41,36,130,33,3,35,
- 39,35,39,130,0,138,0,1,18,14,130,11,14,16,23,18,10,5,4,1,12,14,6,20,
- 31,20,20,29,130,35,17,39,20,19,25,10,15,18,15,24,26,30,35,41,42,43,43,42,
- 42,130,32,16,28,28,32,41,41,36,41,31,29,34,35,31,35,39,44,0,0,138,0,33,
- 23,15,11,10,8,9,11,18,11,6,2,4,1,9,6,9,9,29,28,20,20,29,31,31,
- 29,13,25,10,13,19,25,13,15,24,130,36,20,42,41,32,28,32,32,28,32,41,42,42,
- 36,36,35,31,30,33,39,35,35,43,130,0,139,0,32,17,11,10,5,2,5,12,14,6,
- 2,4,4,1,6,13,8,13,31,35,31,28,20,20,28,13,25,12,15,13,19,25,21,31,
- 131,36,19,42,35,36,41,32,41,42,41,36,41,42,31,31,35,33,29,30,30,35,33,130,
- 0,137,0,33,23,23,18,11,10,6,2,2,5,15,8,1,4,1,4,1,9,13,13,31,
- 35,35,29,20,20,35,28,20,25,15,19,19,24,41,131,36,14,42,39,35,42,32,36,41,
- 36,41,36,41,0,35,31,35,131,31,1,29,35,130,0,136,0,12,18,15,14,16,15,10,
- 9,4,4,1,12,10,4,130,1,8,4,1,9,13,13,28,20,9,8,131,20,14,29,25,
- 25,30,36,36,32,36,41,35,31,35,35,42,36,131,41,0,36,130,0,7,35,35,29,30,
- 33,33,35,40,130,0,135,0,27,23,14,11,10,10,15,11,10,8,1,4,6,10,6,1,
- 4,1,1,4,1,5,8,9,6,5,9,9,6,131,1,6,13,29,36,41,36,42,41,131,
- 35,1,42,41,131,36,0,42,132,0,131,35,132,0,135,0,2,23,18,14,130,10,9,14,
- 11,10,6,1,4,8,8,1,4,130,1,0,4,131,1,0,3,130,1,9,4,1,4,4,
- 3,20,29,42,39,43,130,28,6,31,35,42,42,36,36,35,143,0,136,0,12,23,18,14,
- 10,10,14,11,10,9,5,1,6,6,134,1,130,4,0,1,130,4,130,1,6,4,1,13,
- 29,35,39,32,131,28,5,35,39,31,25,25,33,143,0,137,0,11,22,18,16,11,14,14,
- 11,10,8,5,4,5,145,1,3,4,1,9,20,137,28,2,25,33,33,142,0,138,0,130,
- 23,6,17,14,11,10,10,6,4,147,1,3,4,1,1,13,136,28,4,30,30,25,30,33,
- 140,0,135,0,13,23,23,18,17,15,11,12,9,8,8,6,5,5,4,147,1,3,4,4,
- 5,9,135,28,0,30,130,29,3,25,30,30,33,137,0,133,0,7,18,16,11,10,8,6,
- 5,4,133,1,0,4,152,1,0,9,132,28,0,20,130,29,0,30,130,29,2,25,30,33,
- 136,0,130,0,5,18,15,14,11,10,6,130,1,1,2,2,131,4,153,1,8,3,3,5,
- 9,20,20,13,6,6,130,13,1,30,30,130,29,1,25,30,136,0,130,0,9,17,11,11,
- 10,10,6,2,2,1,4,162,1,8,5,5,1,1,6,10,10,11,24,130,25,1,30,26,
- 137,0,131,0,11,16,14,11,11,10,8,6,5,4,1,4,5,162,1,8,5,8,11,15,
- 16,14,14,24,26,139,0,132,0,0,18,130,14,8,11,11,10,8,9,8,5,1,4,157,
- 1,130,4,6,5,12,15,15,14,16,18,141,0,133,0,2,22,18,15,130,14,3,15,10,
- 6,4,130,1,0,4,158,1,5,5,5,8,15,23,23,142,0,135,0,0,22,130,18,8,
- 12,5,2,1,1,5,6,5,4,142,1,0,4,136,1,10,4,1,8,9,5,1,4,1,
- 6,15,23,142,0,136,0,2,23,16,6,130,1,6,6,8,5,5,1,4,4,151,1,11,
- 4,1,8,14,11,8,1,4,1,6,15,23,141,0,134,0,6,23,18,14,8,1,5,8,
- 130,10,6,8,5,1,4,1,4,4,132,1,9,4,4,1,1,4,1,8,6,1,4,135,
- 1,11,4,6,10,14,14,10,5,2,4,6,16,23,140,0,133,0,2,23,16,11,130,10,
- 6,14,15,11,11,10,6,4,130,1,1,4,4,136,1,5,4,1,6,12,2,4,134,1,
- 12,4,6,8,10,10,16,16,10,8,9,8,10,23,140,0,133,0,10,22,15,14,14,16,
- 17,16,14,14,12,6,138,1,0,4,131,1,6,4,4,1,12,8,1,4,132,1,2,4,
- 6,8,130,10,3,11,17,18,16,130,14,0,18,140,0,134,0,131,23,3,14,14,16,12,
- 142,1,9,5,5,1,1,2,2,9,9,1,4,130,1,3,5,5,6,8,132,10,1,14,
- 18,130,23,1,22,22,140,0,137,0,7,15,15,16,9,1,2,4,4,135,1,17,4,4,
- 6,4,5,10,10,8,5,6,12,12,1,4,1,4,5,8,135,10,1,11,16,145,0,137,
- 0,7,17,16,6,1,2,6,6,5,133,1,20,4,5,4,6,11,10,8,14,14,11,10,
- 10,16,12,1,4,4,5,6,10,11,135,10,0,14,145,0,136,0,8,23,13,4,1,5,
- 9,9,6,4,131,1,10,5,6,5,6,1,9,15,11,10,11,18,130,17,10,18,6,1,
- 1,5,6,6,12,11,10,11,133,10,1,14,23,144,0,135,0,7,23,12,1,1,6,10,
- 9,5,131,1,27,4,1,9,9,6,5,2,9,17,16,14,16,11,12,13,12,5,1,5,
- 8,8,6,6,12,17,11,14,14,130,11,130,14,0,23,144,0,134,0,7,23,12,1,1,
- 8,14,10,5,133,1,1,4,12,130,6,6,1,12,15,14,15,11,6,131,1,10,4,9,
- 10,10,6,6,8,16,18,16,16,132,14,0,16,145,0,133,0,8,23,16,10,8,10,16,
- 11,6,4,131,1,18,4,1,6,12,5,8,9,10,17,14,6,5,4,1,5,2,4,4,
- 5,130,10,3,8,6,6,11,130,23,5,22,18,18,17,17,23,145,0,133,0,7,18,14,
- 11,11,17,14,9,5,132,1,26,4,1,9,12,4,9,16,18,16,10,1,2,2,4,4,
- 1,4,1,6,10,10,11,8,6,6,10,18,153,0,132,0,0,22,130,14,4,18,16,15,
- 8,4,131,1,12,4,2,5,14,9,5,10,18,16,11,8,4,4,131,1,10,4,1,9,
- 10,10,11,12,6,8,8,18,153,0,133,0,7,18,18,23,0,23,12,5,2,130,1,11,
- 4,1,5,10,15,6,6,14,18,11,9,4,132,1,11,5,4,6,11,10,10,11,14,8,
- 8,10,17,153,0,137,0,35,18,9,5,4,1,1,4,1,5,9,11,15,5,8,16,17,
- 10,6,1,1,4,4,1,5,5,4,9,14,11,10,14,18,11,10,11,17,153,0,136,0,
- 36,23,11,10,5,1,4,1,1,6,10,11,16,15,6,10,18,15,8,2,1,4,4,1,
- 6,6,5,5,14,17,14,14,18,0,18,14,15,18,153,0,136,0,30,18,11,10,4,4,
- 1,5,8,10,11,15,18,11,10,11,18,11,5,2,1,5,4,5,8,6,5,8,18,23,
- 17,18,130,0,0,22,155,0,136,0,27,23,11,6,2,4,5,10,10,11,18,23,18,11,
- 11,15,18,10,6,4,5,5,1,8,10,6,5,12,23,162,0,136,0,26,16,8,1,4,
- 1,9,11,14,18,23,0,18,14,15,23,18,10,9,8,5,1,5,10,10,8,8,16,163,
- 0,135,0,27,23,9,1,4,1,8,14,18,22,23,0,0,17,14,18,0,18,11,10,8,
- 1,4,8,12,14,8,11,23,163,0,134,0,7,23,12,4,4,2,5,11,18,132,0,14,
- 16,14,23,0,0,16,8,4,4,6,8,12,16,10,18,164,0,134,0,6,18,6,1,4,
- 4,10,18,133,0,14,17,18,0,0,23,12,6,5,5,8,9,16,18,16,23,164,0,133,
- 0,6,23,9,1,2,4,10,17,134,0,13,23,23,0,0,18,8,5,4,6,8,11,23,
- 22,22,165,0,132,0,6,23,15,4,2,1,10,18,138,0,7,23,12,6,4,5,8,10,
- 18,168,0,132,0,5,18,10,1,1,10,17,138,0,7,23,15,6,4,4,6,9,18,169,
- 0,131,0,5,23,11,10,9,10,16,139,0,6,18,8,5,2,6,8,16,170,0,131,0,
- 4,17,11,10,10,16,139,0,6,23,9,4,2,5,8,16,171,0,130,0,4,23,14,14,
- 11,16,140,0,6,12,4,2,5,8,14,23,171,0,130,0,3,17,14,14,17,140,0,6,
- 16,6,1,2,8,11,23,172,0,5,0,0,23,14,14,16,140,0,6,23,9,1,2,6,
- 11,18,173,0,4,0,0,17,11,16,141,0,5,16,10,8,8,11,18,174,0,3,0,23,
- 11,16,141,0,5,18,14,14,11,11,18,175,0,2,0,17,14,142,0,4,15,14,14,15,
- 18,176,0,1,22,18,142,0,3,18,11,15,16,178,0,0,23,143,0,1,18,15,180,0,
-};
-static const jj_sprite jj_hero = {72,104,jj_hero_palette,jj_hero_rows,jj_hero_data,8};
-static const uint16_t jj_barry_0_rows[] = {
- 0,2,4,6,8,10,12,14,26,39,51,64,79,96,108,122,136,151,166,187,207,226,244,261,
- 271,288,308,328,349,372,394,416,435,446,458,470,481,490,492,494,496,
-};
-static const uint8_t jj_barry_0_data[] = {
- 155,0,155,0,155,0,155,0,155,0,155,0,155,0,140,0,2,17,0,17,133,0,0,17,
- 132,0,140,0,2,10,17,10,133,17,1,10,17,131,0,140,0,0,17,135,15,2,10,15,
- 17,130,0,140,0,131,17,131,21,3,17,10,15,21,130,0,140,0,130,17,2,21,21,24,
- 131,21,1,17,21,130,0,139,0,1,24,17,130,21,0,17,131,24,2,21,21,24,130,0,
- 139,0,0,24,132,21,131,2,0,14,132,0,139,0,0,24,132,21,4,2,14,21,21,14,
- 132,0,139,0,0,24,131,21,2,24,5,5,130,14,132,0,139,0,9,24,21,24,21,24,
- 5,5,21,21,14,133,0,139,0,9,24,24,2,24,21,5,21,4,31,21,133,0,132,0,
- 1,26,29,132,0,10,24,2,5,14,14,5,2,4,31,5,10,132,0,133,0,1,27,27,
- 132,0,4,14,2,5,14,6,130,2,1,5,10,132,0,133,0,0,22,133,0,9,24,14,
- 2,11,6,2,2,6,10,14,132,0,133,0,0,22,133,0,8,24,24,14,16,11,6,6,
- 16,16,133,0,133,0,0,27,134,0,7,24,14,14,16,6,6,11,16,133,0,130,0,2,
- 22,22,29,130,22,146,0,6,0,0,22,22,27,16,22,131,27,1,0,0,130,25,139,0,
- 16,8,13,19,27,4,7,16,3,27,27,22,0,25,18,18,25,25,138,0,130,8,14,7,
- 4,4,7,19,16,7,22,25,18,28,18,28,25,28,137,0,130,8,15,27,4,7,16,3,
- 27,27,25,18,25,18,12,25,28,11,31,136,0,19,23,19,19,29,23,23,3,9,0,0,
- 25,18,18,28,18,12,18,25,5,14,135,0,1,0,9,131,23,3,20,20,0,0,130,18,
- 6,25,28,12,12,18,2,2,135,0,3,0,0,20,3,130,20,2,9,0,0,131,28,5,
- 25,28,18,25,5,5,135,0,131,0,3,20,20,23,23,130,0,1,28,25,132,28,1,14,
- 14,135,0,138,0,5,31,28,25,18,18,28,138,0,137,0,1,31,31,130,28,1,18,28,
- 138,0,137,0,6,31,31,28,25,18,25,28,138,0,137,0,5,31,31,0,18,25,28,139,
- 0,140,0,3,31,31,22,31,138,0,155,0,155,0,155,0,
-};
-static const jj_sprite jj_barry_0 = {28,40,jj_barry_palette_0,jj_barry_0_rows,jj_barry_0_data,8};
-static const uint16_t jj_barry_1_rows[] = {
- 0,2,4,6,8,10,12,26,41,56,71,88,105,117,131,146,161,176,192,212,231,248,260,266,
- 284,304,326,348,370,394,411,431,451,466,475,481,483,485,487,489,491,
-};
-static const uint8_t jj_barry_1_data[] = {
- 155,0,155,0,155,0,155,0,155,0,155,0,142,0,0,17,130,0,0,17,130,0,0,17,
- 131,0,140,0,0,10,132,15,0,10,130,15,1,10,17,130,0,140,0,0,24,130,17,131,
- 21,3,17,10,15,21,130,0,140,0,130,17,2,21,21,24,131,21,1,17,21,130,0,139,
- 0,1,24,17,130,21,0,17,131,24,2,21,21,24,130,0,139,0,0,24,130,21,7,17,
- 17,5,2,5,5,24,24,131,0,139,0,0,24,132,21,131,2,0,14,132,0,139,0,0,
- 24,131,21,2,24,5,5,130,14,132,0,139,0,9,24,21,24,21,24,5,5,21,21,14,
- 133,0,139,0,9,24,24,2,24,21,5,21,4,31,21,133,0,139,0,9,24,2,5,5,
- 14,5,5,4,31,14,133,0,139,0,10,24,2,5,14,14,5,2,4,31,5,10,132,0,
- 132,0,1,26,29,133,0,9,24,14,2,11,6,2,2,6,10,14,132,0,133,0,1,27,
- 27,132,0,8,24,24,14,16,11,6,6,16,16,133,0,133,0,0,22,134,0,7,24,14,
- 14,16,6,6,11,16,133,0,133,0,0,22,135,0,130,14,130,16,134,0,133,0,0,27,
- 148,0,130,0,2,22,22,29,130,22,130,0,4,25,18,18,25,25,138,0,6,0,0,22,
- 22,27,16,22,131,27,6,25,18,25,28,25,28,28,137,0,18,8,13,19,27,4,7,16,
- 3,27,27,25,18,18,28,18,18,25,11,31,136,0,130,8,6,7,4,4,7,19,16,28,
- 130,18,6,28,18,12,18,25,14,14,135,0,130,8,16,27,4,7,16,3,27,27,28,18,
- 18,25,28,12,12,18,2,5,135,0,20,23,19,19,29,23,23,3,9,0,0,28,28,18,
- 25,25,28,28,18,5,5,14,134,0,1,0,9,131,23,1,20,20,130,0,134,28,1,14,
- 14,135,0,3,0,0,20,3,130,20,7,9,0,0,28,28,18,18,25,132,28,135,0,131,
- 0,5,20,20,23,23,0,28,130,18,1,25,25,132,28,0,31,134,0,135,0,4,22,31,
- 25,25,28,132,0,1,28,31,135,0,135,0,3,22,31,28,28,143,0,135,0,0,31,146,
- 0,155,0,155,0,155,0,155,0,155,0,
-};
-static const jj_sprite jj_barry_1 = {28,40,jj_barry_palette_0,jj_barry_1_rows,jj_barry_1_data,8};
-static const uint16_t jj_barry_2_rows[] = {
- 0,2,4,6,8,10,12,14,26,39,51,64,79,96,108,122,136,151,166,187,207,226,244,261,
- 271,288,306,325,346,369,391,413,432,442,453,464,475,485,487,489,491,
-};
-static const uint8_t jj_barry_2_data[] = {
- 155,0,155,0,155,0,155,0,155,0,155,0,155,0,140,0,2,17,0,17,133,0,0,17,
- 132,0,140,0,2,10,17,10,133,17,1,10,17,131,0,140,0,0,17,135,15,2,10,15,
- 17,130,0,140,0,131,17,131,21,3,17,10,15,21,130,0,140,0,130,17,2,21,21,24,
- 131,21,1,17,21,130,0,139,0,1,24,17,130,21,0,17,131,24,2,21,21,24,130,0,
- 139,0,0,24,132,21,131,2,0,14,132,0,139,0,0,24,132,21,4,2,14,21,21,14,
- 132,0,139,0,0,24,131,21,2,24,5,5,130,14,132,0,139,0,9,24,21,24,21,24,
- 5,5,21,21,14,133,0,139,0,9,24,24,2,24,21,5,21,4,31,21,133,0,132,0,
- 1,26,29,132,0,10,24,2,5,14,14,5,2,4,31,5,10,132,0,133,0,1,27,27,
- 132,0,4,14,2,5,14,6,130,2,1,5,10,132,0,133,0,0,22,133,0,9,24,14,
- 2,11,6,2,2,6,10,14,132,0,133,0,0,22,133,0,8,24,24,14,16,11,6,6,
- 16,16,133,0,133,0,0,27,134,0,7,24,14,14,16,6,6,11,16,133,0,130,0,2,
- 22,22,29,130,22,146,0,6,0,0,22,22,27,16,22,131,27,3,0,0,25,25,140,0,
- 12,8,13,19,27,4,7,16,3,27,27,22,0,25,130,18,139,0,130,8,13,7,4,4,
- 7,19,16,7,22,25,18,28,18,28,25,138,0,130,8,15,27,4,7,16,3,27,27,25,
- 18,25,18,12,25,28,11,31,136,0,19,23,19,19,29,23,23,3,9,0,0,25,18,18,
- 28,18,12,18,25,5,14,135,0,1,0,9,131,23,3,20,20,0,0,130,18,6,25,28,
- 12,12,18,2,2,135,0,3,0,0,20,3,130,20,2,9,0,0,131,28,5,25,28,18,
- 25,5,5,135,0,131,0,3,20,20,23,23,130,0,1,28,25,132,28,1,14,14,135,0,
- 139,0,4,28,25,18,18,28,138,0,138,0,0,31,130,18,1,25,28,138,0,137,0,5,
- 31,22,25,18,18,28,139,0,137,0,1,31,22,130,28,0,31,139,0,137,0,2,31,31,
- 0,131,31,138,0,155,0,155,0,155,0,
-};
-static const jj_sprite jj_barry_2 = {28,40,jj_barry_palette_0,jj_barry_2_rows,jj_barry_2_data,8};
-static const uint16_t jj_barry_3_rows[] = {
- 0,2,4,6,8,10,12,23,38,55,71,84,99,112,125,140,155,170,186,207,225,241,255,261,
- 278,298,321,344,367,389,410,431,451,466,477,479,481,483,485,487,489,
-};
-static const uint8_t jj_barry_3_data[] = {
- 155,0,155,0,155,0,155,0,155,0,155,0,142,0,1,17,17,134,0,0,17,130,0,140,
- 0,1,21,10,132,15,0,10,130,15,0,10,130,0,140,0,1,24,24,130,17,6,21,21,
- 17,21,15,10,15,130,0,140,0,6,24,17,21,17,21,21,24,131,21,0,17,130,0,140,
- 0,1,21,17,130,21,131,24,130,21,130,0,140,0,131,21,7,17,24,5,2,5,14,24,
- 24,130,0,140,0,132,21,0,24,130,2,1,5,14,131,0,140,0,132,21,5,14,5,5,
- 14,21,14,131,0,140,0,9,21,21,24,21,24,5,5,21,21,14,132,0,140,0,9,21,
- 24,2,24,21,2,21,4,31,14,132,0,140,0,9,24,2,14,5,14,2,5,1,31,14,
- 132,0,140,0,10,24,2,5,14,14,2,2,1,31,10,10,131,0,132,0,1,26,29,133,
- 0,10,24,24,2,2,11,6,2,6,6,10,14,131,0,133,0,1,27,27,133,0,3,24,
- 14,14,16,130,6,0,16,133,0,133,0,0,22,135,0,6,24,14,14,11,6,6,11,133,
- 0,133,0,0,22,135,0,2,24,14,14,131,16,133,0,133,0,0,27,148,0,130,0,2,
- 22,22,29,130,22,131,0,130,18,1,25,25,137,0,6,0,0,22,22,27,16,22,131,27,
- 6,0,25,28,18,28,25,28,137,0,19,8,13,19,27,4,7,16,3,27,27,22,25,25,
- 18,12,25,28,11,28,31,135,0,130,8,17,7,4,4,7,19,16,7,25,18,25,18,12,
- 18,25,25,14,17,17,134,0,130,8,17,27,4,7,16,3,27,27,28,25,18,28,18,12,
- 18,25,5,14,17,134,0,7,23,19,19,29,23,23,3,9,130,0,130,28,5,25,28,18,
- 25,5,5,135,0,1,0,9,131,23,3,20,20,0,0,130,28,0,25,131,28,1,14,14,
- 135,0,3,0,0,20,3,130,20,1,9,0,132,28,5,25,18,25,25,28,28,135,0,131,
- 0,6,20,20,23,23,31,25,25,131,28,0,25,131,18,0,31,134,0,135,0,0,31,130,
- 28,132,0,3,28,25,31,31,134,0,135,0,0,31,136,0,1,31,31,135,0,155,0,155,
- 0,155,0,155,0,155,0,155,0,
-};
-static const jj_sprite jj_barry_3 = {28,40,jj_barry_palette_0,jj_barry_3_rows,jj_barry_3_data,8};
-static const uint16_t jj_barry_4_rows[] = {
- 0,2,4,6,8,10,16,27,41,58,70,86,102,118,131,146,163,180,196,215,234,248,254,260,
- 276,297,320,343,366,389,409,429,444,452,460,467,474,480,482,484,486,
-};
-static const uint8_t jj_barry_4_data[] = {
- 155,0,155,0,155,0,155,0,155,0,147,0,0,17,134,0,140,0,130,21,131,17,1,15,
- 21,133,0,138,0,4,21,10,15,15,17,132,21,0,24,133,0,137,0,11,21,15,15,17,
- 17,21,21,24,21,24,21,24,133,0,137,0,2,10,17,17,130,21,132,24,134,0,137,0,
- 10,21,17,17,21,21,24,14,2,5,14,24,134,0,137,0,6,21,17,21,17,21,24,5,
- 130,2,0,14,134,0,137,0,10,21,21,17,21,21,24,2,14,21,5,14,134,0,137,0,
- 132,21,5,14,5,5,21,21,14,134,0,137,0,130,21,7,24,21,5,5,21,4,31,14,
- 134,0,137,0,11,21,21,24,2,24,5,2,5,1,31,10,10,133,0,137,0,11,24,24,
- 2,14,5,5,2,2,1,31,2,10,133,0,137,0,5,24,24,2,5,14,5,131,2,1,
- 10,14,133,0,132,0,1,26,29,131,0,4,24,24,2,2,11,131,6,0,16,134,0,133,
- 0,1,27,27,131,0,4,24,14,14,16,11,130,6,0,16,134,0,133,0,0,22,133,0,
- 2,24,14,14,131,16,135,0,133,0,0,22,148,0,133,0,0,27,148,0,130,0,2,22,
- 22,29,130,22,131,0,2,18,18,25,139,0,6,0,0,22,22,27,16,22,131,27,7,0,
- 28,25,12,25,28,11,31,136,0,19,8,13,19,27,4,7,16,3,27,27,22,0,28,28,
- 18,18,25,25,14,14,135,0,130,8,17,7,4,4,7,19,16,7,22,0,28,28,18,12,
- 18,18,5,2,14,134,0,130,8,4,27,4,7,16,3,130,27,9,0,28,25,28,18,12,
- 12,2,2,14,134,0,7,23,19,19,29,23,23,3,9,130,0,3,28,25,18,25,130,28,
- 1,14,14,135,0,1,0,9,131,23,1,20,20,130,0,6,28,18,28,18,25,25,28,137,
- 0,3,0,0,20,3,130,20,0,9,131,0,5,28,25,28,18,25,28,137,0,131,0,3,
- 20,20,23,23,132,0,130,18,0,28,138,0,140,0,2,18,18,28,139,0,140,0,2,18,
- 18,28,139,0,140,0,1,31,31,140,0,140,0,1,31,22,140,0,141,0,0,31,140,0,
- 155,0,155,0,155,0,
-};
-static const jj_sprite jj_barry_4 = {28,40,jj_barry_palette_0,jj_barry_4_rows,jj_barry_4_data,8};
-static const uint16_t jj_barry_5_rows[] = {
- 0,2,4,6,8,14,25,38,51,68,80,96,112,125,138,153,170,187,203,222,241,255,261,267,
- 283,304,327,350,373,396,416,436,451,459,467,474,481,487,489,491,493,
-};
-static const uint8_t jj_barry_5_data[] = {
- 155,0,155,0,155,0,155,0,147,0,0,17,134,0,143,0,5,17,17,0,0,10,17,133,
- 0,140,0,130,21,5,17,15,17,17,10,17,133,0,137,0,5,21,21,10,15,15,17,133,
- 21,133,0,137,0,11,10,15,15,17,17,21,21,24,21,24,21,24,133,0,137,0,2,21,
- 17,17,130,21,133,24,133,0,137,0,10,21,17,17,21,17,24,14,2,5,14,24,134,0,
- 137,0,1,21,17,130,21,1,24,5,130,2,0,14,134,0,137,0,132,21,5,24,2,14,
- 21,5,14,134,0,137,0,132,21,5,14,5,5,21,21,14,134,0,137,0,130,21,7,24,
- 21,5,5,21,4,31,14,134,0,137,0,11,21,21,24,2,24,5,2,5,1,31,10,10,
- 133,0,137,0,11,24,24,2,14,5,5,2,2,1,31,2,10,133,0,137,0,5,24,24,
- 2,5,14,5,131,2,1,10,14,133,0,132,0,1,26,29,131,0,4,24,24,2,2,11,
- 131,6,0,16,134,0,133,0,1,27,27,131,0,4,24,14,14,16,11,130,6,0,16,134,
- 0,133,0,0,22,133,0,2,24,14,14,131,16,135,0,133,0,0,22,148,0,133,0,0,
- 27,148,0,130,0,2,22,22,29,130,22,131,0,2,18,18,25,139,0,6,0,0,22,22,
- 27,16,22,131,27,7,0,28,25,12,25,28,11,31,136,0,19,8,13,19,27,4,7,16,
- 3,27,27,22,0,28,28,18,18,25,25,14,14,135,0,130,8,17,7,4,4,7,19,16,
- 7,22,0,28,28,18,12,18,18,5,2,14,134,0,130,8,4,27,4,7,16,3,130,27,
- 9,0,28,25,28,18,12,12,2,2,14,134,0,7,23,19,19,29,23,23,3,9,130,0,
- 3,28,25,18,25,130,28,1,14,14,135,0,1,0,9,131,23,1,20,20,130,0,6,28,
- 18,28,18,25,25,28,137,0,3,0,0,20,3,130,20,0,9,131,0,5,28,25,28,18,
- 25,28,137,0,131,0,3,20,20,23,23,132,0,130,18,0,28,138,0,140,0,2,18,18,
- 28,139,0,140,0,2,18,18,28,139,0,140,0,1,31,31,140,0,140,0,1,31,22,140,
- 0,141,0,0,31,140,0,155,0,155,0,155,0,
-};
-static const jj_sprite jj_barry_5 = {28,40,jj_barry_palette_0,jj_barry_5_rows,jj_barry_5_data,8};
-static const uint16_t jj_barry_6_rows[] = {
- 0,2,4,6,8,10,20,30,42,57,70,86,102,115,128,143,160,177,193,212,231,245,251,257,
- 273,294,317,340,363,386,406,426,441,449,457,464,471,477,479,481,483,
-};
-static const uint8_t jj_barry_6_data[] = {
- 155,0,155,0,155,0,155,0,155,0,144,0,0,17,130,0,0,17,133,0,140,0,130,21,
- 132,17,0,10,133,0,138,0,4,21,10,15,15,17,133,21,133,0,137,0,7,21,15,15,
- 17,17,21,21,24,131,21,133,0,137,0,5,10,15,17,17,21,21,133,24,133,0,137,0,
- 10,21,17,17,21,21,24,14,2,5,14,24,134,0,137,0,1,21,17,130,21,1,24,5,
- 130,2,0,14,134,0,137,0,132,21,5,24,2,14,21,5,14,134,0,137,0,132,21,5,
- 14,5,5,21,21,14,134,0,137,0,130,21,7,24,21,5,5,21,4,31,14,134,0,137,
- 0,11,21,21,24,2,24,5,2,5,1,31,10,10,133,0,137,0,11,24,24,2,14,5,
- 5,2,2,1,31,2,10,133,0,137,0,5,24,24,2,5,14,5,131,2,1,10,14,133,
- 0,132,0,1,26,29,131,0,4,24,24,2,2,11,131,6,0,16,134,0,133,0,1,27,
- 27,131,0,4,24,14,14,16,11,130,6,0,16,134,0,133,0,0,22,133,0,2,24,14,
- 14,131,16,135,0,133,0,0,22,148,0,133,0,0,27,148,0,130,0,2,22,22,29,130,
- 22,131,0,2,18,18,25,139,0,6,0,0,22,22,27,16,22,131,27,7,0,28,25,12,
- 25,28,11,31,136,0,19,8,13,19,27,4,7,16,3,27,27,22,0,28,28,18,18,25,
- 25,14,14,135,0,130,8,17,7,4,4,7,19,16,7,22,0,28,28,18,12,18,18,5,
- 2,14,134,0,130,8,4,27,4,7,16,3,130,27,9,0,28,25,28,18,12,12,2,2,
- 14,134,0,7,23,19,19,29,23,23,3,9,130,0,3,28,25,18,25,130,28,1,14,14,
- 135,0,1,0,9,131,23,1,20,20,130,0,6,28,18,28,18,25,25,28,137,0,3,0,
- 0,20,3,130,20,0,9,131,0,5,28,25,28,18,25,28,137,0,131,0,3,20,20,23,
- 23,132,0,130,18,0,28,138,0,140,0,2,18,18,28,139,0,140,0,2,18,18,28,139,
- 0,140,0,1,31,31,140,0,140,0,1,31,22,140,0,141,0,0,31,140,0,155,0,155,
- 0,155,0,
-};
-static const jj_sprite jj_barry_6 = {28,40,jj_barry_palette_0,jj_barry_6_rows,jj_barry_6_data,8};
-static const uint16_t jj_barry_7_rows[] = {
- 0,2,4,6,8,10,19,31,43,57,69,84,100,113,126,141,158,175,191,210,229,243,249,255,
- 271,292,315,338,361,384,404,424,439,447,455,462,469,475,477,479,481,
-};
-static const uint8_t jj_barry_7_data[] = {
- 155,0,155,0,155,0,155,0,155,0,145,0,3,17,0,17,17,133,0,141,0,1,21,21,
- 131,17,1,10,17,133,0,138,0,0,21,130,15,0,17,133,21,133,0,137,0,0,21,130,
- 15,0,17,133,21,0,24,133,0,137,0,2,10,15,15,130,21,133,24,133,0,137,0,0,
- 21,131,17,5,24,14,2,5,14,24,134,0,137,0,6,21,17,21,17,21,24,5,130,2,
- 0,14,134,0,137,0,132,21,5,24,2,14,21,5,14,134,0,137,0,132,21,5,14,5,
- 5,21,21,14,134,0,137,0,130,21,7,24,21,5,5,21,4,31,14,134,0,137,0,11,
- 21,21,24,2,24,5,2,5,1,31,10,10,133,0,137,0,11,24,24,2,14,5,5,2,
- 2,1,31,2,10,133,0,137,0,5,24,24,2,5,14,5,131,2,1,10,14,133,0,132,
- 0,1,26,29,131,0,4,24,24,2,2,11,131,6,0,16,134,0,133,0,1,27,27,131,
- 0,4,24,14,14,16,11,130,6,0,16,134,0,133,0,0,22,133,0,2,24,14,14,131,
- 16,135,0,133,0,0,22,148,0,133,0,0,27,148,0,130,0,2,22,22,29,130,22,131,
- 0,2,18,18,25,139,0,6,0,0,22,22,27,16,22,131,27,7,0,28,25,12,25,28,
- 11,31,136,0,19,8,13,19,27,4,7,16,3,27,27,22,0,28,28,18,18,25,25,14,
- 14,135,0,130,8,17,7,4,4,7,19,16,7,22,0,28,28,18,12,18,18,5,2,14,
- 134,0,130,8,4,27,4,7,16,3,130,27,9,0,28,25,28,18,12,12,2,2,14,134,
- 0,7,23,19,19,29,23,23,3,9,130,0,3,28,25,18,25,130,28,1,14,14,135,0,
- 1,0,9,131,23,1,20,20,130,0,6,28,18,28,18,25,25,28,137,0,3,0,0,20,
- 3,130,20,0,9,131,0,5,28,25,28,18,25,28,137,0,131,0,3,20,20,23,23,132,
- 0,130,18,0,28,138,0,140,0,2,18,18,28,139,0,140,0,2,18,18,28,139,0,140,
- 0,1,31,31,140,0,140,0,1,31,22,140,0,141,0,0,31,140,0,155,0,155,0,155,
- 0,
-};
-static const jj_sprite jj_barry_7 = {28,40,jj_barry_palette_0,jj_barry_7_rows,jj_barry_7_data,8};
-static const uint16_t jj_coin_0_palette[] = {
- 0x0,0xff93,0xff52,0xff0f,0xfece,0xfe6c,0xee0b,0xedaa,0xdd49,0xd4e9,0xcc66,0xbbe5,0xb384,0x92c1,0x8180,0x2820,
-};
-static const uint16_t jj_coin_0_rows[] = {
- 0,8,17,24,31,38,45,52,60,67,74,82,
-};
-static const uint8_t jj_coin_0_data[] = {
- 130,0,4,200,137,176,130,0,4,0,129,32,130,3,2,144,0,10,9,20,67,55,74,0,
- 10,193,66,17,52,117,192,10,146,33,34,84,151,160,10,148,50,83,116,152,144,10,165,100,
- 49,103,168,160,3,213,119,130,6,3,172,93,10,11,90,203,204,91,0,10,0,182,120,134,
- 176,0,130,0,4,219,171,208,130,0,
-};
-static const jj_sprite jj_coin_0 = {11,11,jj_coin_0_palette,jj_coin_0_rows,jj_coin_0_data,4};
-static const uint16_t jj_coin_1_palette[] = {
- 0x0,0xffd5,0xff6b,0xf6cf,0xf66d,0xee0b,0xe5aa,0xdd6a,0xdd28,0xd4c7,0xc446,0xc3c4,0xab23,0xa2a1,0x9200,0x800,
-};
-static const uint16_t jj_coin_1_rows[] = {
- 0,8,15,22,29,36,43,50,57,64,71,78,
-};
-static const uint8_t jj_coin_1_data[] = {
- 3,0,185,130,7,3,173,0,10,11,49,19,68,93,0,10,5,17,99,89,88,0,10,195,
- 21,49,55,133,176,10,163,20,17,71,151,160,7,180,52,51,74,130,9,10,200,84,65,59,
- 169,160,10,203,134,150,140,213,192,10,12,197,172,205,120,0,10,13,202,86,133,126,0,10,
- 0,221,202,171,224,0,
-};
-static const jj_sprite jj_coin_1 = {11,11,jj_coin_1_palette,jj_coin_1_rows,jj_coin_1_data,4};
-static const uint16_t jj_coin_2_palette[] = {
- 0x0,0xffd1,0xfecf,0xedeb,0xedca,0xe589,0xdd28,0xd4a7,0xcc66,0xcc05,0xbba4,0x9b82,0xa2e2,0x9a61,0xb924,0x2860,
-};
-static const uint16_t jj_coin_2_rows[] = {
- 0,8,17,25,32,39,46,53,60,67,74,82,
-};
-static const uint8_t jj_coin_2_data[] = {
- 130,0,4,101,52,144,130,0,2,0,80,130,1,4,135,144,0,1,7,130,1,5,153,135,
- 160,10,5,17,52,19,168,0,10,4,33,51,69,200,0,10,6,66,82,70,166,208,10,8,
- 116,83,52,166,0,10,10,118,103,55,136,0,10,13,169,73,172,92,0,10,0,204,132,133,
- 160,0,130,0,130,12,1,140,130,0,
-};
-static const jj_sprite jj_coin_2 = {11,11,jj_coin_2_palette,jj_coin_2_rows,jj_coin_2_data,4};
-static const uint16_t jj_coin_3_palette[] = {
- 0x0,0xfff8,0xff71,0xee2c,0xdd8a,0xdce7,0xec43,0xc404,0x93e2,0xb343,0xa2a1,0xa9c0,0x4000,0x0,0x0,0x0,
-};
-static const uint16_t jj_coin_3_rows[] = {
- 0,10,18,27,34,41,48,55,64,71,79,87,
-};
-static const uint8_t jj_coin_3_data[] = {
- 130,0,0,112,130,5,0,112,130,0,130,0,4,66,20,160,130,0,2,0,80,130,1,4,
- 170,144,0,10,0,65,18,85,160,0,10,0,50,19,119,160,0,10,0,66,35,151,160,0,
- 10,0,83,35,117,160,0,2,0,144,130,3,4,119,160,0,10,0,165,83,154,160,0,130,
- 0,4,151,84,144,130,0,130,0,4,186,169,160,130,0,
-};
-static const jj_sprite jj_coin_3 = {11,11,jj_coin_3_palette,jj_coin_3_rows,jj_coin_3_data,4};
-static const uint16_t jj_coin_4_palette[] = {
- 0x0,0xfff9,0xfff2,0xffb2,0xfecd,0xe5e9,0xf5eb,0xed69,0xcd08,0xd486,0xbbe7,0xc424,0xb363,0xa2a0,0x9a40,0x0,
-};
-static const uint16_t jj_coin_4_rows[] = {
- 0,6,14,24,34,42,50,60,70,78,88,94,
-};
-static const uint8_t jj_coin_4_data[] = {
- 131,0,130,9,131,0,130,0,4,148,36,176,130,0,130,0,0,96,130,1,0,144,130,0,
- 130,0,0,64,130,1,0,144,130,0,130,0,4,130,51,176,130,0,130,0,4,130,51,192,
- 130,0,130,0,0,144,130,4,0,192,130,0,130,0,0,176,130,4,0,192,130,0,130,0,
- 4,198,103,192,130,0,130,0,0,208,130,11,0,208,130,0,131,0,130,14,131,0,
-};
-static const jj_sprite jj_coin_4 = {11,11,jj_coin_4_palette,jj_coin_4_rows,jj_coin_4_data,4};
-static const uint16_t jj_coin_5_palette[] = {
- 0x0,0xffef,0xfeef,0xedaa,0xd548,0xec68,0xcc46,0xc405,0x9be1,0xb343,0x9aa1,0x9240,0x99c0,0x6060,0x0,0x0,
-};
-static const uint16_t jj_coin_5_rows[] = {
- 0,8,16,23,30,37,44,53,60,67,75,83,
-};
-static const uint8_t jj_coin_5_data[] = {
- 131,0,130,3,0,96,130,0,130,0,4,116,17,48,130,0,10,0,167,162,17,64,0,10,
- 0,180,115,17,48,0,10,0,183,115,18,64,0,10,0,183,148,34,64,0,2,0,176,130,
- 6,4,35,96,0,10,0,185,116,54,160,0,10,0,187,164,121,176,0,130,0,4,167,122,
- 160,130,0,131,0,0,144,130,11,130,0,
-};
-static const jj_sprite jj_coin_5 = {11,11,jj_coin_5_palette,jj_coin_5_rows,jj_coin_5_data,4};
-static const uint16_t jj_coin_6_palette[] = {
- 0x0,0xff93,0xfeef,0xf68d,0xf60b,0xe58a,0xdce7,0xcc66,0xc405,0xbba4,0xab02,0xa2a1,0xd8c5,0x8b20,0x9200,0x2860,
-};
-static const uint16_t jj_coin_6_rows[] = {
- 0,8,15,22,30,37,46,53,60,67,74,82,
-};
-static const uint8_t jj_coin_6_data[] = {
- 130,0,4,133,86,144,130,0,10,0,133,49,18,144,0,10,9,119,68,17,59,0,2,8,
- 96,131,2,3,19,128,10,8,163,33,34,70,0,4,7,164,32,130,3,2,86,0,10,7,
- 163,35,68,104,0,10,8,120,85,70,154,0,10,11,106,150,74,190,0,10,0,150,116,158,
- 224,0,130,0,4,184,174,224,130,0,
-};
-static const jj_sprite jj_coin_6 = {11,11,jj_coin_6_palette,jj_coin_6_rows,jj_coin_6_data,4};
-static const uint16_t jj_coin_7_palette[] = {
- 0x0,0xfff6,0xff94,0xff6e,0xfeef,0xf6ad,0xf64c,0xf60b,0xe5ca,0xdd6a,0xcca7,0xc405,0xab23,0xaa20,0x89a0,0x2020,
-};
-static const uint16_t jj_coin_7_rows[] = {
- 0,7,14,21,29,38,45,52,59,66,73,80,
-};
-static const uint8_t jj_coin_7_data[] = {
- 10,0,218,153,170,176,0,10,12,99,66,18,91,0,10,9,36,33,65,22,0,3,196,116,
- 130,1,3,65,59,0,160,130,6,6,36,20,69,176,10,168,85,67,39,71,176,10,168,180,
- 18,87,105,176,10,197,200,100,103,139,192,10,9,109,169,151,188,0,10,14,133,136,123,205,
- 0,10,0,235,170,206,208,0,
-};
-static const jj_sprite jj_coin_7 = {11,11,jj_coin_7_palette,jj_coin_7_rows,jj_coin_7_data,4};
-static const uint16_t jj_shield_palette[] = {
- 0x0,0xbedb,0x565c,0xd7d,0x151a,0x55c,0x53c,0x51b,0x6c12,0x5b8f,0xcb8,0x3bd2,0x4b9,0x498,0x458,0x636e,0x634d,0x5aaa,0x5a48,0x4985,0x0,0x0,0x1800,0x0,
-};
-static const uint16_t jj_shield_rows[] = {
- 0,2,4,15,31,48,67,86,105,124,143,162,181,199,216,231,242,244,246,
-};
-static const uint8_t jj_shield_data[] = {
- 145,0,145,0,133,0,5,17,15,8,8,15,17,133,0,5,0,0,17,9,15,8,133,2,
- 5,8,15,9,16,0,0,2,0,0,15,131,2,3,4,12,6,3,131,2,2,9,0,0,
- 4,0,0,15,4,3,130,14,9,12,6,6,7,6,3,4,9,0,0,17,0,0,15,4,
- 12,14,12,13,12,6,5,5,6,5,12,9,0,0,17,0,0,15,4,4,14,13,13,12,
- 6,5,5,6,3,4,9,0,0,17,0,0,15,4,4,14,13,13,12,6,5,5,6,3,
- 4,9,0,0,17,0,0,15,4,4,14,13,13,12,6,5,5,6,3,4,9,0,0,17,
- 0,0,15,4,4,14,13,13,12,6,5,5,6,3,12,9,0,0,4,0,0,16,11,7,
- 130,13,9,12,6,5,6,6,3,14,15,0,0,130,0,14,9,14,4,12,13,13,7,6,
- 5,3,14,11,17,0,0,130,0,11,17,8,14,13,12,12,5,3,5,14,11,16,130,0,
- 131,0,9,17,9,11,14,14,12,14,11,9,16,131,0,133,0,1,16,15,130,9,0,16,
- 133,0,145,0,145,0,
-};
-static const jj_sprite jj_shield = {18,18,jj_shield_palette,jj_shield_rows,jj_shield_data,8};
-static const uint16_t jj_missile_palette[] = {
- 0x0,0xffff,0xfffc,0xe758,0xff14,0xb5f4,0xfd70,0x94f2,0xfbac,0xfa48,0x6bcf,0x52cd,0xe0e5,0xb802,0x8801,0x39ab,0x20c9,0x0,
-};
-static const uint16_t jj_missile_rows[] = {
- 0,2,4,10,20,31,44,64,83,102,122,146,171,194,216,236,254,273,283,294,304,310,312,314,
-};
-static const uint8_t jj_missile_data[] = {
- 155,0,155,0,144,0,131,13,134,0,143,0,0,13,130,4,0,13,134,0,141,0,1,13,
- 8,131,9,0,13,134,0,137,0,130,15,0,13,133,12,1,13,15,133,0,131,0,6,13,
- 13,12,9,8,8,3,137,5,6,3,16,10,5,5,11,0,131,0,5,12,8,6,6,4,
- 4,138,2,6,3,15,5,2,1,11,0,130,0,6,13,8,6,4,4,6,6,139,3,5,
- 15,3,1,1,11,0,4,0,0,13,8,8,132,9,0,5,137,7,6,5,11,5,3,1,
- 11,0,5,0,14,12,8,9,9,130,12,1,9,7,130,10,134,13,6,5,11,5,3,1,
- 11,0,3,0,14,12,9,133,12,5,7,10,10,13,9,9,131,4,7,13,7,11,7,5,
- 2,11,0,4,0,14,12,9,12,131,13,1,12,10,130,11,134,14,6,10,11,7,7,3,
- 11,0,5,0,0,14,9,12,12,130,13,1,12,7,137,11,6,7,11,7,5,3,11,0,
- 130,0,2,14,8,8,131,9,0,5,137,7,6,5,15,5,2,2,11,0,131,0,1,12,
- 9,130,8,0,9,139,5,5,15,5,3,2,11,0,131,0,5,14,14,12,9,9,12,138,
- 7,6,5,16,11,7,7,15,0,137,0,130,16,135,14,0,15,133,0,141,0,1,14,12,
- 131,13,0,14,134,0,143,0,0,14,130,9,0,14,134,0,144,0,131,14,134,0,155,0,
- 155,0,
-};
-static const jj_sprite jj_missile = {28,23,jj_missile_palette,jj_missile_rows,jj_missile_data,8};
-static const uint16_t jj_zapper_cap_palette[] = {
- 0x0,0xe737,0xad74,0xacf2,0x8cb2,0xb3ce,0x7bf0,0x6b8e,0x4b4d,0xc1e6,0x5aec,0x52ab,0x52ac,0x4a6b,0x422a,0x39c9,0x21aa,0xc841,0x6004,0x20c7,0x2801,0x9,0x0,0x0,
-};
-static const uint16_t jj_zapper_cap_rows[] = {
- 0,2,4,6,19,34,49,65,81,97,112,126,139,141,143,145,
-};
-static const uint8_t jj_zapper_cap_data[] = {
- 142,0,142,0,142,0,130,0,1,14,12,130,10,2,6,2,7,131,0,3,0,0,12,4,
- 130,2,4,4,2,1,3,17,130,0,2,0,14,4,131,2,7,4,3,1,3,5,9,0,
- 0,3,0,12,4,7,130,12,7,7,4,2,5,5,9,0,0,2,0,12,7,130,14,8,
- 15,10,6,2,6,17,9,0,0,3,0,13,7,13,130,14,7,12,7,4,7,17,9,0,
- 0,3,0,15,7,7,131,12,6,7,4,5,9,9,0,0,2,0,0,14,131,6,4,7,
- 6,1,5,9,130,0,130,0,7,15,13,10,10,12,7,4,10,131,0,142,0,142,0,142,
- 0,
-};
-static const jj_sprite jj_zapper_cap = {15,15,jj_zapper_cap_palette,jj_zapper_cap_rows,jj_zapper_cap_data,8};
-static const uint16_t jj_beam_h_0_palette[] = {
- 0x0,0xffdd,0xffdc,0xffdc,0xfff9,0xfff0,0xffe5,0xff45,0xfde1,0xfce0,0xfc00,0xfba0,0xf420,0xfac0,0x0,0x0,
-};
-static const uint16_t jj_beam_h_0_rows[] = {
- 0,2,4,23,50,83,112,151,187,217,231,
-};
-static const uint8_t jj_beam_h_0_data[] = {
- 185,0,185,0,134,0,0,160,145,0,0,160,141,0,0,160,131,0,2,169,144,136,0,133,
- 0,2,168,144,130,0,1,169,134,0,6,169,0,152,160,139,0,11,168,154,169,135,139,153,
- 133,0,132,0,8,168,119,137,135,128,133,0,11,168,137,135,104,186,154,132,0,8,169,152,
- 103,136,112,130,6,5,135,120,154,130,0,131,9,1,136,134,6,7,121,154,169,152,134,6,
- 3,136,120,131,9,4,136,118,96,137,5,6,102,120,137,144,131,7,2,101,80,133,4,1,
- 85,132,7,1,102,130,5,0,64,130,5,130,6,130,7,0,96,130,5,1,68,130,3,131,
- 1,9,35,52,69,86,103,1,85,130,4,0,48,135,1,1,52,132,5,1,67,131,1,0,
- 48,135,4,1,51,131,1,1,34,131,3,1,34,131,1,0,48,130,4,132,1,0,32,135,
- 3,0,32,134,1,0,32,131,3,0,32,136,1,0,32,132,3,134,2,131,3,0,32,130,
- 1,133,3,135,2,135,3,133,2,136,3,144,2,131,3,
-};
-static const jj_sprite jj_beam_h_0 = {58,10,jj_beam_h_0_palette,jj_beam_h_0_rows,jj_beam_h_0_data,4};
-static const uint16_t jj_beam_v_0_palette[] = {
- 0x0,0xffdd,0xffdd,0xffdc,0xffdc,0xffdc,0xfff2,0xff83,0xeff0,0xfe01,0xfce0,0xfc20,0xfba0,0xfb60,0x0,0x0,
-};
-static const uint16_t jj_beam_v_0_rows[] = {
- 0,6,12,18,24,30,36,42,49,56,63,70,76,82,88,95,102,109,116,123,129,136,143,149,
- 155,161,167,173,179,185,191,197,203,209,215,221,227,233,240,247,254,260,266,273,280,286,292,298,
- 304,310,316,322,328,334,340,347,353,359,365,371,378,384,391,397,403,409,415,421,427,433,439,
-};
-static const uint8_t jj_beam_v_0_data[] = {
- 132,0,4,183,98,64,132,0,4,167,98,64,132,0,4,151,65,64,131,0,5,185,133,20,
- 131,0,5,183,133,51,131,0,5,167,98,67,131,0,5,151,97,67,130,0,6,167,133,20,
- 48,130,0,6,151,132,20,48,130,0,6,185,133,52,48,130,0,3,185,133,130,3,5,0,
- 169,120,131,3,9,0,167,120,20,51,9,0,185,118,20,51,130,0,6,167,97,67,48,130,
- 0,6,167,98,67,48,130,0,6,185,131,67,48,130,0,3,185,133,130,3,130,0,6,167,
- 133,52,48,9,0,185,120,65,67,130,0,6,167,132,20,48,130,0,6,201,117,20,48,131,
- 0,5,167,97,67,131,0,5,183,98,67,131,0,5,185,133,51,132,0,4,152,83,64,132,
- 0,4,152,65,64,132,0,4,167,65,64,132,0,4,167,66,64,132,0,4,167,98,64,132,
- 0,4,167,98,64,132,0,4,167,97,64,131,0,5,169,118,20,131,0,5,167,118,20,131,
- 0,5,185,116,20,131,0,5,201,132,20,131,0,5,167,132,52,130,0,6,151,118,20,48,
- 130,0,6,151,118,20,48,130,0,6,183,118,20,48,131,0,5,151,97,67,131,0,5,167,
- 97,67,130,0,3,185,120,130,3,130,0,6,169,120,65,64,131,0,5,167,116,20,131,0,
- 5,185,118,20,132,0,4,167,97,64,132,0,4,183,98,64,132,0,4,183,98,64,132,0,
- 4,183,98,64,132,0,4,183,98,64,132,0,4,167,66,64,132,0,4,168,67,64,131,0,
- 5,167,97,67,130,0,6,167,118,20,48,131,0,5,151,81,67,131,0,5,167,65,67,131,
- 0,5,167,65,67,131,0,5,152,81,67,130,0,6,167,117,20,48,9,0,185,119,97,67,
- 130,0,6,169,118,20,48,131,0,5,167,97,67,131,0,5,185,132,52,132,0,4,167,65,
- 64,132,0,4,167,66,64,132,0,4,167,98,64,132,0,4,183,98,64,132,0,4,183,98,
- 64,132,0,4,183,98,64,
-};
-static const jj_sprite jj_beam_v_0 = {10,70,jj_beam_v_0_palette,jj_beam_v_0_rows,jj_beam_v_0_data,4};
-static const uint16_t jj_beam_c_0_palette[] = {
- 0x0,0xffdd,0xffdc,0xffdc,0xffdd,0xffd3,0xff84,0xfff2,0xdfe7,0xfde1,0xfce0,0xfc20,0xfba0,0xfb20,0x0,0x0,
-};
-static const uint16_t jj_beam_c_0_rows[] = {
- 0,6,12,18,24,30,36,42,48,54,60,67,74,81,88,95,102,108,115,121,127,134,141,148,
- 155,162,169,176,182,188,195,202,208,214,220,227,233,239,245,251,257,263,269,275,281,287,293,299,
- 305,311,317,323,329,335,342,348,355,362,368,374,380,386,393,400,406,412,418,424,430,436,442,448,
- 454,460,466,472,479,485,492,499,505,511,517,523,529,536,543,549,556,563,570,576,582,588,594,600,
- 606,612,618,624,630,
-};
-static const uint8_t jj_beam_c_0_data[] = {
- 132,0,4,182,81,48,132,0,4,166,81,48,132,0,4,166,81,48,132,0,4,152,49,48,
- 132,0,4,152,49,48,131,0,5,185,115,67,131,0,5,182,115,34,131,0,5,166,84,50,
- 131,0,5,166,81,50,131,0,5,152,81,50,130,0,6,182,131,19,32,130,0,6,166,131,
- 19,32,130,0,6,150,115,67,32,130,0,6,185,115,35,32,130,0,3,201,115,130,2,130,
- 0,2,166,112,131,2,5,0,166,135,131,2,6,0,166,135,64,130,2,9,0,182,135,19,
- 34,9,0,185,103,19,34,130,0,6,150,113,50,32,130,0,6,166,113,50,32,130,0,6,
- 166,116,50,32,130,0,6,185,114,50,32,130,0,3,185,115,130,2,130,0,3,185,115,130,
- 2,130,0,6,166,115,35,32,9,0,185,103,52,50,9,0,185,104,52,50,130,0,6,166,
- 131,19,32,130,0,6,201,131,19,32,131,0,5,152,81,50,131,0,5,166,81,50,131,0,
- 5,166,116,50,131,0,2,182,112,130,2,131,0,5,185,115,34,132,0,4,151,50,48,132,
- 0,4,152,52,48,132,0,4,152,49,48,132,0,4,168,49,48,132,0,4,166,52,48,132,
- 0,4,166,81,48,132,0,4,166,81,48,132,0,4,166,81,48,132,0,4,166,81,48,131,
- 0,5,185,101,19,131,0,5,169,133,19,131,0,5,166,133,19,131,0,5,166,133,19,131,
- 0,5,185,131,19,131,0,5,201,131,19,131,0,5,182,115,67,131,0,5,150,115,34,130,
- 0,6,150,135,19,32,9,0,185,136,81,50,130,0,6,166,133,19,32,130,0,6,182,133,
- 19,32,131,0,5,152,81,50,131,0,5,166,81,50,131,0,5,166,81,50,131,0,5,150,
- 116,34,130,0,6,166,135,50,48,130,0,6,185,136,52,48,131,0,5,166,133,19,131,0,
- 5,185,133,19,132,0,4,150,81,48,132,0,4,166,81,48,132,0,4,166,116,48,132,0,
- 4,182,116,48,132,0,4,182,116,48,132,0,4,182,84,48,132,0,4,182,84,48,132,0,
- 4,182,81,48,132,0,4,166,81,48,132,0,4,168,52,48,131,0,2,201,112,130,2,131,
- 0,5,166,113,50,130,0,6,166,133,19,32,130,0,6,182,133,19,32,131,0,5,152,49,
- 50,131,0,5,152,49,50,131,0,5,168,49,50,131,0,5,152,49,50,131,0,5,152,49,
- 50,130,0,6,185,131,19,32,130,0,6,166,133,19,32,9,0,185,136,81,50,130,0,6,
- 166,133,19,32,130,0,6,185,101,19,32,131,0,2,166,112,130,2,131,0,5,185,115,35,
- 132,0,4,152,49,48,132,0,4,168,49,48,132,0,4,166,52,48,132,0,4,166,81,48,
- 132,0,4,166,81,48,132,0,4,182,81,48,132,0,4,182,81,48,132,0,4,182,84,48,
- 132,0,4,166,84,48,
-};
-static const jj_sprite jj_beam_c_0 = {10,100,jj_beam_c_0_palette,jj_beam_c_0_rows,jj_beam_c_0_data,4};
-static const uint16_t jj_beam_h_1_palette[] = {
- 0x0,0xffdd,0xffdd,0xffdc,0xfff6,0xfff0,0xffe7,0xff45,0xfde1,0xfd20,0xfc80,0xfc00,0xfba0,0xeb20,0xf800,0x0,
-};
-static const uint16_t jj_beam_h_1_rows[] = {
- 0,29,63,96,132,164,184,186,188,190,192,
-};
-static const uint8_t jj_beam_h_1_data[] = {
- 130,3,1,18,136,1,2,34,16,131,3,1,18,130,1,2,34,16,130,3,1,17,130,2,
- 144,1,3,34,19,131,5,5,67,18,33,130,2,2,52,64,133,5,0,64,130,3,1,68,
- 134,5,1,68,130,3,0,16,137,2,3,19,68,130,5,16,153,136,118,84,67,52,85,102,
- 128,130,9,11,136,118,86,103,103,137,130,8,2,118,96,131,5,136,4,6,85,103,137,144,
- 130,0,1,186,130,7,130,6,5,120,135,138,131,0,8,202,135,137,152,144,131,0,8,186,
- 135,103,136,112,133,6,8,119,103,154,192,0,132,0,130,9,2,120,160,130,11,1,154,134,
- 0,1,170,130,0,0,160,135,0,15,168,144,9,118,135,121,169,137,132,0,134,0,1,170,
- 156,0,0,160,131,0,4,153,201,144,130,0,0,160,133,0,185,0,185,0,185,0,185,0,
-};
-static const jj_sprite jj_beam_h_1 = {58,10,jj_beam_h_1_palette,jj_beam_h_1_rows,jj_beam_h_1_data,4};
-static const uint16_t jj_beam_v_1_palette[] = {
- 0x0,0xffdd,0xffdc,0xffdd,0xfff7,0xffe9,0xff24,0xfdc0,0xfd20,0xfc80,0xff91,0xe788,0xfbe0,0xf340,0xf800,0x0,
-};
-static const uint16_t jj_beam_v_1_rows[] = {
- 0,5,10,15,20,25,30,36,42,48,54,60,66,72,78,84,90,96,102,108,114,119,125,131,
- 137,143,149,154,159,164,169,174,179,184,189,194,200,205,210,215,221,227,233,238,243,248,253,258,
- 263,268,273,278,284,290,296,302,308,314,320,326,332,338,344,350,356,361,366,371,376,381,386,
-};
-static const uint8_t jj_beam_v_1_data[] = {
- 2,37,128,134,0,2,42,112,134,0,2,26,112,134,0,3,58,124,133,0,3,52,105,133,
- 0,3,20,87,133,0,4,18,86,128,132,0,5,34,165,121,131,0,4,33,166,128,132,0,
- 4,35,70,144,132,0,4,35,70,144,132,0,4,33,69,128,132,0,5,33,69,104,131,0,
- 5,33,69,103,131,0,5,33,69,108,131,0,5,33,69,108,131,0,5,33,69,87,131,0,
- 5,33,165,104,131,0,4,33,165,112,132,0,4,35,167,192,132,0,3,35,167,133,0,4,
- 34,167,192,132,0,4,34,166,128,132,0,5,18,85,105,131,0,4,18,86,128,132,0,4,
- 20,87,192,132,0,3,52,104,133,0,3,52,105,133,0,3,58,124,133,0,2,58,112,134,
- 0,2,42,112,134,0,2,37,112,134,0,2,37,112,134,0,3,42,124,133,0,3,42,104,
- 133,0,4,42,86,144,132,0,3,26,103,133,0,3,52,104,133,0,3,20,88,133,0,4,
- 18,87,192,132,0,4,18,86,144,132,0,4,18,86,128,132,0,3,52,105,133,0,3,58,
- 124,133,0,2,42,112,134,0,2,37,112,134,0,2,37,112,134,0,2,37,128,134,0,2,
- 37,128,134,0,2,42,112,134,0,3,42,105,133,0,4,26,86,128,132,0,4,20,86,128,
- 132,0,4,34,86,192,132,0,4,35,167,192,132,0,4,35,70,192,132,0,4,35,70,192,
- 132,0,4,35,69,128,132,0,4,33,69,112,132,0,5,33,69,105,131,0,5,33,69,120,
- 131,0,4,35,166,144,132,0,4,34,166,112,132,0,4,20,86,128,132,0,3,52,104,133,
- 0,3,58,105,133,0,3,42,124,133,0,2,37,112,134,0,2,37,128,134,0,2,37,128,
- 134,0,
-};
-static const jj_sprite jj_beam_v_1 = {10,70,jj_beam_v_1_palette,jj_beam_v_1_rows,jj_beam_v_1_data,4};
-static const uint16_t jj_beam_c_1_palette[] = {
- 0x0,0xffdd,0xffdc,0xffdd,0xfff6,0xffe7,0xff04,0xfdc1,0xfd20,0xfc60,0xffd4,0xdf67,0xfbe0,0xec00,0xeb40,0x0,
-};
-static const uint16_t jj_beam_c_1_rows[] = {
- 0,5,10,15,20,25,30,35,40,46,52,58,64,70,76,82,88,94,100,107,113,119,125,131,
- 137,144,150,156,162,167,172,178,184,190,196,202,208,214,219,224,229,234,239,244,249,254,259,264,
- 269,274,280,286,292,297,302,307,312,318,324,330,336,341,346,351,356,361,366,371,376,381,386,391,
- 396,401,407,413,419,425,431,437,443,449,455,461,467,473,479,485,491,497,503,509,515,520,525,530,
- 535,540,545,550,555,
-};
-static const uint8_t jj_beam_c_1_data[] = {
- 2,37,128,134,0,2,37,128,134,0,2,42,112,134,0,2,26,112,134,0,3,58,124,133,
- 0,3,58,105,133,0,3,52,105,133,0,3,20,88,133,0,4,18,87,192,132,0,4,18,
- 86,128,132,0,5,34,85,121,131,0,5,34,165,124,131,0,4,33,165,128,132,0,4,35,
- 70,128,132,0,4,35,70,144,132,0,4,35,69,128,132,0,4,33,69,112,132,0,5,33,
- 69,105,131,0,6,33,69,87,144,130,0,5,33,69,88,131,0,5,33,69,105,131,0,5,
- 33,69,124,131,0,5,33,69,105,131,0,5,33,165,87,131,0,6,33,165,87,192,130,0,
- 5,33,165,105,131,0,4,33,165,128,132,0,4,35,166,144,132,0,3,35,167,133,0,3,
- 35,167,133,0,4,34,167,192,132,0,4,34,166,144,132,0,4,34,165,112,132,0,5,18,
- 85,105,131,0,5,18,85,124,131,0,4,18,86,144,132,0,4,20,87,192,132,0,3,20,
- 88,133,0,3,52,105,133,0,3,58,105,133,0,3,58,124,133,0,3,58,124,133,0,2,
- 58,112,134,0,2,26,112,134,0,2,42,112,134,0,2,37,128,134,0,2,37,128,134,0,
- 3,42,124,133,0,3,42,105,133,0,4,42,104,192,132,0,4,42,86,128,132,0,4,26,
- 87,144,132,0,3,26,88,133,0,3,52,104,133,0,3,52,88,133,0,3,20,87,133,0,
- 4,18,87,192,132,0,4,18,86,144,132,0,4,18,86,128,132,0,4,18,87,144,132,0,
- 3,52,88,133,0,3,58,105,133,0,3,58,124,133,0,2,42,112,134,0,2,37,112,134,
- 0,2,37,112,134,0,2,37,128,134,0,2,37,128,134,0,2,37,128,134,0,2,37,128,
- 134,0,2,42,112,134,0,3,42,121,133,0,3,26,104,133,0,4,26,86,128,132,0,4,
- 20,86,128,132,0,4,18,86,144,132,0,4,34,166,144,132,0,4,34,167,192,132,0,4,
- 35,167,192,132,0,4,35,70,192,132,0,4,35,70,192,132,0,4,35,69,144,132,0,4,
- 33,37,128,132,0,4,33,37,112,132,0,5,33,69,108,131,0,5,33,69,88,131,0,5,
- 33,69,121,131,0,4,35,166,144,132,0,4,34,166,144,132,0,4,34,85,112,132,0,4,
- 18,86,112,132,0,4,20,87,192,132,0,3,52,105,133,0,3,58,105,133,0,3,42,124,
- 133,0,2,42,112,134,0,2,37,112,134,0,2,37,128,134,0,2,37,128,134,0,2,37,
- 128,134,0,
-};
-static const jj_sprite jj_beam_c_1 = {10,100,jj_beam_c_1_palette,jj_beam_c_1_rows,jj_beam_c_1_data,4};
-static const uint16_t jj_beam_h_2_palette[] = {
- 0x0,0xffc8,0xff86,0xffe0,0xff05,0xfe63,0xfd82,0xfce0,0xfc40,0xfc00,0xfba0,0xfa40,0x840,0xf801,0x0,0x0,
-};
-static const uint16_t jj_beam_h_2_rows[] = {
- 0,6,25,52,87,120,146,153,155,169,198,
-};
-static const uint8_t jj_beam_h_2_data[] = {
- 174,0,0,128,137,0,134,0,1,120,144,0,0,112,141,0,10,119,0,135,86,7,112,133,
- 0,133,0,7,116,71,135,86,134,0,9,102,7,81,96,8,135,0,13,134,37,102,82,20,
- 101,87,132,0,131,0,1,118,130,2,5,20,33,71,131,0,30,134,66,66,36,38,101,120,
- 8,135,101,65,33,18,36,116,16,130,2,4,86,120,0,130,5,11,68,18,0,66,69,20,
- 131,5,25,65,70,36,0,65,33,37,84,66,17,37,5,86,131,0,8,86,4,33,20,80,
- 131,2,1,69,134,0,0,80,132,1,1,37,134,0,10,84,100,17,34,69,96,142,0,3,
- 84,34,141,0,3,101,102,167,0,185,0,1,102,143,0,130,6,137,0,1,102,149,0,130,
- 6,0,16,130,2,0,80,138,0,6,66,33,34,64,130,0,5,102,5,33,130,2,0,80,
- 144,0,4,82,33,16,
-};
-static const jj_sprite jj_beam_h_2 = {58,10,jj_beam_h_2_palette,jj_beam_h_2_rows,jj_beam_h_2_data,4};
-static const uint16_t jj_beam_v_2_palette[] = {
- 0x0,0xffc7,0xff66,0xffe0,0xfee4,0xfe03,0xfd41,0xfc80,0xfc00,0xfba0,0xfaa0,0xf860,0x0,0x0,0x0,0x0,
-};
-static const uint16_t jj_beam_v_2_rows[] = {
- 0,6,12,19,26,35,43,49,55,60,66,72,77,82,87,92,97,103,109,115,120,125,131,137,
- 144,151,158,167,176,184,192,199,206,213,221,230,237,245,252,257,263,269,275,283,291,299,306,313,
- 319,325,331,337,344,351,357,363,369,375,381,387,393,398,404,410,417,426,435,443,449,455,461,
-};
-static const uint8_t jj_beam_v_2_data[] = {
- 131,0,5,66,0,81,131,0,5,66,0,81,130,0,6,114,32,6,16,130,0,6,97,64,
- 6,16,130,0,2,81,80,130,0,0,32,130,0,1,65,131,0,0,64,4,0,114,64,132,
- 0,4,0,81,96,132,0,3,7,66,133,0,4,0,81,80,132,0,4,0,97,80,132,0,
- 3,5,34,133,0,3,117,23,133,0,3,6,20,133,0,3,7,34,133,0,3,0,81,133,
- 0,4,0,81,80,132,0,4,0,97,80,132,0,4,0,81,80,132,0,3,6,34,133,0,
- 3,7,66,133,0,4,0,97,64,132,0,4,0,132,32,132,0,130,0,2,81,96,131,0,
- 130,0,2,81,80,131,0,130,0,2,97,64,131,0,130,0,2,114,32,130,0,0,80,130,
- 0,2,116,32,130,0,0,64,131,0,1,65,130,0,0,32,131,0,1,81,130,0,0,32,
- 130,0,6,116,16,6,16,130,0,6,114,32,6,16,130,0,6,97,64,6,16,5,0,117,
- 22,130,0,0,32,130,0,2,97,64,130,0,0,80,130,0,2,97,64,131,0,4,0,114,
- 32,131,0,0,96,3,7,66,132,0,0,80,3,6,36,133,0,4,0,81,96,132,0,4,
- 0,114,64,132,0,130,0,1,66,132,0,4,0,98,64,131,0,0,80,4,0,81,80,131,
- 0,0,32,4,0,116,16,131,0,0,32,130,0,6,97,64,6,16,130,0,6,116,32,6,
- 16,131,0,5,65,0,97,131,0,5,81,96,2,131,0,5,81,80,2,131,0,5,81,80,
- 5,131,0,2,81,80,130,0,130,0,3,116,22,130,0,5,0,100,20,131,0,4,0,81,
- 64,132,0,4,0,97,80,132,0,4,0,114,32,132,0,4,0,114,32,132,0,4,0,97,
- 64,132,0,4,0,81,80,132,0,3,6,34,133,0,4,0,81,80,132,0,4,0,116,16,
- 132,0,130,0,2,97,80,131,0,130,0,2,114,64,130,0,0,80,130,0,2,132,32,130,
- 0,0,32,131,0,1,66,130,0,0,32,131,0,5,82,0,97,131,0,5,81,0,97,131,
- 0,5,82,0,97,
-};
-static const jj_sprite jj_beam_v_2 = {10,70,jj_beam_v_2_palette,jj_beam_v_2_rows,jj_beam_v_2_data,4};
-static const uint16_t jj_beam_c_2_palette[] = {
- 0x0,0xffe1,0xfea4,0xfcc0,0xfc00,0xfee5,0xfd81,0xf7a7,0xff05,0xfb80,0xfae0,0xf980,0xf801,0x0,0x0,0x0,
-};
-static const uint16_t jj_beam_c_2_rows[] = {
- 0,6,12,19,26,33,42,51,59,67,73,79,84,89,95,101,107,112,117,122,127,132,137,142,
- 148,154,160,166,171,176,181,187,193,199,205,212,219,226,235,244,253,262,270,278,285,292,299,306,
- 314,323,332,339,346,354,362,369,374,380,386,392,398,406,414,422,430,437,444,451,457,465,471,477,
- 483,489,496,503,510,516,522,528,534,540,546,552,558,564,569,574,580,586,592,599,608,617,626,634,
- 642,648,654,660,666,
-};
-static const uint8_t jj_beam_c_2_data[] = {
- 131,0,5,39,0,103,131,0,5,39,0,103,130,0,6,72,128,6,112,130,0,6,55,128,
- 6,112,130,0,6,103,80,6,112,130,0,2,103,32,130,0,0,112,130,0,2,103,96,130,
- 0,0,112,130,0,1,39,131,0,0,80,4,0,72,112,131,0,0,96,4,0,55,80,132,
- 0,4,0,103,96,132,0,3,3,39,133,0,3,3,135,133,0,4,0,103,32,132,0,4,
- 0,103,80,132,0,4,4,103,96,132,0,3,54,120,133,0,3,50,115,133,0,3,6,118,
- 133,0,3,6,114,133,0,3,3,136,133,0,3,3,39,133,0,3,0,39,133,0,4,0,
- 103,96,132,0,4,0,103,32,132,0,4,0,103,32,132,0,4,0,103,32,132,0,3,6,
- 135,133,0,3,3,120,133,0,3,0,39,133,0,4,0,103,32,132,0,4,0,56,128,132,
- 0,130,0,1,87,132,0,130,0,1,39,132,0,130,0,2,103,96,131,0,130,0,2,103,
- 32,131,0,130,0,2,103,80,131,0,130,0,2,55,128,130,0,0,96,130,0,2,56,128,
- 130,0,0,32,130,0,2,56,112,130,0,0,80,130,0,2,66,112,130,0,0,128,131,0,
- 1,39,130,0,0,112,131,0,1,39,130,0,0,112,130,0,6,66,112,6,112,130,0,6,
- 53,112,6,112,130,0,6,55,128,6,112,130,0,6,103,32,6,112,5,0,50,118,130,0,
- 0,112,130,0,2,103,32,130,0,0,80,130,0,2,103,80,130,0,0,96,130,0,2,103,
- 80,131,0,130,0,2,39,96,131,0,4,0,55,128,131,0,0,96,4,3,135,48,131,0,
- 0,96,3,6,117,132,0,0,96,3,4,135,133,0,4,0,103,96,132,0,4,0,55,32,
- 132,0,4,0,72,128,132,0,130,0,1,87,132,0,4,0,56,80,131,0,0,96,4,0,
- 103,48,131,0,0,128,4,0,103,32,131,0,0,112,4,0,50,112,131,0,0,112,130,0,
- 6,103,32,6,112,130,0,6,56,128,6,112,130,0,6,69,112,6,112,131,0,5,39,0,
- 103,131,0,1,39,130,0,0,112,131,0,5,39,96,7,131,0,5,39,96,8,131,0,5,
- 103,96,8,131,0,5,103,96,6,131,0,2,39,96,130,0,130,0,3,50,118,130,0,130,
- 0,2,56,112,131,0,5,0,50,114,131,0,4,0,39,128,132,0,4,0,103,96,132,0,
- 4,0,103,80,132,0,4,0,55,128,132,0,4,0,56,128,132,0,4,0,56,128,132,0,
- 4,0,55,128,132,0,4,0,103,32,132,0,3,3,87,133,0,3,6,120,133,0,4,3,
- 39,96,132,0,4,0,103,128,132,0,5,0,66,118,131,0,130,0,2,103,32,131,0,130,
- 0,2,55,80,130,0,0,96,130,0,2,56,128,130,0,0,32,130,0,2,69,128,130,0,
- 0,128,131,0,1,39,130,0,0,112,131,0,1,39,130,0,0,112,131,0,5,39,0,103,
- 131,0,5,39,0,103,131,0,5,39,0,103,131,0,5,39,0,103,
-};
-static const jj_sprite jj_beam_c_2 = {10,100,jj_beam_c_2_palette,jj_beam_c_2_rows,jj_beam_c_2_data,4};
-static const uint16_t jj_flash_0_palette[] = {
- 0x0,0xffff,0xfffd,0xffe8,0xffc8,0xff87,0xfee4,0xfe83,0xfde2,0xfd61,0xfd41,0xfd41,0xfd41,0xfd41,0xfd41,0x0,
-};
-static const uint16_t jj_flash_0_rows[] = {
- 0,2,4,6,8,10,12,18,24,32,41,50,61,71,81,88,90,
-};
-static const uint8_t jj_flash_0_data[] = {
- 141,0,141,0,141,0,141,0,141,0,141,0,132,0,0,176,135,0,132,0,1,217,134,0,
- 132,0,5,118,192,7,130,0,130,0,7,204,98,221,119,130,0,10,0,215,115,19,53,208,
- 130,0,130,0,1,83,130,1,2,51,64,130,0,130,0,1,131,131,1,1,61,130,0,131,
- 0,0,112,130,3,1,91,131,0,132,0,2,187,208,133,0,141,0,
-};
-static const jj_sprite jj_flash_0 = {14,16,jj_flash_0_palette,jj_flash_0_rows,jj_flash_0_data,4};
-static const uint16_t jj_flash_1_palette[] = {
- 0x0,0xffff,0xfff4,0xffe8,0xffe0,0xff87,0xff25,0xfe83,0xfe02,0xfdc1,0xfd61,0xfd41,0xfd41,0xfd41,0xfd41,0x0,
-};
-static const uint16_t jj_flash_1_rows[] = {
- 0,2,4,6,11,18,26,36,46,54,62,72,81,92,102,111,119,
-};
-static const uint8_t jj_flash_1_data[] = {
- 141,0,141,0,141,0,138,0,2,112,0,1,11,135,0,3,120,0,1,12,134,0,4,115,
- 192,0,2,13,96,132,0,2,147,48,130,0,3,0,54,130,13,3,131,21,130,0,13,0,
- 113,93,211,19,125,135,13,0,211,22,49,39,115,112,0,0,130,7,131,3,5,115,22,0,
- 10,11,49,87,118,33,48,130,0,6,0,131,18,96,130,3,0,208,130,0,130,0,0,128,
- 132,7,1,89,130,0,130,0,10,53,157,217,83,176,0,3,0,221,133,0,3,221,0,
-};
-static const jj_sprite jj_flash_1 = {14,16,jj_flash_1_palette,jj_flash_1_rows,jj_flash_1_data,4};
-static const uint16_t jj_scientist_0_palette[] = {
- 0x0,0xfffe,0xff36,0xc5f7,0xed90,0x8bf1,0xa2ea,0x43e9,0x4a2a,0x1a44,0x1180,0x0,
-};
-static const uint16_t jj_scientist_0_rows[] = {
- 0,2,4,6,8,10,12,14,16,18,24,32,41,52,61,69,77,85,92,98,100,102,
-};
-static const uint8_t jj_scientist_0_data[] = {
- 144,0,144,0,144,0,144,0,144,0,144,0,144,0,144,0,144,0,133,0,130,3,135,0,
- 132,0,1,49,130,5,134,0,132,0,130,1,2,88,96,133,0,131,0,2,49,80,130,1,
- 1,38,132,0,131,0,7,17,53,17,70,132,0,131,0,5,17,57,165,134,0,131,0,4,
- 17,57,160,135,0,131,0,4,181,87,160,135,0,131,0,3,176,153,136,0,133,0,130,11,
- 135,0,144,0,144,0,
-};
-static const jj_sprite jj_scientist_0 = {17,21,jj_scientist_0_palette,jj_scientist_0_rows,jj_scientist_0_data,4};
-static const uint16_t jj_scientist_1_palette[] = {
- 0x0,0xfffe,0xff36,0xc5f7,0x43e9,0x8bf1,0xa2ea,0x4a2a,0x1a44,0x1180,0x0,
-};
-static const uint16_t jj_scientist_1_rows[] = {
- 0,2,4,6,8,10,12,14,20,26,34,42,53,64,73,83,93,98,100,102,104,106,
-};
-static const uint8_t jj_scientist_1_data[] = {
- 144,0,144,0,144,0,144,0,144,0,144,0,144,0,133,0,1,17,136,0,133,0,130,3,
- 135,0,132,0,5,51,21,119,133,0,132,0,5,53,19,86,133,0,131,0,3,49,51,130,
- 1,0,32,132,0,130,0,3,49,19,130,5,1,54,132,0,130,0,7,49,19,137,149,133,
- 0,130,0,8,68,57,0,153,160,132,0,5,0,168,137,131,0,1,170,132,0,2,0,160,
- 141,0,144,0,144,0,144,0,144,0,
-};
-static const jj_sprite jj_scientist_1 = {17,21,jj_scientist_1_palette,jj_scientist_1_rows,jj_scientist_1_data,4};
-static const uint16_t jj_scientist_2_palette[] = {
- 0x0,0xfffe,0xff36,0xc5f7,0xed90,0x8bf1,0xa2ea,0x43e9,0x4a2a,0x1a44,0x1180,0x0,
-};
-static const uint16_t jj_scientist_2_rows[] = {
- 0,2,4,6,8,10,12,14,16,18,24,32,41,52,62,71,79,86,93,95,97,99,
-};
-static const uint8_t jj_scientist_2_data[] = {
- 144,0,144,0,144,0,144,0,144,0,144,0,144,0,144,0,144,0,133,0,130,3,135,0,
- 132,0,4,49,53,80,134,0,132,0,130,1,2,88,96,133,0,130,0,3,51,21,130,1,
- 1,38,132,0,130,0,130,1,5,51,17,70,132,0,130,0,6,81,21,154,80,134,0,131,
- 0,4,53,151,160,135,0,131,0,3,183,121,136,0,131,0,3,187,170,136,0,144,0,144,
- 0,144,0,
-};
-static const jj_sprite jj_scientist_2 = {17,21,jj_scientist_2_palette,jj_scientist_2_rows,jj_scientist_2_data,4};
-static const uint16_t jj_scientist_3_palette[] = {
- 0x0,0xfffe,0xff36,0xc5f7,0xed90,0x43e9,0x8bf1,0xa2ea,0x79a5,0x4a2a,0x1a44,0x1180,0x0,
-};
-static const uint16_t jj_scientist_3_rows[] = {
- 0,2,4,6,8,10,12,14,21,28,36,45,55,64,73,82,93,95,97,99,101,103,
-};
-static const uint8_t jj_scientist_3_data[] = {
- 144,0,144,0,144,0,144,0,144,0,144,0,144,0,133,0,2,49,48,135,0,133,0,3,
- 51,99,134,0,133,0,5,17,54,152,132,0,132,0,6,51,22,103,128,132,0,132,0,1,
- 54,130,1,1,39,132,0,130,0,7,59,17,102,55,133,0,130,0,7,107,17,51,171,133,
- 0,11,0,202,97,22,186,86,132,0,3,0,204,130,6,4,0,187,192,132,0,144,0,144,
- 0,144,0,144,0,144,0,
-};
-static const jj_sprite jj_scientist_3 = {17,21,jj_scientist_3_palette,jj_scientist_3_rows,jj_scientist_3_data,4};
-static const uint16_t jj_warning_palette[] = {
- 0x0,0xf286,0xd164,0xb0a1,0x8800,0x6000,0x0,
-};
-static const uint16_t jj_warning_rows[] = {
- 0,2,4,6,8,10,17,24,34,44,54,60,66,72,74,76,78,80,82,
-};
-static const uint8_t jj_warning_data[] = {
- 145,0,145,0,145,0,145,0,145,0,134,0,2,82,32,135,0,134,0,2,82,32,135,0,
- 135,0,1,34,130,0,0,16,131,0,135,0,1,34,130,0,1,17,130,0,135,0,1,35,
- 130,0,1,17,130,0,140,0,0,16,131,0,135,0,1,17,135,0,135,0,1,34,135,0,
- 145,0,145,0,145,0,145,0,145,0,
-};
-static const jj_sprite jj_warning = {18,18,jj_warning_palette,jj_warning_rows,jj_warning_data,4};
-static const jj_sprite *const jj_barry[] = {&jj_barry_0,&jj_barry_1,&jj_barry_2,&jj_barry_3,&jj_barry_4,&jj_barry_5,&jj_barry_6,&jj_barry_7};
-static const jj_sprite *const jj_coin[] = {&jj_coin_0,&jj_coin_1,&jj_coin_2,&jj_coin_3,&jj_coin_4,&jj_coin_5,&jj_coin_6,&jj_coin_7};
-static const jj_sprite *const jj_beam_h[] = {&jj_beam_h_0,&jj_beam_h_1,&jj_beam_h_2};
-static const jj_sprite *const jj_beam_v[] = {&jj_beam_v_0,&jj_beam_v_1,&jj_beam_v_2};
-static const jj_sprite *const jj_beam_c[] = {&jj_beam_c_0,&jj_beam_c_1,&jj_beam_c_2};
-static const jj_sprite *const jj_flash[] = {&jj_flash_0,&jj_flash_1};
-static const jj_sprite *const jj_scientist[] = {&jj_scientist_0,&jj_scientist_1,&jj_scientist_2,&jj_scientist_3};
-static const uint16_t *const jj_suit_palettes[] = {jj_barry_palette_0,jj_barry_palette_1,jj_barry_palette_2,jj_barry_palette_3};
-#endif
diff --git a/games/jetpackjoyride/src/data.h b/games/jetpackjoyride/src/data.h
new file mode 100644
index 00000000..5b47a075
--- /dev/null
+++ b/games/jetpackjoyride/src/data.h
@@ -0,0 +1,450 @@
+/* Generated by tools/data.py from Jetpack Joyride 1.3.5's own files (Halfbrick). Points, 60ths of a second;
+ * weights in hundredths. See the spec for where each number comes from. */
+#ifndef JJ_DATA_H
+#define JJ_DATA_H
+#include <stdint.h>
+
+#define JJ_GRAVITY 0.15f
+#define JJ_BOOST 0.36f
+#define JJ_FRICTION 0.98f
+#define JJ_VSCALAR 0.5f
+#define JJ_FIRE_EVERY 2
+#define JJ_BULLET_SPEED 15.0f
+#define JJ_BULLET_ANGLE 185.0f
+#define JJ_BULLET_SPREAD 35.0f
+#define JJ_DIST_DIV 18
+#define JJ_IMMUNITY_MS 700
+#define JJ_DEATH_GRAVITY 0.24f
+#define JJ_DEATH_GROUND_FRICTION 0.94f
+#define JJ_MIN_BOUNCE 4.0f
+#define JJ_START_SPEED 200.0f
+#define JJ_END_SPEED 505.0f
+#define JJ_SPEED_DIST 2000
+#define JJ_PACE_STEPS 16
+static const uint16_t jj_pace_from[] = {
+ 0, 2500, 3000, 3500, 4000, 4500, 5000, 5500, 6000, 6500, 7000, 7500, 8000, 8500, 9000, 9500,
+};
+static const uint16_t jj_pace_min[] = {
+ 280, 250, 220, 200, 200, 200, 200, 200, 190, 190, 180, 180, 170, 170, 160, 150,
+};
+static const uint16_t jj_pace_max[] = {
+ 470, 420, 390, 350, 320, 280, 275, 270, 265, 260, 255, 250, 245, 240, 235, 230,
+};
+enum { JJ_SET_DEFAULT, JJ_SET_MISSILE, JJ_SET_COIN, JJ_SET_MECH, JJ_SET_HOG, JJ_SET_BIRD, JJ_SET_GRAVITY, JJ_SET_CFT };
+typedef struct { uint16_t prob, imin, imax; uint8_t minc, maxc, coin, zap, mis; } jj_set_t;
+static const jj_set_t jj_sets[] = {
+ {0, 0, 0, 0, 0, 0, 0, 0}, /* DEFAULT */
+ {35, 128, 128, 4, 8, 255, 255, 1}, /* MISSILE_STREAK */
+ {15, 0, 0, 2, 4, 1, 255, 255}, /* COIN_STREAK */
+ {0, 345, 512, 2, 4, 2, 1, 2}, /* MECH_STREAK */
+ {0, 600, 800, 2, 4, 3, 2, 255}, /* HOG_STREAK */
+ {0, 220, 270, 2, 4, 4, 3, 3}, /* BIRD_STREAK */
+ {0, 400, 400, 2, 4, 5, 4, 4}, /* GRAVITY_STREAK */
+ {0, 220, 470, 2, 4, 6, 5, 5}, /* CFT_STREAK */
+};
+#define JJ_TOKEN_WEIGHT 280
+#define JJ_TOKEN_DRIFT 1.8f
+#define JJ_TOKEN_FIRST_MIN 200
+#define JJ_TOKEN_FIRST_MAX 450
+#define JJ_TOKEN_MAX_GAP 1050
+#define JJ_TOKEN_PER_KM 3
+#define JJ_TOKEN_KM 1000
+#define JJ_VEHICLE_RANGE 650
+#define JJ_VEHICLE_EXCLUSION 470
+#define JJ_VEHICLE_TOPHALF 100
+typedef struct { float gravity, initial, boost, final_boost, friction, start, max, increase; uint8_t frames, jumps, weight, set; } jj_vehicle_t;
+static const jj_vehicle_t jj_vehicles[] = {
+ {0.36f, 6.0f, 0.45f, 0.29f, 0.98f, 200.0f, 1000.0f, 0.22f, 20, 1, 20, 3}, /* mech */
+ {0.3f, 6.5f, 0.6f, 0.0f, 0.98f, 400.0f, 6000.0f, 0.4f, 12, 1, 20, 4}, /* hog */
+ {0.2f, 5.0f, 0.0f, 0.0f, 0.98f, 250.0f, 1000.0f, 0.09f, 1, 10, 20, 5}, /* profitbird */
+ {0.26f, 0.0f, 0.0f, 0.0f, 0.98f, 250.0f, 1000.0f, 0.25f, 0, 0, 20, 6}, /* gravitysuit */
+ {96.0f, 0.0f, 8.0f, 0.0f, 0.0f, 250.0f, 1000.0f, 0.25f, 0, 0, 20, 7}, /* teleporter */
+};
+enum { JJ_PRIZE_COINS_100, JJ_PRIZE_COINS_500, JJ_PRIZE_COINS_1000, JJ_PRIZE_EXPLOSION1, JJ_PRIZE_EXPLOSION2, JJ_PRIZE_EXPLOSION3, JJ_PRIZE_REVIVE, JJ_PRIZE_TOKENS, JJ_PRIZE_DOUBLE_COINS, JJ_PRIZE_START_500M, JJ_PRIZES };
+static const uint16_t jj_prize_weight[] = {
+ 120, 90, 50, 120, 75, 40, 100, 70, 120, 200,
+};
+/* after a win, the prize's weight times this / 1000 (afterWinProbPercent) */
+static const uint16_t jj_prize_after[] = {
+ 1000, 1000, 1000, 500, 250, 100, 25, 1000, 0, 0,
+};
+typedef struct { uint16_t sched; uint8_t top, bottom, tophalf, bottomhalf, first, count; } jj_file_t;
+static const jj_file_t jj_coin_files[] = {
+ {52, 0, 0, 0, 0, 0, 26},
+ {129, 0, 0, 0, 0, 26, 26},
+ {183, 30, 0, 0, 0, 52, 26},
+ {257, 0, 0, 0, 0, 78, 26},
+ {323, 0, 0, 0, 0, 104, 26},
+ {430, 30, 30, 60, 40, 130, 28},
+ {458, 0, 0, 0, 0, 158, 3},
+};
+/* coin files' patterns: (pattern, schedule) */
+static const uint8_t jj_coin_pick[] = {
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
+ 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 0, 1, 2, 3, 4, 5,
+ 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
+ 22, 23, 24, 25, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
+ 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 0, 1,
+ 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
+ 18, 19, 20, 21, 22, 23, 24, 25, 0, 1, 2, 3, 4, 5, 6, 7,
+ 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
+ 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 28, 29,
+ 30,
+};
+static const uint16_t jj_coin_pick_sched[] = {
+ 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30,
+ 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 77, 79, 81, 83, 85, 87,
+ 89, 91, 93, 95, 97, 99, 101, 103, 105, 107, 109, 111, 113, 115, 117, 119,
+ 121, 123, 125, 127, 131, 133, 135, 137, 139, 141, 143, 145, 147, 149, 151, 153,
+ 155, 157, 159, 161, 163, 165, 167, 169, 171, 173, 175, 177, 179, 181, 205, 207,
+ 209, 211, 213, 215, 217, 219, 221, 223, 225, 227, 229, 231, 233, 235, 237, 239,
+ 241, 243, 245, 247, 249, 251, 253, 255, 271, 273, 275, 277, 279, 281, 283, 285,
+ 287, 289, 291, 293, 295, 297, 299, 301, 303, 305, 307, 309, 311, 313, 315, 317,
+ 319, 321, 346, 349, 352, 355, 358, 361, 364, 367, 370, 373, 376, 379, 382, 385,
+ 388, 391, 394, 397, 400, 403, 406, 409, 412, 415, 418, 421, 424, 427, 452, 454,
+ 456,
+};
+static const jj_file_t jj_zap_files[] = {
+ {70, 0, 0, 0, 0, 0, 7},
+ {201, 0, 30, 0, 0, 7, 7},
+ {269, 0, 50, 50, 0, 14, 4},
+ {341, 0, 0, 0, 0, 18, 7},
+ {448, 40, 40, 0, 0, 25, 7},
+ {476, 0, 0, 0, 0, 32, 7},
+};
+typedef struct { uint16_t sched, min, max; int16_t angle, rotate; uint8_t grow; } jj_zap_t;
+static const jj_zap_t jj_zaps[] = {
+ {54, 66, 132, 0, 0, 60},
+ {56, 96, 128, 0, 0, 0},
+ {58, 96, 240, 270, 0, 0},
+ {60, 96, 172, 315, 0, 0},
+ {62, 96, 172, 45, 0, 0},
+ {64, 96, 192, 0, 360, 0},
+ {67, 96, 192, 0, -200, 0},
+ {185, 66, 96, 0, 0, 60},
+ {187, 64, 96, 0, 0, 0},
+ {189, 96, 256, 270, 0, 0},
+ {191, 96, 150, 315, 0, 0},
+ {193, 96, 150, 45, 0, 0},
+ {195, 96, 150, 0, 360, 0},
+ {198, 96, 150, 0, -200, 0},
+ {259, 64, 74, 0, 0, 0},
+ {262, 96, 150, 270, 0, 0},
+ {264, 96, 96, 45, 0, 0},
+ {266, 56, 96, 0, 360, 0},
+ {325, 66, 132, 0, 0, 60},
+ {327, 96, 128, 0, 0, 0},
+ {329, 96, 240, 270, 0, 0},
+ {331, 96, 172, 315, 0, 0},
+ {333, 96, 172, 45, 0, 0},
+ {335, 96, 192, 0, 360, 0},
+ {338, 96, 192, 0, -200, 0},
+ {432, 60, 90, 0, 0, 60},
+ {434, 66, 96, 0, 0, 0},
+ {436, 96, 256, 270, 0, 0},
+ {438, 96, 118, 315, 0, 0},
+ {440, 96, 118, 45, 0, 0},
+ {442, 96, 118, 0, 360, 0},
+ {445, 96, 118, 0, -200, 0},
+ {460, 66, 132, 0, 0, 60},
+ {462, 96, 128, 0, 0, 0},
+ {464, 96, 240, 270, 0, 0},
+ {466, 96, 172, 315, 0, 0},
+ {468, 96, 172, 45, 0, 0},
+ {470, 96, 192, 0, 360, 0},
+ {473, 96, 192, 0, -200, 0},
+};
+typedef struct { uint16_t sched; float chase, speed; } jj_mis_t;
+static const jj_mis_t jj_mis_files[] = {
+ {72, 1.2f, 10.0f},
+ {75, 1.6f, 10.0f},
+ {203, 1.6f, 10.0f},
+ {343, 1.2f, 10.0f},
+ {450, 1.6f, 10.0f},
+ {478, 1.2f, 10.0f},
+};
+#define JJ_PATTERNS 31
+/* coin patterns (patterns, one .txt each): width, height, then rows of bits, the first coin in bit 0 */
+static const uint8_t jj_pat_w[] = {
+ 41, 32, 35, 15, 30, 17, 21, 8, 36, 28, 22, 7, 24, 38, 7, 26, 9, 29, 8, 25, 25, 14, 11, 24, 10, 29, 32, 38, 24, 13, 40,
+};
+static const uint8_t jj_pat_h[] = {
+ 5, 5, 4, 3, 9, 6, 9, 5, 9, 9, 9, 6, 5, 3, 7, 9, 5, 5, 7, 9, 5, 11, 9, 3, 5, 2, 5, 5, 2, 3, 7,
+};
+static const uint16_t jj_pat_off[] = {
+ 0, 30, 50, 70, 76, 112, 130, 157, 162, 207, 243, 270, 276, 291, 306, 313,
+ 349, 359, 379, 386, 422, 442, 464, 482, 491, 501, 509, 529, 554, 560, 566,
+};
+static const uint8_t jj_pat_bits[] = {
+ 0, 0, 0, 240, 255, 1, 0, 0, 128, 15, 0, 0, 0, 0, 124, 0, 0, 0, 0, 224, 3, 0, 0, 0,
+ 255, 31, 0, 0, 0, 0, 56, 142, 227, 56, 112, 28, 199, 113, 224, 56, 142, 227, 112, 28, 199, 113, 56, 142,
+ 227, 56, 0, 128, 15, 0, 0, 0, 124, 240, 1, 0, 224, 3, 0, 62, 0, 31, 0, 0, 192, 7, 254, 63,
+ 255, 127, 254, 63, 252, 1, 192, 31, 254, 3, 224, 63, 252, 1, 192, 31, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 240, 7, 0, 0, 248, 15, 0, 0, 240, 7, 0, 0, 0, 0, 0, 85, 85, 0, 170, 170, 0, 85, 85,
+ 0, 170, 170, 0, 85, 85, 0, 170, 170, 0, 17, 17, 17, 68, 68, 4, 17, 17, 17, 68, 68, 4, 17, 17,
+ 17, 68, 68, 4, 17, 17, 17, 68, 68, 4, 17, 17, 17, 255, 255, 255, 255, 255, 15, 0, 0, 0, 0, 240,
+ 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 240, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 240, 0, 0,
+ 0, 0, 0, 15, 0, 0, 0, 0, 240, 0, 0, 0, 0, 0, 15, 0, 252, 15, 0, 192, 3, 240, 0, 60,
+ 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 60, 0, 0, 15, 192, 3, 240, 0, 0,
+ 252, 15, 0, 15, 0, 0, 48, 0, 0, 192, 0, 0, 0, 3, 0, 0, 12, 0, 0, 48, 0, 0, 192, 0,
+ 0, 0, 3, 0, 0, 60, 54, 127, 127, 62, 28, 8, 207, 156, 147, 41, 165, 148, 231, 189, 247, 41, 149, 66,
+ 47, 165, 68, 255, 0, 240, 15, 0, 0, 0, 0, 0, 0, 0, 252, 3, 192, 63, 48, 103, 103, 96, 103, 103,
+ 48, 126, 0, 0, 0, 255, 0, 0, 0, 126, 0, 0, 0, 0, 252, 0, 0, 0, 254, 1, 0, 0, 252, 0,
+ 0, 0, 0, 248, 1, 0, 0, 252, 3, 0, 0, 248, 1, 233, 0, 41, 1, 239, 0, 41, 1, 233, 0, 206,
+ 92, 114, 21, 33, 201, 10, 21, 33, 73, 123, 21, 33, 73, 66, 0, 206, 92, 122, 21, 31, 62, 124, 248, 124,
+ 62, 31, 63, 0, 248, 1, 192, 1, 7, 0, 0, 198, 0, 0, 0, 40, 0, 0, 0, 16, 0, 0, 0, 40,
+ 0, 0, 0, 198, 0, 0, 192, 1, 7, 0, 63, 0, 248, 1, 15, 192, 3, 0, 16, 32, 4, 0, 32, 16,
+ 8, 0, 64, 8, 16, 0, 128, 7, 224, 1, 0, 0, 192, 0, 192, 0, 24, 6, 24, 6, 195, 48, 195, 48,
+ 24, 6, 24, 6, 192, 0, 192, 0, 64, 0, 192, 0, 192, 1, 255, 3, 255, 7, 255, 3, 192, 1, 192, 0,
+ 64, 0, 252, 255, 63, 255, 255, 255, 252, 255, 63, 135, 3, 159, 3, 183, 3, 231, 3, 135, 3, 85, 85, 85,
+ 21, 85, 85, 85, 21, 8, 34, 8, 34, 28, 54, 28, 54, 62, 62, 62, 62, 54, 28, 54, 28, 34, 8, 34,
+ 8, 8, 8, 8, 8, 8, 28, 28, 28, 28, 28, 62, 62, 62, 62, 62, 54, 54, 54, 54, 54, 34, 34, 34,
+ 34, 34, 255, 255, 255, 255, 255, 255, 255, 31, 255, 31, 255, 31, 255, 255, 1, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 255,
+ 255,
+};
+#define JJ_LASER_SCHED 481
+#define JJ_LASER_PATTERNS 29
+typedef struct { uint16_t time, sched; uint8_t first, count; } jj_lpat_t;
+typedef struct { int8_t y0, y1; uint16_t on, off, wait, move; } jj_beam_t;
+static const jj_lpat_t jj_lpats[] = {
+ {180, 489, 0, 1}, /* SingleFire Middle */
+ {180, 492, 1, 1}, /* SingleFire Upper */
+ {180, 495, 2, 1}, /* SingleFire Lower */
+ {180, 498, 3, 3}, /* Whole Top */
+ {180, 501, 6, 3}, /* Whole Bottom */
+ {180, 504, 9, 2}, /* Top and Bottom Blockers */
+ {180, 507, 11, 4}, /* Top and Bottom tighter */
+ {180, 510, 15, 5}, /* Top Gap Only */
+ {180, 513, 20, 5}, /* Bottom Gap only */
+ {180, 516, 25, 2}, /* Top and Bottom with gaps */
+ {340, 519, 27, 7}, /* Top to bottom switch out */
+ {340, 522, 34, 7}, /* Bottom to top switch out */
+ {340, 525, 41, 7}, /* top and bottom to middle */
+ {340, 528, 48, 7}, /* MIddle to top and bottom */
+ {160, 531, 55, 4}, /* Middle Top Gap */
+ {160, 534, 59, 4}, /* Middle Bottom Gap */
+ {160, 537, 63, 3}, /* 3fer SPLITTER */
+ {460, 539, 66, 1}, /* SWEEP UP AND DOWN */
+ {460, 541, 67, 1}, /* SWEEP DOWN AND UP */
+ {380, 543, 68, 7}, /* The STAGER!! */
+ {380, 545, 75, 7}, /* The STAGER2!! */
+ {380, 547, 82, 7}, /* The STAGER2REVERSE */
+ {460, 549, 89, 2}, /* CROSS SWEEPER */
+ {180, 551, 91, 6}, /* cascade inwards */
+ {340, 553, 97, 7}, /* INWARDS CRUSHER */
+ {420, 555, 104, 7}, /* QUICK SCATTER */
+ {420, 557, 111, 7}, /* QUICK SCATTER2 */
+ {420, 559, 118, 7}, /* QUICK SCATTER3 */
+ {420, 561, 125, 7}, /* QUICK SCATTER4 */
+};
+static const jj_beam_t jj_beams[] = {
+ {0, 0, 1, 0, 0, 0},
+ {60, 60, 1, 0, 0, 0},
+ {-60, -60, 1, 0, 0, 0},
+ {120, 120, 1, 0, 0, 0},
+ {80, 80, 1, 0, 0, 0},
+ {40, 40, 1, 0, 0, 0},
+ {-120, -120, 1, 0, 0, 0},
+ {-80, -80, 1, 0, 0, 0},
+ {-40, -40, 1, 0, 0, 0},
+ {125, 125, 1, 0, 0, 0},
+ {-125, -125, 1, 0, 0, 0},
+ {125, 125, 1, 0, 0, 0},
+ {85, 85, 1, 0, 0, 0},
+ {-125, -125, 1, 0, 0, 0},
+ {-85, -85, 1, 0, 0, 0},
+ {-125, -125, 1, 0, 0, 0},
+ {-85, -85, 1, 0, 0, 0},
+ {-45, -45, 1, 0, 0, 0},
+ {-5, -5, 1, 0, 0, 0},
+ {35, 35, 1, 0, 0, 0},
+ {125, 125, 1, 0, 0, 0},
+ {85, 85, 1, 0, 0, 0},
+ {45, 45, 1, 0, 0, 0},
+ {5, 5, 1, 0, 0, 0},
+ {-35, -35, 1, 0, 0, 0},
+ {70, 70, 1, 0, 0, 0},
+ {-70, -70, 1, 0, 0, 0},
+ {120, 120, 60, 1000, 0, 0},
+ {80, 80, 60, 1000, 0, 0},
+ {40, 40, 60, 1000, 0, 0},
+ {0, 0, 60, 120, 0, 0},
+ {-40, -40, 60, 1000, 180, 0},
+ {-80, -80, 60, 1000, 180, 0},
+ {-120, -120, 60, 1000, 180, 0},
+ {-120, -120, 60, 1000, 0, 0},
+ {-80, -80, 60, 1000, 0, 0},
+ {-40, -40, 60, 1000, 0, 0},
+ {0, 0, 60, 120, 0, 0},
+ {40, 40, 60, 1000, 180, 0},
+ {80, 80, 60, 1000, 180, 0},
+ {120, 120, 60, 1000, 180, 0},
+ {-120, -120, 60, 1000, 0, 0},
+ {-80, -80, 60, 1000, 0, 0},
+ {120, 120, 60, 1000, 0, 0},
+ {80, 80, 60, 1000, 0, 0},
+ {40, 40, 60, 1000, 180, 0},
+ {-40, -40, 60, 1000, 180, 0},
+ {0, 0, 60, 1000, 180, 0},
+ {-40, -40, 60, 1000, 0, 0},
+ {40, 40, 60, 1000, 0, 0},
+ {0, 0, 60, 1000, 0, 0},
+ {-120, -120, 60, 1000, 180, 0},
+ {-80, -80, 60, 1000, 180, 0},
+ {120, 120, 60, 1000, 180, 0},
+ {80, 80, 60, 1000, 180, 0},
+ {-125, -125, 1, 0, 0, 0},
+ {-85, -85, 1, 0, 0, 0},
+ {-45, -45, 1, 0, 0, 0},
+ {125, 125, 1, 0, 0, 0},
+ {125, 125, 1, 0, 0, 0},
+ {85, 85, 1, 0, 0, 0},
+ {45, 45, 1, 0, 0, 0},
+ {-125, -125, 1, 0, 0, 0},
+ {127, 127, 1, 0, 0, 0},
+ {-127, -127, 1, 0, 0, 0},
+ {0, 0, 1, 0, 0, 0},
+ {-125, 125, 60, 100, 0, 350},
+ {125, -125, 60, 100, 30, 350},
+ {120, 120, 40, 10000, 160, 0},
+ {80, 80, 40, 10000, 160, 0},
+ {40, 40, 40, 10000, 0, 0},
+ {0, 0, 40, 200, 0, 0},
+ {-40, -40, 40, 10000, 240, 0},
+ {-80, -80, 40, 10000, 80, 0},
+ {-120, -120, 40, 10000, 80, 0},
+ {120, 120, 40, 10000, 0, 0},
+ {80, 80, 40, 200, 0, 0},
+ {40, 40, 40, 10000, 240, 0},
+ {0, 0, 40, 10000, 160, 0},
+ {-40, -40, 40, 10000, 160, 0},
+ {-80, -80, 40, 10000, 80, 0},
+ {-120, -120, 40, 10000, 80, 0},
+ {-120, -120, 40, 10000, 0, 0},
+ {-80, -80, 40, 200, 0, 0},
+ {-40, -40, 40, 10000, 240, 0},
+ {0, 0, 40, 10000, 160, 0},
+ {40, 40, 40, 10000, 160, 0},
+ {80, 80, 40, 10000, 80, 0},
+ {120, 120, 40, 10000, 80, 0},
+ {-125, 125, 60, 100, 30, 350},
+ {125, -125, 60, 100, 30, 350},
+ {125, 125, 1, 0, 0, 0},
+ {95, 95, 1, 0, 20, 0},
+ {65, 65, 1, 0, 40, 0},
+ {-125, -125, 1, 0, 0, 0},
+ {-95, -95, 1, 0, 20, 0},
+ {-65, -65, 1, 0, 40, 0},
+ {120, 120, 40, 10000, 0, 0},
+ {80, 80, 40, 10000, 100, 0},
+ {40, 40, 40, 10000, 200, 0},
+ {0, 0, 40, 10000, 200, 0},
+ {-40, -40, 40, 10000, 200, 0},
+ {-80, -80, 40, 10000, 100, 0},
+ {-120, -120, 40, 10000, 0, 0},
+ {120, 120, 40, 10000, 45, 0},
+ {80, 80, 40, 10000, 135, 0},
+ {40, 40, 40, 10000, 225, 0},
+ {0, 0, 40, 10000, 280, 0},
+ {-40, -40, 40, 10000, 0, 0},
+ {-80, -80, 40, 10000, 90, 0},
+ {-120, -120, 40, 10000, 180, 0},
+ {120, 120, 40, 10000, 0, 0},
+ {80, 80, 40, 10000, 90, 0},
+ {40, 40, 40, 10000, 180, 0},
+ {0, 0, 40, 10000, 45, 0},
+ {-40, -40, 40, 10000, 280, 0},
+ {-80, -80, 40, 10000, 225, 0},
+ {-120, -120, 40, 10000, 135, 0},
+ {120, 120, 40, 10000, 45, 0},
+ {80, 80, 40, 10000, 135, 0},
+ {40, 40, 40, 10000, 225, 0},
+ {0, 0, 40, 10000, 280, 0},
+ {-40, -40, 40, 10000, 180, 0},
+ {-80, -80, 40, 10000, 90, 0},
+ {-120, -120, 40, 10000, 0, 0},
+ {120, 120, 40, 10000, 225, 0},
+ {80, 80, 40, 10000, 135, 0},
+ {40, 40, 40, 10000, 45, 0},
+ {0, 0, 40, 10000, 0, 0},
+ {-40, -40, 40, 10000, 90, 0},
+ {-80, -80, 40, 10000, 180, 0},
+ {-120, -120, 40, 10000, 280, 0},
+};
+/* weights by distance: (from metres, weight) pairs, each list ended by 0xffff */
+static const uint16_t jj_sched[] = {
+ 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0,
+ 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0,
+ 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0,
+ 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0,
+ 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0,
+ 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0,
+ 0, 500, 65535, 0, 0, 500, 65535, 0, 50, 700, 65535, 0, 0, 0, 65535, 0,
+ 0, 2000, 65535, 0, 0, 600, 65535, 0, 0, 300, 65535, 0, 0, 300, 65535, 0,
+ 0, 0, 400, 300, 65535, 0, 0, 0, 400, 300, 65535, 0, 0, 8000, 65535, 0,
+ 0, 0, 200, 1500, 65535, 0, 0, 2000, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 600, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 400,
+ 65535, 0, 0, 0, 65535, 0, 0, 2000, 65535, 0, 0, 600, 65535, 0, 0, 300,
+ 65535, 0, 0, 300, 65535, 0, 0, 0, 400, 300, 65535, 0, 0, 0, 400, 300,
+ 65535, 0, 0, 8000, 65535, 0, 0, 2000, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 600, 65535, 0, 0, 0, 200, 1000, 65535, 0, 0, 2600, 65535, 0,
+ 0, 600, 65535, 0, 0, 0, 400, 300, 65535, 0, 0, 8000, 65535, 0, 0, 500,
+ 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
+ 65535, 0, 0, 500, 65535, 0, 50, 700, 65535, 0, 0, 0, 65535, 0, 0, 2000,
+ 65535, 0, 0, 600, 65535, 0, 0, 300, 65535, 0, 0, 300, 65535, 0, 0, 0,
+ 400, 300, 65535, 0, 0, 0, 400, 300, 65535, 0, 0, 8000, 65535, 0, 0, 0,
+ 200, 1500, 65535, 0, 0, 1000, 20, 0, 65535, 0, 0, 1000, 20, 0, 65535, 0,
+ 0, 0, 20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0, 0, 0, 20, 500,
+ 65535, 0, 0, 0, 20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0, 0, 0,
+ 20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0,
+ 0, 0, 20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0, 0, 0, 20, 500,
+ 65535, 0, 0, 0, 20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0, 0, 0,
+ 20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0,
+ 0, 0, 20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0, 0, 0, 20, 500,
+ 65535, 0, 0, 0, 20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0, 0, 0,
+ 20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0,
+ 0, 0, 20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0, 0, 400, 65535, 0,
+ 0, 0, 65535, 0, 0, 2000, 65535, 0, 0, 600, 65535, 0, 0, 300, 65535, 0,
+ 0, 300, 65535, 0, 0, 0, 400, 300, 65535, 0, 0, 0, 400, 300, 65535, 0,
+ 0, 8000, 65535, 0, 0, 2500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0,
+ 0, 500, 65535, 0, 0, 400, 65535, 0, 0, 0, 65535, 0, 0, 2000, 65535, 0,
+ 0, 600, 65535, 0, 0, 300, 65535, 0, 0, 300, 65535, 0, 0, 0, 400, 300,
+ 65535, 0, 0, 0, 400, 300, 65535, 0, 0, 8000, 65535, 0, 0, 0, 200, 1500,
+ 65535, 0, 0, 0, 400, 1000, 2000, 600, 3000, 400, 4000, 200, 5000, 100, 6000, 0,
+ 65535, 0, 400, 400, 800, 0, 65535, 0, 400, 200, 800, 0, 65535, 0, 400, 200,
+ 800, 0, 65535, 0, 400, 200, 800, 0, 65535, 0, 400, 200, 800, 0, 65535, 0,
+ 800, 400, 1500, 0, 65535, 0, 800, 400, 1500, 0, 65535, 0, 800, 200, 1500, 0,
+ 65535, 0, 800, 200, 1500, 0, 65535, 0, 1300, 400, 2000, 0, 65535, 0, 1300, 200,
+ 2000, 0, 65535, 0, 1300, 200, 2000, 0, 65535, 0, 1300, 200, 2000, 0, 65535, 0,
+ 1300, 200, 2000, 0, 65535, 0, 1300, 200, 2000, 0, 65535, 0, 1300, 200, 2000, 0,
+ 65535, 0, 2000, 400, 65535, 0, 2000, 100, 65535, 0, 2000, 200, 65535, 0, 2000, 200,
+ 65535, 0, 2000, 100, 65535, 0, 2000, 100, 65535, 0, 3000, 400, 65535, 0, 2600, 400,
+ 65535, 0, 2600, 200, 65535, 0, 2000, 100, 65535, 0, 2000, 100, 65535, 0, 2000, 100,
+ 65535, 0, 2000, 100, 65535, 0,
+};
+#endif
diff --git a/games/jetpackjoyride/src/draw.c b/games/jetpackjoyride/src/draw.c
new file mode 100644
index 00000000..1b2ce4e4
--- /dev/null
+++ b/games/jetpackjoyride/src/draw.c
@@ -0,0 +1,457 @@
+/* Drawing, in the launcher's strips (launcher/src/gfx.c): the lab, the run, the HUD and the screens.
+ * The world is drawn at 2/3 of the game's points; the pictures are Halfbrick's (art.h). */
+#include <string.h>
+#include "../../../launcher/src/gfx.h"
+#include "draw.h"
+#include "art.h"
+#include "data.h"
+
+#define SX(v) ((int)((v) * 2 / 3))
+#define WHITE HEX(0xFFFFFF)
+#define GOLD HEX(0xFFD447)
+#define INK HEX(0x0C1220)
+#define MUTED HEX(0xB8C2D2)
+#define FOCUS HEX(0xFFC21A)
+
+/* ---------------------------------------------------------------- pictures */
+enum { FLIP_X = 1, FLIP_Y = 2, WHITEN = 4 };
+
+static void blit(const jj_sheet *s, int f, int ax, int ay, int flags) {
+ const jj_frame *fr = &s->f[f];
+ int w = fr->w, h = fr->h;
+ int x = flags & FLIP_X ? ax - fr->x - w + 1 : ax + fr->x;
+ int y = flags & FLIP_Y ? ay - fr->y - h + 1 : ay + fr->y;
+ if (y >= gfx_y1 || y + h <= gfx_y0 || x >= SCREEN_W || x + w <= 0) return;
+ const uint8_t *base = s->data + fr->data;
+ int r0 = y < gfx_y0 ? gfx_y0 - y : 0, r1 = y + h > gfx_y1 ? gfx_y1 - y : h;
+ for (int r = r0; r < r1; r++) {
+ int src = flags & FLIP_Y ? h - 1 - r : r;
+ const uint8_t *p = base + (base[2 * src] | base[2 * src + 1] << 8);
+ const uint8_t *end = base + (base[2 * src + 2] | base[2 * src + 3] << 8);
+ color_t *row = gfx_buf + (y + r - gfx_y0) * SCREEN_W;
+ int i = 0;
+ while (p < end && i < w) {
+ unsigned tag = *p++, n = (tag & 127) + 1;
+ if (tag & 128) {
+ unsigned c = *p++;
+ if (c) {
+ color_t col = flags & WHITEN ? WHITE : s->pal[c];
+ for (unsigned k = 0; k < n; k++) {
+ int xx = flags & FLIP_X ? x + w - 1 - (i + (int)k) : x + i + (int)k;
+ if ((unsigned)xx < SCREEN_W) row[xx] = col;
+ }
+ }
+ i += (int)n;
+ } else {
+ for (unsigned k = 0; k < n; k++) {
+ unsigned c = s->bits == 4 ? (p[k / 2] >> (k & 1 ? 0 : 4)) & 15 : p[k];
+ if (c) {
+ int xx = flags & FLIP_X ? x + w - 1 - (i + (int)k) : x + i + (int)k;
+ if ((unsigned)xx < SCREEN_W) row[xx] = flags & WHITEN ? WHITE : s->pal[c];
+ }
+ }
+ p += s->bits == 4 ? (n + 1) / 2 : n;
+ i += (int)n;
+ }
+ }
+ }
+}
+
+/* the background: one wide picture of the lab, side by side */
+static void lab(int scroll) {
+ int w = pic_lab.f[0].w;
+ int x = -(scroll % w);
+ if (x > 0) x -= w;
+ for (; x < SCREEN_W; x += w) blit(&pic_lab, 0, x, 0, 0);
+}
+
+static void plot(int x, int y, color_t c) {
+ if ((unsigned)x < SCREEN_W && y >= gfx_y0 && y < gfx_y1) gfx_buf[(y - gfx_y0) * SCREEN_W + x] = c;
+}
+
+/* a thick line: spans of `w` pixels across its main direction */
+static void line(int x0, int y0, int x1, int y1, int w, color_t c) {
+ int dx = x1 - x0, dy = y1 - y0, adx = dx < 0 ? -dx : dx, ady = dy < 0 ? -dy : dy;
+ int n = adx > ady ? adx : ady;
+ if (n == 0) n = 1;
+ int lo = (y0 < y1 ? y0 : y1) - w, hi = (y0 > y1 ? y0 : y1) + w;
+ if (hi < gfx_y0 || lo >= gfx_y1) return;
+ for (int i = 0; i <= n; i++) {
+ int x = x0 + dx * i / n, y = y0 + dy * i / n;
+ if (adx > ady) {
+ if (y + w / 2 < gfx_y0 || y - w / 2 >= gfx_y1) continue;
+ for (int k = -w / 2; k < w - w / 2; k++) plot(x, y + k, c);
+ } else {
+ if (y < gfx_y0 || y >= gfx_y1) continue;
+ for (int k = -w / 2; k < w - w / 2; k++) plot(x + k, y, c);
+ }
+ }
+}
+
+static void text(const np_font_t *f, int x, int y, const char *s, color_t c) { gfx_text(f, x, y, s, c, 256); }
+static void center(const np_font_t *f, int y, const char *s, color_t c) { gfx_text_center(f, SCREEN_W / 2, y, s, c, 256); }
+static void outlined(const np_font_t *f, int x, int y, const char *s, color_t c, bool centered) {
+ if (centered) x -= gfx_text_width(f, s) / 2;
+ for (int k = 0; k < 4; k++) text(f, x + (k == 0) - (k == 1), y + (k == 2) - (k == 3), s, INK);
+ text(f, x, y, s, c);
+}
+
+static char *num(char *p, uint32_t v) {
+ char t[12];
+ int n = 0;
+ do t[n++] = (char)('0' + v % 10), v /= 10;
+ while (v);
+ while (n) *p++ = t[--n];
+ *p = 0;
+ return p;
+}
+
+/* the HUD's numbers, in the game's own font */
+static int digits(int x, int y, uint32_t v, bool metre) {
+ char s[12];
+ num(s, v);
+ for (char *p = s; *p; p++) blit(&pic_digits, *p - '0', x, y, 0), x += pic_digit_adv[*p - '0'];
+ if (metre) blit(&pic_digits, 10, x + 1, y, 0), x += pic_digit_adv[10] + 1;
+ return x;
+}
+
+/* the key line, in the dark band under the floor */
+static void keyline(const char *s) { gfx_text_center(&np_font_small, SCREEN_W / 2, 233, s, MUTED, 256); }
+
+/* ---------------------------------------------------------------- the run */
+static const jj_run *R;
+
+static void zapper(const jj_zapper *z, uint32_t t) {
+ int cx = SX(z->x), cy = SX(z->y);
+ int hl = z->len / 2;
+ int dx = jj_cos(z->ang) * hl / 1024 * 2 / 3, dy = jj_sin(z->ang) * hl / 1024 * 2 / 3;
+ int ext = (dx < 0 ? -dx : dx) > (dy < 0 ? -dy : dy) ? (dx < 0 ? -dx : dx) : (dy < 0 ? -dy : dy);
+ if (cx + ext + 16 < 0 || cx - ext - 16 >= SCREEN_W || cy + ext + 16 < gfx_y0 || cy - ext - 16 >= gfx_y1) return;
+ bool rot = z->spin != 0;
+ if (!z->dud) {
+ /* the electricity: an orange glow, a yellow band, a white core that flickers along */
+ color_t glow = rot ? HEX(0xE0571A) : HEX(0xE89A14), band = rot ? HEX(0xFF9A3C) : HEX(0xFFE04A);
+ int j = (int)(t / 2 % 3) - 1;
+ line(cx - dx, cy - dy, cx + dx, cy + dy, 7, glow);
+ line(cx - dx, cy - dy, cx + dx, cy + dy, 4, band);
+ line(cx - dx + (dy ? j : 0), cy - dy + (dx ? j : 0), cx + dx - (dy ? j : 0), cy + dy - (dx ? j : 0), 2, WHITE);
+ }
+ int f = z->dud ? 0 : (int)(t / 3 % 4);
+ const jj_sheet *orb = rot ? &pic_orbr : &pic_orb;
+ blit(orb, f, cx - dx, cy - dy, 0);
+ blit(orb, f, cx + dx, cy + dy, 0);
+}
+
+static void lasers(void) {
+ if (!R->laser) return;
+ const jj_lpat_t *p = &jj_lpats[R->laser - 1];
+ int t = R->laser_t, in = t < 20 ? 20 - t : t > p->time ? t - p->time : 0; /* the emitters slide in and out */
+ for (int b = 0; b < p->count; b++) {
+ int y, phase, k;
+ jj_beam_state(R->laser - 1, b, t, &y, &phase, &k);
+ int sy = SX(y);
+ if (sy + 12 < gfx_y0 || sy - 12 >= gfx_y1) continue;
+ int xl = 11 - in, xr = SCREEN_W - 12 + in;
+ if (phase == 1) {
+ /* charging: a thin line that comes and goes, faster near the end */
+ if ((k * k / 400 + k) / 6 % 2 == 0) line(xl, sy, xr, sy, 1, HEX(0xFF5A3C));
+ } else if (phase == 2) {
+ int fl = (k / 2) & 1;
+ line(xl, sy, xr, sy, 11, HEX(0xC8281E));
+ line(xl, sy, xr, sy, 7 + fl, HEX(0xFF8A3C));
+ line(xl, sy, xr, sy, 3, HEX(0xFFF6D8));
+ }
+ int f = phase == 2 ? 2 + ((k / 3) & 1) : phase == 1 ? (k > 60 ? 1 : 0) : 0;
+ blit(&pic_emitter, f, xl, sy, 0);
+ blit(&pic_emitter, f, xr, sy, FLIP_X);
+ }
+}
+
+static void barry_draw(void) {
+ int bx = SX(JJ_BX), by = SX(R->y);
+ uint32_t t = R->t;
+ if (R->state == JJ_ALIVE && R->safe && (t / 4) & 1) return; /* blinks while he can't be hit */
+ if (R->state != JJ_ALIVE) {
+ int f;
+ if (R->state == JJ_ZAPPED) f = (t / 3) & 1 ? 11 : 12;
+ else if (R->state == JJ_STOPPED) f = 18;
+ else if (R->by != JJ_BY_ZAPPER && R->stop_t == 0 && R->vy < -2) f = 13;
+ else f = 14 + (int)(t / 4 % 4);
+ blit(&pic_barry, f, bx, by, 0);
+ return;
+ }
+ switch (R->ride) {
+ case JJ_FOOT: {
+ int f;
+ if (R->ground) f = (int)(t / 5 % 4);
+ else if (R->held) f = 4 + (int)(t / 3 % 4);
+ else f = 8 + (int)(t / 8 % 2);
+ if (R->held && !R->ground) {
+ /* the machine gun fires down: its flash and a stream of bullets */
+ blit(&pic_flash, (t / 2) & 1, bx - 9, by - 4, 0);
+ for (int i = 0; i < 4; i++) {
+ int d = (int)((t * 10 + (uint32_t)i * 23) % 70);
+ int yy = by + 4 + d, xx = bx - 8 - d / 6 + ((i * 5) % 7) - 3;
+ if (yy < SX(JJ_FLOOR) + 2) line(xx, yy, xx - 1, yy + 3, 1, GOLD);
+ }
+ }
+ blit(&pic_barry, f, bx, by, 0);
+ break;
+ }
+ case JJ_MECH: {
+ /* drive 0-3, jump 4, no boost 5, boost 6-7 (its thrusters), falling 8 */
+ int f;
+ if (R->ground) f = (int)(t / 5 % 4);
+ else if (R->boost) f = 4;
+ else if (R->held) f = 6 + (int)(t / 4 % 2);
+ else f = R->vy > 1 ? 8 : 5;
+ blit(&pic_mech, f, bx, by, 0);
+ break;
+ }
+ case JJ_HOG:
+ blit(&pic_hog, R->ground ? (int)(t / 4 % 4) : R->vy < 0 ? 4 : 5, bx, by, 0);
+ break;
+ case JJ_BIRD: {
+ static const uint8_t flap[] = {0, 1, 2, 3, 4, 3};
+ int f = R->ground ? 0 : R->vy < -1 ? flap[t / 3 % 6] : 3;
+ blit(&pic_bird, f, bx, by, 0);
+ break;
+ }
+ case JJ_GRAV: {
+ int f = R->ground ? (int)(t / 4 % 4) : 4;
+ if (!R->ground && ((R->flip && R->vy > 0.5f) || (!R->flip && R->vy < -0.5f))) f = 5 + (int)(t / 4 % 2);
+ if (R->flip) blit(&pic_grav, f, bx, SX(R->y - jj_box_h(JJ_GRAV)) - 1, FLIP_Y);
+ else blit(&pic_grav, f, bx, by, 0);
+ break;
+ }
+ case JJ_CFT: {
+ int h = jj_box_h(JJ_CFT);
+ int cy = SX(R->y - h / 2.0f);
+ /* the arrow: from the Teleporter to where a press sends Barry */
+ int ang = jj_sin(R->cft) * 16384 / 1024;
+ int tx = bx + jj_cos((uint16_t)ang) * 64 / 1024, ty = cy - jj_sin((uint16_t)ang) * 64 / 1024;
+ for (int i = 2; i < 8; i++) plot(bx + (tx - bx) * i / 8, cy + (ty - cy) * i / 8, HEX(0x9FE8FF));
+ blit(&pic_cft, R->boost ? 4 + (12 - R->boost) / 3 : (int)(t / 6 % 4), bx, cy, 0);
+ blit(&pic_cft, 8, tx, ty, 0);
+ break;
+ }
+ }
+}
+
+static void world(void) {
+ uint32_t t = R->t;
+ lab((int)(R->dist / 24)); /* 16ths of a point at 2/3: / 24 */
+ for (int i = 0; i < JJ_SCIENTISTS; i++) {
+ const jj_scientist *s = &R->sci[i];
+ if (!s->on) continue;
+ int f = s->state == 2 ? 5 : (int)(s->t / (s->state ? 4 : 7) % 4);
+ blit(&pic_sci, f, SX(s->x), SX(JJ_FLOOR) + 1, s->dir < 0 ? FLIP_X : 0);
+ }
+ for (int i = 0; i < JJ_COINSETS; i++) {
+ const jj_coinset *c = &R->coin[i];
+ if (!c->on) continue;
+ int w = jj_pat_w[c->pat], h = jj_pat_h[c->pat];
+ for (int row = 0; row < h; row++) {
+ int y = SX(c->y + row * JJ_COIN_GAP);
+ if (y + 6 < gfx_y0 || y - 6 >= gfx_y1) continue;
+ for (int col = 0; col < w; col++)
+ if (jj_coin_at(c, col, row)) {
+ int x = SX(c->x + col * JJ_COIN_GAP);
+ if (x > -8 && x < SCREEN_W + 8) blit(&pic_coin, (int)((t / 4 + (uint32_t)col) % 8), x, y, 0);
+ }
+ }
+ }
+ for (int i = 0; i < JJ_TOKENS; i++) {
+ const jj_token *k = &R->token[i];
+ if (k->on) blit(&pic_token, (int)(t / 4 % 8), SX(k->x), SX(k->y + 60.0f * jj_sin(k->phase) / 1024.0f), 0);
+ }
+ if (R->box.on) blit(&pic_box, (int)(t / 5 % 4), SX(R->box.x), SX(R->box.y + 6.0f * jj_sin(R->box.phase) / 1024.0f), 0);
+ for (int i = 0; i < JJ_ZAPPERS; i++)
+ if (R->zap[i].on) zapper(&R->zap[i], t);
+ lasers();
+ barry_draw();
+ for (int i = 0; i < JJ_MISSILES; i++) {
+ const jj_missile *m = &R->mis[i];
+ if (!m->on) continue;
+ int y = SX(m->y);
+ if (m->state == JJ_FLY) {
+ blit(&pic_missile, 4 + ((m->t / 3) & 1), SX(m->x) + 9, y, 0);
+ blit(&pic_missile, (int)(m->t / 3 % 4), SX(m->x), y, 0);
+ } else {
+ int f = m->state == JJ_WARN ? (m->t / 8) & 1 : 2 + ((m->t / 3) & 1);
+ blit(&pic_warn, f, SCREEN_W - 14, y, 0);
+ }
+ }
+ for (int i = 0; i < JJ_FX; i++) {
+ const jj_fx *e = &R->fx[i];
+ if (!e->t) continue;
+ if (e->t < 30) {
+ blit(&pic_boom, e->t / 5, SX(e->x), SX(e->y), 0);
+ }
+ }
+}
+
+static void hud(bool keys) {
+ int x = digits(6, 4, jj_metres(R), true);
+ (void)x;
+ blit(&pic_coin, 0, 12, 34, 0);
+ char s[16];
+ num(s, R->coins);
+ outlined(&np_font_body, 21, 39, s, GOLD, false);
+ if (R->tokens) {
+ blit(&pic_stoken, 0, 4, 46, 0);
+ num(s, R->tokens);
+ outlined(&np_font_body, 25, 58, s, WHITE, false);
+ }
+ if (keys) {
+ static const char *const k[JJ_RIDES] = {"Hold OK to fly Back pause", "Hold OK to jump and glide Back pause",
+ "OK jump Back pause", "OK flap Back pause", "OK flip gravity Back pause",
+ "OK teleport to the arrow Back pause"};
+ keyline(R->state == JJ_ALIVE ? k[R->ride] : "Back pause");
+ }
+}
+
+/* ---------------------------------------------------------------- screens */
+static const jj_view *V;
+
+static void dim(int a) { gfx_fill_alpha(0, gfx_y0, SCREEN_W, gfx_y1 - gfx_y0, INK, a); }
+
+static void panel(int x, int y, int w, int h) {
+ gfx_rrect(x, y, w, h, 10, HEX(0x16203A), 240);
+ gfx_rrect_outline(x, y, w, h, 10, 2, HEX(0x6E7C99), 256);
+}
+
+static void choice(int y, const char *s, bool on) {
+ if (on) {
+ gfx_rrect(84, y - 15, 152, 22, 6, HEX(0x2C3A5C), 256);
+ gfx_rrect_outline(84, y - 15, 152, 22, 6, 2, FOCUS, 256);
+ }
+ center(&np_font_body, y, s, on ? WHITE : MUTED);
+}
+
+static void title(void) {
+ lab((int)(V->clock / 2));
+ blit(&pic_wjet, 0, 14, 22, 0);
+ blit(&pic_wjoy, 0, 18, 80, 0);
+ blit(&pic_hero, 0, 228, 24, 0);
+ outlined(&np_font_title, SCREEN_W / 2, 194, "Press OK to play!", WHITE, true);
+ char s[40], *p = s;
+ memcpy(p, "Best ", 5), p = num(p + 5, V->best);
+ memcpy(p, " m", 3);
+ outlined(&np_font_small, 8, 14, s, MUTED, false);
+ num(s, V->coins);
+ blit(&pic_coin, 0, SCREEN_W - 12 - gfx_text_width(&np_font_small, s), 10, 0);
+ outlined(&np_font_small, SCREEN_W - 6 - gfx_text_width(&np_font_small, s), 14, s, GOLD, false);
+ if (V->head_start || V->double_coins) {
+ const char *b = V->head_start && V->double_coins ? "Next run: HEAD START, DOUBLE COINS"
+ : V->head_start ? "Next run: HEAD START"
+ : "Next run: DOUBLE COINS";
+ outlined(&np_font_small, SCREEN_W / 2, 214, b, GOLD, true);
+ }
+ keyline("OK play Back quit");
+}
+
+static void guide(void) {
+ dim(200);
+ panel(14, 6, 292, 206);
+ center(&np_font_title, 30, "How to play", WHITE);
+ static const char *const lines[] = {"Hold OK, EXE or Up to fly. Let go to fall.", "Dodge zappers, missiles and lasers.",
+ "A missile warns you, locks on, then fires.", "Grab coins and spin tokens.",
+ "A vehicle box gives you a ride. It takes a hit.", "Spin tokens play the Final Spin.",
+ "Back pauses. Home saves and quits."};
+ for (int i = 0; i < 7; i++) center(&np_font_small, 54 + i * 15, lines[i], HEX(0xE6EBF2));
+ static const char *const credits[] = {"Inspired by Jetpack Joyride by Halfbrick, not affiliated.",
+ "Brought to NumPlay by Bobydeluxe.", "Made by Mason Chen as part of NumPlay."};
+ for (int i = 0; i < 3; i++) center(&np_font_small, 168 + i * 14, credits[i], MUTED);
+ keyline("OK continue");
+}
+
+static void paused(void) {
+ dim(150);
+ panel(64, 32, 192, 172);
+ center(&np_font_title, 60, "PAUSED", WHITE);
+ static const char *const items[] = {"Resume", "Retry", "How to play", "Quit"};
+ for (int i = 0; i < 4; i++) choice(94 + i * 28, items[i], V->sel == i);
+ keyline("Up/Down choose OK select Back resume");
+}
+
+static void confirm(void) {
+ dim(170);
+ panel(48, 70, 224, 88);
+ center(&np_font_title, 102, V->sel ? "Quit this run?" : "Retry this run?", WHITE);
+ center(&np_font_small, 128, "Coins you grabbed are kept.", MUTED);
+ keyline("OK yes Back no");
+}
+
+static const char *const prize_names[JJ_PRIZES] = {"COINS +100", "CASH PRIZE +500", "JACKPOT +1000", "SMALL BLAST",
+ "BIG BLAST", "ATOM BLAST", "SECOND CHANCE", "EXTRA SPINS",
+ "DOUBLE COINS", "HEAD START"};
+
+static void spin(void) {
+ gfx_vgrad(0, gfx_y0, SCREEN_W, gfx_y1 - gfx_y0, 0x2A1846, 0x0C0816);
+ outlined(&np_font_title, SCREEN_W / 2, 36, "FINAL SPIN", GOLD, true);
+ for (int r = 0; r < 3; r++) {
+ int x = 62 + r * 70;
+ gfx_rrect(x, 54, 56, 96, 8, HEX(0x0A0A14), 256);
+ gfx_rrect_outline(x, 54, 56, 96, 8, 3, HEX(0xC9CED8), 256);
+ /* a reel: icons scroll while it turns, then it shows its stop */
+ int pos = V->reel[r];
+ int off = pos % 48, icon = pos / 48;
+ for (int k = -1; k <= 1; k++) {
+ int yy = 102 + k * 48 + off;
+ if (yy < 64 || yy > 140) continue;
+ blit(&pic_prize, (icon - k + 30) % JJ_PRIZES, x + 28, yy, 0);
+ }
+ }
+ char s[48], *p = s;
+ if (V->spin_msg >= 0) {
+ outlined(&np_font_title, SCREEN_W / 2, 176, "YOU WON!", WHITE, true);
+ center(&np_font_body, 196, prize_names[V->spin_msg], GOLD);
+ }
+ blit(&pic_stoken, 0, 98, 206, 0);
+ memcpy(p, "SPIN TOKENS: ", 13);
+ num(p + 13, V->tokens);
+ text(&np_font_body, 122, 220, s, WHITE);
+ keyline(V->spinning ? "" : V->tokens ? "OK spin Back cash in (50 coins each)" : "OK continue");
+}
+
+static void results(void) {
+ dim(160);
+ panel(40, 16, 240, 192);
+ center(&np_font_body, 44, "YOU FLEW", MUTED);
+ char s[16];
+ num(s, V->run_m);
+ int w = 0;
+ for (char *p = s; *p; p++) w += pic_digit_adv[*p - '0'];
+ digits(SCREEN_W / 2 - (w + pic_digit_adv[10]) / 2, 52, V->run_m, true);
+ center(&np_font_body, 98, "AND COLLECTED", MUTED);
+ num(s, V->run_coins);
+ int cw = gfx_text_width(&np_font_title, s);
+ blit(&pic_coin, 0, SCREEN_W / 2 - cw / 2 - 10, 115, 0);
+ outlined(&np_font_title, SCREEN_W / 2 + 6, 122, s, GOLD, true);
+ if (V->new_best) outlined(&np_font_body, SCREEN_W / 2, 144, "NEW BEST!", GOLD, true);
+ choice(170, "PLAY AGAIN", V->sel == 0);
+ choice(196, "MAIN MENU", V->sel == 1);
+ keyline("Up/Down choose OK select");
+}
+
+static void scene(void *ctx) {
+ (void)ctx;
+ switch (V->screen) {
+ case JJ_SCREEN_TITLE: title(); break;
+ case JJ_SCREEN_SPIN: spin(); break;
+ default:
+ world();
+ hud(V->screen == JJ_SCREEN_PLAY);
+ if (V->screen == JJ_SCREEN_GUIDE) guide();
+ else if (V->screen == JJ_SCREEN_PAUSE) paused();
+ else if (V->screen == JJ_SCREEN_CONFIRM) confirm();
+ else if (V->screen == JJ_SCREEN_RESULTS) results();
+ break;
+ }
+}
+
+void jj_draw(const jj_run *r, const jj_view *v) {
+ R = r, V = v;
+ gfx_render(scene, 0, 0, SCREEN_H);
+}
diff --git a/games/jetpackjoyride/src/draw.h b/games/jetpackjoyride/src/draw.h
new file mode 100644
index 00000000..c590ee80
--- /dev/null
+++ b/games/jetpackjoyride/src/draw.h
@@ -0,0 +1,23 @@
+/* What the screens show, besides the run itself. */
+#ifndef JJ_DRAW_H
+#define JJ_DRAW_H
+#include "jj.h"
+
+enum { JJ_SCREEN_TITLE, JJ_SCREEN_GUIDE, JJ_SCREEN_PLAY, JJ_SCREEN_PAUSE, JJ_SCREEN_CONFIRM, JJ_SCREEN_SPIN, JJ_SCREEN_RESULTS };
+
+typedef struct {
+ uint8_t screen, sel;
+ uint32_t clock; /* the title's lab scrolls with it */
+ uint32_t best, coins; /* the records */
+ uint8_t head_start, double_coins;
+ /* the Final Spin */
+ uint8_t tokens, spinning;
+ int8_t spin_msg; /* the prize won, -2 no luck, -1 nothing yet */
+ uint16_t reel[3];
+ /* the results */
+ uint32_t run_m, run_coins;
+ uint8_t new_best;
+} jj_view;
+
+void jj_draw(const jj_run *r, const jj_view *v);
+#endif
diff --git a/games/jetpackjoyride/src/icon.png b/games/jetpackjoyride/src/icon.png
index 3962e268..0ff73bb1 100644
Binary files a/games/jetpackjoyride/src/icon.png and b/games/jetpackjoyride/src/icon.png differ
diff --git a/games/jetpackjoyride/src/jetpack.h b/games/jetpackjoyride/src/jetpack.h
deleted file mode 100644
index 26d7c66f..00000000
--- a/games/jetpackjoyride/src/jetpack.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/* SPDX-License-Identifier: GPL-3.0-only
- * NumWorks game implementation by Bobydeluxe. Artwork credits: assets/README.md.
- */
-#ifndef JETPACK_H
-#define JETPACK_H
-#include <stdbool.h>
-#include <stddef.h>
-#include <stdint.h>
-#define JJ_Q 256
-#define JJ_TICK_MS 16
-#define JJ_SAVE_BYTES 260
-#define JJ_HAZARDS 4
-#define JJ_PICKUPS 18
-#define JJ_LIMIT 10000000u
-enum { JJ_WAIT,JJ_RUNNING,JJ_OVER };
-enum { JJ_HORIZONTAL,JJ_VERTICAL,JJ_MISSILE,JJ_COLUMN,JJ_ROTATING };
-enum { JJ_COIN,JJ_SHIELD };
-typedef struct { int32_t x; uint16_t y; uint8_t kind,timer,active; } jj_hazard;
-typedef struct { int32_t x; uint16_t y; uint8_t kind,active; } jj_pickup;
-typedef struct {
- uint32_t best,runs,coins,dodged,wallet;
- uint8_t owned,suit;
-} jj_stats;
-typedef struct {
- int32_t y,vy,next;
- uint32_t rng,tick,distance;
- uint16_t coins,passed,events;
- uint8_t phase,present,started,thrust,shield,invuln,reason,flash;
- jj_hazard hazard[JJ_HAZARDS];
- jj_pickup pickup[JJ_PICKUPS];
-} jj_game;
-void jj_new(jj_game *g,uint32_t seed);
-void jj_start(jj_game *g,jj_stats *s);
-void jj_step(jj_game *g,jj_stats *s,bool thrust);
-uint32_t jj_distance(const jj_game *g);
-int jj_speed(const jj_game *g);
-void jj_bounds(unsigned kind,int *w,int *h);
-void jj_rotor(const jj_hazard *p,uint32_t tick,int *dx,int *dy);
-bool jj_rotor_hit(const jj_hazard *p,uint32_t tick,int32_t y);
-unsigned jj_price(unsigned suit);
-bool jj_equip(jj_stats *s,unsigned suit);
-bool jj_valid(const jj_game *g,const jj_stats *s);
-void jj_encode(const jj_game *g,const jj_stats *s,uint8_t out[JJ_SAVE_BYTES]);
-bool jj_decode(jj_game *g,jj_stats *s,const uint8_t *p,size_t n);
-#endif
diff --git a/games/jetpackjoyride/src/jj.h b/games/jetpackjoyride/src/jj.h
new file mode 100644
index 00000000..d71f2673
--- /dev/null
+++ b/games/jetpackjoyride/src/jj.h
@@ -0,0 +1,127 @@
+/* Jetpack Joyride for the NumWorks calculator: the run, stepped 60 times a second in the original's points
+ * (the iPhone's 480 x 320 screen) with the original's numbers (data.h, from the game's own files).
+ *
+ * The world: Barry stays at x = 128 on screen; everything else is kept in screen points and moves left by
+ * the run's speed. y grows downwards; the ceiling is at 30, the floor at 290. Drawn at 2/3 (320 x 213). */
+#ifndef JJ_MAIN_H
+#define JJ_MAIN_H
+#include <stdbool.h>
+#include <stddef.h>
+#include <stdint.h>
+
+#define JJ_W 480
+#define JJ_H 320
+#define JJ_CEIL 30
+#define JJ_FLOOR 290
+#define JJ_MID 160
+#define JJ_BX 128
+#define JJ_COIN_GAP 18
+#define JJ_SPAWN_X 520 /* where things come in, off the right of the screen */
+
+enum { JJ_FOOT, JJ_MECH, JJ_HOG, JJ_BIRD, JJ_GRAV, JJ_CFT, JJ_RIDES };
+enum { JJ_ALIVE, JJ_ZAPPED, JJ_TUMBLE, JJ_STOPPED }; /* Barry */
+enum { JJ_BY_ZAPPER = 1, JJ_BY_MISSILE, JJ_BY_LASER }; /* what got him */
+enum { JJ_WARN, JJ_LOCK, JJ_FLY }; /* a missile */
+
+#define JJ_ZAPPERS 8
+#define JJ_COINSETS 4
+#define JJ_MISSILES 8
+#define JJ_TOKENS 2
+#define JJ_FX 6
+#define JJ_SCIENTISTS 3
+
+typedef struct {
+ float x, y; /* the middle */
+ uint16_t ang; /* 65536 a turn; 0 = horizontal, 16384 = vertical */
+ int16_t spin; /* per frame (rotating zappers) */
+ uint16_t len; /* between the two orbs */
+ uint8_t on, dud; /* dud: switched off by a vehicle */
+} jj_zapper;
+
+typedef struct {
+ float x; /* the first column */
+ int16_t y; /* the top row */
+ uint8_t on, pat;
+ uint8_t bits[48]; /* the coins still there, rows of (w + 7) / 8 bytes */
+} jj_coinset;
+
+typedef struct {
+ float x, y, chase;
+ uint8_t on, state;
+ uint16_t t;
+} jj_missile;
+
+typedef struct {
+ float x, y; /* y: the middle of the bob */
+ uint16_t phase;
+ uint8_t on, pad;
+} jj_token;
+
+typedef struct {
+ float x, y;
+ uint8_t kind, t; /* kind 0 a missile or Barry hit, 1 a vehicle breaking */
+} jj_fx;
+
+typedef struct {
+ float x;
+ int8_t dir; /* -1 left, 1 right */
+ uint8_t on, state, t; /* state 0 walking, 1 running, 2 knocked down */
+} jj_scientist;
+
+typedef struct {
+ /* Barry */
+ float y, vy;
+ uint8_t held, ground, state, by;
+ uint8_t ride, jumps, boost, flip; /* flip: the Gravity Suit upside down */
+ uint16_t cft; /* the Teleporter's arrow phase */
+ uint16_t safe; /* frames he can't be hit */
+ float dvx; /* knocked out: his own speed (points a frame) */
+ float ride_speed; /* points a second on a vehicle */
+ uint16_t stop_t; /* frames since he came to rest */
+ uint8_t fire; /* frames to the next bullet */
+ /* the run */
+ uint32_t rng, t;
+ uint32_t dist; /* 16ths of a point */
+ uint32_t coins;
+ uint8_t tokens, set, streak, laser;
+ uint16_t laser_t; /* frames into the laser pattern; laser = pattern + 1 */
+ float next; /* points to the next spawn */
+ uint32_t token_last, token_km; /* metres of the last token, of the kilometre counted */
+ uint8_t token_count, revived, double_coins, head_start;
+ uint32_t vehicle_at; /* metres where the next vehicle box comes */
+ jj_zapper zap[JJ_ZAPPERS];
+ jj_coinset coin[JJ_COINSETS];
+ jj_missile mis[JJ_MISSILES];
+ jj_token token[JJ_TOKENS];
+ jj_token box; /* the vehicle box */
+ jj_fx fx[JJ_FX];
+ jj_scientist sci[JJ_SCIENTISTS];
+ /* counted for the results */
+ uint32_t zappers_dodged, missiles_dodged, tokens_taken;
+} jj_run;
+
+void jj_start(jj_run *r, uint32_t seed, bool double_coins, bool head_start);
+void jj_step(jj_run *r, bool held);
+bool jj_over(const jj_run *r); /* he's come to rest: the Final Spin or the results */
+uint32_t jj_metres(const jj_run *r);
+float jj_speed(const jj_run *r); /* points a second */
+void jj_revive(jj_run *r); /* the Second Chance */
+bool jj_valid(const jj_run *r); /* a run read back from a save is sane */
+
+/* shared with the drawing */
+int jj_sin(uint16_t ang); /* x 1024 */
+int jj_cos(uint16_t ang);
+void jj_beam_state(int pattern, int beam, int t, int *y, int *phase, int *k); /* phase 0 off, 1 charging, 2 firing */
+int jj_coin_at(const jj_coinset *c, int col, int row);
+int jj_box_h(int ride); /* Barry's (or his vehicle's) hit box */
+int jj_box_w(int ride);
+uint32_t jj_rand(uint32_t *s);
+
+/* the Final Spin */
+typedef struct {
+ uint16_t weight[10];
+ uint8_t won; /* the last spin's prize + 1, or 0 */
+} jj_spin;
+void jj_spin_start(jj_spin *s);
+int jj_spin_roll(jj_spin *s, uint32_t *rng); /* a prize, or -1 */
+#endif
diff --git a/games/jetpackjoyride/src/main.c b/games/jetpackjoyride/src/main.c
index 10b23114..c22bf4a7 100644
--- a/games/jetpackjoyride/src/main.c
+++ b/games/jetpackjoyride/src/main.c
@@ -1,130 +1,249 @@
-/* SPDX-License-Identifier: GPL-3.0-only */
-#include <eadk.h>
-#include "jetpack.h"
-#include "render.h"
-#include "../../common/epsilon_app.h"
-#include "../../common/epsilon_files.h"
-#ifdef __ELF__
-const char eadk_app_name[] __attribute__((section(".rodata.eadk_app_name")))="Jetpack Joyride";
-const uint32_t eadk_api_level __attribute__((section(".rodata.eadk_api_level")))=0;
+/* Jetpack Joyride (Halfbrick, 2011) on the NumWorks calculator.
+ *
+ * Barry Steakfries breaks into Legitimate Research's lab, steals the machine gun jetpack and flies as far as
+ * he can: hold to fly, let go to fall, through zappers, missiles and lasers, grabbing coins, spin tokens and
+ * vehicle boxes (the Lil' Stomper, the Profit Bird, the Crazy Freaking Teleporter, the Bad As Hog, the Gravity
+ * Suit). The run steps 60 times a second with the original's numbers (sim.c, data.h); the Final Spin plays the
+ * tokens after it.
+ *
+ * Keys: OK, EXE or Up fly (or a vehicle's action), Back pauses, Home saves and quits. */
+#include <string.h>
+#include "../../../launcher/src/gfx.h"
+#include "jj.h"
+#include "draw.h"
+#include "plat.h"
+#include "save.h"
+#include "data.h"
+
+static jj_run run;
+static jj_profile prof;
+static jj_view view;
+static jj_spin spin;
+static uint32_t rng, blast_m;
+static uint8_t back_to, banked, spin_t;
+static color_t strip[SCREEN_W * STRIP_H];
+/* frames drawn, the slowest (ms) and those over 33 ms: read by tools/emu.py */
+#ifndef HOST
+__attribute__((used, externally_visible))
#endif
-#define KEY(k) (UINT64_C(1)<<(k))
-static jj_game game;
-static jj_stats stats;
-static uint8_t save_data[JJ_SAVE_BYTES];
-static bool have_save,save_failed;
-static uint32_t last_checksum;
-uint32_t perf_frames,perf_max,perf_slow;
-static void push(int x,int y,int w,int h,const uint16_t *p) {
- eadk_display_push_rect((eadk_rect_t){x,y,w,h},p);
+uint32_t perf_frames, perf_max, perf_slow;
+
+static const uint16_t prize_coins[JJ_PRIZES] = {100, 500, 1000};
+static const uint16_t prize_blast[JJ_PRIZES] = {[JJ_PRIZE_EXPLOSION1] = 160, [JJ_PRIZE_EXPLOSION2] = 280, [JJ_PRIZE_EXPLOSION3] = 400};
+
+static void new_run(void) {
+ jj_start(&run, jj_rand(&rng), prof.double_coins, prof.head_start);
+ prof.double_coins = prof.head_start = 0;
+ prof.has_run = 1;
+ if (prof.runs < 0xffffffffu) prof.runs++;
+ blast_m = 0, banked = 0;
+ view.screen = JJ_SCREEN_PLAY;
}
-static bool save(void) {
- jj_encode(&game,&stats,save_data);
- unsigned n=JJ_SAVE_BYTES-4;
- uint32_t hash=save_data[n]|(uint32_t)save_data[n+1]<<8|(uint32_t)save_data[n+2]<<16|(uint32_t)save_data[n+3]<<24;
- if(have_save&&hash==last_checksum&&!save_failed)return true;
- save_failed=!ef_write("jetpackjoyride.sav",save_data,JJ_SAVE_BYTES);
- if(!save_failed)have_save=true,last_checksum=hash;
- return !save_failed;
+
+/* the run's over: its coins go in the bank, and its distance may be the best */
+static void bank(void) {
+ if (banked) return;
+ banked = 1;
+ prof.coins += run.coins;
+ prof.has_run = 0;
}
-static void fresh(uint32_t seed) {jj_new(&game,seed);}
+
+static void results(void) {
+ bank();
+ uint32_t m = jj_metres(&run) + blast_m;
+ view.run_m = m, view.run_coins = run.coins;
+ view.new_best = m > prof.best;
+ if (m > prof.best) prof.best = m;
+ view.screen = JJ_SCREEN_RESULTS, view.sel = 0;
+ save_write(&prof, 0);
+}
+
+static void cash_in(void) {
+ prof.coins += run.tokens * 50u;
+ run.tokens = 0;
+}
+
+static void sync_view(void) {
+ view.best = prof.best, view.coins = prof.coins;
+ view.head_start = prof.head_start, view.double_coins = prof.double_coins;
+ view.tokens = run.tokens;
+}
+
+/* a 60th of a second of the Final Spin: the reels turn, then stop one after the other on the result */
+static void spin_tick(void) {
+ spin_t++;
+ for (int i = 0; i < 3; i++) {
+ int stop = 40 + i * 14;
+ if (spin_t < stop) {
+ view.reel[i] = (uint16_t)((view.reel[i] + 12) % (48 * JJ_PRIZES));
+ } else if (spin_t == stop) {
+ int icon = spin.won ? spin.won - 1 : (int)((jj_rand(&rng) % JJ_PRIZES + (unsigned)i * 3) % JJ_PRIZES);
+ if (!spin.won && i == 2 && view.reel[0] / 48 == view.reel[1] / 48 && (int)(view.reel[0] / 48) == icon)
+ icon = (icon + 1) % JJ_PRIZES; /* a losing spin never shows three of a kind */
+ view.reel[i] = (uint16_t)(48 * icon);
+ }
+ }
+ if (spin_t < 40 + 2 * 14 + 4) return;
+ view.spinning = 0;
+ int p = spin.won ? spin.won - 1 : -1;
+ view.spin_msg = (int8_t)(p >= 0 ? p : -2);
+ if (p < 0) return;
+ prof.coins += prize_coins[p];
+ blast_m += prize_blast[p];
+ if (p == JJ_PRIZE_TOKENS) run.tokens = (uint8_t)(run.tokens + 3);
+ if (p == JJ_PRIZE_DOUBLE_COINS) prof.double_coins = 1;
+ if (p == JJ_PRIZE_START_500M) prof.head_start = 1;
+}
+
+/* a Second Chance: the run goes on, its coins out of the bank again */
+static void second_chance(void) {
+ jj_revive(&run);
+ banked = 0, prof.coins -= run.coins, prof.has_run = 1;
+ view.screen = JJ_SCREEN_PLAY, view.spin_msg = -1;
+}
+
int main(void) {
- np_app_begin();
- uint32_t length=0;const uint8_t *data=ef_read("jetpackjoyride.sav",&length);
- jj_decode(&game,&stats,data,length);
- unsigned view=JJ_TITLE,selected=0,help_return=JJ_TITLE,help_selection=2;
- unsigned error_return=JJ_TITLE,error_selection=0;
- uint64_t previous=eadk_keyboard_scan(),stale=previous;
- uint32_t now=(uint32_t)eadk_timing_millis(),tick_at=now,draw_at=now,save_at=now;
- jj_invalidate();
- for(;;) {
- now=(uint32_t)eadk_timing_millis();uint64_t keys=eadk_keyboard_scan();stale&=keys;
- uint64_t active=keys&~stale,hit=active&~previous;previous=active;
- bool ok=(hit&(KEY(eadk_key_ok)|KEY(eadk_key_exe)))!=0;
- bool back=(hit&KEY(eadk_key_back))!=0;
- bool next=(hit&(KEY(eadk_key_right)|KEY(eadk_key_down)))!=0;
- bool prev=(hit&(KEY(eadk_key_left)|KEY(eadk_key_up)))!=0;
- if(view!=JJ_SAVE_ERROR&&(keys&(KEY(eadk_key_home)|KEY(eadk_key_on_off)))) {
- if(save())break;
- error_return=view==JJ_PLAY?JJ_READY:view;error_selection=selected;
- view=JJ_SAVE_ERROR;hit=0;ok=back=next=prev=false;stale=keys;
+ plat_begin();
+ gfx_buf = strip;
+ save_load(&prof, &run);
+ rng = plat_random() ^ prof.runs * 0x9E3779B9u;
+ if (!rng) rng = 1;
+ view.screen = prof.has_run ? JJ_SCREEN_PAUSE : JJ_SCREEN_TITLE;
+ view.spin_msg = -1;
+ uint32_t stale = plat_keys(), prev = stale, last = plat_millis(), acc = 0, saved_at = last;
+ uint8_t shown = 0xff;
+ bool redraw = true;
+ for (;;) {
+ uint32_t now = plat_millis(), keys = plat_keys();
+ stale &= keys; /* keys still down from the screen before don't count */
+ uint32_t live = keys & ~stale, hit = live & ~prev;
+ prev = live;
+ if (keys & JK_HOME) {
+ if (view.screen == JJ_SCREEN_SPIN) {
+ while (view.spinning) spin_tick(); /* the spin under way counts; the other tokens are cashed in */
+ if (view.spin_msg == JJ_PRIZE_REVIVE) second_chance();
+ else cash_in(), results();
+ }
+ save_write(&prof, prof.has_run ? &run : 0);
+ break;
}
- if(view==JJ_PLAY) {
- if(back)view=JJ_PAUSE,selected=0,save();
- else {
- bool thrust=(active&(KEY(eadk_key_ok)|KEY(eadk_key_exe)|KEY(eadk_key_up)))!=0;
- if(now-tick_at>4*JJ_TICK_MS)tick_at=now-4*JJ_TICK_MS;
- while(now-tick_at>=JJ_TICK_MS&&game.phase==JJ_RUNNING) {
- jj_step(&game,&stats,thrust);tick_at+=JJ_TICK_MS;
- }
- if(game.phase==JJ_OVER)view=JJ_RESULT,selected=0,save();
- if(now-save_at>=5000)save(),save_at=now;
+ uint32_t dt = now - last;
+ last = now;
+ if (dt > 100) dt = 100;
+ /* 60ths of a second gone by: the run (and the reels) step that many times, 4 at most */
+ acc += dt * 60;
+ int ticks = 0;
+ while (acc >= 1000 && ticks < 4) acc -= 1000, ticks++;
+ if (acc >= 1000) acc = 0; /* too slow: the game slows down rather than skip */
+ int steps = 0;
+ switch (view.screen) {
+ case JJ_SCREEN_TITLE:
+ view.clock += dt / 8;
+ redraw = true;
+ if (hit & JK_BACK) {
+ save_write(&prof, 0);
+ return plat_end();
}
- } else {
- tick_at=now;
- if(view==JJ_TITLE) {
- if(next)selected=(selected+1)%3;
- if(prev)selected=(selected+2)%3;
- if(back) {
- if(save())break;
- error_return=JJ_TITLE;error_selection=selected;view=JJ_SAVE_ERROR;
- } else if(ok) {
- if(selected==0) {
- if(!game.present||game.phase==JJ_OVER)fresh(now^(stats.runs*0x9E3779B9u));
- view=JJ_READY;selected=0;
- } else if(selected==1)view=JJ_SHOP,selected=stats.suit;
- else help_return=JJ_TITLE,help_selection=2,view=JJ_GUIDE;
- }
- } else if(view==JJ_READY) {
- if(back)view=JJ_TITLE,selected=0;
- else if(ok)jj_start(&game,&stats),view=JJ_PLAY,tick_at=now;
- } else if(view==JJ_PAUSE) {
- if(next)selected=(selected+1)%4;
- if(prev)selected=(selected+3)%4;
- if(back||(ok&&selected==0))view=JJ_READY;
- else if(ok&&selected==1)view=JJ_CONFIRM,selected=0;
- else if(ok&&selected==2)help_return=JJ_PAUSE,help_selection=2,view=JJ_GUIDE;
- else if(ok&&selected==3)view=JJ_TITLE,selected=0;
- } else if(view==JJ_CONFIRM) {
- if(next||prev)selected=!selected;
- if(back||(ok&&selected==0))view=JJ_PAUSE,selected=1;
- else if(ok)fresh(now^(stats.runs*0x9E3779B9u)),view=JJ_READY,selected=0;
- } else if(view==JJ_RESULT) {
- if(next||prev)selected=!selected;
- if(back||(ok&&selected))view=JJ_TITLE,selected=0;
- else if(ok)fresh(now^(stats.runs*0x9E3779B9u)),view=JJ_READY,selected=0;
- } else if(view==JJ_SHOP) {
- if(next)selected=(selected+1)%4;
- if(prev)selected=(selected+3)%4;
- if(back)view=JJ_TITLE,selected=1;
- else if(ok) {
- if(!selected||(stats.owned&(1u<<selected)))jj_equip(&stats,selected),save();
- else if(stats.wallet>=jj_price(selected))view=JJ_BUY,selected<<=1;
+ if (hit & JK_OK) {
+ if (!prof.guide_seen) back_to = JJ_SCREEN_PLAY, view.screen = JJ_SCREEN_GUIDE;
+ else new_run();
+ }
+ break;
+ case JJ_SCREEN_GUIDE:
+ if (hit & (JK_OK | JK_BACK)) {
+ prof.guide_seen = 1;
+ if (back_to == JJ_SCREEN_PLAY) new_run();
+ else view.screen = back_to, view.sel = 2;
+ }
+ break;
+ case JJ_SCREEN_PLAY:
+ if (hit & JK_BACK) {
+ view.screen = JJ_SCREEN_PAUSE, view.sel = 0;
+ save_write(&prof, &run), saved_at = now;
+ break;
+ }
+ for (; steps < ticks; steps++) jj_step(&run, (live & (JK_OK | JK_UP)) != 0);
+ if (jj_over(&run)) {
+ bank();
+ if (run.tokens) {
+ jj_spin_start(&spin);
+ view.screen = JJ_SCREEN_SPIN, view.spinning = 0, view.spin_msg = -1;
+ for (int i = 0; i < 3; i++) view.reel[i] = (uint16_t)(48 * (i * 3 + 1));
+ } else {
+ results();
}
- } else if(view==JJ_BUY) {
- if(next||prev)selected^=1;
- if(back||(ok&&!(selected&1)))view=JJ_SHOP,selected>>=1;
- else if(ok) {
- selected>>=1;jj_equip(&stats,selected);save();view=JJ_SHOP;
+ } else if (now - saved_at > 10000) {
+ save_write(&prof, &run), saved_at = now;
+ }
+ break;
+ case JJ_SCREEN_PAUSE:
+ if (hit & JK_UP) view.sel = (uint8_t)((view.sel + 3) % 4);
+ if (hit & JK_DOWN) view.sel = (uint8_t)((view.sel + 1) % 4);
+ if (hit & JK_BACK) view.screen = JJ_SCREEN_PLAY, acc = 0;
+ else if (hit & JK_OK) {
+ if (view.sel == 0) view.screen = JJ_SCREEN_PLAY, acc = 0;
+ else if (view.sel == 2) back_to = JJ_SCREEN_PAUSE, view.screen = JJ_SCREEN_GUIDE;
+ else view.screen = JJ_SCREEN_CONFIRM, view.sel = view.sel == 3;
+ }
+ break;
+ case JJ_SCREEN_CONFIRM:
+ if (hit & JK_BACK) view.sel = view.sel ? 3 : 1, view.screen = JJ_SCREEN_PAUSE;
+ else if (hit & JK_OK) {
+ bank();
+ uint32_t m = jj_metres(&run);
+ if (m > prof.best) prof.best = m;
+ if (view.sel) view.screen = JJ_SCREEN_TITLE, save_write(&prof, 0);
+ else new_run();
+ }
+ break;
+ case JJ_SCREEN_SPIN:
+ if (view.spinning) {
+ for (int k = 0; k < ticks && view.spinning; k++) spin_tick();
+ redraw = true;
+ break;
+ }
+ if (view.spin_msg == JJ_PRIZE_REVIVE && (hit & (JK_OK | JK_BACK))) {
+ second_chance();
+ acc = 0;
+ break;
+ }
+ if (hit & JK_BACK) cash_in(), results();
+ else if (hit & JK_OK) {
+ if (!run.tokens) results();
+ else {
+ run.tokens--;
+ jj_spin_roll(&spin, &rng);
+ view.spinning = 1, spin_t = 0, view.spin_msg = -1;
}
- } else if(view==JJ_GUIDE) {
- if(back||ok)view=help_return,selected=help_selection;
- } else if(view==JJ_SAVE_ERROR) {
- if(back)break;
- if(ok&&save())break;
- if(hit&KEY(eadk_key_one))view=error_return,selected=error_selection;
}
+ break;
+ case JJ_SCREEN_RESULTS:
+ if (hit & (JK_UP | JK_DOWN)) view.sel ^= 1;
+ if (hit & JK_BACK) view.screen = JJ_SCREEN_TITLE;
+ else if (hit & JK_OK) {
+ if (view.sel == 0) new_run();
+ else view.screen = JJ_SCREEN_TITLE;
+ }
+ break;
+ }
+ if (view.screen != shown) {
+ stale = keys, prev = 0; /* a new screen starts with all keys up */
+ shown = view.screen, redraw = true;
}
- if(now-draw_at>=32||hit||!perf_frames) {
- uint32_t start=(uint32_t)eadk_timing_millis();
- jj_menu_time(now);
- jj_render(&game,&stats,view,selected,save_failed,push);
- uint32_t spent=(uint32_t)eadk_timing_millis()-start;
- if(spent>perf_max)perf_max=spent;
- if(spent>32)++perf_slow;
- ++perf_frames;draw_at=now;
+ if (steps || redraw || hit) {
+ sync_view();
+ uint32_t t0 = plat_millis();
+ jj_draw(&run, &view);
+ uint32_t spent = plat_millis() - t0;
+ if (view.screen == JJ_SCREEN_PLAY) {
+ perf_frames++;
+ if (spent > perf_max) perf_max = spent;
+ if (spent > 33) perf_slow++;
+ }
+ redraw = false;
+ } else {
+ plat_sleep(2);
}
- eadk_timing_msleep(4);
}
- return np_app_end();
+ return plat_end();
}
diff --git a/games/jetpackjoyride/src/physics.c b/games/jetpackjoyride/src/physics.c
deleted file mode 100644
index 1bccb022..00000000
--- a/games/jetpackjoyride/src/physics.c
+++ /dev/null
@@ -1,195 +0,0 @@
-/* SPDX-License-Identifier: GPL-3.0-only */
-#include "jetpack.h"
-#include <string.h>
-static uint32_t random(jj_game *g) {
- uint32_t x=g->rng;x^=x<<13;x^=x>>17;x^=x<<5;return g->rng=x;
-}
-static void increment(uint32_t *v) {if(*v<UINT32_MAX)++*v;}
-uint32_t jj_distance(const jj_game *g) {return g->distance/(10*JJ_Q);}
-int jj_speed(const jj_game *g) {
- unsigned extra=jj_distance(g)/4;
- return 576+(int)(extra>576?576:extra); /* 2.25 to 4.5 px per tick. */
-}
-void jj_bounds(unsigned kind,int *w,int *h) {
- *w=kind==JJ_ROTATING?84:kind==JJ_HORIZONTAL?58:kind==JJ_MISSILE?24:10;
- *h=kind==JJ_ROTATING?84:kind==JJ_VERTICAL?70:kind==JJ_COLUMN?100:10;
-}
-static int sine(unsigned phase) {
- static const uint16_t quarter[]={0,25,50,74,98,121,142,162,181,198,213,226,237,245,251,255,256};
- phase&=63;
- if(phase<=16)return quarter[phase];
- if(phase<=32)return quarter[32-phase];
- if(phase<=48)return -(int)quarter[phase-32];
- return -(int)quarter[64-phase];
-}
-void jj_rotor(const jj_hazard *p,uint32_t tick,int *dx,int *dy) {
- /* One revolution in 128 simulation ticks; bit 6 reverses rotation.
- * Phase lives in the existing timer byte, so saves and pools stay the same. */
- unsigned angle=(p->timer+((p->timer&64)?0u-tick/2:tick/2))&63;
- *dx=sine(angle+16)*36;*dy=sine(angle)*36;
-}
-static int magnitude(int v) {return v<0?-v:v;}
-bool jj_rotor_hit(const jj_hazard *p,uint32_t tick,int32_t y) {
- int dx,dy;jj_rotor(p,tick,&dx,&dy);
- int x=64*JJ_Q-p->x,yy=y-p->y*JJ_Q;
- int ax=magnitude(dx),ay=magnitude(dy);
- /* Segment vs player box expanded by the beam's 3 px half-thickness.
- * Early bounds keep the cross products below signed 32-bit limits even
- * for off-screen objects. Unlike a square collider, corners remain safe. */
- if(magnitude(x)>ax+10*JJ_Q||magnitude(yy)>ay+11*JJ_Q)return false;
- return magnitude(x*dy-yy*dx)<=10*JJ_Q*ay+11*JJ_Q*ax;
-}
-unsigned jj_price(unsigned suit) {
- static const uint8_t prices[]={0,50,120,200};return suit<4?prices[suit]:0;
-}
-bool jj_equip(jj_stats *s,unsigned suit) {
- if(suit>=4)return false;
- if(suit&&!(s->owned&(1u<<suit))) {
- unsigned price=jj_price(suit);if(s->wallet<price)return false;
- s->wallet-=price;s->owned|=(uint8_t)(1u<<suit);
- }
- s->suit=(uint8_t)suit;return true;
-}
-void jj_new(jj_game *g,uint32_t seed) {
- memset(g,0,sizeof *g);g->y=198*JJ_Q;g->next=180*JJ_Q;
- g->rng=seed?seed:0x4A455450u;g->present=1;
-}
-void jj_start(jj_game *g,jj_stats *s) {
- if(!g->present||g->phase==JJ_OVER)return;
- if(!g->started)increment(&s->runs),g->started=1;
- g->phase=JJ_RUNNING;
-}
-static void pickup(jj_game *g,int x,int y,unsigned kind) {
- for(unsigned i=0;i<JJ_PICKUPS;++i)if(!g->pickup[i].active) {
- g->pickup[i]=(jj_pickup){x*JJ_Q,(uint16_t)y,(uint8_t)kind,1};return;
- }
-}
-static void hazard(jj_game *g,int x,int y,unsigned kind) {
- for(unsigned i=0;i<JJ_HAZARDS;++i)if(!g->hazard[i].active) {
- unsigned timer=kind==JJ_MISSILE?75:kind==JJ_ROTATING?random(g)&127:0;
- g->hazard[i]=(jj_hazard){x*JJ_Q,(uint16_t)y,(uint8_t)kind,(uint8_t)timer,1};return;
- }
-}
-static void trail(jj_game *g,int x,int y) {
- for(int i=0;i<4;++i)pickup(g,x-68+i*22,y,JJ_COIN);
-}
-static void spawn(jj_game *g) {
- int last=356,safe=120;
- unsigned pattern=!g->events?0:g->events==2?4:random(g)%5;
- if(g->events%5==4) {
- hazard(g,356,120,JJ_MISSILE);g->next=680*JJ_Q;
- } else {
- /* Authored patterns, not independently random hazards: each column leaves
- * a deliberate corridor. A 260 px step leaves >52 collision-free ticks at
- * top speed for a 60 px altitude change. The opening weave blocks both
- * floor camping and ceiling camping, independent of the random seed. */
- if(pattern==0) {
- bool reverse=g->events&&(random(g)&1);
- for(int i=0;i<3;++i) {
- bool low=((i&1)!=0)==reverse;
- safe=low?90:150;last=356+i*260;
- hazard(g,last,low?164:76,JJ_COLUMN);trail(g,last,safe);
- }
- } else if(pattern==1) {
- hazard(g,356,59,JJ_VERTICAL);hazard(g,356,181,JJ_VERTICAL);trail(g,356,120);
- last=616;hazard(g,last,120,JJ_HORIZONTAL);safe=random(g)&1?80:160;trail(g,last,safe);
- } else if(pattern==2) {
- bool reverse=(random(g)&1)!=0;
- for(int i=0;i<3;++i) {
- int y=i==1?130:((i==0)!=reverse?198:42);
- safe=y>175?150:95;last=356+i*260;
- hazard(g,last,y,JJ_HORIZONTAL);trail(g,last,safe);
- }
- } else if(pattern==3) {
- bool reverse=(random(g)&1)!=0;
- for(int i=0;i<2;++i) {
- int offset=((i==0)!=reverse)?-16:16;last=356+i*260;safe=120+offset;
- hazard(g,last,59+offset,JJ_VERTICAL);hazard(g,last,181+offset,JJ_VERTICAL);trail(g,last,safe);
- }
- } else {
- bool reverse=(random(g)&1)!=0;
- for(int i=0;i<2;++i) {
- bool low=((i&1)==0)!=reverse;last=356+i*300;safe=low?160:80;
- hazard(g,last,low?90:150,JJ_ROTATING);
- hazard(g,last,low?198:42,JJ_HORIZONTAL);trail(g,last,safe);
- }
- }
- if(g->events%4==3)pickup(g,last+60,safe,JJ_SHIELD);
- /* Start the next group only after the last hazard has left the screen. */
- g->next=(last-356+440+(int)(random(g)%65))*JJ_Q;
- }
- ++g->events;
-}
-static bool touching(int x,int y,int w,int h,int py,int radius) {
- /* Fixed-point inclusive rectangles. Small player hitbox forgives art edges.
- * The fastest missile moves <10 px/tick: narrower than either collider. */
- return x+w*JJ_Q/2>=(64-radius)*JJ_Q&&x-w*JJ_Q/2<=(64+radius)*JJ_Q&&
- y+h*JJ_Q/2>=py-8*JJ_Q&&y-h*JJ_Q/2<=py+8*JJ_Q;
-}
-void jj_step(jj_game *g,jj_stats *s,bool thrust) {
- if(g->phase!=JJ_RUNNING)return;
- int speed=jj_speed(g);++g->tick;g->thrust=(uint8_t)thrust;
- if(g->invuln)--g->invuln;
- if(g->flash)--g->flash;
- g->vy+=thrust?-46:38;
- if(g->vy<-1050)g->vy=-1050;
- if(g->vy>1150)g->vy=1150;
- g->y+=g->vy;
- if(g->y<42*JJ_Q)g->y=42*JJ_Q,g->vy=0;
- if(g->y>198*JJ_Q)g->y=198*JJ_Q,g->vy=0;
- g->distance+=(uint32_t)speed;g->next-=speed;
- if(g->next<=0)spawn(g);
- /* Pickups resolve first, so a shield collected on a hit can protect you. */
- for(unsigned i=0;i<JJ_PICKUPS;++i) {
- jj_pickup *p=&g->pickup[i];if(!p->active)continue;
- p->x-=speed;
- if(p->x<-16*JJ_Q)p->active=0;
- else if(touching(p->x,p->y*JJ_Q,10,10,g->y,10)) {
- p->active=0;g->flash=6;
- if(p->kind==JJ_SHIELD)g->shield=1;
- else {if(g->coins<65535)++g->coins;increment(&s->coins);increment(&s->wallet);}
- }
- }
- for(unsigned i=0;i<JJ_HAZARDS;++i) {
- jj_hazard *p=&g->hazard[i];if(!p->active)continue;
- if(p->kind==JJ_MISSILE&&p->timer) {
- if(p->timer>35)p->y=(uint16_t)(g->y/JJ_Q);
- --p->timer;continue;
- }
- int w,h;jj_bounds(p->kind,&w,&h);
- int old_right=p->x+w*JJ_Q/2;
- p->x-=speed+(p->kind==JJ_MISSILE?1152:0);
- if(old_right>55*JJ_Q&&p->x+w*JJ_Q/2<=55*JJ_Q) {
- if(g->passed<65535)++g->passed;
- increment(&s->dodged);
- }
- if(p->x<(p->kind==JJ_ROTATING?-48:-40)*JJ_Q)p->active=0;
- else if(!g->invuln&&(p->kind==JJ_ROTATING?jj_rotor_hit(p,g->tick,g->y):touching(p->x,p->y*JJ_Q,w,h,g->y,7))) {
- if(g->shield)g->shield=0,g->invuln=80,p->active=0;
- else g->phase=JJ_OVER,g->reason=(uint8_t)(p->kind==JJ_MISSILE?2:1);
- }
- }
- if(jj_distance(g)>s->best)s->best=jj_distance(g);
- if(g->distance>=JJ_LIMIT*JJ_Q)g->phase=JJ_OVER,g->reason=3;
-}
-bool jj_valid(const jj_game *g,const jj_stats *s) {
- if(s->best>JJ_LIMIT/10||s->suit>3||s->owned>15||s->wallet>s->coins||
- (s->suit&&!(s->owned&(1u<<s->suit)))||g->y<0||g->y>240*JJ_Q||g->vy<-1050||g->vy>1150||
- g->next<0||g->next>1100*JJ_Q||g->distance>JJ_LIMIT*JJ_Q+1200||g->tick>4500000||
- g->phase>JJ_OVER||g->present>1||g->started>1||g->thrust>1||g->shield>1||
- g->invuln>80||g->reason>3||g->flash>6||g->events>30000)return false;
- if(g->present&&(!g->rng||g->y<42*JJ_Q||g->y>198*JJ_Q))return false;
- if(g->phase!=JJ_WAIT&&(!g->present||!g->started))return false;
- for(unsigned i=0;i<JJ_HAZARDS;++i) {
- const jj_hazard *p=&g->hazard[i];
- if(p->active>1||p->kind>JJ_ROTATING||p->timer>(p->kind==JJ_ROTATING?127:75))return false;
- if(p->active&&(p->x<(p->kind==JJ_ROTATING?-48:-40)*JJ_Q||p->x>876*JJ_Q||p->y<42||p->y>198||
- (p->kind!=JJ_MISSILE&&p->kind!=JJ_ROTATING&&p->timer)))return false;
- }
- for(unsigned i=0;i<JJ_PICKUPS;++i) {
- const jj_pickup *p=&g->pickup[i];
- if(p->active>1||p->kind>JJ_SHIELD)return false;
- if(p->active&&(p->x<-16*JJ_Q||p->x>936*JJ_Q||p->y<42||p->y>198))return false;
- }
- return true;
-}
diff --git a/games/jetpackjoyride/src/plat.h b/games/jetpackjoyride/src/plat.h
new file mode 100644
index 00000000..e29d5891
--- /dev/null
+++ b/games/jetpackjoyride/src/plat.h
@@ -0,0 +1,16 @@
+/* What the game needs from the calculator (plat_eadk.c), or from a computer for the tests. */
+#ifndef JJ_PLAT_H
+#define JJ_PLAT_H
+#include <stdbool.h>
+#include <stdint.h>
+
+enum { JK_OK = 1, JK_UP = 2, JK_DOWN = 4, JK_BACK = 8, JK_HOME = 16, JK_ANY = 32 };
+uint32_t plat_keys(void);
+uint32_t plat_millis(void);
+void plat_sleep(uint32_t ms);
+bool plat_save(const char *name, const void *data, uint32_t len);
+const uint8_t *plat_load(const char *name, uint32_t *len);
+uint32_t plat_random(void);
+void plat_begin(void);
+int plat_end(void);
+#endif
diff --git a/games/jetpackjoyride/src/plat_eadk.c b/games/jetpackjoyride/src/plat_eadk.c
new file mode 100644
index 00000000..4fc3c801
--- /dev/null
+++ b/games/jetpackjoyride/src/plat_eadk.c
@@ -0,0 +1,33 @@
+/* The calculator: keys, time, the screen and files (EADK, and NumPlay's careful file helpers). */
+#include <eadk.h>
+#include "../../common/epsilon_app.h"
+#include "../../common/epsilon_files.h"
+#include "../../../launcher/src/np.h"
+#include "plat.h"
+
+const char eadk_app_name[] __attribute__((section(".rodata.eadk_app_name"))) = "Jetpack Joyride";
+const uint32_t eadk_api_level __attribute__((section(".rodata.eadk_api_level"))) = 0;
+
+#define KEY(k) ((uint64_t)1 << (k))
+
+uint32_t plat_keys(void) {
+ uint64_t k = eadk_keyboard_scan();
+ uint32_t r = 0;
+ if (k & (KEY(eadk_key_ok) | KEY(eadk_key_exe) | KEY(eadk_key_five))) r |= JK_OK;
+ if (k & (KEY(eadk_key_up) | KEY(eadk_key_eight))) r |= JK_UP;
+ if (k & (KEY(eadk_key_down) | KEY(eadk_key_two))) r |= JK_DOWN;
+ if (k & (KEY(eadk_key_back) | KEY(eadk_key_backspace))) r |= JK_BACK;
+ if (k & (KEY(eadk_key_home) | KEY(eadk_key_on_off))) r |= JK_HOME;
+ if (k) r |= JK_ANY;
+ return r;
+}
+uint32_t plat_millis(void) { return (uint32_t)eadk_timing_millis(); }
+void plat_sleep(uint32_t ms) { eadk_timing_msleep(ms); }
+void np_push(int x, int y, int w, int h, const color_t *px) {
+ eadk_display_push_rect((eadk_rect_t){(uint16_t)x, (uint16_t)y, (uint16_t)w, (uint16_t)h}, px);
+}
+bool plat_save(const char *name, const void *data, uint32_t len) { return ef_write(name, data, len); }
+const uint8_t *plat_load(const char *name, uint32_t *len) { return ef_read(name, len); }
+uint32_t plat_random(void) { return eadk_random(); }
+void plat_begin(void) { np_app_begin(); }
+int plat_end(void) { return np_app_end(); }
diff --git a/games/jetpackjoyride/src/render.c b/games/jetpackjoyride/src/render.c
deleted file mode 100644
index fbd7ef94..00000000
--- a/games/jetpackjoyride/src/render.c
+++ /dev/null
@@ -1,379 +0,0 @@
-/* SPDX-License-Identifier: GPL-3.0-only
- * Halfbrick sprites adapted for a 5 KiB strip renderer; no framebuffer.
- */
-#include "render.h"
-#include "assets.h"
-#include <stdlib.h>
-#include <string.h>
-#define C(v) ((uint16_t)((((v)>>8)&0xF800)|(((v)>>5)&0x07E0)|(((v)>>3)&31)))
-#define INK C(0x080D18)
-#define BG C(0x202B3E)
-#define PANEL C(0x35445D)
-#define EDGE C(0x748097)
-#define MUTED C(0xBAC4D2)
-#define WHITE C(0xFFF9E8)
-#define CYAN C(0x70C9F4)
-#define AMBER C(0xFFD04B)
-#define RED C(0xF57862)
-static uint16_t band[320*8];
-static int x0,y0,x1,y1;
-static int16_t lo[30],hi[30];
-static bool initialized;
-static const jj_game *world;
-static const jj_stats *stats;
-static unsigned page,selection;
-static bool failed;
-static uint32_t menu_frame,old_menu_frame;
-void jj_menu_time(uint32_t ms) {menu_frame=ms/80;}
-static const uint8_t alphabet[][5] = {
- {0x7e,0x11,0x11,0x11,0x7e},{0x7f,0x49,0x49,0x49,0x36},{0x3e,0x41,0x41,0x41,0x22},
- {0x7f,0x41,0x41,0x22,0x1c},{0x7f,0x49,0x49,0x49,0x41},{0x7f,0x09,0x09,0x09,0x01},
- {0x3e,0x41,0x49,0x49,0x7a},{0x7f,0x08,0x08,0x08,0x7f},{0x00,0x41,0x7f,0x41,0x00},
- {0x20,0x40,0x41,0x3f,0x01},{0x7f,0x08,0x14,0x22,0x41},{0x7f,0x40,0x40,0x40,0x40},
- {0x7f,0x02,0x0c,0x02,0x7f},{0x7f,0x04,0x08,0x10,0x7f},{0x3e,0x41,0x41,0x41,0x3e},
- {0x7f,0x09,0x09,0x09,0x06},{0x3e,0x41,0x51,0x21,0x5e},{0x7f,0x09,0x19,0x29,0x46},
- {0x46,0x49,0x49,0x49,0x31},{0x01,0x01,0x7f,0x01,0x01},{0x3f,0x40,0x40,0x40,0x3f},
- {0x1f,0x20,0x40,0x20,0x1f},{0x3f,0x40,0x38,0x40,0x3f},{0x63,0x14,0x08,0x14,0x63},
- {0x07,0x08,0x70,0x08,0x07},{0x61,0x51,0x49,0x45,0x43},
- {0x3e,0x51,0x49,0x45,0x3e},{0x00,0x42,0x7f,0x40,0x00},{0x62,0x51,0x49,0x49,0x46},
- {0x22,0x41,0x49,0x49,0x36},{0x18,0x14,0x12,0x7f,0x10},{0x27,0x45,0x45,0x45,0x39},
- {0x3c,0x4a,0x49,0x49,0x30},{0x01,0x71,0x09,0x05,0x03},{0x36,0x49,0x49,0x49,0x36},
- {0x06,0x49,0x49,0x29,0x1e},
- {0,0x08,0x3e,0x08,0},{0,0x08,0x08,0x08,0},{0,0x60,0x60,0,0},
- {0,0x36,0x36,0,0},{0x20,0x10,0x08,0x04,0x02},{0,0,0x5f,0,0},
- {0x08,0x14,0x22,0x41,0},{0x41,0x22,0x14,0x08,0},{0,0,0x7f,0,0}
-};
-
-static void mark(int x,int y,int w,int h) {
- if(x<0)w+=x,x=0;
- if(y<0)h+=y,y=0;
- if(x+w>320)w=320-x;
- if(y+h>240)h=240-y;
- if(w<=0||h<=0)return;
- for(int row=y/8;row<=(y+h-1)/8;++row) {
- if(x<lo[row])lo[row]=(int16_t)x;
- if(x+w>hi[row])hi[row]=(int16_t)(x+w);
- }
-}
-void jj_invalidate(void) {initialized=false;mark(0,0,320,240);}
-static void pixel(int x,int y,uint16_t color) {
- if(x>=x0&&x<x1&&y>=y0&&y<y1)band[(y-y0)*(x1-x0)+x-x0]=color;
-}
-static void rect(int x,int y,int w,int h,uint16_t color) {
- int l=x<x0?x0:x,t=y<y0?y0:y,r=x+w>x1?x1:x+w,b=y+h>y1?y1:y+h;
- if(l>=r||t>=b)return;
- for(int j=t;j<b;++j) {
- uint16_t *p=band+(j-y0)*(x1-x0)+l-x0;
- for(int i=l;i<r;++i)*p++=color;
- }
-}
-static void line(int a,int b,int c,int d,uint16_t color) {
- if((a<x0&&c<x0)||(a>=x1&&c>=x1)||(b<y0&&d<y0)||(b>=y1&&d>=y1))return;
- int dx=abs(c-a),sx=a<c?1:-1,dy=-abs(d-b),sy=b<d?1:-1,e=dx+dy;
- for(;;) {
- pixel(a,b,color);
- if(a==c&&b==d)break;
- int twice=e*2;
- if(twice>=dy)e+=dy,a+=sx;
- if(twice<=dx)e+=dx,b+=sy;
- }
-}
-static void circle(int x,int y,int r,uint16_t color) {
- if(y+r<y0||y-r>=y1||x+r<x0||x-r>=x1)return;
- int start=y-r>y0?y-r:y0,end=y+r<y1?y+r:y1-1;
- for(int j=start;j<=end;++j) {
- int dy=j-y,half=0;
- while((half+1)*(half+1)+dy*dy<=r*r)++half;
- rect(x-half,j,half*2+1,1,color);
- }
-}
-static void text(int x,int y,const char *s,int scale,uint16_t color) {
- if(y>=y1||y+7*scale<=y0)return;
- for(;*s;++s,x+=6*scale) {
- unsigned ch=(unsigned char)*s,i;
- if(ch>='a'&&ch<='z')ch-=32;
- if(ch>='A'&&ch<='Z')i=ch-'A';
- else if(ch>='0'&&ch<='9')i=ch-'0'+26;
- else {
- static const char punctuation[]="+-.:/!<>|";const char *p=strchr(punctuation,(int)ch);
- if(!p||ch==' ')continue;
- i=36+(unsigned)(p-punctuation);
- }
- for(int col=0;col<5;++col)for(int row=0;row<7;++row)
- if(alphabet[i][col]&(1<<row))rect(x+col*scale,y+row*scale,scale,scale,color);
- }
-}
-static void center(int x,int y,const char *s,int scale,uint16_t color) {
- text(x-((int)strlen(s)*6*scale-scale)/2,y,s,scale,color);
-}
-static void number(int x,int y,uint32_t value,int scale,uint16_t color) {
- char s[11];unsigned n=0;
- do{s[n++]=(char)('0'+value%10);value/=10;}while(value);
- for(unsigned i=0;i<n/2;++i){char c=s[i];s[i]=s[n-i-1];s[n-i-1]=c;}
- s[n]=0;text(x,y,s,scale,color);
-}
-
-static void sprite(const jj_sprite *im,int x,int y,int scale,const uint16_t *palette) {
- if(x+(int)im->w*scale<=x0||x>=x1||y+(int)im->h*scale<=y0||y>=y1)return;
- if(!palette)palette=im->palette;
- int first=y<y0?(y0-y)/scale:0,last=(y1-y+scale-1)/scale;
- if(last>im->h)last=im->h;
- for(int row=first;row<last;++row) {
- const uint8_t *p=im->data+im->rows[row],*end=im->data+im->rows[row+1];
- int xx=x,yy=y+row*scale;
- while(p<end) {
- unsigned tag=*p++,n=(tag&127)+1;
- if(tag&128) {
- unsigned color=*p++;
- if(color)rect(xx,yy,(int)n*scale,scale,palette[color]);
- xx+=(int)n*scale;
- } else {
- for(unsigned i=0;i<n;++i,xx+=scale) {
- unsigned color=im->bits==4?(p[i/2]>>(i&1?0:4))&15:p[i];
- if(color&&xx+scale>x0&&xx<x1)rect(xx,yy,scale,scale,palette[color]);
- }
- p+=im->bits==4?(n+1)/2:n;
- }
- }
- }
-}
-static void outlined(int x,int y,const char *s,int scale,uint16_t color) {
- text(x-1,y,s,scale,INK);text(x+1,y,s,scale,INK);
- text(x,y-1,s,scale,INK);text(x,y+1,s,scale,INK);text(x,y,s,scale,color);
-}
-static uint16_t suit_color(unsigned suit) {
- static const uint16_t colors[]={AMBER,CYAN,C(0xF58BB5),C(0xA8D864)};
- return colors[suit&3];
-}
-static void pilot(int x,int y,int scale,bool thrust,unsigned tick,unsigned suit) {
- unsigned frame=thrust?4+(tick/4)%4:(tick/5)%4;
- if(thrust) {
- /* Machine-gun exhaust: a real muzzle flash and a few deterministic shots. */
- sprite(jj_flash[(tick/3)&1],x-18*scale,y+7*scale,scale,0);
- for(unsigned i=0;i<3;++i) {
- int d=(int)((tick*5+i*13)%36);
- int yy=y+(14+d)*scale;
- if(yy<216)rect(x-12*scale+(int)(i&1)*3*scale,yy,scale,yy+3*scale>216?216-yy:3*scale,AMBER);
- }
- }
- sprite(jj_barry[frame],x-17*scale,y-24*scale,scale,jj_suit_palettes[suit&3]);
-}
-static void coin(int x,int y,unsigned tick) {
- sprite(jj_coin[(tick/3)&7],x-5,y-5,1,0);
-}
-static void shield(int x,int y) {
- sprite(&jj_shield,x-9,y-9,1,0);
-}
-static void cap(int x,int y) {sprite(&jj_zapper_cap,x-7,y-7,1,0);}
-static void zapper(int x,int y,unsigned kind,unsigned tick) {
- int w,h;jj_bounds(kind,&w,&h);unsigned frame=(tick/3)%3;
- bool vertical=kind==JJ_VERTICAL||kind==JJ_COLUMN;
- const jj_sprite *im=kind==JJ_HORIZONTAL?jj_beam_h[frame]:kind==JJ_COLUMN?jj_beam_c[frame]:jj_beam_v[frame];
- sprite(im,x-w/2,y-h/2,1,0);
- if(vertical)cap(x,y-h/2),cap(x,y+h/2);
- else cap(x-w/2,y),cap(x+w/2,y);
-}
-static void rotor(const jj_hazard *p) {
- int dx,dy;jj_rotor(p,world->tick,&dx,&dy);
- dx/=JJ_Q;dy/=JJ_Q;int x=p->x/JJ_Q,y=p->y;
- if(x+45<x0||x-45>=x1||y+45<y0||y-45>=y1)return;
- bool horizontal=abs(dx)>=abs(dy);
- for(int k=-3;k<=3;++k)line(x-dx+(horizontal?0:k),y-dy+(horizontal?k:0),
- x+dx+(horizontal?0:k),y+dy+(horizontal?k:0),k==0?WHITE:k==1||k==-1?AMBER:C(0x906426));
- /* A small travelling arc follows the same finite beam as the collider. */
- int jitter=world->tick&2?2:-2;
- line(x-dx,y-dy,x+jitter,y-jitter,WHITE);
- line(x+jitter,y-jitter,x+dx,y+dy,WHITE);
- cap(x-dx,y-dy);cap(x+dx,y+dy);
-}
-static void floor_panel(unsigned shift) {
- for(int x=-(int)(shift%256);x<320;x+=256)sprite(&jj_floor,x,216,2,0);
-}
-static void lab(unsigned shift) {
- rect(x0,y0,x1-x0,y1-y0,INK);
- shift%=256;
- for(int x=-(int)shift;x<320;x+=256)sprite(&jj_lab,x,24,2,0);
- /* Continue the supplied floor/ceiling textures beyond the play area. */
- rect(0,0,320,24,C(0x252B36));rect(0,21,320,3,C(0xA0A7AD));
- floor_panel(shift);
-}
-static void flight(void) {
- unsigned shift=world->distance/(JJ_Q*2);
- lab(shift);
- for(unsigned i=0;i<3;++i) {
- int x=355-(int)((shift+i*137)%450);
- sprite(jj_scientist[(world->tick/7+i)&3],x,195,1,0);
- }
- for(unsigned i=0;i<JJ_PICKUPS;++i) {
- const jj_pickup *p=&world->pickup[i];if(!p->active)continue;
- int x=p->x/JJ_Q;
- if(p->kind==JJ_COIN)coin(x,p->y,world->tick);else shield(x,p->y);
- }
- for(unsigned i=0;i<JJ_HAZARDS;++i) {
- const jj_hazard *p=&world->hazard[i];if(!p->active)continue;
- int x=p->x/JJ_Q,y=p->y;
- if(p->kind==JJ_ROTATING)rotor(p);
- else if(p->kind!=JJ_MISSILE)zapper(x,y,p->kind,world->tick);
- else if(p->timer) {
- bool locked=p->timer<=35;
- if(locked||world->tick%16<11) {
- rect(286,y-12,32,25,INK);
- sprite(&jj_warning,290,y-9,1,0);
- text(310,y-3,"<",1,locked?RED:AMBER);
- }
- } else {
- sprite(jj_flash[(world->tick/3)&1],x+11,y-8,1,0);
- sprite(&jj_missile,x-14,y-11,1,0);
- }
- }
- int y=world->y/JJ_Q;
- if((world->shield||world->invuln)&&(world->shield||world->tick%8<5)) {
- circle(63,y-3,22,C(0x51C0F2));circle(63,y-3,20,C(0x2B5978));
- circle(63,y-3,18,C(0x203A57));
- }
- pilot(64,y,1,world->thrust,world->tick,stats->suit);
- /* Art below the floor is clipped by the foreground rail. */
- floor_panel(shift);
- rect(0,0,320,24,C(0x252B36));
- uint32_t meters=jj_distance(world),v=meters;unsigned digits=1;while(v>=10)v/=10,++digits;
- number(9,4,meters,2,WHITE);text(13+(int)digits*12,10,"M",1,WHITE);
- coin(183,11,0);number(194,7,world->coins,1,AMBER);
- if(world->shield)shield(274,11);
- rect(300,5,3,11,C(0xAFB8C3));rect(306,5,3,11,C(0xAFB8C3));
-}
-static void footer(const char *hint) {
- rect(0,219,320,21,INK);rect(0,219,320,1,EDGE);text(12,227,hint,1,MUTED);
-}
-static void heading(const char *label,const char *sub) {
- lab(64);
- rect(0,0,320,58,INK);rect(0,56,320,2,AMBER);
- outlined(12,12,label,2,WHITE);text(13,38,sub,1,MUTED);
-}
-static void button(int x,int y,int w,int h,const char *label,bool on) {
- rect(x,y+2,w,h,INK);rect(x,y,w,h-2,on?C(0x9A5E0F):C(0x3A4355));
- rect(x+1,y+1,w-2,h-5,on?C(0xF4B531):C(0x65718A));
- rect(x+2,y+2,w-4,(h-6)/2,on?C(0xFFDA67):C(0x7A879D));
- rect(x+2,y+h-5,w-4,1,on?C(0xF8D050):C(0xA4B0BC));
- center(x+w/2,y+(h-10)/2,label,1,on?INK:WHITE);
- if(on)text(x+8,y+(h-10)/2,">",1,INK);
-}
-static void title(void) {
- lab(menu_frame);
- sprite(&jj_jetpack_word,17,25,1,0);sprite(&jj_joyride_word,20,79,1,0);
- int bob=(int)((menu_frame/4)%12);if(bob>6)bob=12-bob;
- sprite(&jj_hero,238,40+bob,1,0);
- outlined(15,7,"BEST",1,MUTED);number(49,7,stats->best,1,WHITE);text(98,7,"M",1,MUTED);
- coin(243,10,0);number(254,7,stats->wallet,1,AMBER);
- button(52,148,216,33,world->started&&world->phase!=JJ_OVER?"RESUME RUN":"PLAY",selection==0);
- button(52,187,104,27,"THE STASH",selection==1);
- button(164,187,104,27,"HOW TO PLAY",selection==2);
- rect(0,222,320,18,INK);text(10,228,"BY BOBYDELUXE",1,MUTED);text(255,228,"OK PLAY",1,WHITE);
-}
-static const char *const suits[]={"CLASSIC","ARCTIC","ROSE","LIME"};
-static void shop(void) {
- heading("THE STASH","OUTFITS");
- coin(230,41,0);number(242,38,stats->wallet,1,AMBER);
- for(unsigned i=0;i<4;++i) {
- int x=9+(int)i*78;bool on=selection==i;
- rect(x-1,70,70,116,INK);rect(x,71,68,114,on?C(0x956320):C(0x4E5E74));
- rect(x+2,73,64,110,on?C(0x394355):C(0x243147));
- if(on)rect(x+2,73,64,2,AMBER),rect(x+2,181,64,2,AMBER);
- center(x+34,81,suits[i],1,on?AMBER:WHITE);
- pilot(x+34,132,1,true,12,i);
- const char *status=stats->suit==i?"EQUIPPED":!i||(stats->owned&(1u<<i))?"OWNED":0;
- if(status)center(x+34,165,status,1,stats->suit==i?CYAN:MUTED);
- else {coin(x+21,168,0);number(x+31,165,jj_price(i),1,AMBER);}
- }
- const char *hint=stats->suit==selection?"EQUIPPED":!selection||(stats->owned&(1u<<selection))?"OK EQUIP OUTFIT":stats->wallet<jj_price(selection)?"COLLECT MORE COINS":"OK BUY OUTFIT";
- center(160,202,hint,1,failed?RED:WHITE);
- footer(failed?"SAVE FAILED / HOME TO RETRY":"ARROWS CHOOSE BACK RETURN");
-}
-static void guide(void) {
- heading("HOW TO PLAY","JETPACK JOYRIDE");
- rect(57,65,256,43,BG);rect(57,113,256,43,BG);rect(57,160,256,49,BG);
- pilot(31,91,1,true,0,stats->suit);
- text(63,73,"HOLD OK / EXE / UP TO RISE.",1,WHITE);
- text(63,89,"RELEASE TO FALL. NO FUEL LIMIT.",1,MUTED);
- zapper(31,139,JJ_VERTICAL,0);
- text(63,119,"DODGE ELECTRIC ZAPPERS.",1,WHITE);
- text(63,135,"SOME ROTATE. MISSILES LOCK ON.",1,MUTED);
- coin(23,185,0);shield(44,185);
- text(63,168,"COINS BUY OUTFITS IN THE STASH.",1,WHITE);
- text(63,184,"SHIELDS PROTECT AGAINST ONE HIT.",1,MUTED);
- text(63,200,"BACK PAUSES. HOME SAVES AND EXITS.",1,MUTED);
- footer("OK / BACK RETURN");
-}
-static void choice(int y,const char *label,unsigned id) {
- bool on=selection==id;
- if(on)rect(29,y-5,262,20,C(0x806026)),rect(29,y-5,3,20,AMBER);
- text(42,y,label,1,on?WHITE:MUTED);
- if(on)text(270,y,">",1,AMBER);
-}
-static void modal(void) {
- rect(17,44,286,158,INK);rect(20,47,280,152,C(0x4D596C));
- rect(23,50,274,146,BG);rect(23,50,274,3,AMBER);
- if(page==JJ_READY) {
- center(160,65,world->started?"READY TO RESUME":"LET'S GO",2,WHITE);
- center(160,101,"HOLD TO RISE. RELEASE TO FALL.",1,MUTED);
- center(160,121,"WATCH OUT FOR ZAPPERS!",1,AMBER);
- center(160,157,world->started?"OK / EXE RESUME":"OK / EXE PLAY",1,WHITE);
- center(160,180,"BACK MAIN MENU",1,MUTED);
- } else if(page==JJ_PAUSE) {
- text(34,61,"PAUSED",2,WHITE);
- text(35,84,failed?"SAVE FAILED - CHECK STORAGE":"PROGRESS SAVED",1,failed?RED:MUTED);
- choice(107,"RESUME",0);choice(129,"NEW RUN",1);
- choice(151,"HOW TO PLAY",2);choice(177,"MAIN MENU",3);
- } else if(page==JJ_CONFIRM) {
- center(160,65,"START A NEW RUN",2,WHITE);
- center(160,97,"THIS RUN WILL END.",1,MUTED);
- center(160,113,"YOUR COINS AND RECORD WILL STAY.",1,MUTED);
- choice(147,"KEEP PLAYING",0);choice(177,"START NEW",1);
- } else if(page==JJ_BUY) {
- unsigned item=selection>>1;
- center(160,65,"BUY OUTFIT",2,WHITE);
- text(35,99,suits[item],1,suit_color(item));number(170,99,jj_price(item),1,AMBER);text(200,99,"COINS",1,MUTED);
- center(160,119,"PERMANENT UNLOCK. NO GAMEPLAY CHANGE.",1,MUTED);
- unsigned saved=selection;selection&=1;
- choice(149,"CANCEL",0);choice(178,"BUY AND EQUIP",1);selection=saved;
- } else if(page==JJ_SAVE_ERROR) {
- center(160,65,"SAVE FAILED",2,RED);
- center(160,95,"FREE STORAGE MAY BE FULL.",1,MUTED);
- center(160,113,"YOUR RUN IS STILL IN MEMORY.",1,MUTED);
- text(35,140,"OK RETRY SAVE AND EXIT",1,WHITE);
- text(35,162,"1 RETURN TO GAME",1,CYAN);
- text(35,183,"BACK EXIT WITHOUT SAVING",1,AMBER);
- } else {
- text(34,62,"RUN COMPLETE",2,WHITE);
- text(35,87,world->reason==2?"MISSILE HIT":world->reason==3?"LAB END REACHED":"ZAPPED!",1,AMBER);
- number(35,106,jj_distance(world),3,WHITE);text(35,133,"METERS",1,MUTED);
- coin(235,116,0);number(247,113,world->coins,1,AMBER);
- choice(154,"TRY AGAIN",0);choice(180,"MAIN MENU",1);
- }
-}
-
-static unsigned old_page=99,old_selection;
-static uint32_t old_tick,old_distance,old_wallet;
-static uint16_t old_coins;
-static uint8_t old_shield,old_suit;
-static bool old_failed;
-void jj_render(const jj_game *g,const jj_stats *s,unsigned view,unsigned selected,bool save_failed,jj_push push) {
- world=g;stats=s;page=view;selection=selected;failed=save_failed;
- if(!initialized||view!=old_page||selected!=old_selection||failed!=old_failed||s->suit!=old_suit||
- (view!=JJ_PLAY&&old_wallet!=s->wallet))mark(0,0,320,240);
- else if(view==JJ_PLAY&&old_tick!=g->tick)mark(0,24,320,216);
- else if(view==JJ_TITLE&&menu_frame!=old_menu_frame)mark(0,0,320,240);
- if(view==JJ_PLAY&&(old_distance!=jj_distance(g)||old_coins!=g->coins||old_shield!=g->shield))mark(0,0,320,24);
- old_page=view;old_selection=selected;old_tick=g->tick;old_failed=failed;
- old_distance=jj_distance(g);old_coins=g->coins;old_shield=g->shield;
- old_wallet=s->wallet;old_suit=s->suit;
- old_menu_frame=menu_frame;
- for(int row=0;row<30;++row) {
- if(hi[row]<=lo[row])continue;
- x0=lo[row];x1=hi[row];y0=row*8;y1=y0+8;
- if(view==JJ_TITLE)title();else if(view==JJ_SHOP)shop();else if(view==JJ_GUIDE)guide();
- else if(view==JJ_BUY){rect(x0,y0,x1-x0,y1-y0,BG);modal();}
- else {if(g->present)flight();else title();if(view!=JJ_PLAY)modal();}
- push(x0,y0,x1-x0,8,band);lo[row]=320;hi[row]=0;
- }
- initialized=true;
-}
diff --git a/games/jetpackjoyride/src/render.h b/games/jetpackjoyride/src/render.h
deleted file mode 100644
index 9c46a96c..00000000
--- a/games/jetpackjoyride/src/render.h
+++ /dev/null
@@ -1,10 +0,0 @@
-/* SPDX-License-Identifier: GPL-3.0-only */
-#ifndef JETPACK_RENDER_H
-#define JETPACK_RENDER_H
-#include "jetpack.h"
-enum { JJ_TITLE,JJ_PLAY,JJ_READY,JJ_PAUSE,JJ_SHOP,JJ_GUIDE,JJ_CONFIRM,JJ_RESULT,JJ_SAVE_ERROR,JJ_BUY };
-typedef void (*jj_push)(int x,int y,int w,int h,const uint16_t *pixels);
-void jj_invalidate(void);
-void jj_menu_time(uint32_t ms);
-void jj_render(const jj_game *g,const jj_stats *s,unsigned page,unsigned selected,bool failed,jj_push push);
-#endif
diff --git a/games/jetpackjoyride/src/save.c b/games/jetpackjoyride/src/save.c
index 9398797d..40bf0990 100644
--- a/games/jetpackjoyride/src/save.c
+++ b/games/jetpackjoyride/src/save.c
@@ -1,48 +1,110 @@
-/* SPDX-License-Identifier: GPL-3.0-only */
-#include "jetpack.h"
+/* The save (save.h): a packed file with a magic, a version, its size and a checksum; anything else (a file
+ * from another version, damaged, cut short) is not read, and the copy in the Python script is tried. */
#include <string.h>
-static void w16(uint8_t *p,uint32_t v) {p[0]=(uint8_t)v;p[1]=(uint8_t)(v>>8);}
-static unsigned r16(const uint8_t *p) {return p[0]|(unsigned)p[1]<<8;}
-static void w32(uint8_t *p,uint32_t v) {w16(p,v);w16(p+2,v>>16);}
-static uint32_t r32(const uint8_t *p) {return r16(p)|(uint32_t)r16(p+2)<<16;}
-static uint32_t checksum(const uint8_t *p) {
- uint32_t h=2166136261u;for(unsigned i=0;i<JJ_SAVE_BYTES-4;++i)h=(h^p[i])*16777619u;return h;
+#include "plat.h"
+#include "save.h"
+
+uint32_t jj_sum(const void *data, uint32_t n) {
+ const uint8_t *p = data;
+ uint32_t h = 2166136261u;
+ for (uint32_t i = 0; i < n; i++) h = (h ^ p[i]) * 16777619u;
+ return h;
}
-void jj_encode(const jj_game *g,const jj_stats *s,uint8_t out[JJ_SAVE_BYTES]) {
- memset(out,0,JJ_SAVE_BYTES);memcpy(out,"JJN2",4);
- w32(out+4,s->best);w32(out+8,s->runs);w32(out+12,s->coins);w32(out+16,s->dodged);
- w32(out+20,g->rng);w32(out+24,g->tick);w32(out+28,g->distance);
- w32(out+32,g->y);w32(out+36,g->vy);w32(out+40,g->next);
- w16(out+44,g->coins);w16(out+46,g->passed);w16(out+48,g->events);
- out[50]=g->phase;out[51]=g->present;out[52]=g->started;out[53]=g->thrust;
- out[54]=g->shield;out[55]=g->invuln;out[56]=g->reason;out[57]=g->flash;
- w32(out+58,s->wallet);out[62]=s->owned;out[63]=s->suit;
- for(unsigned i=0;i<JJ_HAZARDS;++i) {
- const jj_hazard *p=&g->hazard[i];uint8_t *d=out+64+i*12;
- w32(d,p->x);w16(d+4,p->y);d[6]=p->kind;d[7]=p->timer;d[8]=p->active;
+
+bool jj_file_ok(const jj_file *f) {
+ if (f->magic != JJ_MAGIC || f->version != JJ_VERSION || f->size != sizeof *f) return false;
+ if (f->sum != jj_sum(f, offsetof(jj_file, sum))) return false;
+ const jj_profile *p = &f->p;
+ if (p->guide_seen > 1 || p->head_start > 1 || p->double_coins > 1 || p->has_run > 1) return false;
+ return !p->has_run || jj_valid(&f->run);
+}
+
+static const char head[] = "# Jetpack Joyride keeps a copy of your best and your coins\n"
+ "# here, so that installing it again doesn't erase them.\n";
+static const char b64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
+static uint8_t copy[1 + sizeof head + 2 + sizeof JJ_SAVE_NAME + 1 + (sizeof(jj_file) + 2) / 3 * 4 + 2];
+
+static bool copy_write(const jj_file *f) {
+ const uint8_t *d = (const uint8_t *)f;
+ uint32_t len = sizeof *f, nl = sizeof JJ_SAVE_NAME - 1;
+ uint8_t *p = copy;
+ *p++ = 0; /* (a script's first byte: not imported) */
+ memcpy(p, head, sizeof head - 1), p += sizeof head - 1;
+ *p++ = '#', *p++ = '>';
+ memcpy(p, JJ_SAVE_NAME, nl), p += nl;
+ *p++ = ':';
+ for (uint32_t i = 0; i < len; i += 3, p += 4) {
+ uint32_t left = len - i, v = (uint32_t)d[i] << 16 | (left > 1 ? (uint32_t)d[i + 1] << 8 : 0) | (left > 2 ? d[i + 2] : 0);
+ p[0] = (uint8_t)b64[v >> 18 & 63];
+ p[1] = (uint8_t)b64[v >> 12 & 63];
+ p[2] = left > 1 ? (uint8_t)b64[v >> 6 & 63] : '=';
+ p[3] = left > 2 ? (uint8_t)b64[v & 63] : '=';
}
- for(unsigned i=0;i<JJ_PICKUPS;++i) {
- const jj_pickup *p=&g->pickup[i];uint8_t *d=out+112+i*8;
- w32(d,p->x);w16(d+4,p->y);d[6]=p->kind;d[7]=p->active;
+ *p++ = '\n';
+ return plat_save(JJ_COPY_NAME, copy, (uint32_t)(p - copy));
+}
+
+static int b64v(uint8_t c) {
+ for (int i = 0; i < 64; i++)
+ if ((uint8_t)b64[i] == c) return i;
+ return -1;
+}
+
+static bool copy_read(jj_file *f) {
+ uint32_t n, nl = sizeof JJ_SAVE_NAME - 1;
+ const uint8_t *c = plat_load(JJ_COPY_NAME, &n);
+ if (!c) return false;
+ for (uint32_t i = 0; i + nl + 3 <= n; i++) {
+ if (c[i] != '#' || c[i + 1] != '>' || memcmp(c + i + 2, JJ_SAVE_NAME, nl) || c[i + 2 + nl] != ':') continue;
+ const uint8_t *l = c + i + 3 + nl;
+ uint32_t m = 0;
+ while (l + m < c + n && l[m] != '\n' && l[m]) m++;
+ if (m != (sizeof *f + 2) / 3 * 4) return false;
+ uint8_t *out = (uint8_t *)f;
+ uint32_t o = 0;
+ for (uint32_t k = 0; k < m; k += 4) {
+ int v0 = b64v(l[k]), v1 = b64v(l[k + 1]), v2 = l[k + 2] == '=' ? 0 : b64v(l[k + 2]), v3 = l[k + 3] == '=' ? 0 : b64v(l[k + 3]);
+ if (v0 < 0 || v1 < 0 || v2 < 0 || v3 < 0) return false;
+ uint32_t w = (uint32_t)(v0 << 18 | v1 << 12 | v2 << 6 | v3);
+ if (o < sizeof *f) out[o++] = (uint8_t)(w >> 16);
+ if (o < sizeof *f) out[o++] = (uint8_t)(w >> 8);
+ if (o < sizeof *f) out[o++] = (uint8_t)w;
+ }
+ return true;
}
- w32(out+256,checksum(out));
+ return false;
}
-bool jj_decode(jj_game *g,jj_stats *s,const uint8_t *p,size_t n) {
- if(!p||n!=JJ_SAVE_BYTES||(memcmp(p,"JJN1",4)&&memcmp(p,"JJN2",4))||r32(p+256)!=checksum(p))return false;
- jj_game a;memset(&a,0,sizeof a);jj_stats b;memset(&b,0,sizeof b);
- b.best=r32(p+4);b.runs=r32(p+8);b.coins=r32(p+12);b.dodged=r32(p+16);
- b.wallet=p[3]=='1'?b.coins:r32(p+58);b.owned=p[3]=='1'?0:p[62];b.suit=p[3]=='1'?0:p[63];
- a.rng=r32(p+20);a.tick=r32(p+24);a.distance=r32(p+28);
- a.y=(int32_t)r32(p+32);a.vy=(int32_t)r32(p+36);a.next=(int32_t)r32(p+40);
- a.coins=(uint16_t)r16(p+44);a.passed=(uint16_t)r16(p+46);a.events=(uint16_t)r16(p+48);
- a.phase=p[50];a.present=p[51];a.started=p[52];a.thrust=p[53];
- a.shield=p[54];a.invuln=p[55];a.reason=p[56];a.flash=p[57];
- for(unsigned i=0;i<JJ_HAZARDS;++i) {
- const uint8_t *d=p+64+i*12;a.hazard[i]=(jj_hazard){(int32_t)r32(d),(uint16_t)r16(d+4),d[6],d[7],d[8]};
+
+static jj_file file; /* (static: the stack stays small) */
+
+void save_load(jj_profile *p, jj_run *r) {
+ uint32_t n;
+ const uint8_t *d = plat_load(JJ_SAVE_NAME, &n);
+ bool ok = false;
+ if (d && n == sizeof file) {
+ memcpy(&file, d, sizeof file);
+ ok = jj_file_ok(&file);
}
- for(unsigned i=0;i<JJ_PICKUPS;++i) {
- const uint8_t *d=p+112+i*8;a.pickup[i]=(jj_pickup){(int32_t)r32(d),(uint16_t)r16(d+4),d[6],d[7]};
+ if (!ok && copy_read(&file) && jj_file_ok(&file)) {
+ ok = true;
+ plat_save(JJ_SAVE_NAME, &file, sizeof file); /* back where it belongs */
}
- if(!jj_valid(&a,&b))return false;
- *g=a;*s=b;return true;
+ if (ok) {
+ *p = file.p;
+ if (p->has_run) *r = file.run;
+ } else {
+ memset(p, 0, sizeof *p);
+ }
+}
+
+bool save_write(const jj_profile *p, const jj_run *r) {
+ memset(&file, 0, sizeof file);
+ file.magic = JJ_MAGIC, file.version = JJ_VERSION, file.size = sizeof file;
+ file.p = *p;
+ file.p.has_run = r != 0;
+ if (r) file.run = *r;
+ file.sum = jj_sum(&file, offsetof(jj_file, sum));
+ bool ok = plat_save(JJ_SAVE_NAME, &file, sizeof file);
+ copy_write(&file);
+ return ok;
}
diff --git a/games/jetpackjoyride/src/save.h b/games/jetpackjoyride/src/save.h
new file mode 100644
index 00000000..1d77d5d3
--- /dev/null
+++ b/games/jetpackjoyride/src/save.h
@@ -0,0 +1,30 @@
+/* What's kept: the records, the next run's prizes and a run left with Home, in jetpackjoyride.sav, and a copy
+ * of it in a Python script, jetpackjoyride_saves.py (installing apps from the NumWorks website keeps only
+ * scripts, so the save comes back from it). */
+#ifndef JJ_SAVE_H
+#define JJ_SAVE_H
+#include "jj.h"
+
+typedef struct {
+ uint32_t best, coins, runs;
+ uint8_t guide_seen, head_start, double_coins, has_run;
+} jj_profile;
+
+#define JJ_SAVE_NAME "jetpackjoyride.sav"
+#define JJ_COPY_NAME "jetpackjoyride_saves.py"
+#define JJ_MAGIC 0x31524A4Au /* "JJR1" */
+#define JJ_VERSION 1
+
+typedef struct {
+ uint32_t magic;
+ uint16_t version, size;
+ jj_profile p;
+ jj_run run;
+ uint32_t sum; /* FNV-1a of everything before it */
+} jj_file;
+
+uint32_t jj_sum(const void *data, uint32_t n);
+bool jj_file_ok(const jj_file *f);
+void save_load(jj_profile *p, jj_run *r); /* the save, its copy, or a fresh start */
+bool save_write(const jj_profile *p, const jj_run *r);
+#endif
diff --git a/games/jetpackjoyride/src/sim.c b/games/jetpackjoyride/src/sim.c
new file mode 100644
index 00000000..4bfca602
--- /dev/null
+++ b/games/jetpackjoyride/src/sim.c
@@ -0,0 +1,703 @@
+/* The run: Barry, his vehicles, and what the level pacing sends at him, 60 times a second, with the
+ * original's numbers (data.h). Where the files don't say how a number is used, the choice is the spec's
+ * (marked [P] there). */
+#include <math.h>
+#include <stdlib.h>
+#include <string.h>
+#include "jj.h"
+#include "data.h"
+
+#define FRAMES_SAFE ((JJ_IMMUNITY_MS * 60 + 999) / 1000)
+#define WARN_FRAMES 75
+#define LOCK_FRAMES 30
+#define CHARGE 90
+#define SLIDE 20
+#define GAP 72
+
+/* ---------------------------------------------------------------- small things */
+uint32_t jj_rand(uint32_t *s) {
+ uint32_t x = *s;
+ x ^= x << 13, x ^= x >> 17, x ^= x << 5;
+ return *s = x ? x : 0x2545F491u;
+}
+static int range(jj_run *r, int a, int b) { return b <= a ? a : a + (int)(jj_rand(&r->rng) % (uint32_t)(b - a + 1)); }
+
+static const int16_t quarter[65] = {
+ 0, 25, 50, 75, 100, 125, 150, 175, 200, 224, 249, 273, 297, 321, 345, 369, 392, 415, 438, 460, 483, 505,
+ 526, 548, 569, 590, 610, 630, 650, 669, 688, 706, 724, 742, 759, 775, 792, 807, 822, 837, 851, 865, 878,
+ 891, 903, 915, 926, 936, 946, 955, 964, 972, 980, 987, 993, 999, 1004, 1009, 1013, 1016, 1019, 1021, 1023,
+ 1024, 1024};
+int jj_sin(uint16_t ang) {
+ unsigned i = ang >> 8; /* 256 steps a turn */
+ unsigned q = i >> 6, k = i & 63;
+ int v = q & 1 ? quarter[64 - k] : quarter[k];
+ return q & 2 ? -v : v;
+}
+int jj_cos(uint16_t ang) { return jj_sin((uint16_t)(ang + 16384)); }
+
+uint32_t jj_metres(const jj_run *r) { return r->dist / (16 * JJ_DIST_DIV); }
+
+static int weight(unsigned sched, uint32_t metres) {
+ int w = 0;
+ for (unsigned i = sched; jj_sched[2 * i] != 0xffff; i++)
+ if (jj_sched[2 * i] <= metres) w = jj_sched[2 * i + 1];
+ return w;
+}
+
+float jj_speed(const jj_run *r) {
+ if (r->ride != JJ_FOOT) return r->ride_speed;
+ float m = (float)r->dist / (16.0f * JJ_DIST_DIV);
+ float k = m >= JJ_SPEED_DIST ? 1.0f : m / JJ_SPEED_DIST;
+ return JJ_START_SPEED + (JJ_END_SPEED - JJ_START_SPEED) * k;
+}
+
+int jj_box_h(int ride) {
+ static const uint8_t h[JJ_RIDES] = {30, 56, 40, 40, 40, 48};
+ return h[ride];
+}
+int jj_box_w(int ride) {
+ static const uint8_t w[JJ_RIDES] = {16, 44, 50, 50, 24, 34};
+ return w[ride];
+}
+
+int jj_coin_at(const jj_coinset *c, int col, int row) {
+ int w = jj_pat_w[c->pat];
+ if (col < 0 || row < 0 || col >= w || row >= jj_pat_h[c->pat]) return 0;
+ return (c->bits[row * ((w + 7) / 8) + col / 8] >> (col & 7)) & 1;
+}
+
+/* ---------------------------------------------------------------- lasers
+ * A laser charges 90 frames, fires for its on interval (60 for the single shots), and fires again its off
+ * interval after a shot ends, if that shot ends before the pattern does. */
+void jj_beam_state(int pattern, int beam, int t, int *y, int *phase, int *k) {
+ const jj_lpat_t *p = &jj_lpats[pattern];
+ const jj_beam_t *b = &jj_beams[p->first + beam];
+ int on = b->on > 1 ? b->on : 60;
+ /* the height: from y0 to y1 over `move` frames */
+ int yy = b->y0;
+ if (b->move) {
+ int tt = t < 0 ? 0 : t > b->move ? b->move : t;
+ yy = b->y0 + (b->y1 - b->y0) * tt / b->move;
+ }
+ *y = JJ_MID - yy;
+ *phase = 0, *k = 0;
+ int fire = b->wait + CHARGE;
+ while (fire + on <= p->time) {
+ if (t < fire - CHARGE) return;
+ if (t < fire) {
+ *phase = 1, *k = t - (fire - CHARGE);
+ return;
+ }
+ if (t < fire + on) {
+ *phase = 2, *k = t - fire;
+ return;
+ }
+ if (b->off == 0 || b->off >= 10000) return;
+ int next = fire + on + b->off;
+ fire = next - fire - on < CHARGE ? fire + on + CHARGE : next;
+ }
+}
+
+/* ---------------------------------------------------------------- spawning */
+static float place(jj_run *r, int lo, int hi, const jj_file_t *f) {
+ if (hi < lo) hi = lo;
+ int mid = (lo + hi) / 2, p = range(r, 0, 99);
+ if (p < f->top) return (float)lo;
+ p -= f->top;
+ if (p < f->bottom) return (float)hi;
+ p -= f->bottom;
+ if (p < f->tophalf) return (float)range(r, lo, mid);
+ p -= f->tophalf;
+ if (p < f->bottomhalf) return (float)range(r, mid, hi);
+ return (float)range(r, lo, hi);
+}
+
+static int pick(jj_run *r, const uint16_t *sched_of, int first, int count, uint32_t m) {
+ int total = 0;
+ for (int i = 0; i < count; i++) total += weight(sched_of[first + i], m);
+ if (total <= 0) return -1;
+ int x = range(r, 0, total - 1);
+ for (int i = 0; i < count; i++) {
+ x -= weight(sched_of[first + i], m);
+ if (x < 0) return first + i;
+ }
+ return first + count - 1;
+}
+
+static float spawn_zapper(jj_run *r, int file, uint32_t m) {
+ const jj_file_t *f = &jj_zap_files[file];
+ int total = 0, i;
+ for (i = 0; i < f->count; i++) total += weight(jj_zaps[f->first + i].sched, m);
+ if (total <= 0) return 0;
+ int x = range(r, 0, total - 1);
+ for (i = 0; i < f->count - 1; i++) {
+ x -= weight(jj_zaps[f->first + i].sched, m);
+ if (x < 0) break;
+ }
+ const jj_zap_t *z = &jj_zaps[f->first + i];
+ for (int k = 0; k < JJ_ZAPPERS; k++) {
+ jj_zapper *s = &r->zap[k];
+ if (s->on) continue;
+ memset(s, 0, sizeof *s);
+ s->on = 1;
+ s->len = (uint16_t)range(r, z->min, z->max);
+ s->ang = (uint16_t)((z->angle % 360) * 65536 / 360);
+ if (z->rotate) {
+ s->spin = (int16_t)(65536 / (z->rotate < 0 ? -z->rotate : z->rotate));
+ if (z->rotate < 0) s->spin = (int16_t)-s->spin;
+ s->ang = (uint16_t)jj_rand(&r->rng);
+ }
+ int ext_y = z->rotate ? s->len : (abs(jj_sin(s->ang)) * s->len) >> 10;
+ int ext_x = z->rotate ? s->len : (abs(jj_cos(s->ang)) * s->len) >> 10;
+ /* where it fits; one that's too long for the room left is pushed into the floor or the ceiling, so a gap of
+ GAP points stays open (the files don't say, the spec's choice) */
+ int half = ext_y / 2 + 14;
+ int lo = JJ_CEIL + half, hi = JJ_FLOOR - half;
+ if (hi - lo < 0 || (JJ_FLOOR - JJ_CEIL) - 2 * half < GAP) {
+ int top = jj_rand(&r->rng) & 1;
+ lo = hi = top ? JJ_FLOOR - GAP - half : JJ_CEIL + GAP + half;
+ }
+ s->y = place(r, lo, hi, f);
+ s->x = JJ_SPAWN_X + ext_x / 2.0f;
+ return (float)ext_x + 28;
+ }
+ return 0;
+}
+
+static float spawn_coins(jj_run *r, int file, uint32_t m) {
+ const jj_file_t *f = &jj_coin_files[file];
+ int p = pick(r, jj_coin_pick_sched, f->first, f->count, m);
+ if (p < 0) return 0;
+ int pat = jj_coin_pick[p];
+ for (int k = 0; k < JJ_COINSETS; k++) {
+ jj_coinset *c = &r->coin[k];
+ if (c->on) continue;
+ memset(c, 0, sizeof *c);
+ c->on = 1, c->pat = (uint8_t)pat;
+ int w = jj_pat_w[pat], h = jj_pat_h[pat], nb = (w + 7) / 8;
+ memcpy(c->bits, jj_pat_bits + jj_pat_off[pat], (size_t)(nb * h));
+ c->y = (int16_t)place(r, JJ_CEIL + 6, JJ_FLOOR - 10 - (h - 1) * JJ_COIN_GAP, f);
+ c->x = JJ_SPAWN_X;
+ return (float)(w * JJ_COIN_GAP);
+ }
+ return 0;
+}
+
+static float spawn_missile(jj_run *r, int file) {
+ for (int k = 0; k < JJ_MISSILES; k++) {
+ jj_missile *s = &r->mis[k];
+ if (s->on) continue;
+ memset(s, 0, sizeof *s);
+ s->on = 1, s->state = JJ_WARN;
+ s->chase = jj_mis_files[file].chase;
+ s->y = r->y - jj_box_h(r->ride) / 2.0f;
+ s->x = JJ_W - 18;
+ return 0;
+ }
+ return 0;
+}
+
+static float spawn_token(jj_run *r, uint32_t m) {
+ for (int k = 0; k < JJ_TOKENS; k++) {
+ jj_token *s = &r->token[k];
+ if (s->on) continue;
+ s->on = 1;
+ s->x = JJ_SPAWN_X;
+ s->y = (float)range(r, JJ_CEIL + 70, JJ_FLOOR - 70);
+ s->phase = (uint16_t)jj_rand(&r->rng);
+ if (m / JJ_TOKEN_KM != r->token_km) r->token_km = m / JJ_TOKEN_KM, r->token_count = 0;
+ r->token_count++;
+ r->token_last = m + JJ_TOKEN_MAX_GAP; /* the next one is due by then */
+ return 40;
+ }
+ return 0;
+}
+
+static void spawn_scientist(jj_run *r) {
+ for (int k = 0; k < JJ_SCIENTISTS; k++) {
+ jj_scientist *s = &r->sci[k];
+ if (s->on) continue;
+ s->on = 1, s->state = 0, s->t = 0;
+ s->x = JJ_SPAWN_X;
+ s->dir = (int8_t)(jj_rand(&r->rng) & 1 ? 1 : -1);
+ return;
+ }
+}
+
+static void spawn(jj_run *r) {
+ uint32_t m = jj_metres(r);
+ const jj_set_t *set = &jj_sets[r->set];
+ float width = 0;
+ int imin, imax;
+ if (r->set == JJ_SET_DEFAULT) {
+ int i = 0;
+ while (i + 1 < JJ_PACE_STEPS && jj_pace_from[i + 1] <= m) i++;
+ imin = jj_pace_min[i], imax = jj_pace_max[i];
+ } else {
+ imin = set->imin, imax = set->imax;
+ }
+ if (range(r, 0, 99) < 40) spawn_scientist(r); /* workerinfo.xml spawnProbability 40 */
+ /* a spin token that's due */
+ bool token_ok = m >= JJ_TOKEN_FIRST_MIN && (m / JJ_TOKEN_KM != r->token_km || r->token_count < JJ_TOKEN_PER_KM);
+ if (token_ok && m >= r->token_last) {
+ width = spawn_token(r, m);
+ r->next = (float)range(r, imin, imax) + width;
+ return;
+ }
+ if ((r->set == JJ_SET_MISSILE || r->set == JJ_SET_COIN) && r->streak) {
+ if (r->set == JJ_SET_MISSILE) spawn_missile(r, set->mis);
+ else width = spawn_coins(r, set->coin, m);
+ r->next = (float)range(r, imin, imax) + width;
+ if (!--r->streak) r->set = JJ_SET_DEFAULT;
+ return;
+ }
+ /* weights: zapper, missile, coins, lasers, token, missile swarm, coin streak */
+ int w[7] = {0};
+ if (set->zap != 255) w[0] = weight(jj_zap_files[set->zap].sched, m);
+ if (set->mis != 255) w[1] = weight(jj_mis_files[set->mis].sched, m);
+ if (set->coin != 255) w[2] = weight(jj_coin_files[set->coin].sched, m);
+ if (r->set == JJ_SET_DEFAULT) {
+ w[3] = weight(JJ_LASER_SCHED, m);
+ w[5] = jj_sets[JJ_SET_MISSILE].prob;
+ w[6] = jj_sets[JJ_SET_COIN].prob;
+ }
+ if (token_ok) w[4] = JJ_TOKEN_WEIGHT;
+ int total = 0;
+ for (int i = 0; i < 7; i++) total += w[i];
+ int x = total > 0 ? range(r, 0, total - 1) : 0, kind = 0;
+ while (kind < 6 && x >= w[kind]) x -= w[kind++];
+ switch (kind) {
+ case 0: width = spawn_zapper(r, set->zap, m); break;
+ case 1: width = spawn_missile(r, set->mis); break;
+ case 2: width = spawn_coins(r, set->coin, m); break;
+ case 3: {
+ int total3 = 0, p;
+ for (p = 0; p < JJ_LASER_PATTERNS; p++) total3 += weight(jj_lpats[p].sched, m);
+ if (total3 <= 0) break;
+ int y = range(r, 0, total3 - 1);
+ for (p = 0; p < JJ_LASER_PATTERNS - 1; p++) {
+ y -= weight(jj_lpats[p].sched, m);
+ if (y < 0) break;
+ }
+ r->laser = (uint8_t)(p + 1), r->laser_t = 0;
+ break;
+ }
+ case 4: width = spawn_token(r, m); break;
+ case 5: r->set = JJ_SET_MISSILE, r->streak = (uint8_t)range(r, jj_sets[JJ_SET_MISSILE].minc, jj_sets[JJ_SET_MISSILE].maxc); break;
+ case 6: r->set = JJ_SET_COIN, r->streak = (uint8_t)range(r, jj_sets[JJ_SET_COIN].minc, jj_sets[JJ_SET_COIN].maxc); break;
+ }
+ r->next = kind >= 5 ? 0 : (float)range(r, imin, imax) + width;
+}
+
+/* ---------------------------------------------------------------- the run */
+void jj_start(jj_run *r, uint32_t seed, bool double_coins, bool head_start) {
+ memset(r, 0, sizeof *r);
+ r->rng = seed ? seed : 0x4A4A4A4Au;
+ r->y = JJ_FLOOR;
+ r->ground = 1;
+ r->double_coins = double_coins;
+ r->head_start = head_start;
+ uint32_t m0 = head_start ? 500 : 0;
+ r->dist = m0 * 16 * JJ_DIST_DIV;
+ if (head_start) r->safe = 120;
+ r->next = 300;
+ r->token_last = m0 + (uint32_t)range(r, JJ_TOKEN_FIRST_MIN, JJ_TOKEN_FIRST_MAX);
+ r->token_km = m0 / JJ_TOKEN_KM;
+ r->vehicle_at = m0 + (uint32_t)range(r, 50, JJ_VEHICLE_RANGE);
+}
+
+bool jj_over(const jj_run *r) { return r->state == JJ_STOPPED && r->stop_t >= 45; }
+
+static void boom(jj_run *r, float x, float y, int kind) {
+ int k = 0; /* a free one, else the oldest */
+ for (int i = 0; i < JJ_FX; i++) {
+ if (!r->fx[i].t) {
+ k = i;
+ break;
+ }
+ if (r->fx[i].t > r->fx[k].t) k = i;
+ }
+ r->fx[k] = (jj_fx){x, y, (uint8_t)kind, 1};
+}
+
+/* everything on screen switched off: a vehicle taken, a Second Chance */
+static void clear_screen(jj_run *r) {
+ for (int i = 0; i < JJ_ZAPPERS; i++)
+ if (r->zap[i].on && r->zap[i].x < JJ_W + 60) r->zap[i].dud = 1;
+ for (int i = 0; i < JJ_MISSILES; i++)
+ if (r->mis[i].on) {
+ if (r->mis[i].state == JJ_FLY) boom(r, r->mis[i].x, r->mis[i].y, 0);
+ r->mis[i].on = 0;
+ }
+ r->laser = 0;
+}
+
+void jj_revive(jj_run *r) {
+ clear_screen(r);
+ r->state = JJ_ALIVE, r->by = 0, r->stop_t = 0;
+ r->ride = JJ_FOOT, r->set = JJ_SET_DEFAULT, r->streak = 0;
+ r->vy = -6, r->ground = 0, r->safe = 120, r->dvx = 0;
+ r->revived++;
+}
+
+static void knock_out(jj_run *r, int by) {
+ r->by = (uint8_t)by;
+ r->dvx = jj_speed(r) / 60.0f;
+ r->ride = JJ_FOOT;
+ r->held = 0;
+ if (by == JJ_BY_ZAPPER) {
+ r->state = JJ_ZAPPED, r->stop_t = 0;
+ } else {
+ boom(r, JJ_BX, r->y - 20, 0);
+ r->state = JJ_TUMBLE, r->vy = -5;
+ }
+}
+
+/* hit: a vehicle breaks, else Barry's out */
+static void hit(jj_run *r, int by) {
+ if (r->safe || r->state != JJ_ALIVE) return;
+ if (r->ride != JJ_FOOT) {
+ boom(r, JJ_BX, r->y - jj_box_h(r->ride) / 2.0f, 1);
+ r->ride = JJ_FOOT, r->set = JJ_SET_DEFAULT, r->streak = 0, r->flip = 0;
+ r->safe = FRAMES_SAFE + 30;
+ r->vy = -4, r->ground = 0;
+ r->vehicle_at = jj_metres(r) + (uint32_t)range(r, JJ_VEHICLE_EXCLUSION, JJ_VEHICLE_RANGE);
+ return;
+ }
+ knock_out(r, by);
+}
+
+static void take_vehicle(jj_run *r) {
+ int total = 0;
+ for (int i = 0; i < JJ_RIDES - 1; i++) total += jj_vehicles[i].weight;
+ int x = range(r, 0, total - 1), v = 0;
+ while (v < JJ_RIDES - 2 && x >= jj_vehicles[v].weight) x -= jj_vehicles[v++].weight;
+ const jj_vehicle_t *d = &jj_vehicles[v];
+ float now = jj_speed(r);
+ r->ride = (uint8_t)(v + 1);
+ r->ride_speed = now > d->start ? now : d->start;
+ r->set = d->set, r->streak = 0;
+ r->jumps = d->jumps, r->boost = 0, r->flip = 0, r->cft = 0;
+ r->vy = 0;
+ r->next = 260;
+ clear_screen(r);
+}
+
+static void barry(jj_run *r, bool held) {
+ bool press = held && !r->held;
+ int h = jj_box_h(r->ride);
+ if (r->ride == JJ_FOOT) {
+ if (press) r->vy *= JJ_VSCALAR; /* a boost starts from half the speed he had (vehicles: from none) */
+ r->vy += JJ_GRAVITY;
+ if (held) r->vy -= JJ_BOOST;
+ r->vy *= JJ_FRICTION;
+ } else if (r->ride == JJ_CFT) {
+ r->cft = (uint16_t)(r->cft + 65536 * 8 / 360);
+ if (r->boost) r->boost--;
+ if (press) {
+ int ang = jj_sin(r->cft) * 16384 / 1024; /* +-90 degrees */
+ float ty = r->y - h / 2.0f - 96.0f * jj_sin((uint16_t)ang) / 1024.0f;
+ if (ty < JJ_CEIL + h / 2.0f) ty = JJ_CEIL + h / 2.0f;
+ if (ty > JJ_FLOOR - h / 2.0f) ty = JJ_FLOOR - h / 2.0f;
+ r->y = ty + h / 2.0f;
+ r->boost = 12; /* (the Teleporter's teleport frames) */
+ }
+ r->vy = 0;
+ } else if (r->ride == JJ_GRAV) {
+ const jj_vehicle_t *d = &jj_vehicles[JJ_GRAV - 1];
+ if (press) r->flip ^= 1, r->ground = 0;
+ r->vy += r->flip ? -d->gravity : d->gravity;
+ r->vy *= d->friction;
+ } else {
+ const jj_vehicle_t *d = &jj_vehicles[r->ride - 1];
+ if (press && r->jumps > 0 && (r->ride == JJ_BIRD || r->ground)) {
+ r->vy = -d->initial;
+ r->boost = d->frames;
+ r->jumps--;
+ r->ground = 0;
+ }
+ if (held && r->ride != JJ_BIRD) {
+ if (r->boost) r->vy -= d->boost, r->boost--;
+ else if (!r->ground) r->vy -= d->final_boost;
+ }
+ if (!held) r->boost = 0;
+ r->vy += d->gravity;
+ r->vy *= d->friction;
+ }
+ r->held = held;
+ r->y += r->vy;
+ if (r->y >= JJ_FLOOR) {
+ r->y = JJ_FLOOR;
+ if (r->vy > 0) r->vy = 0;
+ if (!r->ground && r->ride != JJ_FOOT && r->ride != JJ_CFT) r->jumps = jj_vehicles[r->ride - 1].jumps;
+ r->ground = !(r->ride == JJ_GRAV && r->flip);
+ } else if (r->y - h <= JJ_CEIL) {
+ r->y = JJ_CEIL + h;
+ if (r->vy < 0) r->vy = 0;
+ r->ground = r->ride == JJ_GRAV && r->flip;
+ } else {
+ r->ground = 0;
+ }
+}
+
+static bool boxes(float ax, float ay, float aw, float ah, float bx, float by, float bw, float bh) {
+ return ax < bx + bw && bx < ax + aw && ay < by + bh && by < ay + ah;
+}
+
+static bool zapper_hits(const jj_zapper *z, float bx, float by, float bw, float bh) {
+ /* the beam, from orb to orb, 10 points either side */
+ float dx = jj_cos(z->ang) * (z->len / 2.0f) / 1024.0f, dy = jj_sin(z->ang) * (z->len / 2.0f) / 1024.0f;
+ int n = z->len / 8 + 2;
+ for (int i = 0; i <= n; i++) {
+ float t = -1.0f + 2.0f * i / n;
+ float px = z->x + dx * t, py = z->y + dy * t;
+ float rad = (i == 0 || i == n) ? 14.0f : 9.0f;
+ if (px + rad > bx && px - rad < bx + bw && py + rad > by && py - rad < by + bh) return true;
+ }
+ return false;
+}
+
+void jj_step(jj_run *r, bool held) {
+ r->t++;
+ for (int i = 0; i < JJ_FX; i++)
+ if (r->fx[i].t && ++r->fx[i].t > 32) r->fx[i].t = 0;
+ float dx;
+ if (r->state == JJ_ALIVE) {
+ barry(r, held);
+ if (r->safe) r->safe--;
+ if (r->ride != JJ_FOOT) {
+ const jj_vehicle_t *d = &jj_vehicles[r->ride - 1];
+ r->ride_speed += d->increase;
+ if (r->ride_speed > d->max) r->ride_speed = d->max;
+ }
+ dx = jj_speed(r) / 60.0f;
+ } else {
+ /* knocked out: zapped a moment, then he tumbles and slides to a stop */
+ if (r->state == JJ_ZAPPED) {
+ if (++r->stop_t >= 24) r->state = JJ_TUMBLE, r->stop_t = 0, r->vy = -3;
+ } else {
+ r->vy += JJ_DEATH_GRAVITY;
+ r->y += r->vy;
+ if (r->y >= JJ_FLOOR) {
+ r->y = JJ_FLOOR;
+ r->vy = r->vy > JJ_MIN_BOUNCE ? -r->vy * 0.5f : 0;
+ if (r->vy == 0) r->dvx *= JJ_DEATH_GROUND_FRICTION;
+ }
+ if (r->state == JJ_TUMBLE && r->vy == 0 && r->y >= JJ_FLOOR && r->dvx < 0.3f) r->state = JJ_STOPPED, r->dvx = 0;
+ if (r->state == JJ_STOPPED && r->stop_t < 60000) r->stop_t++;
+ }
+ dx = r->dvx;
+ }
+ r->dist += (uint32_t)(dx * 16.0f + 0.5f);
+ uint32_t m = jj_metres(r);
+
+ /* things move */
+ for (int i = 0; i < JJ_ZAPPERS; i++) {
+ jj_zapper *z = &r->zap[i];
+ if (!z->on) continue;
+ z->x -= dx;
+ z->ang = (uint16_t)(z->ang + z->spin);
+ if (z->x < -z->len / 2 - 40) {
+ z->on = 0;
+ if (r->state == JJ_ALIVE) r->zappers_dodged++;
+ }
+ }
+ for (int i = 0; i < JJ_COINSETS; i++)
+ if (r->coin[i].on && (r->coin[i].x -= dx) < -(float)jj_pat_w[r->coin[i].pat] * JJ_COIN_GAP - 20) r->coin[i].on = 0;
+ for (int i = 0; i < JJ_TOKENS; i++) {
+ jj_token *t = &r->token[i];
+ if (!t->on) continue;
+ t->x -= dx;
+ t->phase = (uint16_t)(t->phase + 300);
+ if (t->x < -30) t->on = 0;
+ }
+ if (r->box.on) {
+ r->box.x -= dx;
+ r->box.phase = (uint16_t)(r->box.phase + 600);
+ if (r->box.x < -40) r->box.on = 0, r->vehicle_at = m + (uint32_t)range(r, JJ_VEHICLE_EXCLUSION, JJ_VEHICLE_RANGE);
+ }
+ for (int i = 0; i < JJ_FX; i++)
+ if (r->fx[i].t) r->fx[i].x -= dx;
+ for (int i = 0; i < JJ_SCIENTISTS; i++) {
+ jj_scientist *s = &r->sci[i];
+ if (!s->on) continue;
+ s->t++;
+ float walk = s->state == 2 ? 0 : s->state == 1 ? 3.0f : 1.0f;
+ s->x += s->dir * walk - dx;
+ /* alerted when Barry comes near (workerinfo.xml: 200 to 500 points), some run */
+ if (s->state == 0 && s->x - JJ_BX < 300 && s->x > JJ_BX && (s->t & 31) == 0 && range(r, 0, 99) < 20) s->state = 1, s->dir = 1;
+ /* the jetpack's bullets knock them down */
+ if (s->state != 2 && r->state == JJ_ALIVE && r->ride == JJ_FOOT && r->held && s->x > JJ_BX - 30 && s->x < JJ_BX + 4 &&
+ JJ_FLOOR - r->y < 150)
+ s->state = 2, s->t = 0;
+ if (s->x < -30 || s->x > JJ_SPAWN_X + 40) s->on = 0;
+ }
+ for (int i = 0; i < JJ_MISSILES; i++) {
+ jj_missile *s = &r->mis[i];
+ if (!s->on) continue;
+ s->t++;
+ float target = r->y - jj_box_h(r->ride) / 2.0f;
+ if (s->state == JJ_WARN) {
+ if (r->state == JJ_ALIVE) s->y += s->y < target - s->chase ? s->chase : s->y > target + s->chase ? -s->chase : target - s->y;
+ if (s->t >= WARN_FRAMES) s->state = JJ_LOCK, s->t = 0;
+ } else if (s->state == JJ_LOCK) {
+ if (s->t >= LOCK_FRAMES) s->state = JJ_FLY, s->t = 0, s->x = JJ_W + 30;
+ } else {
+ s->x -= jj_mis_files[0].speed + dx;
+ if (s->x < -40) {
+ s->on = 0;
+ if (r->state == JJ_ALIVE) r->missiles_dodged++;
+ }
+ }
+ }
+ if (r->laser) {
+ r->laser_t++;
+ if (r->laser_t > jj_lpats[r->laser - 1].time + SLIDE) r->laser = 0, r->next = 120;
+ }
+
+ if (r->state != JJ_ALIVE) {
+ /* coins still count while he slides */
+ goto coins;
+ }
+
+ /* what comes next */
+ if (!r->laser) {
+ r->next -= dx;
+ if (r->next <= 0) spawn(r);
+ if (r->ride == JJ_FOOT && !r->box.on && m >= r->vehicle_at && !r->laser) {
+ r->box.on = 1, r->box.x = JJ_SPAWN_X;
+ r->box.y = (float)range(r, JJ_CEIL + 50, JJ_MID - 10);
+ r->box.phase = 0;
+ r->vehicle_at = 0xffffffffu;
+ }
+ }
+
+ /* collisions */
+ {
+ int w = jj_box_w(r->ride), h = jj_box_h(r->ride);
+ float bx = JJ_BX - w / 2.0f, by = r->y - h;
+ for (int i = 0; i < JJ_ZAPPERS; i++) {
+ jj_zapper *z = &r->zap[i];
+ if (z->on && !z->dud && z->x - z->len / 2 - 20 < bx + w && z->x + z->len / 2 + 20 > bx && zapper_hits(z, bx, by, w, h)) {
+ if (!r->safe && r->ride != JJ_FOOT) z->dud = 1;
+ hit(r, JJ_BY_ZAPPER);
+ if (r->state != JJ_ALIVE) break;
+ }
+ }
+ for (int i = 0; i < JJ_MISSILES && r->state == JJ_ALIVE; i++) {
+ jj_missile *s = &r->mis[i];
+ if (s->on && s->state == JJ_FLY && boxes(s->x - 14, s->y - 6, 28, 12, bx, by, w, h)) {
+ if (!r->safe) s->on = 0, boom(r, s->x, s->y, 0);
+ hit(r, JJ_BY_MISSILE);
+ }
+ }
+ if (r->laser && r->state == JJ_ALIVE) {
+ const jj_lpat_t *p = &jj_lpats[r->laser - 1];
+ for (int b = 0; b < p->count; b++) {
+ int y, phase, k;
+ jj_beam_state(r->laser - 1, b, r->laser_t, &y, &phase, &k);
+ if (phase == 2 && k >= 4 && y + 7 > by && y - 7 < by + h) {
+ hit(r, JJ_BY_LASER);
+ break;
+ }
+ }
+ }
+ for (int i = 0; i < JJ_TOKENS; i++) {
+ jj_token *t = &r->token[i];
+ if (!t->on) continue;
+ float ty = t->y + 60.0f * jj_sin(t->phase) / 1024.0f;
+ if (boxes(t->x - 12, ty - 12, 24, 24, bx, by, w, h)) {
+ t->on = 0;
+ if (r->tokens < 99) r->tokens++;
+ r->tokens_taken++;
+ }
+ }
+ if (r->box.on && r->ride == JJ_FOOT) {
+ float yy = r->box.y + 6.0f * jj_sin(r->box.phase) / 1024.0f;
+ if (boxes(r->box.x - 20, yy - 20, 40, 40, bx, by, w, h)) {
+ r->box.on = 0;
+ take_vehicle(r);
+ }
+ }
+ }
+coins: {
+ int w = jj_box_w(r->ride), h = jj_box_h(r->ride);
+ if (r->state != JJ_ALIVE) w = 24, h = 24;
+ float bx = JJ_BX - w / 2.0f, by = r->y - h;
+ for (int i = 0; i < JJ_COINSETS; i++) {
+ jj_coinset *c = &r->coin[i];
+ if (!c->on) continue;
+ int c0 = (int)floorf((bx - 8 - c->x) / JJ_COIN_GAP + 0.5f), c1 = (int)floorf((bx + w + 8 - c->x) / JJ_COIN_GAP + 0.5f);
+ int r0 = (int)floorf((by - 8 - c->y) / JJ_COIN_GAP + 0.5f), r1 = (int)floorf((by + h + 8 - c->y) / JJ_COIN_GAP + 0.5f);
+ for (int row = r0; row <= r1; row++)
+ for (int col = c0; col <= c1; col++)
+ if (jj_coin_at(c, col, row)) {
+ float cx = c->x + col * JJ_COIN_GAP, cy = c->y + row * JJ_COIN_GAP;
+ if (cx + 8 > bx && cx - 8 < bx + w && cy + 8 > by && cy - 8 < by + h) {
+ int pw = (jj_pat_w[c->pat] + 7) / 8;
+ c->bits[row * pw + col / 8] &= (uint8_t)~(1u << (col & 7));
+ uint32_t add = r->double_coins ? 2 : 1;
+ if (r->coins < 99999999u) r->coins += add;
+ }
+ }
+ }
+}
+}
+
+/* ---------------------------------------------------------------- saves read back */
+static bool finite_in(float v, float lo, float hi) { return v == v && v >= lo && v <= hi; }
+
+bool jj_valid(const jj_run *r) {
+ if (!finite_in(r->y, JJ_CEIL, JJ_FLOOR + 1) || !finite_in(r->vy, -60, 60) || !finite_in(r->dvx, 0, 120) ||
+ !finite_in(r->ride_speed, 0, 6001) || !finite_in(r->next, -200, 2000))
+ return false;
+ if (r->held > 1 || r->ground > 1 || r->state > JJ_STOPPED || r->by > JJ_BY_LASER || r->ride >= JJ_RIDES || r->flip > 1 ||
+ r->set > JJ_SET_CFT || r->laser > JJ_LASER_PATTERNS || r->tokens > 99 || r->double_coins > 1 || r->head_start > 1 ||
+ r->jumps > 10 || r->boost > 40 || r->safe > 400)
+ return false;
+ if (r->laser && r->laser_t > jj_lpats[r->laser - 1].time + SLIDE + 1) return false;
+ for (int i = 0; i < JJ_ZAPPERS; i++) {
+ const jj_zapper *z = &r->zap[i];
+ if (z->on > 1 || z->dud > 1 || (z->on && (!finite_in(z->x, -400, 900) || !finite_in(z->y, 0, JJ_H) || z->len > 300)))
+ return false;
+ }
+ for (int i = 0; i < JJ_COINSETS; i++) {
+ const jj_coinset *c = &r->coin[i];
+ if (c->on > 1 || (c->on && (c->pat >= JJ_PATTERNS || !finite_in(c->x, -1000, 900) || c->y < 0 || c->y > JJ_H))) return false;
+ }
+ for (int i = 0; i < JJ_MISSILES; i++) {
+ const jj_missile *s = &r->mis[i];
+ if (s->on > 1 || (s->on && (s->state > JJ_FLY || !finite_in(s->x, -200, 900) || !finite_in(s->y, -100, 500) ||
+ !finite_in(s->chase, 0, 10))))
+ return false;
+ }
+ for (int i = 0; i < JJ_TOKENS; i++)
+ if (r->token[i].on > 1 || (r->token[i].on && (!finite_in(r->token[i].x, -100, 900) || !finite_in(r->token[i].y, 0, JJ_H))))
+ return false;
+ if (r->box.on > 1 || (r->box.on && (!finite_in(r->box.x, -100, 900) || !finite_in(r->box.y, 0, JJ_H)))) return false;
+ for (int i = 0; i < JJ_FX; i++)
+ if (r->fx[i].t > 33 || r->fx[i].kind > 1 || (r->fx[i].t && (!finite_in(r->fx[i].x, -2000, 2000) || !finite_in(r->fx[i].y, -500, 900))))
+ return false;
+ for (int i = 0; i < JJ_SCIENTISTS; i++)
+ if (r->sci[i].on > 1 || r->sci[i].state > 2 || (r->sci[i].on && !finite_in(r->sci[i].x, -100, 1000))) return false;
+ return true;
+}
+
+/* ---------------------------------------------------------------- the Final Spin */
+void jj_spin_start(jj_spin *s) {
+ for (int i = 0; i < JJ_PRIZES; i++) s->weight[i] = jj_prize_weight[i];
+ s->won = 0;
+}
+
+int jj_spin_roll(jj_spin *s, uint32_t *rng) {
+ s->won = 0;
+ if (jj_rand(rng) % 4) return -1; /* one token in four wins (the spec, [P]) */
+ int total = 0;
+ for (int i = 0; i < JJ_PRIZES; i++) total += s->weight[i];
+ if (total <= 0) return -1;
+ int x = (int)(jj_rand(rng) % (uint32_t)total), p = 0;
+ while (p < JJ_PRIZES - 1 && x >= s->weight[p]) x -= s->weight[p++];
+ s->weight[p] = (uint16_t)(s->weight[p] * jj_prize_after[p] / 1000);
+ s->won = (uint8_t)(p + 1);
+ return p;
+}
diff --git a/games/jetpackjoyride/tests/arm.py b/games/jetpackjoyride/tests/arm.py
deleted file mode 100644
index 692dee9b..00000000
--- a/games/jetpackjoyride/tests/arm.py
+++ /dev/null
@@ -1,186 +0,0 @@
-#!/usr/bin/env python3
-"""Execute the compiled app on all four NumPlay ARM emulator profiles.
-Build first and run tests/test.c to produce save fixtures. Requires Unicorn,
-Pillow and pyelftools. --nwlink accepts a command wrapper on Windows.
-"""
-import argparse
-import io
-import json
-from pathlib import Path
-import struct
-import tempfile
-import types
-
-ROOT=Path(__file__).resolve().parents[1]
-OUT=ROOT/'output'
-emu_path=ROOT.parents[1]/'tools/emu.py'
-emu=types.ModuleType('jetpack_emu');emu.__file__=str(emu_path);emu.io=io
-source=emu_path.read_text().replace('ELFFile(open(elf, "rb"))','ELFFile(io.BytesIO(open(elf, "rb").read()))')
-source=source.replace('chunk = CPU_HZ // 1000','chunk = CPU_HZ // 10000')
-source=source.replace('self.now_ms += 1\n','self.now_ms += 0.1\n')
-# A static menu can execute many sleeps in a single instruction slice. Stop
-# at a completed sleep when a checkpoint is reached; CPU/game state is intact.
-source=source.replace(' next_frame = self.now_ms if frame_ms else None',
- ' self.checkpoint = until_ms\n next_frame = self.now_ms if frame_ms else None')
-source=source.replace(' self.slept_ms += r0\n',
- ' self.slept_ms += r0\n if self.now_ms >= self.checkpoint: uc.emu_stop()\n')
-exec(compile(source,str(emu_path),'exec'),emu.__dict__)
-
-def record(name,value):
- data=name.encode()+b'\0'+value
- return struct.pack('<H',len(data)+2)+data
-
-def records(data):
- result={};pos=0
- while True:
- n,=struct.unpack_from('<H',data,pos)
- if not n:return result
- assert n>=4 and pos+n<=len(data)
- end=data.index(0,pos+2,pos+n)
- result[data[pos+2:end].decode()]=data[end+1:pos+n];pos+=n
-
-def presses(*items):return [(t,t+d,emu.KEYS[k]) for t,k,d in items]
-def state(c):return bytes(c.uc.mem_read(c.symbols['game'],232))
-def u32(c,s):return struct.unpack('<I',c.uc.mem_read(c.symbols[s],4))[0]
-def safe(c,exited=True):
- assert c.exited==exited
- assert not c.violations,c.violations
- assert not c.firmware_ram_changes(),c.firmware_ram_changes()
- if exited:assert c.app_ram_clean() and c.locks==0
-def performance(c):
- result={k:u32(c,k) for k in ('perf_frames','perf_max','perf_slow')}
- assert result['perf_max']<=32 and result['perf_slow']==0,result
- return result
-
-def controller(g):
- y,vy=struct.unpack_from('<2i',g);nearest=1000000;target=120
- for i in range(4):
- x,yy,kind,timer,active=struct.unpack_from('<iH3B',g,40+i*12)
- width=84 if kind==4 else 58 if kind==0 else 24 if kind==2 else 10
- if active and x+width*128>=54*256 and x<nearest:
- nearest=x
- if kind==2:target=120 if timer>35 else 165 if yy<120 else 75
- elif kind==4:target=160 if yy<120 else 80
- elif kind==3:target=150 if yy<120 else 90
- elif kind==0:target=150 if yy>175 else 95 if yy<70 else 80
- else:
- target=180 if yy<120 else 60
- for j in range(4):
- xx,y2,k2,t2,a2=struct.unpack_from('<iH3B',g,40+j*12)
- if j!=i and a2 and xx==x and k2==1:target=(yy+y2)//2
- if nearest==1000000:
- for i in range(18):
- x,yy,kind,active=struct.unpack_from('<iH2B',g,88+i*8)
- if active and 44*256<x<nearest:nearest=x;target=yy
- return y+vy*10>target*256
-
-def main():
- ap=argparse.ArgumentParser(description=__doc__);ap.add_argument('--nwlink',default='nwlink');a=ap.parse_args()
- (OUT/'tmp').mkdir(exist_ok=True);tempfile.tempdir=str(OUT/'tmp');nwa=str(OUT/'jetpackjoyride-debug.nwa')
- report=[]
- for name,model,system,ram in [('n0110','n0110','epsilon',148928),('n0115-custom','n0110','epsilon',133652),('n0120','n0120','epsilon',153676),('upsilon','n0110','upsilon',107674)]:
- emu.configure(model,system,ram);storage=OUT/(name+'-storage.bin')
- storage.write_bytes(record('keep.py',b'print(42)\n')+b'\0\0')
- c=emu.Calculator(nwa,storage_file=str(storage),nwlink=a.nwlink);c.enable_checks()
- c.keys=presses((0,'ok',300),(600,'ok',70),(1000,'ok',70),(1150,'up',500),(1750,'back',70),(1950,'down',70),(2100,'ok',70),(2250,'back',70),(2400,'up',70),(2550,'ok',70),(2700,'ok',70),(3000,'home',120))
- c.run(550);assert not state(c)[31],'Held launch key entered a game';c.save_png(str(OUT/(name+'-title.png')))
- c.run(1640);g=state(c);assert g[30]==1 and g[32]==1 and g[33]==1
- c.save_png(str(OUT/(name+'-gameplay.png')))
- c.run(1900);saved=records(c.storage_bytes())['jetpackjoyride.sav'];tick=struct.unpack_from('<I',saved,24)[0]
- assert len(saved)==260 and saved[:4]==b'JJN2';c.save_png(str(OUT/(name+'-pause.png')))
- c.run(2380);assert records(c.storage_bytes())['jetpackjoyride.sav']==saved
- assert struct.unpack_from('<I',state(c),16)[0]==tick,'Pause/cancel changed world'
- c.run(2900);perf=performance(c);c.run(3300);safe(c)
- saved=records(c.storage_bytes())['jetpackjoyride.sav'];assert struct.unpack_from('<I',saved,8)[0]==1
- assert records(c.storage_bytes())['keep.py']==b'print(42)\n'
- stack=c.stack_used();recs=records(c.storage_bytes());recs['later.py']=b'x=123\n'
- storage.write_bytes(b''.join(record(k,v) for k,v in recs.items())+b'\0\0')
- c2=emu.Calculator(nwa,storage_file=str(storage),nwlink=a.nwlink);c2.enable_checks()
- c2.keys=presses((500,'ok',70),(900,'ok',70),(1150,'exe',160),(1450,'onoff',120))
- c2.run(800)
- assert state(c2)==saved[32:44]+saved[20:32]+saved[44:58]+b'\0\0'+saved[64:256],'Resume did not restore exact simulation state'
- c2.run(1800);safe(c2)
- recs=records(c2.storage_bytes());assert recs['later.py']==b'x=123\n' and recs['keep.py']==b'print(42)\n'
- assert struct.unpack_from('<I',recs['jetpackjoyride.sav'],8)[0]==1
- # Real shop navigation: cancel, buy with a held OK, cancel another
- # purchase, relaunch, equip owned suits and reject insufficient funds.
- storage=OUT/(name+'-shop-storage.bin');sentinel=record('keep.py',b'shop sentinel\n')
- storage.write_bytes(sentinel+record('jetpackjoyride.sav',(OUT/'shop-save.bin').read_bytes())+b'\0\0')
- c3=emu.Calculator(nwa,storage_file=str(storage),nwlink=a.nwlink);c3.enable_checks()
- c3.keys=presses((500,'down',70),(700,'ok',70),(1000,'down',70),(1200,'ok',70),(1400,'ok',70),(1600,'ok',70),(1800,'down',70),(2000,'ok',300),(2600,'down',70),(2800,'ok',70),(3000,'back',70),(3200,'back',70),(3500,'home',100))
- c3.run(1350);c3.save_png(str(OUT/(name+'-buy.png')))
- c3.run(2400);c3.save_png(str(OUT/(name+'-shop.png')));shop_perf=performance(c3)
- c3.run(3900);safe(c3);recs=records(c3.storage_bytes());data=recs['jetpackjoyride.sav']
- assert struct.unpack_from('<I',data,58)[0]==150 and data[62:64]==b'\x02\x01'
- assert recs['keep.py']==b'shop sentinel\n';stack=max(stack,c2.stack_used(),c3.stack_used())
- c4=emu.Calculator(nwa,storage_file=str(storage),nwlink=a.nwlink);c4.enable_checks()
- c4.keys=presses((500,'right',70),(800,'ok',70),(1100,'ok',70),(1400,'down',70),(1600,'ok',70),(1800,'down',70),(2000,'ok',70),(2200,'up',70),(2400,'down',70),(2600,'down',70),(2800,'ok',70),(3200,'home',100))
- c4.run(3000);c4.save_png(str(OUT/(name+'-insufficient.png')));c4.run(3600);safe(c4)
- data=records(c4.storage_bytes())['jetpackjoyride.sav']
- assert struct.unpack_from('<I',data,58)[0]==30 and data[62:64]==b'\x06\x02'
- report.append(dict(profile=name,stack=max(stack,c4.stack_used()),shop_max=shop_perf['perf_max'],**perf));print(json.dumps(report[-1]),flush=True)
- emu.configure('n0110','epsilon',148928);storage=OUT/'stress-storage.bin'
- storage.write_bytes(record('jetpackjoyride.sav',(OUT/'stress-save.bin').read_bytes())+b'\0\0')
- c=emu.Calculator(nwa,storage_file=str(storage),nwlink=a.nwlink);c.enable_checks()
- c.keys=presses((500,'ok',70),(900,'ok',300),(1500,'back',70),(1800,'home',100))
- c.run(1150);c.save_png(str(OUT/'arm-stress.png'));c.run(1700);stress=performance(c);c.run(2200);safe(c)
- # Real keyboard input only: controller observes state but never writes it.
- storage=OUT/'keyboard-storage.bin';storage.write_bytes(record('jetpackjoyride.sav',(OUT/'start-save.bin').read_bytes())+b'\0\0')
- c=emu.Calculator(nwa,storage_file=str(storage),nwlink=a.nwlink);c.enable_checks()
- c.keys=presses((500,'ok',70),(900,'ok',70));c.run(980);seen=0;snapped=False;rotor_snapped=False
- for _ in range(10000):
- g=state(c);distance=struct.unpack_from('<I',g,20)[0]//2560
- for i in range(4):
- if g[48+i*12]:seen|=1<<g[46+i*12]
- visible=any(g[48+i*12] and g[46+i*12]<2 and 140*256<struct.unpack_from('<i',g,40+i*12)[0]<240*256 for i in range(4))
- if not snapped and distance>70 and visible:
- c.save_png(str(OUT/'arm-flight.png'));snapped=True
- visible_rotor=any(g[48+i*12] and g[46+i*12]==4 and 120*256<struct.unpack_from('<i',g,40+i*12)[0]<260*256 for i in range(4))
- if not rotor_snapped and visible_rotor:
- c.save_png(str(OUT/'arm-rotor-flight.png'));rotor_snapped=True
- if (distance>=650 and seen==31) or g[30]==2:break
- key=emu.KEYS['up'] if controller(g) else 0
- c.keys=[(c.now_ms,c.now_ms+40,key)];c.run(c.now_ms+16)
- c.save_png(str(OUT/'arm-keyboard-last.png'));assert distance>=650 and seen==31,(distance,seen,g[36])
- keyboard=performance(c);keyboard.update(meters=distance,hazards=struct.unpack_from('<H',g,26)[0],coins=struct.unpack_from('<H',g,24)[0],stack=c.stack_used())
- c.keys=[(c.now_ms,c.now_ms+150,emu.KEYS['home'])];c.run(c.now_ms+500);safe(c)
- # Four rotating beams test the maximum renderer load. Ordinary authored
- # rotor groups are covered separately by the live-keyboard run above.
- storage=OUT/'rotor-storage.bin'
- storage.write_bytes(record('jetpackjoyride.sav',(OUT/'rotor-stress-save.bin').read_bytes())+b'\0\0')
- c=emu.Calculator(nwa,storage_file=str(storage),nwlink=a.nwlink);c.enable_checks()
- c.keys=presses((500,'ok',70),(900,'ok',70),(1500,'back',70),(1800,'home',100))
- c.run(1050);c.save_png(str(OUT/'arm-rotors.png'))
- c.run(1350);c.save_png(str(OUT/'arm-rotors-turned.png'));rotors=performance(c)
- c.run(2200);safe(c);rotors['stack']=c.stack_used()
- # Guide/shop navigation and title Back exit.
- storage=OUT/'menus-storage.bin';storage.write_bytes(b'\0\0')
- c=emu.Calculator(nwa,storage_file=str(storage),nwlink=a.nwlink);c.enable_checks()
- c.keys=presses((500,'down',70),(800,'ok',70),(1400,'back',70),(1700,'right',70),(2000,'ok',70),(2600,'back',70),(3000,'back',70))
- c.run(1100);c.save_png(str(OUT/'arm-shop.png'));c.run(2400);c.save_png(str(OUT/'arm-guide.png'));c.run(3300);safe(c)
- # Import an actual save produced by the previous app, without losing its
- # world or coins; migrate only when writing the new format on exit.
- legacy=(ROOT/'tests/legacy-save.bin').read_bytes();storage=OUT/'legacy-storage.bin'
- storage.write_bytes(record('jetpackjoyride.sav',legacy)+b'\0\0')
- c=emu.Calculator(nwa,storage_file=str(storage),nwlink=a.nwlink);c.enable_checks()
- c.keys=presses((500,'down',70),(800,'ok',70),(1200,'home',100));c.run(1600);safe(c)
- migrated=records(c.storage_bytes())['jetpackjoyride.sav']
- assert migrated[:4]==b'JJN2' and migrated[4:58]==legacy[4:58] and migrated[64:256]==legacy[64:256]
- assert migrated[58:62]==legacy[12:16] and migrated[62:64]==b'\0\0'
- # A normal collision, result screen, and restart must count two flights.
- storage=OUT/'collision-storage.bin';storage.write_bytes(record('jetpackjoyride.sav',(OUT/'start-save.bin').read_bytes())+b'\0\0')
- c=emu.Calculator(nwa,storage_file=str(storage),nwlink=a.nwlink);c.enable_checks()
- c.keys=presses((500,'ok',70),(900,'ok',70));c.run(30000)
- assert state(c)[30]==2,'No-input flight should eventually collide';c.save_png(str(OUT/'arm-result.png'))
- t=c.now_ms;c.keys=presses((t+100,'ok',70),(t+400,'ok',70),(t+800,'home',100));c.run(t+1200);safe(c)
- assert struct.unpack_from('<I',records(c.storage_bytes())['jetpackjoyride.sav'],8)[0]==2
- storage=OUT/'full-storage.bin';full=record('large.py',b'#'*(emu.STORAGE_SIZE-16));storage.write_bytes(full+b'\0\0')
- c=emu.Calculator(nwa,storage_file=str(storage),nwlink=a.nwlink);c.enable_checks();c.keys=presses((500,'home',300))
- c.run(1200);safe(c,False);c.save_png(str(OUT/'arm-storage-full.png'));assert c.storage_bytes()[:len(full)]==full
- c.keys+=presses((1400,'1',70),(1700,'home',100),(2100,'ok',70),(2500,'back',70));c.run(2900);safe(c)
- assert c.storage_bytes()[:len(full)]==full
- result=dict(profiles=report,stress=stress,keyboard=keyboard,rotors=rotors)
- (OUT/'arm-validation.json').write_text(json.dumps(result,indent=2)+'\n')
- print('PASS: all profiles, input, pause/cancel/resume, persistence, stress, live keyboard, full storage; '+json.dumps(result),flush=True)
-
-if __name__=='__main__':main()
diff --git a/games/jetpackjoyride/tests/legacy-save.bin b/games/jetpackjoyride/tests/legacy-save.bin
deleted file mode 100644
index b805de4a..00000000
Binary files a/games/jetpackjoyride/tests/legacy-save.bin and /dev/null differ
diff --git a/games/jetpackjoyride/tests/menu.py b/games/jetpackjoyride/tests/menu.py
deleted file mode 100644
index 271c4187..00000000
--- a/games/jetpackjoyride/tests/menu.py
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/usr/bin/env python3
-"""Focused animated-title check on the actual ARM application."""
-import argparse
-import hashlib
-import json
-import tempfile
-from PIL import Image
-from arm import OUT,emu,performance,presses,record,records,safe,state
-
-def main():
- ap=argparse.ArgumentParser(description=__doc__);ap.add_argument('--nwlink',default='nwlink');a=ap.parse_args()
- (OUT/'tmp').mkdir(exist_ok=True);tempfile.tempdir=str(OUT/'tmp');report=[]
- for name,model,system,ram in [('n0110','n0110','epsilon',148928),('n0115-custom','n0110','epsilon',133652),('n0120','n0120','epsilon',153676),('upsilon','n0110','upsilon',107674)]:
- emu.configure(model,system,ram);storage=OUT/(name+'-menu-storage.bin')
- storage.write_bytes(record('keep.py',b'menu sentinel\n')+b'\0\0')
- c=emu.Calculator(str(OUT/'jetpackjoyride-debug.nwa'),storage_file=str(storage),nwlink=a.nwlink);c.enable_checks()
- hashes=set();frames=[]
- for frame in range(16):
- c.run(200+frame*160);hashes.add(hashlib.sha256(c.screen).digest())
- assert state(c)==bytes(232),'Menu animation changed the simulation'
- if name=='n0110':
- path=OUT/f'animated-title-{frame}.png';c.save_png(str(path));frames.append(Image.open(path).copy())
- assert len(hashes)==16,'Title background did not animate'
- perf=performance(c)
- c.keys=presses((2900,'home',100));c.run(3300);safe(c)
- assert records(c.storage_bytes())['keep.py']==b'menu sentinel\n'
- report.append(dict(profile=name,unique_frames=len(hashes),stack=c.stack_used(),**perf))
- if frames:frames[0].save(OUT/'menu-animation.gif',save_all=True,append_images=frames[1:],duration=160,loop=0)
- (OUT/'menu-validation.json').write_text(json.dumps(report,indent=2)+'\n')
- print(json.dumps(report,indent=2))
-
-if __name__=='__main__':main()
diff --git a/games/jetpackjoyride/tests/play.c b/games/jetpackjoyride/tests/play.c
new file mode 100644
index 00000000..468407a6
--- /dev/null
+++ b/games/jetpackjoyride/tests/play.c
@@ -0,0 +1,489 @@
+/* Jetpack Joyride on a computer, for tests and pictures (make host, make test).
+ *
+ * play test the rules against the original's numbers (the spec), a bot's runs (no broken state, every
+ * hazard and vehicle met), saves written and read back exactly, damaged saves refused, and a few
+ * hundred sessions of the whole app with random keys, quitting with Home each time
+ * play shots DIR pictures of the screens and of each hazard and vehicle (DIR/<name>.ppm)
+ * play film DIR S A N N frames of a bot's run (seed S), every third step, after A (DIR/f_NNNN.ppm)
+ */
+#define main jj_app_main
+#include "../src/main.c"
+#undef main
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <math.h>
+#include <time.h>
+
+/* ---------------------------------------------------------------- the calculator, on a computer */
+static uint16_t fb[SCREEN_H][SCREEN_W];
+void np_push(int x, int y, int w, int h, const color_t *px) {
+ for (int j = 0; j < h; j++)
+ for (int i = 0; i < w; i++) fb[y + j][x + i] = px[j * w + i];
+}
+void *np_alloc(uint32_t size) { return malloc(size); } /* (gfx_init's; the game has its own strip) */
+static double clock_ms;
+static uint32_t (*script)(uint32_t frame);
+static uint32_t frame_no, quit_at;
+uint32_t plat_keys(void) {
+ clock_ms += 1000.0 / 30; /* the app's loop at 30 a second */
+ frame_no++;
+ if (frame_no >= quit_at) return JK_HOME;
+ return script ? script(frame_no) : 0;
+}
+uint32_t plat_millis(void) { return (uint32_t)clock_ms; }
+void plat_sleep(uint32_t ms) { clock_ms += ms; }
+uint32_t plat_random(void) { return 0x9E3779B9u ^ frame_no; }
+void plat_begin(void) {}
+int plat_end(void) { return 0; }
+
+/* files: a few named records in memory */
+static struct { char name[32]; uint8_t data[4096]; uint32_t len; bool on; } files[4];
+bool plat_save(const char *name, const void *data, uint32_t len) {
+ int k = -1;
+ for (int i = 0; i < 4; i++)
+ if (files[i].on && !strcmp(files[i].name, name)) k = i;
+ for (int i = 0; i < 4 && k < 0; i++)
+ if (!files[i].on) k = i;
+ if (k < 0 || len > sizeof files[k].data) return false;
+ strcpy(files[k].name, name), memcpy(files[k].data, data, len), files[k].len = len, files[k].on = true;
+ return true;
+}
+const uint8_t *plat_load(const char *name, uint32_t *len) {
+ for (int i = 0; i < 4; i++)
+ if (files[i].on && !strcmp(files[i].name, name)) return *len = files[i].len, files[i].data;
+ return 0;
+}
+static void forget(const char *name) {
+ for (int i = 0; i < 4; i++)
+ if (files[i].on && !strcmp(files[i].name, name)) files[i].on = false;
+}
+
+static void shot(const char *path) {
+ FILE *f = fopen(path, "wb");
+ if (!f) exit(2);
+ fprintf(f, "P6 320 240 255\n");
+ for (int y = 0; y < SCREEN_H; y++)
+ for (int x = 0; x < SCREEN_W; x++) {
+ uint16_t c = fb[y][x];
+ fputc((c >> 11) * 255 / 31, f), fputc((c >> 5 & 63) * 255 / 63, f), fputc((c & 31) * 255 / 31, f);
+ }
+ fclose(f);
+}
+
+static int fails;
+#define CHECK(c, ...) do { if (!(c)) { fails++; printf("FAIL %s:%d: ", __FILE__, __LINE__); printf(__VA_ARGS__); printf("\n"); } } while (0)
+
+/* ---------------------------------------------------------------- a bot: plans (hold n, let go m) tried ahead */
+static bool greedy; /* the film's bot also goes for coins, tokens and vehicles */
+static int survive(const jj_run *r0, int hold, int rel, int horizon) {
+ static jj_run r;
+ r = *r0;
+ for (int f = 0; f < horizon; f++) {
+ int cyc = hold + rel, p = cyc ? f % cyc : 0;
+ jj_step(&r, p < hold);
+ if (r.state != JJ_ALIVE) return f * 10;
+ }
+ return horizon * 10 + (greedy ? (int)(r.coins - r0->coins) + 30 * (r.tokens - r0->tokens) + 40 * (r.ride != r0->ride) : 0);
+}
+static int bot_h, bot_r, bot_left;
+static bool bot(const jj_run *r) {
+ if (bot_left <= 0) {
+ static const int plans[][2] = {{0, 1}, {1, 0}, {2, 2}, {4, 4}, {6, 3}, {3, 6}, {8, 2}, {2, 8}, {1, 12}};
+ int best = -1;
+ for (unsigned k = 0; k < sizeof plans / sizeof plans[0] && (greedy || best < 1000); k++) {
+ int v = survive(r, plans[k][0], plans[k][1], 100);
+ if (v > best) best = v, bot_h = plans[k][0], bot_r = plans[k][1];
+ }
+ bot_left = 5;
+ }
+ bot_left--;
+ int cyc = bot_h + bot_r, p = cyc ? (int)(r->t % (uint32_t)cyc) : 0;
+ return p < bot_h;
+}
+
+/* ---------------------------------------------------------------- the rules against the spec */
+static void units(void) {
+ jj_run r;
+ jj_start(&r, 7, 0, 0);
+ /* falling and flying settle at gravity/(1-friction) and (boost-gravity)/(1-friction) points a frame */
+ r.y = 200, r.vy = 0, r.ground = 0;
+ float v = 0;
+ for (int i = 0; i < 400; i++) v = (v + JJ_GRAVITY) * JJ_FRICTION;
+ CHECK(fabsf(v - 7.35f) < 0.05f, "terminal fall %f", v);
+ v = 0;
+ for (int i = 0; i < 400; i++) v = (v + JJ_GRAVITY - JJ_BOOST) * JJ_FRICTION;
+ CHECK(fabsf(v + 10.29f) < 0.05f, "terminal climb %f", v);
+ /* held from the floor, Barry reaches the ceiling and stays under it */
+ jj_start(&r, 7, 0, 0);
+ for (int i = 0; i < 120; i++) {
+ float before = r.y;
+ r.safe = 1000;
+ jj_step(&r, true);
+ CHECK(r.y <= before + 0.001f || i == 0, "climbing");
+ }
+ CHECK(fabsf(r.y - (JJ_CEIL + jj_box_h(JJ_FOOT))) < 0.01f, "ceiling %f", r.y);
+ for (int i = 0; i < 200; i++) r.safe = 1000, jj_step(&r, false);
+ CHECK(r.y == JJ_FLOOR && r.ground, "floor %f", r.y);
+ /* speed: 200 points a second at the start, 505 from 2000 m, linear between */
+ jj_start(&r, 7, 0, 0);
+ CHECK(fabsf(jj_speed(&r) - 200) < 0.01f, "start speed");
+ r.dist = 1000u * 16 * JJ_DIST_DIV;
+ CHECK(fabsf(jj_speed(&r) - 352.5f) < 0.01f, "speed at 1000 m %f", jj_speed(&r));
+ r.dist = 2500u * 16 * JJ_DIST_DIV;
+ CHECK(fabsf(jj_speed(&r) - 505) < 0.01f, "speed at 2500 m");
+ /* a head start starts at 500 m */
+ jj_start(&r, 7, 0, 1);
+ CHECK(jj_metres(&r) == 500, "head start");
+ /* every laser shot ends inside its pattern; every pattern fires */
+ for (int p = 0; p < JJ_LASER_PATTERNS; p++) {
+ int fired = 0;
+ for (int b = 0; b < jj_lpats[p].count; b++)
+ for (int t = 0; t <= jj_lpats[p].time + 20; t++) {
+ int y, ph, k;
+ jj_beam_state(p, b, t, &y, &ph, &k);
+ if (ph == 2) {
+ fired = 1;
+ CHECK(t < jj_lpats[p].time, "laser %d beam %d fires at %d", p, b, t);
+ }
+ CHECK(y >= JJ_MID - 127 && y <= JJ_MID + 127, "laser height");
+ }
+ CHECK(fired, "laser pattern %d never fires", p);
+ }
+ /* coin patterns: the files' coins (coinpattern1.txt has 41) */
+ {
+ jj_coinset c = {0};
+ int n = 0;
+ c.pat = 0, memcpy(c.bits, jj_pat_bits + jj_pat_off[0], sizeof c.bits);
+ for (int row = 0; row < jj_pat_h[0]; row++)
+ for (int col = 0; col < jj_pat_w[0]; col++) n += jj_coin_at(&c, col, row);
+ CHECK(n == 41, "coinpattern1 has %d coins", n);
+ }
+ /* the Final Spin: weights as slots.xml; a Second Chance, once won, is 40 times rarer; double coins and the head
+ start come once */
+ {
+ jj_spin s;
+ jj_spin_start(&s);
+ CHECK(s.weight[JJ_PRIZE_REVIVE] == 100 && s.weight[JJ_PRIZE_START_500M] == 200, "spin weights");
+ uint32_t g = 12345;
+ int wins = 0, n = 40000, dc = 0;
+ for (int i = 0; i < n; i++) {
+ jj_spin_start(&s);
+ int p = jj_spin_roll(&s, &g);
+ if (p >= 0) wins++;
+ if (p == JJ_PRIZE_DOUBLE_COINS) {
+ dc++;
+ CHECK(s.weight[JJ_PRIZE_DOUBLE_COINS] == 0, "double coins once");
+ }
+ if (p == JJ_PRIZE_REVIVE) CHECK(s.weight[JJ_PRIZE_REVIVE] == 2, "revive weight after a win %d", s.weight[JJ_PRIZE_REVIVE]);
+ }
+ CHECK(wins > n / 5 && wins < n * 3 / 10, "one spin in four wins: %d of %d", wins, n);
+ CHECK(dc > 0, "double coins never won");
+ }
+ /* a fresh run is valid, and broken ones are refused */
+ jj_start(&r, 99, 0, 0);
+ CHECK(jj_valid(&r), "fresh run invalid");
+ jj_run b = r;
+ b.y = NAN;
+ CHECK(!jj_valid(&b), "NaN accepted");
+ b = r, b.coin[0].on = 1, b.coin[0].pat = 200;
+ CHECK(!jj_valid(&b), "bad pattern accepted");
+}
+
+/* ---------------------------------------------------------------- the bot's runs */
+static void bots(void) {
+ int seen_ride[JJ_RIDES] = {0}, lasers = 0, missiles = 0, rotating = 0, tokens = 0, swarm = 0;
+ uint32_t total_m = 0;
+ for (int s = 1; s <= 24; s++) {
+ jj_run r;
+ jj_start(&r, (uint32_t)s * 2654435761u, s % 5 == 0, 0);
+ bot_left = 0, greedy = s % 2 == 0; /* half of them go for coins and tokens too */
+ while (r.state == JJ_ALIVE && jj_metres(&r) < 5000) {
+ jj_step(&r, bot(&r));
+ seen_ride[r.ride] = 1;
+ if (r.laser) lasers++;
+ if (r.set == JJ_SET_MISSILE) swarm++;
+ for (int i = 0; i < JJ_MISSILES; i++) missiles += r.mis[i].on;
+ for (int i = 0; i < JJ_ZAPPERS; i++) rotating += r.zap[i].on && r.zap[i].spin;
+ if (r.t % 60 == 0) CHECK(jj_valid(&r), "seed %d: invalid at %u", s, r.t);
+ }
+ for (int i = 0; i < 6000 && !jj_over(&r); i++) jj_step(&r, false);
+ CHECK(jj_over(&r) || r.state == JJ_ALIVE, "seed %d: never came to rest", s);
+ CHECK(jj_valid(&r), "seed %d: invalid at the end", s);
+ tokens += r.tokens_taken;
+ total_m += jj_metres(&r);
+ }
+ greedy = false;
+ for (int v = 0; v < JJ_RIDES; v++) CHECK(seen_ride[v], "vehicle %d never ridden", v);
+ CHECK(lasers && missiles && rotating && swarm, "hazards: lasers %d missiles %d rotating %d swarm %d", lasers, missiles, rotating, swarm);
+ CHECK(tokens > 12, "tokens %d", tokens);
+ printf("bot: 24 runs, %u m in all, %d tokens\n", total_m, tokens);
+}
+
+/* ---------------------------------------------------------------- saves */
+static void saves(void) {
+ jj_run r, back;
+ jj_profile p = {1234, 567, 8, 1, 1, 0, 0}, q;
+ jj_start(&r, 4242, 0, 0);
+ bot_left = 0;
+ for (int i = 0; i < 3000 && r.state == JJ_ALIVE; i++) jj_step(&r, bot(&r));
+ forget(JJ_SAVE_NAME), forget(JJ_COPY_NAME);
+ CHECK(save_write(&p, &r), "save failed");
+ memset(&back, 0, sizeof back);
+ save_load(&q, &back);
+ CHECK(q.best == 1234 && q.coins == 567 && q.has_run == 1, "profile back");
+ CHECK(!memcmp(&back, &r, sizeof r), "run back");
+ /* the same run goes on the same way */
+ for (int i = 0; i < 600; i++) {
+ bool h = bot(&r);
+ jj_step(&r, h), jj_step(&back, h);
+ }
+ CHECK(!memcmp(&back, &r, sizeof r), "run diverged after loading");
+ /* the file gone: the copy in the script brings it back */
+ forget(JJ_SAVE_NAME);
+ memset(&q, 0, sizeof q);
+ save_load(&q, &back);
+ CHECK(q.best == 1234 && q.has_run, "copy back");
+ uint32_t n;
+ CHECK(plat_load(JJ_SAVE_NAME, &n) != 0, "save restored from the copy");
+ /* every byte damaged in turn: refused (or, by chance, still valid), never a crash */
+ forget(JJ_COPY_NAME);
+ save_write(&p, &r);
+ uint8_t keep[4096];
+ const uint8_t *d = plat_load(JJ_SAVE_NAME, &n);
+ memcpy(keep, d, n);
+ forget(JJ_COPY_NAME);
+ int refused = 0;
+ for (uint32_t i = 0; i < n; i++) {
+ uint8_t bad[4096];
+ memcpy(bad, keep, n);
+ bad[i] ^= (uint8_t)(1 + i % 255);
+ plat_save(JJ_SAVE_NAME, bad, n);
+ forget(JJ_COPY_NAME);
+ memset(&q, 0xAB, sizeof q);
+ save_load(&q, &back);
+ refused += q.best == 0 && q.has_run == 0;
+ if (q.has_run) CHECK(jj_valid(&back), "damaged save gave a broken run");
+ }
+ CHECK(refused == (int)n, "damaged saves refused: %d of %u", refused, n);
+ /* too short, too long, empty */
+ plat_save(JJ_SAVE_NAME, keep, n - 1), save_load(&q, &back);
+ CHECK(q.best == 0, "short save");
+ printf("saves: %u bytes, every damaged byte refused\n", n);
+}
+
+/* ---------------------------------------------------------------- the whole app with random keys */
+static uint32_t fuzz_rng = 77;
+static uint32_t fuzz_keys(uint32_t f) {
+ static uint32_t held, until;
+ if (f >= until) {
+ uint32_t x = jj_rand(&fuzz_rng);
+ static const uint32_t pick[] = {0, JK_OK, JK_OK, JK_OK, JK_UP, JK_DOWN, JK_BACK, JK_OK | JK_UP, 0, JK_OK};
+ held = pick[x % 10];
+ until = f + 1 + (x >> 8) % 40;
+ }
+ return held;
+}
+static void fuzz(void) {
+ int sessions = 200;
+ for (int s = 0; s < sessions; s++) {
+ if (s % 50 == 0) forget(JJ_SAVE_NAME), forget(JJ_COPY_NAME);
+ memset(&run, 0, sizeof run), memset(&prof, 0, sizeof prof), memset(&view, 0, sizeof view);
+ fuzz_rng = (uint32_t)s * 7919u + 1;
+ script = fuzz_keys, frame_no = 0, quit_at = 100 + jj_rand(&fuzz_rng) % 1200;
+ jj_app_main();
+ uint32_t n;
+ const uint8_t *d = plat_load(JJ_SAVE_NAME, &n);
+ CHECK(d && n == sizeof(jj_file), "session %d: no save", s);
+ if (d) {
+ jj_file f;
+ memcpy(&f, d, sizeof f);
+ CHECK(jj_file_ok(&f), "session %d: the save doesn't read back", s);
+ }
+ }
+ printf("fuzz: %d sessions of random keys, each quit with Home and its save read back\n", sessions);
+}
+
+/* ---------------------------------------------------------------- the Final Spin, through the app */
+static int spin_wins, spin_losses, spin_revives;
+static int8_t last_msg;
+static uint8_t last_screen;
+static uint32_t spin_keys(uint32_t f) {
+ if (view.spin_msg != last_msg) {
+ if (view.spin_msg >= 0) spin_wins++;
+ if (view.spin_msg == -2) spin_losses++;
+ }
+ if (last_screen == JJ_SCREEN_SPIN && view.screen == JJ_SCREEN_PLAY) spin_revives++;
+ last_msg = view.spin_msg, last_screen = view.screen;
+ if (f == 10) return JK_BACK; /* resume the run left with Home */
+ return (f % 8) < 2 && f > 20 ? JK_OK : 0; /* then OK: spins, results, play again... */
+}
+static void spins(void) {
+ jj_run end;
+ for (uint32_t seed = 3;; seed++) { /* a run to its end */
+ jj_start(&end, seed * 40503u, 0, 0);
+ bot_left = 0;
+ while (end.state == JJ_ALIVE) jj_step(&end, bot(&end));
+ break;
+ }
+ for (int i = 0; i < 5000 && end.state != JJ_STOPPED; i++) jj_step(&end, false);
+ int sessions = 60;
+ spin_wins = spin_losses = spin_revives = 0;
+ for (int s = 0; s < sessions; s++) {
+ jj_profile p = {100, 1000, (uint32_t)s * 17, 1, 0, 0, 1};
+ end.tokens = 6;
+ forget(JJ_SAVE_NAME), forget(JJ_COPY_NAME);
+ save_write(&p, &end);
+ memset(&run, 0, sizeof run), memset(&prof, 0, sizeof prof), memset(&view, 0, sizeof view);
+ script = spin_keys, frame_no = 0, quit_at = 900, last_msg = -1, last_screen = 0;
+ jj_app_main();
+ uint32_t n;
+ const uint8_t *d = plat_load(JJ_SAVE_NAME, &n);
+ jj_file f;
+ CHECK(d && n == sizeof f, "spin session %d: no save", s);
+ if (!d) continue;
+ memcpy(&f, d, sizeof f);
+ CHECK(jj_file_ok(&f), "spin session %d: the save doesn't read back", s);
+ /* the tokens were all spent or cashed in: the coins grew, or a run came back */
+ CHECK(f.p.coins > 1000 || f.p.has_run || f.p.head_start || f.p.double_coins, "spin session %d: nothing happened", s);
+ }
+ int spins = spin_wins + spin_losses;
+ CHECK(spins > sessions * 5 && spin_wins * 5 > spins && spin_wins * 3 < spins, "spins %d, wins %d", spins, spin_wins);
+ CHECK(spin_revives > 0, "no Second Chance brought a run back");
+ printf("final spin: %d spins, %d won, %d Second Chances back to the run\n", spins, spin_wins, spin_revives);
+}
+
+/* ---------------------------------------------------------------- pictures */
+static void picture(const char *dir, const char *name) {
+ char path[512];
+ snprintf(path, sizeof path, "%s/%s.ppm", dir, name);
+ sync_view();
+ jj_draw(&run, &view);
+ shot(path);
+}
+
+/* the bot plays until `want` is true, then a picture */
+static bool until_seen(uint32_t seed, bool (*want)(const jj_run *), int max_frames) {
+ jj_start(&run, seed, 0, 0);
+ bot_left = 0;
+ for (int i = 0; i < max_frames && run.state == JJ_ALIVE; i++) {
+ jj_step(&run, bot(&run));
+ if (want(&run)) return true;
+ }
+ return false;
+}
+static bool w_laser(const jj_run *r) {
+ if (!r->laser) return false;
+ int y, ph, k;
+ jj_beam_state(r->laser - 1, 0, r->laser_t, &y, &ph, &k);
+ return ph == 2 && k > 10 && jj_lpats[r->laser - 1].count >= 3;
+}
+static bool w_missile(const jj_run *r) {
+ for (int i = 0; i < JJ_MISSILES; i++)
+ if (r->mis[i].on && r->mis[i].state == JJ_FLY && r->mis[i].x < 380 && r->mis[i].x > 250) return true;
+ return false;
+}
+static bool w_warn(const jj_run *r) {
+ int n = 0;
+ for (int i = 0; i < JJ_MISSILES; i++) n += r->mis[i].on && r->mis[i].state != JJ_FLY;
+ return n >= 1 && r->coin[0].on;
+}
+static bool w_rotating(const jj_run *r) {
+ for (int i = 0; i < JJ_ZAPPERS; i++)
+ if (r->zap[i].on && r->zap[i].spin && r->zap[i].x > 200 && r->zap[i].x < 380) return true;
+ return false;
+}
+static bool w_coins(const jj_run *r) {
+ for (int i = 0; i < JJ_COINSETS; i++)
+ if (r->coin[i].on && r->coin[i].x < 300 && r->coin[i].x > 150) return true;
+ return false;
+}
+static int want_ride;
+static bool w_ride(const jj_run *r) { return r->ride == want_ride && r->t % 7 == 0 && r->ride_speed > 0 && r->next < 200; }
+static bool w_token(const jj_run *r) { return r->token[0].on && r->token[0].x < 400; }
+static bool w_box(const jj_run *r) { return r->box.on && r->box.x < 420; }
+
+static void shots(const char *dir) {
+ memset(&prof, 0, sizeof prof);
+ prof.best = 2380, prof.coins = 1264;
+ memset(&view, 0, sizeof view);
+ view.screen = JJ_SCREEN_TITLE, view.clock = 200;
+ picture(dir, "title");
+ view.screen = JJ_SCREEN_PLAY;
+ struct { const char *name; bool (*w)(const jj_run *); } cases[] = {
+ {"coins", w_coins}, {"rotating", w_rotating}, {"warning", w_warn}, {"missile", w_missile},
+ {"laser", w_laser}, {"token", w_token}, {"box", w_box}};
+ for (unsigned c = 0; c < sizeof cases / sizeof cases[0]; c++) {
+ bool ok = false;
+ for (uint32_t seed = 1; seed < 400 && !ok; seed++) ok = until_seen(seed * 2654435761u, cases[c].w, 60 * 300);
+ CHECK(ok, "no %s seen", cases[c].name);
+ picture(dir, cases[c].name);
+ }
+ static const char *const rides[JJ_RIDES] = {"", "stomper", "hog", "bird", "gravity", "teleporter"};
+ for (want_ride = 1; want_ride < JJ_RIDES; want_ride++) {
+ bool ok = false;
+ for (uint32_t seed = 1; seed < 400 && !ok; seed++) ok = until_seen(seed * 2246822519u, w_ride, 60 * 300);
+ CHECK(ok, "no %s seen", rides[want_ride]);
+ picture(dir, rides[want_ride]);
+ }
+ view.screen = JJ_SCREEN_PAUSE, view.sel = 0;
+ picture(dir, "pause");
+ view.screen = JJ_SCREEN_GUIDE;
+ picture(dir, "guide");
+ /* a run to its end, then the Final Spin and the results */
+ for (uint32_t seed = 3;; seed++) {
+ jj_start(&run, seed * 40503u, 0, 0);
+ bot_left = 0;
+ while (run.state == JJ_ALIVE) jj_step(&run, bot(&run));
+ if (run.tokens) break;
+ }
+ for (int i = 0; i < 5000 && !jj_over(&run); i++) jj_step(&run, false);
+ view.screen = JJ_SCREEN_SPIN, view.spinning = 0, view.spin_msg = JJ_PRIZE_REVIVE;
+ view.reel[0] = view.reel[1] = view.reel[2] = 48 * JJ_PRIZE_REVIVE;
+ picture(dir, "spin");
+ view.screen = JJ_SCREEN_RESULTS, view.sel = 0, view.run_m = jj_metres(&run), view.run_coins = run.coins, view.new_best = 1;
+ picture(dir, "results");
+}
+
+static void film(const char *dir, int seed, int start, int frames) {
+ memset(&view, 0, sizeof view);
+ view.screen = JJ_SCREEN_PLAY;
+ jj_start(&run, (uint32_t)seed * 2654435761u, 0, 0);
+ bot_left = 0, greedy = true;
+ char path[512];
+ for (int f = -start; f < frames; f++) {
+ for (int k = 0; k < 3; k++) jj_step(&run, run.state == JJ_ALIVE ? bot(&run) : false);
+ if (f < 0) continue;
+ snprintf(path, sizeof path, "%s/f_%04d.ppm", dir, f);
+ sync_view();
+ jj_draw(&run, &view);
+ shot(path);
+ }
+}
+
+int main(int argc, char **argv) {
+ gfx_buf = strip;
+ if (argc >= 2 && !strcmp(argv[1], "test")) {
+ clock_t c0 = clock();
+ units();
+ bots();
+ clock_t c1 = clock();
+ saves();
+ spins();
+ fuzz();
+ fprintf(stderr, "(%.0f s rules and bots, %.0f s saves and keys)\n", (double)(c1 - c0) / CLOCKS_PER_SEC,
+ (double)(clock() - c1) / CLOCKS_PER_SEC);
+ printf(fails ? "%d FAILED\n" : "all passed\n", fails);
+ return fails != 0;
+ }
+ if (argc >= 3 && !strcmp(argv[1], "shots")) {
+ shots(argv[2]);
+ return fails != 0;
+ }
+ if (argc >= 6 && !strcmp(argv[1], "film")) {
+ film(argv[2], atoi(argv[3]), atoi(argv[4]), atoi(argv[5]));
+ return 0;
+ }
+ fprintf(stderr, "usage: play test | shots DIR | film DIR SEED START FRAMES\n");
+ return 2;
+}
diff --git a/games/jetpackjoyride/tests/test.c b/games/jetpackjoyride/tests/test.c
deleted file mode 100644
index 42e34f1c..00000000
--- a/games/jetpackjoyride/tests/test.c
+++ /dev/null
@@ -1,251 +0,0 @@
-/* SPDX-License-Identifier: GPL-3.0-only */
-#include "jetpack.h"
-#include "render.h"
-#include <assert.h>
-#include <stdio.h>
-#include <string.h>
-typedef char layout_checked[(sizeof(jj_game)==232&&offsetof(jj_game,hazard)==40&&offsetof(jj_game,pickup)==88)?1:-1];
-static uint16_t screen[320*240],reference[320*240];
-static unsigned pushes;
-static void push(int x,int y,int w,int h,const uint16_t *p) {
- assert(x>=0&&y>=0&&w>0&&h>0&&x+w<=320&&y+h<=240&&w*h<=2560);
- for(int j=0;j<h;++j)memcpy(screen+(y+j)*320+x,p+j*w,(size_t)w*2);
- ++pushes;
-}
-static void shot(const char *name) {
- FILE *f=fopen(name,"wb");assert(f);fprintf(f,"P6\n320 240\n255\n");
- for(unsigned i=0;i<320*240;++i) {
- unsigned c=screen[i];fputc(((c>>11)&31)*255/31,f);fputc(((c>>5)&63)*255/63,f);fputc((c&31)*255/31,f);
- }
- fclose(f);
-}
-static void fixture(const char *name,const jj_game *g,const jj_stats *s) {
- assert(jj_valid(g,s));uint8_t data[JJ_SAVE_BYTES];jj_encode(g,s,data);
- FILE *f=fopen(name,"wb");assert(f);assert(fwrite(data,1,sizeof data,f)==sizeof data);fclose(f);
-}
-static void setup(jj_game *g,jj_stats *s) {*s=(jj_stats){0};jj_new(g,42);jj_start(g,s);}
-static bool controller(const jj_game *g);
-static void collisions(void) {
- jj_game g; jj_stats s;setup(&g,&s);
- for(int i=0;i<200;++i)jj_step(&g,&s,true);
- assert(g.y==42*JJ_Q&&g.vy==0&&g.phase==JJ_RUNNING);
- memset(g.hazard,0,sizeof g.hazard);g.next=600*JJ_Q;
- for(int i=0;i<100;++i)jj_step(&g,&s,false);
- assert(g.y==198*JJ_Q&&g.vy==0&&s.runs==1);
- jj_start(&g,&s);assert(s.runs==1);
- for(unsigned kind=0;kind<=JJ_ROTATING;++kind) {
- setup(&g,&s);g.y=120*JJ_Q;
- g.hazard[0]=(jj_hazard){67*JJ_Q,120,(uint8_t)kind,0,1};jj_step(&g,&s,false);
- assert(g.phase==JJ_OVER&&g.reason==(kind==JJ_MISSILE?2:1));
- jj_game frozen=g;jj_stats book=s;jj_step(&g,&s,true);
- assert(!memcmp(&g,&frozen,sizeof g)&&!memcmp(&s,&book,sizeof s));
- setup(&g,&s);g.y=120*JJ_Q;g.shield=1;
- g.hazard[0]=(jj_hazard){67*JJ_Q,120,(uint8_t)kind,0,1};jj_step(&g,&s,false);
- assert(g.phase==JJ_RUNNING&&!g.shield&&g.invuln==80&&!g.hazard[0].active);
- }
- setup(&g,&s);g.y=120*JJ_Q;g.pickup[0]=(jj_pickup){65*JJ_Q,120,JJ_COIN,1};jj_step(&g,&s,false);
- assert(g.coins==1&&s.coins==1&&s.wallet==1&&!g.pickup[0].active);jj_step(&g,&s,false);assert(g.coins==1);
- g.pickup[0]=(jj_pickup){65*JJ_Q,120,JJ_SHIELD,1};g.hazard[0]=(jj_hazard){65*JJ_Q,120,JJ_HORIZONTAL,0,1};
- jj_step(&g,&s,false);assert(g.invuln==80&&!g.shield&&g.phase==JJ_RUNNING);
- setup(&g,&s);g.y=120*JJ_Q;g.hazard[0]=(jj_hazard){356*JJ_Q,65,JJ_MISSILE,36,1};
- jj_step(&g,&s,false);assert(g.hazard[0].y==120&&g.hazard[0].timer==35);
- for(int i=0;i<35;++i)jj_step(&g,&s,true);
- assert(g.hazard[0].y==120&&!g.hazard[0].timer&&g.hazard[0].x==356*JJ_Q);
- jj_step(&g,&s,true);assert(g.hazard[0].x<356*JJ_Q&&g.phase==JJ_RUNNING);
- setup(&g,&s);g.hazard[0]=(jj_hazard){28*JJ_Q,90,JJ_HORIZONTAL,0,1};
- jj_step(&g,&s,false);assert(g.passed==1&&s.dodged==1);
- jj_step(&g,&s,false);assert(g.passed==1);
- setup(&g,&s);g.distance=JJ_LIMIT*JJ_Q-1;g.tick=4000000;jj_step(&g,&s,false);
- assert(g.phase==JJ_OVER&&g.reason==3&&jj_valid(&g,&s));
- s.runs=s.coins=s.dodged=UINT32_MAX;jj_new(&g,1);jj_start(&g,&s);assert(s.runs==UINT32_MAX);
-}
-static void hash(uint8_t *p) {
- uint32_t h=2166136261u;for(unsigned i=0;i<256;++i)h=(h^p[i])*16777619u;
- for(int i=0;i<4;++i)p[256+i]=(uint8_t)(h>>(8*i));
-}
-static void saves(void) {
- jj_game g,a; jj_stats s,b;setup(&g,&s);uint8_t data[JJ_SAVE_BYTES],bad[JJ_SAVE_BYTES];
- for(int i=0;i<300;++i)jj_step(&g,&s,i%80<35);
- jj_encode(&g,&s,data);assert(jj_decode(&a,&b,data,sizeof data));
- assert(!memcmp(&g,&a,sizeof g)&&!memcmp(&s,&b,sizeof s));
- for(unsigned i=0;i<sizeof data;++i) {
- memcpy(bad,data,sizeof bad);bad[i]^=1;jj_game keep=a;jj_stats book=b;
- assert(!jj_decode(&a,&b,bad,sizeof bad)&&!memcmp(&a,&keep,sizeof a)&&!memcmp(&b,&book,sizeof b));
- }
- assert(!jj_decode(&a,&b,NULL,0)&&!jj_decode(&a,&b,data,sizeof data-1));
- static const unsigned offsets[]={35,39,43,50,51,52,53,54,55,56,57,61,62,63,70,71,72,118,119};
- for(unsigned i=0;i<sizeof offsets/sizeof *offsets;++i) {
- memcpy(bad,data,sizeof bad);bad[offsets[i]]=255;hash(bad);assert(!jj_decode(&a,&b,bad,sizeof bad));
- }
- setup(&g,&s);
- for(int i=0;i<200;++i)jj_step(&g,&s,controller(&g));
- jj_game clone; jj_stats book;jj_encode(&g,&s,data);assert(jj_decode(&clone,&book,data,sizeof data));
- for(int i=0;i<1000;++i) {
- bool thrust=controller(&g);jj_step(&g,&s,thrust);jj_step(&clone,&book,thrust);
- assert(!memcmp(&g,&clone,sizeof g)&&!memcmp(&s,&book,sizeof s));
- }
- assert(g.phase==JJ_RUNNING&&jj_distance(&g)>100);
- memset(&g,0,sizeof g);memset(&s,0,sizeof s);jj_encode(&g,&s,data);assert(jj_decode(&a,&b,data,sizeof data));
- FILE *f=fopen("../tests/legacy-save.bin","rb");assert(f);assert(fread(data,1,sizeof data,f)==sizeof data);fclose(f);
- assert(!memcmp(data,"JJN1",4)&&jj_decode(&g,&s,data,sizeof data));
- assert(s.wallet==s.coins&&!s.owned&&!s.suit);jj_encode(&g,&s,data);
- assert(!memcmp(data,"JJN2",4)&&jj_decode(&a,&b,data,sizeof data)&&!memcmp(&g,&a,sizeof g)&&!memcmp(&s,&b,sizeof s));
-}
-static bool controller(const jj_game *g) {
- int target=120;int nearest=1000000;
- for(unsigned i=0;i<JJ_HAZARDS;++i) {
- const jj_hazard *p=&g->hazard[i];
- int w,h;jj_bounds(p->kind,&w,&h);
- if(!p->active||p->x+w*JJ_Q/2<54*JJ_Q)continue;
- if(p->x<nearest) {
- nearest=p->x;
- if(p->kind==JJ_MISSILE)target=p->timer>35?120:p->y<120?165:75;
- else if(p->kind==JJ_ROTATING)target=p->y<120?160:80;
- else if(p->kind==JJ_COLUMN)target=p->y<120?150:90;
- else if(p->kind==JJ_HORIZONTAL)target=p->y>175?150:p->y<70?95:80;
- else {
- target=p->y<120?180:60;
- for(unsigned j=0;j<JJ_HAZARDS;++j) {
- const jj_hazard *q=&g->hazard[j];
- if(j!=i&&q->active&&q->x==p->x&&q->kind==JJ_VERTICAL)target=(p->y+q->y)/2;
- }
- }
- }
- }
- if(nearest==1000000)for(unsigned i=0;i<JJ_PICKUPS;++i) {
- const jj_pickup *p=&g->pickup[i];
- if(p->active&&p->x>44*JJ_Q&&p->x<nearest)target=p->y,nearest=p->x;
- }
- return g->y+g->vy*10>target*JJ_Q;
-}
-static void courses(void) {
- unsigned successes=0,seen=0,shields=0,max_active=0;unsigned long steps=0;
- for(unsigned seed=1;seed<=80;++seed) {
- jj_game g;jj_stats s={0};jj_new(&g,seed);
- if(seed==1)fixture("start-save.bin",&g,&s);
- jj_start(&g,&s);
- for(unsigned i=0;i<20000&&g.phase==JJ_RUNNING&&jj_distance(&g)<3000;++i) {
- jj_step(&g,&s,controller(&g));assert(jj_valid(&g,&s));++steps;
- unsigned active=0;
- for(unsigned j=0;j<JJ_HAZARDS;++j)if(g.hazard[j].active)seen|=1u<<g.hazard[j].kind,++active;
- if(active>max_active)max_active=active;
- if(g.shield)++shields;
- if(seed==1&&jj_distance(&g)>=500&&jj_distance(&g)<=501)fixture("flight-save.bin",&g,&s);
- if(i%113==0) {
- jj_game copy; jj_stats book;uint8_t data[JJ_SAVE_BYTES];jj_encode(&g,&s,data);
- assert(jj_decode(&copy,&book,data,sizeof data)&&!memcmp(&copy,&g,sizeof g));
- }
- }
- if(jj_distance(&g)>=3000)++successes;
- else printf("Seed %u ended at %u m, cause %u\n",seed,(unsigned)jj_distance(&g),g.reason);
- }
- printf("Courses: %u/80 reached 3000 m; hazard kinds %u; shield frames %u; %lu steps\n",successes,seen,shields,steps);
- assert(successes>=70&&seen==31&&shields&&max_active==4);
- jj_game g; jj_stats s;setup(&g,&s);uint32_t r=0x452341u;
- for(unsigned i=0;i<200000;++i) {
- r^=r<<13;r^=r>>17;r^=r<<5;
- if(g.phase==JJ_OVER)jj_new(&g,r),jj_start(&g,&s);
- jj_step(&g,&s,(r&31)<16);assert(jj_valid(&g,&s));
- }
- setup(&g,&s);g.y=110*JJ_Q;g.shield=1;g.thrust=1;g.distance=5000*JJ_Q;
- for(unsigned i=0;i<JJ_HAZARDS;++i)g.hazard[i]=(jj_hazard){(int32_t)(125+i*62)*JJ_Q,(uint16_t)(i&1?140:87),(uint8_t)(i%3),i==2?30:0,1};
- for(unsigned i=0;i<JJ_PICKUPS;++i)g.pickup[i]=(jj_pickup){(int32_t)(70+i*14)*JJ_Q,(uint16_t)(i&1?60:190),(uint8_t)(i%8==0),1};
- fixture("stress-save.bin",&g,&s);
-}
-static void rendering(void) {
- jj_game g; jj_stats s;setup(&g,&s);g.y=120*JJ_Q;g.shield=1;
- g.hazard[0]=(jj_hazard){190*JJ_Q,90,JJ_VERTICAL,0,1};
- g.hazard[1]=(jj_hazard){356*JJ_Q,151,JJ_MISSILE,50,1};
- for(int i=0;i<7;++i)g.pickup[i]=(jj_pickup){(145+i*22)*JJ_Q,190,JJ_COIN,1};
- for(unsigned view=0;view<=JJ_BUY;++view)for(unsigned selected=0;selected<(view==JJ_BUY?8:4);++selected) {
- jj_invalidate();jj_render(&g,&s,view,selected,false,push);
- if(!selected) {if(view==JJ_TITLE)shot("title.ppm");if(view==JJ_GUIDE)shot("guide.ppm");if(view==JJ_SHOP)shot("shop.ppm");if(view==JJ_PLAY)shot("gameplay.ppm");}
- for(unsigned frame=0;frame<24;++frame) {
- if(view==JJ_PLAY)jj_step(&g,&s,controller(&g));
- jj_render(&g,&s,view,selected,false,push);memcpy(reference,screen,sizeof screen);
- jj_invalidate();jj_render(&g,&s,view,selected,false,push);assert(!memcmp(screen,reference,sizeof screen));
- }
- unsigned before=pushes;jj_render(&g,&s,view,selected,false,push);assert(pushes==before);
- }
- /* Screen boundaries, the longest exhaust plume, shield and invulnerability
- * blinking must never leave pixels on a later partial redraw. */
- setup(&g,&s);g.next=600*JJ_Q;g.shield=1;
- for(int i=0;i<240;++i) {
- jj_step(&g,&s,i<100||i>215);
- jj_render(&g,&s,JJ_PLAY,0,false,push);memcpy(reference,screen,sizeof screen);
- jj_invalidate();jj_render(&g,&s,JJ_PLAY,0,false,push);assert(!memcmp(screen,reference,sizeof screen));
- }
- jj_game frozen=g;jj_stats book=s;
- for(unsigned frame=0;frame<96;++frame) {
- jj_menu_time(frame*80);jj_render(&g,&s,JJ_TITLE,0,false,push);
- memcpy(reference,screen,sizeof screen);
- jj_invalidate();jj_render(&g,&s,JJ_TITLE,0,false,push);assert(!memcmp(screen,reference,sizeof screen));
- unsigned before=pushes;jj_render(&g,&s,JJ_TITLE,0,false,push);assert(before==pushes);
- }
- assert(!memcmp(&g,&frozen,sizeof g)&&!memcmp(&s,&book,sizeof s));
-}
-static void camping(void) {
- unsigned latest[4]={0};
- for(unsigned seed=1;seed<=200;++seed)for(unsigned mode=0;mode<4;++mode) {
- jj_game g;jj_stats s={0};jj_new(&g,seed);jj_start(&g,&s);g.shield=(uint8_t)(mode==3);
- for(unsigned tick=0;tick<1600&&g.phase==JJ_RUNNING;++tick)
- jj_step(&g,&s,mode==1||(mode==2&&g.y+g.vy*10>120*JJ_Q));
- assert(g.phase==JJ_OVER&&g.reason==1&&jj_distance(&g)<150);
- if(jj_distance(&g)>latest[mode])latest[mode]=jj_distance(&g);
- }
- printf("Camping (floor / ceiling / center / floor with shield): dead by %u / %u / %u / %u meters, 200 seeds each\n",latest[0],latest[1],latest[2],latest[3]);
-}
-static void purchases(void) {
- jj_game g;jj_stats s;setup(&g,&s);s.coins=200;s.wallet=200;
- fixture("shop-save.bin",&g,&s);
- assert(jj_price(1)==50&&jj_price(2)==120&&jj_price(3)==200);
- jj_stats before=s;s.wallet=49;before=s;assert(!jj_equip(&s,1)&&!memcmp(&s,&before,sizeof s));
- s.wallet=50;assert(jj_equip(&s,1)&&!s.wallet&&s.suit==1&&s.owned==2);
- assert(jj_equip(&s,1)&&!s.wallet&&jj_equip(&s,0)&&!s.wallet&&s.suit==0);
- before=s;assert(!jj_equip(&s,3)&&!jj_equip(&s,4)&&!memcmp(&s,&before,sizeof s));
- s.wallet=200;assert(jj_equip(&s,3)&&!s.wallet&&s.suit==3&&s.owned==10);
- uint8_t raw[JJ_SAVE_BYTES];jj_game a;jj_stats b;jj_encode(&g,&s,raw);
- assert(jj_decode(&a,&b,raw,sizeof raw)&&b.owned==10&&b.suit==3&&!b.wallet);
- /* Outfits must not change flight mechanics. */
- setup(&g,&s);a=g;b=s;b.suit=2;b.owned=4;
- for(int i=0;i<1200;++i) {
- bool thrust=controller(&g);jj_step(&g,&s,thrust);jj_step(&a,&b,thrust);
- assert(!memcmp(&g,&a,sizeof g)&&s.wallet==b.wallet&&s.coins==b.coins);
- }
-}
-static void rotators(void) {
- jj_hazard p={100*JJ_Q,120,JJ_ROTATING,0,1};int dx,dy;
- jj_rotor(&p,0,&dx,&dy);assert(dx==36*JJ_Q&&!dy&&jj_rotor_hit(&p,0,120*JJ_Q));
- jj_rotor(&p,32,&dx,&dy);assert(!dx&&dy==36*JJ_Q&&!jj_rotor_hit(&p,32,120*JJ_Q));
- /* A diagonal segment misses the empty corner of its enclosing square. */
- p.x=90*JJ_Q;assert(!jj_rotor_hit(&p,16,146*JJ_Q));
- assert(jj_rotor_hit(&p,16,94*JJ_Q));
- for(unsigned phase=0;phase<128;++phase) {
- p.timer=(uint8_t)phase;p.x=64*JJ_Q;
- jj_rotor(&p,37,&dx,&dy);
- assert(dx*dx+dy*dy>=35*35*JJ_Q*JJ_Q&&dx*dx+dy*dy<=37*37*JJ_Q*JJ_Q);
- assert(jj_rotor_hit(&p,37,120*JJ_Q));
- assert(!jj_rotor_hit(&p,37,60*JJ_Q));
- jj_game g;jj_stats s;setup(&g,&s);g.hazard[0]=p;g.hazard[0].x=210*JJ_Q;
- uint8_t raw[JJ_SAVE_BYTES];jj_game a;jj_stats b;jj_encode(&g,&s,raw);
- assert(jj_decode(&a,&b,raw,sizeof raw)&&!memcmp(&g,&a,sizeof g));
- }
- jj_game g;jj_stats s;setup(&g,&s);g.y=120*JJ_Q;g.hazard[0]=p;
- g.hazard[0].timer=65;jj_step(&g,&s,false);assert(g.phase==JJ_OVER&&g.reason==1);
- setup(&g,&s);g.y=120*JJ_Q;g.hazard[0]=p;g.hazard[0].timer=65;g.shield=1;
- jj_step(&g,&s,false);assert(g.phase==JJ_RUNNING&&g.invuln==80&&!g.hazard[0].active);
- setup(&g,&s);g.y=120*JJ_Q;g.hazard[0]=(jj_hazard){154*JJ_Q,90,JJ_ROTATING,70,1};
- g.hazard[1]=(jj_hazard){281*JJ_Q,150,JJ_ROTATING,23,1};
- fixture("rotor-save.bin",&g,&s);
- for(int frame=0;frame<128;++frame) {
- ++g.tick;jj_render(&g,&s,JJ_PLAY,0,false,push);memcpy(reference,screen,sizeof screen);
- jj_invalidate();jj_render(&g,&s,JJ_PLAY,0,false,push);assert(!memcmp(screen,reference,sizeof screen));
- }
- g.shield=1;
- for(unsigned i=0;i<4;++i)g.hazard[i]=(jj_hazard){(int32_t)(110+i*54)*JJ_Q,(uint16_t)(i&1?150:90),JJ_ROTATING,(uint8_t)(i*31),1};
- fixture("rotor-stress-save.bin",&g,&s);
- puts("PASS: rotating beam angles, empty corners, both directions, phase saves, shield hits and 128 redraws");
-}
-int main(void) {
- collisions();rotators();saves();camping();purchases();courses();rendering();puts("PASS: physics, patterns, anti-camping, shop, migration, saves, redraw equivalence");return 0;
-}
diff --git a/games/jetpackjoyride/tests/test_compact_nwa.py b/games/jetpackjoyride/tests/test_compact_nwa.py
deleted file mode 100644
index 4874fac7..00000000
--- a/games/jetpackjoyride/tests/test_compact_nwa.py
+++ /dev/null
@@ -1,90 +0,0 @@
-#!/usr/bin/env python3
-"""Build-time LZ4 correctness and block-format boundary checks (stdlib only)."""
-import importlib.util
-from pathlib import Path
-import random
-import unittest
-
-SOURCE = Path(__file__).resolve().parents[1]/'tools/compact_nwa.py'
-SPEC = importlib.util.spec_from_file_location('compact_nwa', SOURCE)
-packing = importlib.util.module_from_spec(SPEC)
-SPEC.loader.exec_module(packing)
-
-
-class CompressionTests(unittest.TestCase):
- def check_block(self, raw):
- block = packing.compress_lz4(raw)
- self.assertEqual(packing.decode_lz4(block, len(raw)), raw)
- # Walk token boundaries independently to check the LZ4 end constraints.
- pos, decoded, last_match, final_literals = 0, 0, None, None
- while pos < len(block):
- token = block[pos]
- pos += 1
- literal = token >> 4
- if literal == 15:
- while block[pos] == 255:
- literal += 255
- pos += 1
- literal += block[pos]
- pos += 1
- pos += literal
- decoded += literal
- if pos == len(block):
- final_literals = literal
- break
- distance = int.from_bytes(block[pos:pos+2], 'little')
- self.assertGreater(distance, 0)
- self.assertLessEqual(distance, decoded)
- pos += 2
- match = (token & 15) + 4
- if (token & 15) == 15:
- while block[pos] == 255:
- match += 255
- pos += 1
- match += block[pos]
- pos += 1
- last_match = decoded
- decoded += match
- self.assertEqual(decoded, len(raw))
- self.assertIsNotNone(final_literals)
- if last_match is not None:
- self.assertGreaterEqual(final_literals, 5)
- self.assertLessEqual(last_match, len(raw)-12)
- return block
-
- def test_lengths_and_random_literals(self):
- rng = random.Random(6140)
- for size in (0, 1, 4, 5, 11, 12, 15, 19, 20, 254, 255, 270, 1024):
- with self.subTest(size=size):
- self.check_block(bytes(rng.randrange(256) for _ in range(size)))
-
- def test_long_overlapping_matches_and_extension_bytes(self):
- for pattern in (b'A', b'\x00\xff', bytes(range(32))):
- raw = (pattern*packing.ICON_BYTES)[:packing.ICON_BYTES]
- with self.subTest(pattern=pattern):
- self.assertLess(len(self.check_block(raw)), 150)
-
- def test_repeated_pixel_rows(self):
- row = b'\x08\xc5'*20 + b'\xff\xff'*15 + b'\x08\xc5'*20
- self.check_block(row*56)
-
- def test_known_raw_block(self):
- self.assertEqual(packing.decode_lz4(b'\x13A\x01\x00\x50hello', 13), b'A'*8+b'hello')
-
- def test_truncated_invalid_and_oversized_output(self):
- for block, expected in ((b'',1),(b'\xf0',1),(b'\x10',1),
- (b'\x00\x00\x00',4),(b'\x10A\x02\x00',5),
- (b'\x10A',2),(b'\x13A\x01\x00\x50hello',12)):
- with self.subTest(block=block):
- with self.assertRaises(ValueError):
- packing.decode_lz4(block,expected)
-
- def test_repeatable_and_bounded_input(self):
- raw = b'abcd'*100+b'last five'
- self.assertEqual(self.check_block(raw),self.check_block(raw))
- with self.assertRaises(ValueError):
- packing.compress_lz4(b'x'*65536)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/games/jetpackjoyride/tools/art.py b/games/jetpackjoyride/tools/art.py
new file mode 100644
index 00000000..ad4bafaa
--- /dev/null
+++ b/games/jetpackjoyride/tools/art.py
@@ -0,0 +1,344 @@
+#!/usr/bin/env python3
+"""src/art.h: Halfbrick's own pictures, at the calculator's size (2/3 of the game's points).
+
+ python3 -I tools/art.py FB_DIR APK_DIR src/art.h
+
+FB_DIR: the PNGs of archive.org's "Jetpack Joyride facebook assets" (jetpack joyride images.rar, unpacked):
+Barry, the lab, coins, zappers, missiles, lasers, the vehicle box, the Profit Bird, the Teleporter, the Gravity
+Suit, the scientists, the title. APK_DIR: the 1.3.5 Android package unzipped, for what that archive lacks: the
+Lil' Stomper and the Bad As Hog, the spin token, the HUD's font (New Athletic M54) and the Final Spin's pictures.
+Nothing of either is run; the pictures are only read (Pillow).
+
+Each sheet is a few frames sharing a palette; a frame is cut to its pixels (x, y: where its top left goes from
+the anchor) and stored row by row in runs, so the drawing reads only the rows of the strip it draws. Index 0 is
+see-through. Literal runs pack two indices to a byte when the palette has 16 colours or fewer.
+"""
+import os
+import struct
+import sys
+from PIL import Image
+
+LZ = Image.Resampling.LANCZOS
+BOX = Image.Resampling.BOX
+S = 2 / 3
+
+FB_FILES = {
+ 'body': '21420928-1f48-42b3-af14-a9d19b8d8020.png',
+ 'head': 'c26be092-2285-4590-b144-df89a4dbf0c0.png',
+ 'gun': '00c9a12f-2d9f-4bf9-ba50-e6a8e2858b52.png',
+ 'flash': '0ae2fd6b-7484-4bd8-9184-f3bf9fac5d08.png',
+ 'lab': '1a3e77c5-b730-4ae6-9506-35e2644094c2.png',
+ 'coins': '5f7ee621-7ab3-41ef-bbd7-db48931e8f42.png',
+ 'missile': '970298ce-a6e3-411a-9ab3-5f6d62ad9f9e.png',
+ 'fire': '8ac9adb9-68f1-4d7a-b10b-de042fc9eca1.png',
+ 'boom': '9806e286-afa7-4496-8d7d-536ff8f2c8a6.png',
+ 'bird': '2a7a539e-4167-4abb-bf55-ba8119abc77b.png',
+ 'cft': 'bade5fc4-2ec2-42f7-957d-675ee1ac9aed.png',
+ 'grav': '915d9cc3-781c-430e-9ac8-0cb8435aabea.png',
+ 'scientists': '6029b5c9-ee09-4747-90ea-2e14087ab8c7 (1).png',
+ 'jetpack': 'ad9d62ec-8e4e-416e-826e-f577fe609103.png',
+ 'joyride': '4f8632f9-cd71-4b2f-898a-2f47c0344b7f.png',
+ 'hero': 'ee031bfe-32a8-487d-9f68-f0c66a3acf55.png',
+ 'orb': '5e3d78f3-b063-4e7b-bb8f-b319dfc6855e.png',
+ 'orb_rot': 'f2e7c59a-6915-4461-8d7b-4d2e58ff9059.png',
+ 'box': 'e763b7a7-db2f-462c-b910-e2da9b8d71ce.png',
+ 'laser': '4a2e43c1-5af8-4c01-8e71-e9e2e7815986.png',
+ 'warning': '89bfda72-a412-49ec-b87f-a4b09ff275f7.png',
+}
+
+
+def tex(path):
+ """Halfbrick .tex (Android): log2 w, log2 h, format, ?, u16 w, u16 h, u32, then RGBA8888 rows."""
+ b = open(path, 'rb').read()
+ w, h = struct.unpack_from('<HH', b, 4)
+ return Image.frombytes('RGBA', (w, h), b[12:12 + w * h * 4])
+
+
+def cell(im, i, cw, ch, cols=None):
+ cols = cols or im.width // cw
+ x, y = i % cols * cw, i // cols * ch
+ return im.crop((x, y, x + cw, y + ch))
+
+
+def scale(im, k, f=LZ):
+ return im.resize((max(1, round(im.width * k)), max(1, round(im.height * k))), f)
+
+
+def rgb565(c):
+ r, g, b = c[:3]
+ return (r >> 3) << 11 | (g >> 2) << 5 | (b >> 3)
+
+
+def runs(row, bits):
+ """PackBits: high bit set = a run of one index, else literals; the count minus one in the low bits."""
+ out = bytearray()
+ x = 0
+ while x < len(row):
+ n = 1
+ while x + n < len(row) and row[x + n] == row[x] and n < 128:
+ n += 1
+ if n >= 3 or (row[x] == 0 and n >= 2):
+ out += bytes((0x80 | (n - 1), row[x]))
+ x += n
+ continue
+ start = x
+ x += n
+ while x < len(row) and x - start < 128:
+ if x + 2 < len(row) and row[x] == row[x + 1] == row[x + 2]:
+ break
+ if row[x] == 0 and x + 1 < len(row) and row[x + 1] == 0:
+ break
+ x += 1
+ lit = row[start:x]
+ out.append(len(lit) - 1)
+ if bits == 4:
+ out += bytes((lit[k] << 4) | (lit[k + 1] if k + 1 < len(lit) else 0) for k in range(0, len(lit), 2))
+ else:
+ out += bytes(lit)
+ return out
+
+
+class Sheet:
+ def __init__(self, name, colors=16):
+ self.name, self.colors, self.frames = name, colors, []
+
+ def add(self, im, ax=0, ay=0, trim=True):
+ """A frame; (ax, ay) is the anchor inside it (where the game puts the thing's position)."""
+ im = im.convert('RGBA')
+ box = im.getchannel('A').point(lambda a: 255 if a >= 128 else 0).getbbox() if trim else (0, 0, im.width, im.height)
+ if not box:
+ box = (0, 0, 1, 1)
+ self.frames.append((im.crop(box), box[0] - ax, box[1] - ay))
+ return self
+
+
+def encode(sheets, out, extra):
+ lines = ['/* Generated by tools/art.py. The pictures are Halfbrick\'s (Jetpack Joyride): archive.org\'s Facebook',
+ ' * assets, and the 1.3.5 Android package for the Lil\' Stomper, the Bad As Hog, the spin token, the HUD font and',
+ ' * the Final Spin. See the README. */',
+ '#ifndef JJ_ART_H', '#define JJ_ART_H', '#include <stdint.h>',
+ 'typedef struct { uint16_t w, h; int16_t x, y; uint32_t data; } jj_frame;',
+ 'typedef struct { const uint16_t *pal; const uint8_t *data; const jj_frame *f; uint8_t n, bits; } jj_sheet;']
+ total = 0
+ report = []
+ for sh in sheets:
+ # one palette for the sheet: quantize all frames together
+ strip_w = sum(f[0].width for f in sh.frames)
+ strip_h = max(f[0].height for f in sh.frames)
+ strip = Image.new('RGBA', (strip_w, strip_h))
+ x = 0
+ for im, _, _ in sh.frames:
+ strip.paste(im, (x, 0))
+ x += im.width
+ opaque = Image.new('RGB', strip.size, (0, 0, 0))
+ opaque.paste(strip.convert('RGB'), mask=strip.getchannel('A').point(lambda a: 255 if a >= 128 else 0))
+ pixels = [p for p, a in zip(strip.convert('RGB').getdata(), strip.getchannel('A').getdata()) if a >= 128]
+ sample = Image.new('RGB', (max(1, len(pixels)), 1))
+ sample.putdata(pixels or [(0, 0, 0)])
+ q = sample.quantize(colors=sh.colors - 1, method=Image.Quantize.MEDIANCUT, dither=Image.Dither.NONE)
+ pal = q.getpalette()[:3 * (sh.colors - 1)]
+ ncol = len(set(q.getdata()))
+ pimg = Image.new('P', (1, 1))
+ pimg.putpalette(pal + pal[-3:] * (256 - len(pal) // 3))
+ bits = 4 if sh.colors <= 16 else 8
+ data = bytearray()
+ frames = []
+ for im, fx, fy in sh.frames:
+ idx = im.convert('RGB').quantize(palette=pimg, dither=Image.Dither.NONE)
+ ind = [v + 1 if a >= 128 else 0 for v, a in zip(idx.getdata(), im.getchannel('A').getdata())]
+ start = len(data)
+ offs, body = [], bytearray()
+ for y in range(im.height):
+ offs.append(len(body))
+ body += runs(ind[y * im.width:(y + 1) * im.width], bits)
+ offs.append(len(body))
+ assert len(body) + 2 * len(offs) < 65536
+ head = bytearray()
+ for o in offs:
+ head += struct.pack('<H', o + 2 * len(offs))
+ data += head + body
+ frames.append((im.width, im.height, fx, fy, start))
+ palette = [0] + [rgb565(pal[i:i + 3]) for i in range(0, len(pal), 3)]
+ n = sh.name
+ lines.append(f'static const uint16_t pic_{n}_pal[] = {{' + ','.join(str(v) for v in palette) + '};')
+ lines.append(f'static const uint8_t pic_{n}_data[] = {{')
+ for k in range(0, len(data), 32):
+ lines.append(' ' + ','.join(str(v) for v in data[k:k + 32]) + ',')
+ lines.append('};')
+ lines.append(f'static const jj_frame pic_{n}_f[] = {{' + ','.join('{%d,%d,%d,%d,%d}' % f for f in frames) + '};')
+ lines.append(f'static const jj_sheet pic_{n} = {{pic_{n}_pal, pic_{n}_data, pic_{n}_f, {len(frames)}, {bits}}};')
+ size = len(data) + 2 * len(palette) + 12 * len(frames)
+ total += size
+ report.append((n, len(frames), size))
+ lines += extra
+ lines.append('#endif')
+ open(out, 'w').write('\n'.join(lines) + '\n')
+ for n, k, s in report:
+ print(f' {n:12} {k:3} frames {s:7} bytes')
+ print(f'{out}: {total} bytes')
+
+
+def main():
+ fb, apk, out = sys.argv[1], sys.argv[2], sys.argv[3]
+ F = lambda k: Image.open(os.path.join(fb, FB_FILES[k])).convert('RGBA')
+ T = lambda p: tex(os.path.join(apk, 'assets', 'textures', p))
+ sheets = []
+
+ # ---- the lab: rows 230..951 of the 2x picture are the screen's 0..240 (ceiling 30, floor 290 in points)
+ lab = F('lab').crop((0, 230, 1024, 951))
+ sheets.append(Sheet('lab', 64).add(scale(lab, 1 / 3), trim=False))
+
+ # ---- Barry: the machine gun jetpack behind, the body, the head (their cells line up); anchor at his feet
+ body, head, gun = F('body'), F('head'), F('gun')
+ gun = gun.crop(gun.getbbox())
+ barry = Sheet('barry', 32)
+ for i in [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 16, 20, 21, 22, 23, 25, 29, 30]:
+ im = Image.new('RGBA', (48, 56))
+ if i < 16:
+ im.alpha_composite(gun, (4, 22))
+ im.alpha_composite(cell(body, i, 32, 32), (10, 24))
+ im.alpha_composite(cell(head, i, 32, 32), (10, 6))
+ barry.add(scale(im, S), 22 * S, 54 * S)
+ sheets.append(barry)
+ fl = F('flash')
+ sheets.append(Sheet('flash', 8).add(scale(cell(fl, 0, 64, 64), 1 / 3), 11, 0).add(scale(cell(fl, 1, 64, 64), 1 / 3), 11, 0))
+
+ # ---- coins (2x), spin token (APK, 1x), vehicle box (2x)
+ coinpic = F('coins')
+ coin = Sheet('coin', 16)
+ for i in range(8):
+ coin.add(scale(cell(coinpic, i, 32, 32), 1 / 3), 16 / 3, 16 / 3, trim=False)
+ sheets.append(coin)
+ tok = T('entities/slottoken.tex')
+ token = Sheet('token', 16)
+ for i in range(8):
+ token.add(scale(cell(tok, i, 32, 32), S), 16 * S, 16 * S, trim=False)
+ sheets.append(token)
+ bx = F('box')
+ box = Sheet('box', 32)
+ for i in range(0, 8, 2):
+ box.add(scale(cell(bx, i, 128, 128), 1 / 3), 64 / 3, 64 / 3, trim=False)
+ sheets.append(box)
+
+ # ---- zapper orbs (2x), missiles (1x), warnings (2x), laser emitters (4x), explosions (2x)
+ for name, key in (('orb', 'orb'), ('orbr', 'orb_rot')):
+ o = F(key)
+ sh = Sheet(name, 16)
+ for i in range(4):
+ sh.add(scale(cell(o, i, 62, 42), 1 / 3), 31 / 3, 21 / 3, trim=False)
+ sheets.append(sh)
+ mis = F('missile')
+ sh = Sheet('missile', 16)
+ for i in range(4):
+ sh.add(scale(cell(mis, i, 32, 32), S), 16 * S, 16 * S)
+ fire = F('fire')
+ for i in range(2):
+ sh.add(scale(cell(fire, i, 16, 32, 4).rotate(90, expand=True), S), 0, 8 * S)
+ sheets.append(sh)
+ w = F('warning')
+ sh = Sheet('warn', 16)
+ for i in [0, 1, 2, 3]:
+ sh.add(scale(cell(w, i, 64, 64), 1 / 2), 16, 16)
+ sheets.append(sh)
+ lz = F('laser')
+ sh = Sheet('emitter', 16)
+ for i in [0, 1, 2, 3]:
+ sh.add(scale(cell(lz, i, 128, 128), 1 / 6), 64 / 6, 64 / 6, trim=False)
+ sheets.append(sh)
+ expl = F('boom')
+ sh = Sheet('boom', 16)
+ for i in [4, 0, 13, 14, 12, 2]:
+ sh.add(scale(cell(expl, i, 128, 128), 1 / 3), 64 / 3, 64 / 3)
+ sheets.append(sh)
+
+ # ---- vehicles. Barry's head goes on the Stomper, the Hog and the Bird where the game's head data puts it
+ def with_head(im, cx, cy, frame, hx, hy):
+ im = im.copy()
+ h = cell(head, frame - 1, 32, 32)
+ im.alpha_composite(h, (round(cx + hx - 16), round(cy + hy - 16)))
+ return im
+
+ mech = T('characters/vehicles/vehiclemech.tex')
+ mech_head = {1: (14, -8), 2: (16, -3), 3: (15, -6), 4: (14, -7), 5: (16, -3), 6: (15, -5), 8: (15, 10), 10: (12, 10),
+ 12: (11, 7), 13: (11, 7), 14: (11, 7), 15: (10, 7), 17: (9, -16)}
+ sh = Sheet('mech', 24)
+ for fr in [1, 2, 4, 5, 8, 12, 13, 14, 15]:
+ c = cell(mech, fr - 1, 85, 85, 6)
+ hx, hy = mech_head[fr]
+ c = with_head(c, 42, 42, 13 if fr == 17 else 5, hx, hy)
+ sh.add(scale(c, S), 42 * S, 80 * S)
+ sheets.append(sh)
+ hog = T('characters/vehicles/vehiclehog.tex')
+ hog_head = {1: (-11, -7, 5), 2: (-11, -7, 6), 3: (-11, -7, 7), 4: (-11, -7, 8), 5: (-16, 0, 11), 7: (-17, 1, 11)}
+ sh = Sheet('hog', 32)
+ for fr in [1, 2, 3, 4, 5, 7]:
+ c = cell(hog, fr - 1, 64, 64, 4)
+ hx, hy, hf = hog_head[fr]
+ c = with_head(c, 32, 32, hf, hx, hy)
+ sh.add(scale(c, S), 32 * S, 60 * S)
+ sheets.append(sh)
+ bird = F('bird')
+ sh = Sheet('bird', 32)
+ for i in [0, 6, 2, 1, 7]:
+ c = Image.new('RGBA', (96, 72))
+ c.alpha_composite(cell(bird, i, 78, 54, 3), (8, 14))
+ c = with_head(c, 48, 40, 5, 4, -14)
+ sh.add(scale(c, S), 48 * S, 66 * S)
+ sheets.append(sh)
+ tp = F('cft')
+ sh = Sheet('cft', 32)
+ for i in [0, 1, 4, 5, 2, 6, 3, 7]:
+ sh.add(scale(cell(tp, i, 64, 64, 4), S), 32 * S, 32 * S)
+ sh.add(scale(T('entities/teleportarrow.tex'), S), 8 * S, 8 * S)
+ sheets.append(sh)
+ gs = F('grav')
+ sh = Sheet('grav', 32)
+ for i in [0, 1, 3, 4, 2, 8, 9]:
+ sh.add(scale(cell(gs, i, 42, 42, 6), S), 21 * S, 40 * S)
+ sheets.append(sh)
+
+ # ---- scientists: walking, cowering, knocked flat
+ sc = F('scientists')
+ sh = Sheet('sci', 16)
+ for i in [0, 1, 2, 3, 12, 30]:
+ sh.add(scale(cell(sc, i, 32, 32), S), 16 * S, 30 * S)
+ sheets.append(sh)
+
+ # ---- the title
+ sheets.append(Sheet('wjet', 24).add(scale(F('jetpack'), 0.82), trim=False))
+ sheets.append(Sheet('wjoy', 24).add(scale(F('joyride'), 0.82), trim=False))
+ hero = F('hero')
+ hero = hero.crop(hero.getbbox())
+ sheets.append(Sheet('hero', 32).add(scale(hero, 0.25)))
+
+ # ---- the HUD's numbers: New Athletic M54 (the game's vehicle_font), 0-9 and M, at half size
+ fnt = open(os.path.join(apk, 'assets', 'fonts', 'vehicle_font.fnt'), encoding='latin1').read().split('\n')
+ page = tex(os.path.join(apk, 'assets', 'fonts', 'vehicle_font.tex'))
+ glyphs = {}
+ for l in fnt:
+ if l.startswith('char id='):
+ kv = dict(x.split('=') for x in l.split() if '=' in x)
+ glyphs[int(kv['id'])] = {k: int(v) for k, v in kv.items() if k != 'id' and v.lstrip('-').isdigit()}
+ sh = Sheet('digits', 8)
+ adv = []
+ for ch in '0123456789M':
+ g = glyphs[ord(ch)]
+ im = page.crop((g['x'], g['y'], g['x'] + g['width'], g['y'] + g['height']))
+ k = 0.5
+ sh.add(scale(im, k), -g['xoffset'] * k, -g['yoffset'] * k)
+ adv.append(round(g['xadvance'] * k))
+ sheets.append(sh)
+
+ # ---- the Final Spin: its window and prizes (APK, 2x)
+ sh = Sheet('prize', 32)
+ for p in ['slotcoins100', 'slotcoins500', 'slotcoins1000', 'slotexplosion', 'slotexplosion2', 'slotexplosion3',
+ 'slotrevive', 'slottokens', 'slotdoublecoins', 'slotstart500m']:
+ sh.add(scale(T('menus/slotmachine/slotimages/' + p + '.tex'), 1 / 3), 64 / 3, 64 / 3, trim=False)
+ sheets.append(sh)
+ sheets.append(Sheet('stoken', 16).add(scale(T('menus/slotmachine/slottoken.tex'), 1 / 3)))
+
+ encode(sheets, out, ['/* the HUD digits\' advances */', 'static const uint8_t pic_digit_adv[] = {' + ','.join(map(str, adv)) + '};'])
+
+
+if __name__ == '__main__':
+ main()
diff --git a/games/jetpackjoyride/tools/assets.py b/games/jetpackjoyride/tools/assets.py
deleted file mode 100644
index 05954bfe..00000000
--- a/games/jetpackjoyride/tools/assets.py
+++ /dev/null
@@ -1,227 +0,0 @@
-#!/usr/bin/env python3
-"""Build indexed, row-addressable sprites from the supplied Halfbrick artwork.
-
-Run with Pillow after changing assets/source. No image decoder or heap is used
-on the calculator. The generated file is checked in, so normal builds need
-neither Pillow nor access to the source archive.
-"""
-from pathlib import Path
-from PIL import Image
-import argparse
-import hashlib
-import io
-import json
-
-ROOT = Path(__file__).resolve().parents[1]
-SOURCE = ROOT / 'assets/source'
-OUT = ROOT / 'src/assets.h'
-NN = Image.Resampling.NEAREST
-LZ = Image.Resampling.LANCZOS
-images = []
-
-
-def source(name):
- return Image.open(SOURCE / (name + '.png')).convert('RGBA')
-
-
-def add(name, image, colors=32, palette=None):
- images.append((name, image, colors, palette))
-
-
-def crop_cell(im, i, size=32):
- x = i % (im.width // size) * size
- y = i // (im.width // size) * size
- return im.crop((x, y, x + size, y + size))
-
-
-def rgb565(rgb):
- r, g, b = rgb
- return (r >> 3) << 11 | (g >> 2) << 5 | (b >> 3)
-
-
-def runs(row, bits):
- """PackBits: high bit = repeat, otherwise literal; count minus one."""
- out = bytearray()
- x = 0
- while x < len(row):
- n = 1
- while x + n < len(row) and row[x + n] == row[x] and n < 128:
- n += 1
- if n >= 3:
- out.extend((0x80 | (n - 1), row[x]))
- x += n
- else:
- start = x
- x += n
- while x < len(row) and x - start < 128:
- if x + 2 < len(row) and row[x] == row[x + 1] == row[x + 2]:
- break
- x += 1
- out.append(x - start - 1)
- literal = row[start:x]
- if bits == 4:
- out.extend((literal[k] << 4) | (literal[k + 1] if k + 1 < len(literal) else 0)
- for k in range(0, len(literal), 2))
- else:
- out.extend(literal)
- return out
-
-
-def main():
- ap = argparse.ArgumentParser(description=__doc__)
- ap.add_argument('--check', action='store_true', help='verify deterministic generated files without writing')
- args = ap.parse_args()
- images.clear()
- manifest = json.loads((ROOT / 'assets/source-manifest.json').read_text())
- for name, entry in manifest['files'].items():
- assert hashlib.sha256((SOURCE / (name + '.png')).read_bytes()).hexdigest() == entry['sha256'], name
- # One low-resolution tile renders at 2x: 256x192 pixels of the real lab.
- lab = source('laboratory').crop((0, 128, 1024, 752)).resize((128, 96), LZ)
- add('lab', lab, 32)
- add('floor', source('laboratory').crop((0, 752, 1024, 880)).resize((128, 12), LZ), 16)
- add('jetpack_word', source('jetpack_word').resize((205, 59), LZ), 16)
- add('joyride_word', source('joyride_word').resize((210, 55), LZ), 16)
- hero = source('barry_hero')
- add('hero', hero.crop(hero.getbbox()).resize((72, 104), LZ), 48)
- # Body/head sheets share aligned 32-pixel cells. Ground frames 0..3,
- # airborne frames 4..7. Composite before reducing to calculator scale.
- frames = []
- body, head, pack = source('barry_body'), source('barry_head'), source('machinegun')
- pack = pack.crop(pack.getbbox()).resize((16, 16), NN)
- for i in range(8):
- im = Image.new('RGBA', (40, 48))
- im.alpha_composite(pack, (0, 22))
- im.alpha_composite(crop_cell(body, i), (7, 16))
- im.alpha_composite(crop_cell(head, i), (7, 0))
- frames.append(im.resize((28, 40), NN))
- atlas = Image.new('RGB', (28 * 8, 40), '#111017')
- for i, im in enumerate(frames):
- atlas.paste(im.convert('RGB'), (i * 28, 0))
- pal = atlas.quantize(colors=31, method=Image.Quantize.MEDIANCUT, dither=Image.Dither.NONE)
- barry_colors = [tuple(pal.getpalette()[i:i + 3]) for i in range(0, 93, 3)]
- for i, im in enumerate(frames):
- add('barry_' + str(i), im, 32, barry_colors)
- coins = source('coins')
- for i in range(8):
- add('coin_' + str(i), crop_cell(coins, i).resize((11, 11), LZ), 16)
- add('shield', source('shield').resize((18, 18), LZ), 24)
- add('missile', crop_cell(source('missiles'), 0).resize((28, 23), NN), 24)
- add('zapper_cap', crop_cell(source('zapper_caps'), 0, 128).resize((15, 15), LZ), 24)
- electricity = source('electricity')
- for i in range(3):
- beam = electricity.crop((0, i * 64, 1024, i * 64 + 64))
- add('beam_h_' + str(i), beam.resize((58, 10), LZ), 16)
- add('beam_v_' + str(i), beam.resize((70, 10), LZ).transpose(Image.Transpose.ROTATE_90), 16)
- add('beam_c_' + str(i), beam.resize((100, 10), LZ).transpose(Image.Transpose.ROTATE_90), 16)
- flash = source('muzzle_flash')
- for i in range(2):
- add('flash_' + str(i), crop_cell(flash, i, 64).resize((14, 16), NN), 16)
- scientists = source('scientists')
- for i in range(4):
- # Whole person per cell, as opposed to Barry's separate body/head.
- cell = crop_cell(scientists, i)
- add('scientist_' + str(i), cell.resize((17, 21), NN), 24)
- warning = source('warnings').crop((0, 0, 64, 64))
- add('warning', warning.resize((18, 18), NN), 16)
-
- lines = ['/* Generated by tools/assets.py. Artwork: Halfbrick; see assets/README.md. */',
- '#ifndef JJ_ASSETS_H', '#define JJ_ASSETS_H', '#include <stdint.h>',
- 'typedef struct { uint16_t w,h; const uint16_t *palette,*rows; const uint8_t *data; uint8_t bits; } jj_sprite;']
- total = 0
- report = {}
- def array(kind, name, values, fmt=str):
- lines.append('static const ' + kind + ' ' + name + '[] = {')
- for k in range(0, len(values), 24):
- lines.append(' ' + ','.join(fmt(v) for v in values[k:k + 24]) + ',')
- lines.append('};')
-
- for name, im, colors, shared in images:
- rgb = im.convert('RGB')
- if shared:
- palette_im = Image.new('P', (1, 1))
- flat = [v for c in shared for v in c]
- palette_im.putpalette(flat + flat[-3:] * (256 - len(shared)))
- indexed = rgb.quantize(palette=palette_im, dither=Image.Dither.NONE)
- palette_rgb = shared
- else:
- indexed = rgb.quantize(colors=colors - 1, method=Image.Quantize.MEDIANCUT, dither=Image.Dither.NONE)
- packed_palette = indexed.getpalette()
- palette_rgb = [tuple(packed_palette[i:i + 3]) for i in range(0, len(packed_palette), 3)]
- # Threshold alpha before encoding: index zero is transparent.
- indices = [v + 1 if a >= 96 else 0 for v, a in zip(indexed.getdata(), im.getchannel('A').getdata())]
- palette = [0] + [rgb565(c) for c in palette_rgb]
- bits = 4 if max(indices) < 16 else 8
- offsets = [0]
- data = bytearray()
- decoded = []
- for y in range(im.height):
- row = indices[y * im.width:(y + 1) * im.width]
- packed = runs(row, bits)
- # Round-trip each row and bound every index/offset at generation.
- check = []
- pos = 0
- while pos < len(packed):
- tag = packed[pos]; pos += 1
- count = (tag & 127) + 1
- if tag & 128:
- check.extend([packed[pos]] * count); pos += 1
- else:
- if bits == 4:
- check.extend((packed[pos + k // 2] >> (0 if k & 1 else 4)) & 15 for k in range(count))
- pos += (count + 1) // 2
- else:
- check.extend(packed[pos:pos + count]); pos += count
- assert row == check and all(v < len(palette) for v in check)
- data.extend(packed); offsets.append(len(data)); decoded.extend(check)
- assert len(data) < 65536
- if shared:
- palette_name = 'jj_barry_palette_0'
- else:
- palette_name = 'jj_' + name + '_palette'
- array('uint16_t', palette_name, palette, hex)
- array('uint16_t', 'jj_' + name + '_rows', offsets)
- array('uint8_t', 'jj_' + name + '_data', list(data))
- lines.append(f'static const jj_sprite jj_{name} = {{{im.width},{im.height},{palette_name},jj_{name}_rows,jj_{name}_data,{bits}}};')
- cost = len(data) + len(offsets) * 2 + (0 if shared else len(palette) * 2)
- total += cost
- report[name] = dict(width=im.width, height=im.height, bits=bits, bytes=cost)
- # Shared shirt palette: preserve warm skin/hair; tint the cool suit tones.
- palette_lines = []
- for suit, target in enumerate([(1, 1, 1), (0.82, 1.08, 1.24), (1.45, 0.63, 1.04), (0.83, 1.32, 0.60)]):
- colors = [(0, 0, 0)] + barry_colors
- if suit:
- remapped = [colors[0]]
- for r, g, b in colors[1:]:
- if b > r * 1.05 and b > g * 0.95:
- light = max(r, g, b)
- if suit == 1:
- light = min(235, light + 65)
- r, g, b = [min(255, int(light * t)) for t in target]
- remapped.append((r, g, b))
- colors = remapped
- palette_lines.append('static const uint16_t jj_barry_palette_' + str(suit) + '[] = {' + ','.join(hex(rgb565(c)) for c in colors) + '};')
- lines[5:5] = palette_lines
- for group, count in [('barry', 8), ('coin', 8), ('beam_h', 3), ('beam_v', 3), ('beam_c', 3), ('flash', 2), ('scientist', 4)]:
- lines.append('static const jj_sprite *const jj_' + group + '[] = {' + ','.join('&jj_' + group + '_' + str(i) for i in range(count)) + '};')
- lines.append('static const uint16_t *const jj_suit_palettes[] = {jj_barry_palette_0,jj_barry_palette_1,jj_barry_palette_2,jj_barry_palette_3};')
- lines.append('#endif\n')
- header = '\n'.join(lines).encode('utf-8')
- report['total_encoded_bytes'] = total + 256
- report_data = (json.dumps(report, indent=2) + '\n').encode('utf-8')
- # The calculator's icon uses the supplied character artwork as well.
- icon = Image.new('RGBA', (55, 56), '#17283d')
- hero = source('barry_hero'); hero.thumbnail((39, 55), LZ)
- icon.alpha_composite(hero, (9, 0))
- icon_data = io.BytesIO()
- icon.convert('RGB').quantize(colors=24, dither=Image.Dither.NONE).convert('RGB').save(icon_data, format='PNG', optimize=True)
- outputs = {OUT: header, ROOT / 'assets/packed.json': report_data, ROOT / 'src/icon.png': icon_data.getvalue()}
- for path, data in outputs.items():
- if args.check:
- assert path.read_bytes() == data, 'Regenerate ' + str(path)
- else:
- path.write_bytes(data)
- print(json.dumps({'sprites': len(images), 'encoded_bytes': total + 256, 'check': args.check}, indent=2))
-
-
-if __name__ == '__main__':
- main()
diff --git a/games/jetpackjoyride/tools/build.py b/games/jetpackjoyride/tools/build.py
deleted file mode 100644
index c95c4bb2..00000000
--- a/games/jetpackjoyride/tools/build.py
+++ /dev/null
@@ -1,90 +0,0 @@
-#!/usr/bin/env python3
-"""Optional portable standalone build; the normal NumPlay build uses Make.
-
-python tools/build.py --toolchain /path/to/arm/bin --nwlink /path/to/nwlink/bin/nwlink
-Requires nwlink 1.0.0, ARM GCC, Pillow (icon generation), pyelftools (size report).
-"""
-import argparse
-import json
-import os
-from pathlib import Path
-import shlex
-import shutil
-import subprocess
-import sys
-
-ROOT = Path(__file__).resolve().parents[1]
-
-
-def main():
- ap = argparse.ArgumentParser(description=__doc__)
- ap.add_argument('--toolchain', type=Path)
- ap.add_argument('--nwlink', default='nwlink')
- ap.add_argument('--node', default='node')
- a = ap.parse_args()
- out = ROOT / 'output'
- out.mkdir(exist_ok=True)
-
- def run(*args, capture=False):
- return subprocess.run([str(v) for v in args], cwd=ROOT, check=True,
- capture_output=capture, text=capture)
-
- def tool(name):
- binary = 'arm-none-eabi-' + name + ('.exe' if os.name == 'nt' else '')
- return a.toolchain / binary if a.toolchain else binary
-
- nw = [a.node, a.nwlink] if Path(a.nwlink).is_file() and not a.nwlink.endswith(('.exe', '.cmd')) else [a.nwlink]
- flags = ['-std=c11', '-Os', '-Wall', '-Wextra', '-Werror', '-fno-math-errno',
- '-fsingle-precision-constant', '-ffunction-sections', '-fdata-sections',
- '-fstack-usage', '-fno-tree-loop-distribute-patterns', '-flto', '-fvisibility=internal']
- flags += shlex.split(run(*nw, 'eadk-cflags-device', capture=True).stdout, posix=True)
- # shlex on Windows may treat the include path's backslashes as escapes;
- # nwlink prints forward slashes on Windows, so this remains portable.
- objects = []
- for source in ('main', 'physics', 'save', 'render'):
- obj = out / (source + '.o')
- run(tool('gcc'), *flags, '-c', ROOT / 'src' / (source + '.c'), '-o', obj)
- objects.append(obj)
- run(*nw, 'png-icon-o', ROOT / 'src/icon.png', out / 'icon.o')
- packer = ROOT / 'tools/compact_nwa.py'
- icon_report = json.loads(run(sys.executable, packer, 'icon', out / 'icon.o',
- out / 'icon-compact.o', '--objcopy', tool('objcopy'), capture=True).stdout)
- common = [tool('gcc'), *flags, '-nostartfiles', '--specs=nano.specs',
- '-Wl,--relocatable,--gc-sections,-e,main', '-flinker-output=nolto-rel', *objects]
- run(*common, '-lm', '-o', out / 'module.o')
- run(*common, '-Wl,-u,eadk_app_name,-u,eadk_app_icon,-u,eadk_api_level', out / 'icon-compact.o',
- '-lm', '-o', out / 'standalone.o')
- run(sys.executable, packer, 'app', out / 'standalone.o', out / 'jetpackjoyride-debug.nwa',
- '--ld', tool('ld'))
- run(sys.executable, packer, 'release', out / 'jetpackjoyride-debug.nwa',
- out / 'JetpackJoyride.nwa', '--objcopy', tool('objcopy'))
- if os.name != 'nt':
- shutil.copyfile(out / 'JetpackJoyride.nwa', out / 'jetpackjoyride.nwa')
- profiles = []
- from elftools.elf.elffile import ELFFile
- for name, base, ram in [('n0110', 0x20000000, 148928), ('n0115-custom', 0x20000000, 133652),
- ('n0120', 0x24000000, 153676), ('upsilon', 0x20000000, 107674)]:
- options = ['--ram-start', hex(base + 0x37000 - ram), '--ram-length', str(ram)]
- elf, binary = out / (name + '.elf'), out / (name + '.bin')
- run(*nw, 'nwa-elf', out / 'JetpackJoyride.nwa', elf, *options)
- run(*nw, 'nwa-bin', out / 'JetpackJoyride.nwa', binary, *options)
- debug_binary = out / (name + '-debug.bin')
- run(*nw, 'nwa-bin', out / 'jetpackjoyride-debug.nwa', debug_binary, *options)
- if binary.read_bytes() != debug_binary.read_bytes():
- raise RuntimeError(f'Release compaction changed installed bytes on {name}')
- with elf.open('rb') as f:
- e = ELFFile(f)
- static_ram = sum(s['sh_size'] for s in e.iter_sections() if s.name in ('.data', '.bss'))
- if static_ram > 12288:
- raise RuntimeError(f'Static RAM budget exceeded: {static_ram}')
- if binary.stat().st_size > 65536:
- raise RuntimeError('Installed flash budget exceeded')
- profiles.append(dict(profile=name, installed_flash=binary.stat().st_size, static_ram=static_ram, ram_limit=ram))
- report = dict(nwa_bytes=(out / 'JetpackJoyride.nwa').stat().st_size, save_bytes=260,
- **icon_report, profiles=profiles)
- (out / 'sizes.json').write_text(json.dumps(report, indent=2) + '\n')
- print(json.dumps(report, indent=2))
-
-
-if __name__ == '__main__':
- main()
diff --git a/games/jetpackjoyride/tools/compact_nwa.py b/games/jetpackjoyride/tools/compact_nwa.py
deleted file mode 100644
index f320bb54..00000000
--- a/games/jetpackjoyride/tools/compact_nwa.py
+++ /dev/null
@@ -1,228 +0,0 @@
-#!/usr/bin/env python3
-"""Lossless standalone NWA packing. Python standard library + ARM binutils.
-
-Keep the standard ELF/NWI formats: no runtime decoder, extra RAM, or archive.
-"""
-import argparse
-from bisect import bisect_left, insort
-import json
-from pathlib import Path
-import subprocess
-import tempfile
-
-ICON_BYTES = 55 * 56 * 2
-
-
-def decode_lz4(data, expected_size):
- """Decode a raw LZ4 block, with an exact output bound for launcher icons."""
- out = bytearray()
- pos = 0
-
- def length(value):
- nonlocal pos
- if value == 15:
- while True:
- if pos >= len(data):
- raise ValueError('Truncated LZ4 length')
- extra = data[pos]
- pos += 1
- value += extra
- if extra != 255:
- break
- return value
-
- while pos < len(data):
- token = data[pos]
- pos += 1
- size = length(token >> 4)
- if pos + size > len(data) or len(out) + size > expected_size:
- raise ValueError('Invalid LZ4 literal run')
- out += data[pos:pos + size]
- pos += size
- if pos == len(data):
- break
- if pos + 2 > len(data):
- raise ValueError('Truncated LZ4 offset')
- distance = data[pos] | data[pos + 1] << 8
- pos += 2
- size = length(token & 15) + 4
- if not distance or distance > len(out) or len(out) + size > expected_size:
- raise ValueError('Invalid LZ4 match')
- for _ in range(size):
- out.append(out[-distance])
- if len(out) != expected_size:
- raise ValueError('Unexpected decoded icon size')
- return bytes(out)
-
-
-def _extension_cost(value, threshold):
- return 0 if value < threshold else 1 + (value - threshold) // 255
-
-
-def compress_lz4(data):
- """Find a minimum-size raw LZ4 parse for a small (<= 65535 byte) image.
-
- A suffix array finds the longest legal previous match. Dynamic programming
- chooses literal/match lengths, including extension-byte costs. The final
- five bytes are literals; the last match starts at least twelve bytes from
- the end, as required by standard LZ4 block decoders.
- """
- n = len(data)
- if n > 65535:
- raise ValueError('Only small build-time assets are supported')
- if not n:
- return b'\0'
- suffixes = sorted(range(n), key=lambda i: data[i:])
- rank = [0] * n
- for r, pos in enumerate(suffixes):
- rank[pos] = r
- seen = []
- matches = [(0, 0)] * n
- for i in range(n - 11):
- r = rank[i]
- at = bisect_left(seen, r)
- best, distance = 0, 0
- # Among earlier suffixes, a lexicographic neighbour has the longest
- # common prefix. Overlapping matches are legal in LZ4.
- for q in seen[max(0, at - 1):at + 1]:
- j = suffixes[q]
- lo, hi = 0, n - i - 5
- while lo < hi:
- mid = (lo + hi + 1) // 2
- if data[i:i + mid] == data[j:j + mid]:
- lo = mid
- else:
- hi = mid - 1
- if lo > best:
- best, distance = lo, i - j
- matches[i] = best, distance
- insort(seen, r)
-
- dp = [0] * (n + 1)
- plan = [None] * n
- match_cost = [0] * n
- match_length = [0] * n
- starts = []
- for i in range(n - 1, -1, -1):
- best = n - i + 1 + _extension_cost(n - i, 15)
- longest, _ = matches[i]
- if longest >= 4:
- cost, size = min((2 + _extension_cost(size, 19) + dp[i + size], size)
- for size in range(4, longest + 1))
- match_cost[i], match_length[i] = cost, size
- starts.append(i)
- for j in reversed(starts):
- literal = j - i
- if literal + 3 >= best:
- break
- cost = 1 + literal + _extension_cost(literal, 15) + match_cost[j]
- if cost < best:
- best = cost
- plan[i] = j, match_length[j], matches[j][1]
- dp[i] = best
-
- out = bytearray()
-
- def emit_length(value):
- while value >= 255:
- out.append(255)
- value -= 255
- out.append(value)
-
- anchor = 0
- while anchor < n:
- entry = plan[anchor]
- if entry is None:
- literal = n - anchor
- out.append(min(literal, 15) << 4)
- if literal >= 15:
- emit_length(literal - 15)
- out += data[anchor:]
- break
- j, size, distance = entry
- literal = j - anchor
- out.append(min(literal, 15) << 4 | min(size - 4, 15))
- if literal >= 15:
- emit_length(literal - 15)
- out += data[anchor:j]
- out += bytes((distance & 255, distance >> 8))
- if size >= 19:
- emit_length(size - 19)
- anchor = j + size
- if len(out) != dp[0] or decode_lz4(out, n) != data:
- raise ValueError('Lossless compression verification failed')
- return bytes(out)
-
-
-def compact_icon(source, output, objcopy):
- output.parent.mkdir(parents=True, exist_ok=True)
- with tempfile.TemporaryDirectory(dir=output.parent) as folder:
- folder = Path(folder)
- original, packed, obj = folder/'original.nwi', folder/'packed.nwi', folder/'icon.o'
- section = '.rodata.eadk_app_icon'
- subprocess.run([objcopy, '--dump-section=' + section + '=' + str(original),
- str(source), str(obj)], check=True)
- before = original.read_bytes()
- pixels = decode_lz4(before, ICON_BYTES)
- after = compress_lz4(pixels)
- if len(after) > len(before):
- after = before
- packed.write_bytes(after)
- subprocess.run([objcopy, '--update-section=' + section + '=' + str(packed),
- str(obj), str(output)], check=True)
- # Verify the bytes actually stored in the resulting ELF, too.
- subprocess.run([objcopy, '--dump-section=' + section + '=' + str(packed),
- str(output), str(folder/'verify.o')], check=True)
- if decode_lz4(packed.read_bytes(), ICON_BYTES) != pixels:
- raise ValueError('Packed icon pixels changed')
- return dict(source_icon_bytes=len(before), icon_bytes=len(after), decoded_icon_bytes=ICON_BYTES)
-
-
-def compact_app(source, output, linker):
- output.parent.mkdir(parents=True, exist_ok=True)
- script = Path(__file__).with_name('standalone.ld')
- with tempfile.TemporaryDirectory(dir=output.parent) as folder:
- packed = Path(folder)/'packed.nwa'
- subprocess.run([linker, '--relocatable', '--script', str(script), str(source),
- '-o', str(packed)], check=True)
- output.write_bytes(packed.read_bytes())
-
-
-def compact_release(source, output, objcopy):
- """Remove unused ARM mapping symbols from the transport ELF only.
-
- GNU objcopy preserves $t/$d symbols specially even when unused. Rename
- them in a temporary release copy, then let objcopy decide which symbols
- relocations still need. Keep the debug ELF intact for ARM disassembly.
- Python builders compare release/debug bytes on all supported profiles;
- Make's check target compares them on the smallest RAM profile.
- """
- output.parent.mkdir(parents=True, exist_ok=True)
- with tempfile.TemporaryDirectory(dir=output.parent) as folder:
- folder = Path(folder)
- stripped, renamed = folder/'stripped.nwa', folder/'renamed.nwa'
- subprocess.run([objcopy, '--strip-unneeded', str(source), str(stripped)], check=True)
- subprocess.run([objcopy, '--redefine-sym=$t=unused_thumb_marker',
- '--redefine-sym=$d=unused_data_marker', str(stripped),
- str(renamed)], check=True)
- subprocess.run([objcopy, '--strip-unneeded', str(renamed), str(output)], check=True)
-
-
-def main():
- ap = argparse.ArgumentParser(description=__doc__)
- ap.add_argument('kind', choices=('icon', 'app', 'release'))
- ap.add_argument('source', type=Path)
- ap.add_argument('output', type=Path)
- ap.add_argument('--objcopy', default='arm-none-eabi-objcopy')
- ap.add_argument('--ld', default='arm-none-eabi-ld')
- args = ap.parse_args()
- if args.kind == 'icon':
- print(json.dumps(compact_icon(args.source, args.output, args.objcopy)))
- elif args.kind == 'release':
- compact_release(args.source, args.output, args.objcopy)
- else:
- compact_app(args.source, args.output, args.ld)
-
-
-if __name__ == '__main__':
- main()
diff --git a/games/jetpackjoyride/tools/data.py b/games/jetpackjoyride/tools/data.py
new file mode 100644
index 00000000..8dd4cd48
--- /dev/null
+++ b/games/jetpackjoyride/tools/data.py
@@ -0,0 +1,358 @@
+#!/usr/bin/env python3
+"""src/data.h: Jetpack Joyride's own tables, from the game's Android package (1.3.5, unzipped).
+
+ python3 -I tools/data.py APK_DIR src/data.h
+
+APK_DIR holds the package's assets/ folder. Its xml/ files are Halfbrick's binary XML ("bxml": a string table,
+then nodes of name, attributes and children), read here; nothing of the package is run. What comes out: level
+pacing, zapper, laser, missile, coin, vehicle and Final Spin tables, with the original's numbers (points and
+60ths of a second). The spec beside the port says where each one comes from.
+"""
+import os
+import struct
+import sys
+import xml.etree.ElementTree as ET
+
+
+def bxml(path):
+ """Halfbrick bxml -> an ElementTree element."""
+ b = open(path, 'rb').read()
+ if b[:4] != b'bxml':
+ return ET.fromstring(b)
+ size = struct.unpack_from('<I', b, 8)[0]
+ table = b[12:12 + size]
+ pos = 12 + size
+
+ def s(o):
+ return table[o:table.index(b'\0', o)].decode('latin1')
+
+ def u32():
+ nonlocal pos
+ v = struct.unpack_from('<I', b, pos)[0]
+ pos += 4
+ return v
+
+ def node():
+ nonlocal pos
+ kind = b[pos]
+ pos += 1
+ if kind == 4: # text
+ return s(u32())
+ assert kind == 1, kind
+ e = ET.Element(s(u32()))
+ for _ in range(u32()):
+ k = s(u32())
+ e.set(k, s(u32()))
+ text = []
+ for _ in range(u32()):
+ c = node()
+ if isinstance(c, str):
+ text.append(c)
+ else:
+ e.append(c)
+ e.text = ''.join(text) or None
+ return e
+
+ roots = [node() for _ in range(u32())]
+ return roots[0]
+
+
+def f(e, tag, default=0.0):
+ c = e.find(tag)
+ if c is None:
+ return default
+ v = c.get('value', c.text)
+ return float(str(v).strip().rstrip('f'))
+
+
+def schedule(e):
+ """<probability value startDistance> list -> [(metres, weight)]."""
+ out = [(int(float(p.get('startDistance', 0))), float(p.get('value'))) for p in e.findall('probability')]
+ return out or [(0, 0.0)]
+
+
+class Out:
+ def __init__(self):
+ self.lines = []
+
+ def __call__(self, s=''):
+ self.lines.append(s)
+
+ def arr(self, kind, name, values, per=16):
+ self(f'static const {kind} {name}[] = {{')
+ for i in range(0, len(values), per):
+ self(' ' + ', '.join(str(v) for v in values[i:i + per]) + ',')
+ self('};')
+
+
+def w100(x):
+ """A weight in hundredths (the files give at most two decimals)."""
+ return int(round(x * 100))
+
+
+def main():
+ apk, dst = sys.argv[1], sys.argv[2]
+ A = os.path.join(apk, 'assets')
+ X = lambda p: bxml(os.path.join(A, 'xml', p))
+ o = Out()
+ o('/* Generated by tools/data.py from Jetpack Joyride 1.3.5\'s own files (Halfbrick). Points, 60ths of a second;')
+ o(' * weights in hundredths. See the spec for where each number comes from. */')
+ o('#ifndef JJ_DATA_H')
+ o('#define JJ_DATA_H')
+ o('#include <stdint.h>')
+ o()
+
+ # ---------------------------------------------------------------- weights by distance
+ sched = [] # flat (metres, weight*100), each schedule ends with 0xffff
+
+ def add_sched(s):
+ start = len(sched)
+ for m, w in s:
+ sched.append((m, w100(w)))
+ sched.append((0xffff, 0))
+ return start
+
+ # ---------------------------------------------------------------- settings
+ st = X('settings.xml')
+ sv = {s.get('name'): float(s.get('value')) for s in st.iter('setting')}
+ wp = X('weapons.xml').find('weapon')
+ wv = {c.tag: (c.text or '').strip().rstrip('f') for c in wp}
+ o(f'#define JJ_GRAVITY {float(wv["BARRY_GRAVITY"])}f')
+ o(f'#define JJ_BOOST {float(wv["BARRY_BOOST"])}f')
+ o(f'#define JJ_FRICTION {float(wv["BARRY_FRICTION"])}f')
+ o(f'#define JJ_VSCALAR {float(wv["BARRY_VELOCITY_SCALAR"])}f')
+ o(f'#define JJ_FIRE_EVERY {int(wv["rateOfFire"])}')
+ o(f'#define JJ_BULLET_SPEED {float(wv["initialVelocity"])}f')
+ o(f'#define JJ_BULLET_ANGLE {float(wv["initialAngle"])}f')
+ o(f'#define JJ_BULLET_SPREAD {float(wv["spreadAngle"])}f')
+ o(f'#define JJ_DIST_DIV {int(sv["DISTANCE_DIVISOR"])}')
+ o(f'#define JJ_IMMUNITY_MS {int(sv["IMMUNITY_TIME"])}')
+ o(f'#define JJ_DEATH_GRAVITY {sv["DEATH_GRAVITY"]}f')
+ o(f'#define JJ_DEATH_GROUND_FRICTION {sv["DEATH_X_GROUND_FRICTION"]}f')
+ o(f'#define JJ_MIN_BOUNCE {sv["MIN_BOUNCE_VELOCITY"]}f')
+
+ # ---------------------------------------------------------------- level pacing
+ lp = X('levelpacing.xml')
+ ls = {s.get('name'): float(s.get('value')) for s in lp.findall('setting')}
+ o(f'#define JJ_START_SPEED {ls["START_VELOCITY"]}f')
+ o(f'#define JJ_END_SPEED {ls["END_VELOCITY"]}f')
+ o(f'#define JJ_SPEED_DIST {int(ls["VELOCITY_STOP_DISTANCE"])}')
+ d = lp.find('Default')
+ mins, maxs = {}, {}
+ for s in d.findall('setting'):
+ m = int(s.get('distance', 0))
+ (mins if s.get('name') == 'MIN_SPAWN_INTERVAL' else maxs)[m] = int(float(s.get('value')))
+ steps = sorted(mins)
+ assert steps == sorted(maxs)
+ o(f'#define JJ_PACE_STEPS {len(steps)}')
+ o.arr('uint16_t', 'jj_pace_from', steps)
+ o.arr('uint16_t', 'jj_pace_min', [mins[m] for m in steps])
+ o.arr('uint16_t', 'jj_pace_max', [maxs[m] for m in steps])
+ streaks = {}
+ for s in lp.findall('Streak'):
+ sset = {x.get('name'): float(x.get('value')) for x in s.findall('setting')}
+ files = {x.get('type'): x.get('filename').lower() for x in s.findall('File')}
+ streaks[s.get('name')] = (float(s.get('probability')), int(s.get('minIntervalCount')), int(s.get('maxIntervalCount')),
+ int(sset['MIN_SPAWN_INTERVAL']), int(sset['MAX_SPAWN_INTERVAL']), files)
+ defaults = {x.get('type'): x.get('filename').lower() for x in d.findall('File')}
+
+ # ---------------------------------------------------------------- coins
+ pat_names = []
+ pat_index = {}
+
+ def pattern(name):
+ name = name.lower().replace('patterns/', '')
+ if name not in pat_index:
+ pat_index[name] = len(pat_names)
+ pat_names.append(name)
+ return pat_index[name]
+
+ coin_files = [] # (sched, top, bottom, tophalf, bottomhalf, [(pattern, sched)])
+
+ def coin_file(name):
+ e = X(name)
+ pats = [(pattern(c.get('filename')), add_sched(schedule(c))) for c in e.findall('coin_pattern')]
+ coin_files.append((add_sched(schedule(e)), int(f(e, 'TopWeight')), int(f(e, 'BottomWeight')),
+ int(f(e, 'TopHalfWeight')), int(f(e, 'BottomHalfWeight')), pats))
+ return len(coin_files) - 1
+
+ zap_files = []
+
+ def zap_file(name):
+ e = X(name)
+ pats = []
+ for p in e.findall('obstacle_pattern'):
+ ang = int(f(p, 'startAngle'))
+ rot = int(f(p, 'rotateTime'))
+ cw = (p.find('clockwise') is None) or p.find('clockwise').get('value') == 'true'
+ pats.append((add_sched(schedule(p)), int(f(p, 'minScale')), int(f(p, 'maxScale')), ang, rot if cw else -rot,
+ int(f(p, 'scaleTime'))))
+ zap_files.append((add_sched(schedule(e)), int(f(e, 'TopWeight')), int(f(e, 'BottomWeight')),
+ int(f(e, 'TopHalfWeight')), int(f(e, 'BottomHalfWeight')), pats))
+ return len(zap_files) - 1
+
+ mis_files = []
+
+ def mis_file(name):
+ e = X(name)
+ mis_files.append((add_sched(schedule(e)), f(e, 'chaseSpeed'), f(e, 'missileSpeed')))
+ return len(mis_files) - 1
+
+ # the pacing sets: Default, then each streak (MISSILE, COIN, and one per vehicle)
+ sets = [] # (name, prob, minc, maxc, imin, imax, coin, zap, mis, laser)
+
+ def file_or(kind, files, fn):
+ return fn(files[kind]) if kind in files else 255
+
+ sets.append(('DEFAULT', 0, 0, 0, 0, 0, coin_file(defaults['COINS']), zap_file(defaults['GATES']),
+ mis_file(defaults['MISSILE']), 1))
+ order = ['MISSILE_STREAK', 'COIN_STREAK', 'MECH_STREAK', 'HOG_STREAK', 'BIRD_STREAK', 'GRAVITY_STREAK', 'CFT_STREAK']
+ for n in order:
+ p, a, b, imin, imax, files = streaks[n]
+ files = {k: ('streaks/' + v.split('/')[-1]) if v.startswith('streaks/') else v for k, v in files.items()}
+ sets.append((n, p, a, b, imin, imax, file_or('COINS', files, coin_file), file_or('GATES', files, zap_file),
+ file_or('MISSILE', files, mis_file), 0))
+ o(f'enum {{ {", ".join("JJ_SET_" + s[0].replace("_STREAK", "") for s in sets)} }};')
+ o('typedef struct { uint16_t prob, imin, imax; uint8_t minc, maxc, coin, zap, mis; } jj_set_t;')
+ o('static const jj_set_t jj_sets[] = {')
+ for n, p, a, b, imin, imax, c, z, m, l in sets:
+ o(f' {{{w100(p)}, {imin}, {imax}, {a}, {b}, {c}, {z}, {m}}}, /* {n} */')
+ o('};')
+
+ # lasers
+ lz = X('lazerpatterns.xml')
+ laser_sched = add_sched(schedule(lz))
+ lasers = []
+ for p in lz.findall('lazer_pattern'):
+ beams = []
+ for l in p.findall('lazer'):
+ pos = [(int(q.get('y')), int(q.get('transitionTime', 0)), int(q.get('holdTime', 0) or 0)) for q in l.findall('position')]
+ assert 1 <= len(pos) <= 2
+ beams.append((int(l.get('onInterval')), int(l.get('offInterval')), int(l.get('initialWaitDelay')), pos))
+ lasers.append((p.get('name'), int(p.get('patternTime')), add_sched(schedule(p)), beams))
+ assert max(len(b) for _, _, _, b in lasers) <= 7
+
+ # spin tokens
+ tk = X('slottokens.xml')
+ g = tk.find('slotGaurantees')
+ o(f'#define JJ_TOKEN_WEIGHT {w100(f(tk, "probability"))}')
+ o(f'#define JJ_TOKEN_DRIFT {f(tk, "MAX_Y_MOVE_SPEED")}f')
+ o(f'#define JJ_TOKEN_FIRST_MIN {int(g.get("SLOT_FIRST_SLOT_MIN"))}')
+ o(f'#define JJ_TOKEN_FIRST_MAX {int(g.get("SLOT_FIRST_SLOT_MAX"))}')
+ o(f'#define JJ_TOKEN_MAX_GAP {int(g.get("SLOT_MAX_DIST_WITHOUT_SLOT"))}')
+ o(f'#define JJ_TOKEN_PER_KM {int(g.get("SLOT_MAX_SLOTS_PER_KILOMETER"))}')
+ o(f'#define JJ_TOKEN_KM {int(g.get("SLOT_LENGTH_OF_KILOMETER"))}')
+
+ # vehicles
+ vp = X('vehicleprobability.xml')
+ o(f'#define JJ_VEHICLE_RANGE {int(f(vp, "spawnRange"))}')
+ o(f'#define JJ_VEHICLE_EXCLUSION {int(f(vp, "DestroyExclusionDistance"))}')
+ o(f'#define JJ_VEHICLE_TOPHALF {int(f(vp, "TopHalfWeight"))}')
+ vnames = [('mech', 'MECH'), ('hog', 'HOG'), ('profitbird', 'BIRD'), ('gravitysuit', 'GRAVITY'), ('teleporter', 'CFT')]
+ o('typedef struct { float gravity, initial, boost, final_boost, friction, start, max, increase; uint8_t frames, jumps, weight, set; } jj_vehicle_t;')
+ o('static const jj_vehicle_t jj_vehicles[] = {')
+ for fn, set_name in vnames:
+ e = X('vehicles/' + fn + '.xml')
+ set_id = [s[0] for s in sets].index(set_name + '_STREAK')
+ o(f' {{{f(e, "GRAVITY")}f, {f(e, "INITIAL_BOOST")}f, {f(e, "BOOST")}f, {f(e, "FINAL_BOOST")}f, {f(e, "FRICTION")}f, '
+ f'{f(e, "START_VELOCITY")}f, {f(e, "MAX_VELOCITY")}f, {f(e, "VELOCITY_INCREASE")}f, {int(f(e, "BOOST_FRAME_COUNT"))}, '
+ f'{int(f(e, "JUMP_COUNT"))}, {int(f(e, "probability"))}, {set_id}}}, /* {fn} */')
+ o('};')
+
+ # final spin
+ sl = X('slots.xml')
+ kinds = ['COINS_100', 'COINS_500', 'COINS_1000', 'EXPLOSION1', 'EXPLOSION2', 'EXPLOSION3', 'REVIVE', 'TOKENS',
+ 'DOUBLE_COINS', 'START_500M']
+ weight = {k: 0 for k in kinds}
+ after = {k: 1000 for k in kinds}
+ for s in sl.findall('slot'):
+ k = s.find('type').get('value')
+ if k not in weight:
+ continue
+ weight[k] += int(f(s, 'probability'))
+ if s.find('afterWinProbPercent') is not None:
+ after[k] = int(round(f(s, 'afterWinProbPercent') * 1000))
+ o(f'enum {{ {", ".join("JJ_PRIZE_" + k for k in kinds)}, JJ_PRIZES }};')
+ o.arr('uint16_t', 'jj_prize_weight', [weight[k] for k in kinds])
+ o('/* after a win, the prize\'s weight times this / 1000 (afterWinProbPercent) */')
+ o.arr('uint16_t', 'jj_prize_after', [after[k] for k in kinds])
+
+ # ---------------------------------------------------------------- tables
+ o('typedef struct { uint16_t sched; uint8_t top, bottom, tophalf, bottomhalf, first, count; } jj_file_t;')
+ pats_flat = []
+ o('static const jj_file_t jj_coin_files[] = {')
+ for sc, t, b, th, bh, pats in coin_files:
+ o(f' {{{sc}, {t}, {b}, {th}, {bh}, {len(pats_flat)}, {len(pats)}}},')
+ pats_flat += pats
+ o('};')
+ o('/* coin files\' patterns: (pattern, schedule) */')
+ o.arr('uint8_t', 'jj_coin_pick', [p for p, _ in pats_flat])
+ o.arr('uint16_t', 'jj_coin_pick_sched', [s for _, s in pats_flat])
+ zflat = []
+ o('static const jj_file_t jj_zap_files[] = {')
+ for sc, t, b, th, bh, pats in zap_files:
+ o(f' {{{sc}, {t}, {b}, {th}, {bh}, {len(zflat)}, {len(pats)}}},')
+ zflat += pats
+ o('};')
+ o('typedef struct { uint16_t sched, min, max; int16_t angle, rotate; uint8_t grow; } jj_zap_t;')
+ o('static const jj_zap_t jj_zaps[] = {')
+ for sc, mn, mx, ang, rot, grow in zflat:
+ o(f' {{{sc}, {mn}, {mx}, {ang}, {rot}, {grow}}},')
+ o('};')
+ o('typedef struct { uint16_t sched; float chase, speed; } jj_mis_t;')
+ o('static const jj_mis_t jj_mis_files[] = {')
+ for sc, ch, sp in mis_files:
+ o(f' {{{sc}, {ch}f, {sp}f}},')
+ o('};')
+
+ # coin patterns: rows of bits, LSB = leftmost
+ bits, offs, dims = [], [], []
+ for n in pat_names:
+ rows = [r for r in open(os.path.join(A, 'patterns', n), encoding='latin1').read().replace('\r', '').split('\n')]
+ while rows and not rows[-1].strip():
+ rows.pop()
+ w = max(len(r) for r in rows)
+ offs.append(len(bits))
+ dims.append((w, len(rows)))
+ for r in rows:
+ v = 0
+ for i, c in enumerate(r):
+ if c == '1':
+ v |= 1 << i
+ nb = (w + 7) // 8
+ bits += [(v >> (8 * k)) & 255 for k in range(nb)]
+ o(f'#define JJ_PATTERNS {len(pat_names)}')
+ o('/* coin patterns (patterns, one .txt each): width, height, then rows of bits, the first coin in bit 0 */')
+ o.arr('uint8_t', 'jj_pat_w', [w for w, _ in dims], 32)
+ o.arr('uint8_t', 'jj_pat_h', [h for _, h in dims], 32)
+ o.arr('uint16_t', 'jj_pat_off', offs)
+ o.arr('uint8_t', 'jj_pat_bits', bits, 24)
+
+ o(f'#define JJ_LASER_SCHED {laser_sched}')
+ o(f'#define JJ_LASER_PATTERNS {len(lasers)}')
+ o('typedef struct { uint16_t time, sched; uint8_t first, count; } jj_lpat_t;')
+ o('typedef struct { int8_t y0, y1; uint16_t on, off, wait, move; } jj_beam_t;')
+ o('static const jj_lpat_t jj_lpats[] = {')
+ beams = []
+ for name, t, sc, bs in lasers:
+ o(f' {{{t}, {sc}, {len(beams)}, {len(bs)}}}, /* {name} */')
+ for on, off, wait, pos in bs:
+ y0 = pos[0][0]
+ y1, move = (pos[1][0], pos[1][1]) if len(pos) > 1 else (y0, 0)
+ beams.append((y0, y1, on, off, wait, move))
+ o('};')
+ o('static const jj_beam_t jj_beams[] = {')
+ for b in beams:
+ o(' {%d, %d, %d, %d, %d, %d},' % b)
+ o('};')
+
+ o('/* weights by distance: (from metres, weight) pairs, each list ended by 0xffff */')
+ o.arr('uint16_t', 'jj_sched', [v for p in sched for v in p], 16)
+ o('#endif')
+ open(dst, 'w').write('\n'.join(o.lines) + '\n')
+ print(f'{dst}: {len(pat_names)} coin patterns, {len(zflat)} zappers in {len(zap_files)} files, '
+ f'{len(lasers)} laser patterns, {len(beams)} beams, {len(sets)} pacing sets')
+
+
+if __name__ == '__main__':
+ main()
diff --git a/games/jetpackjoyride/tools/icon.py b/games/jetpackjoyride/tools/icon.py
deleted file mode 100644
index ed0ca055..00000000
--- a/games/jetpackjoyride/tools/icon.py
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/usr/bin/env python3
-"""Regenerate the Halfbrick-artwork launcher icon and packed sprites together."""
-from assets import main
-
-if __name__ == '__main__':
- main()
diff --git a/games/jetpackjoyride/tools/standalone.ld b/games/jetpackjoyride/tools/standalone.ld
deleted file mode 100644
index 28679582..00000000
--- a/games/jetpackjoyride/tools/standalone.ld
+++ /dev/null
@@ -1,15 +0,0 @@
-/* Compact a standalone NWA after the first link has removed unused code.
- * Keep EADK metadata separate, and preserve mergeable strings for nwlink.
- * NumPlay modules retain their original sections for launcher garbage collection.
- */
-SECTIONS {
- .rodata.eadk_app_name : { *(.rodata.eadk_app_name) }
- .rodata.eadk_app_icon : { *(.rodata.eadk_app_icon) }
- .rodata.eadk_api_level : { *(.rodata.eadk_api_level) }
- .text : { *(.text.startup.main) *(.text .text.*) }
- .rodata.str1.1 : { *(.rodata*.str1.1) }
- .rodata : { *(.rodata .rodata.*) }
- .data : { *(.data .data.*) }
- .bss : { *(.bss .bss.*) *(COMMON) }
- /DISCARD/ : { *(.comment) *(.note.GNU-stack) }
-}
diff --git a/tests/test_games.py b/tests/test_games.py
index c2fac7d1..bb09e149 100644
--- a/tests/test_games.py
+++ b/tests/test_games.py
@@ -209,6 +209,10 @@ GAMES = {
"cookieclicker": ("CookieClicker.nwa", "cookieclicker.sav",
presses((2500, "ok"), (3500, "ok"), (4000, "ok"), (4500, "ok")), 6500,
presses((3000, "ok"), (3600, "ok")), 5500),
+ # the title, how to play, then the run: a second of it, paused (that saves it); Home keeps it. Next time, from the
+ # copy, it opens paused: Back, another second, paused again, quit with On/Off
+ "jetpackjoyride": ("JetpackJoyride.nwa", "jetpackjoyride.sav", presses((1500, "ok"), (2500, "ok"), (3600, "back")), 5000,
+ presses((1500, "back"), (2700, "back")), 4000),
# a level, its message, then play; then back to the level select
"portal": ("PortalReturns.nwa", "portal.sav",
presses((1500, "ok"), (2500, "ok"), (3500, "ok")) + every(4000, 7000, 400, "right", 300), 8000,
@@ -240,7 +244,8 @@ COPIES = {"championisland": "champion_saves.py", "numblocks": "numblocks_saves.p
"numpowder": "numpowder_saves.py", "undertale": "undertale_saves.py", "subway": "subway_saves.py",
"fnaf": "fnaf_saves.py", "doom": "doom_saves.py", "isaac": "isaac_saves.py",
"hillclimb": "hillclimb_saves.py", "pvz": "pvz_saves.py", "sonic": "sonic_saves.py",
- "cookieclicker": "cookieclicker_saves.py", "leveldevil": "leveldevil_saves.py"}
+ "cookieclicker": "cookieclicker_saves.py", "leveldevil": "leveldevil_saves.py",
+ "jetpackjoyride": "jetpackjoyride_saves.py"}
CHECKS = {
# the island remembers where Lucky was; after the reinstall, from the copy
"championisland": (lambda v: v[:3] == b"CI1" and b"PLAYER_LOC" in v,) * 2,
@@ -341,6 +346,9 @@ CHECKS = {
"cookieclicker": (lambda v: v[:4] == b"CCK1" and struct.unpack_from("<d", v, 48)[0] == 3
and struct.unpack_from("<d", v, 8)[0] >= 3,
lambda v: v[:4] == b"CCK1" and struct.unpack_from("<d", v, 48)[0] == 5),
+ # a run kept ("JJR1", has_run at 23, its frames at 60); after the reinstall, from the copy, it goes on
+ "jetpackjoyride": (lambda v: len(v) == 728 and v[:4] == b"JJR1" and v[23] == 1 and struct.unpack_from("<I", v, 60)[0] >= 30,
+ lambda v: v[:4] == b"JJR1" and v[23] == 1 and struct.unpack_from("<I", v, 60)[0] >= 90),
"breakout": (lambda v: len(v) == 12 and v[:2] == b"B\2" and v[4] == 1 and struct.unpack_from("<I", v, 8)[0] >= 10,
lambda v: v[4] == 0 and struct.unpack_from("<I", v, 8)[0] >= 1), # best kept, shake off
# Air Hockey and the easy computer chosen; then the normal computer and Tanks, the tallies kept
diff --git a/tools/release.py b/tools/release.py
index 28106742..24ec1a8c 100644
--- a/tools/release.py
+++ b/tools/release.py
@@ -39,6 +39,7 @@ ALONE = {
"sonic": ("Sonic the Hedgehog", "the whole 1991 game, Green Hill to the Final Zone"),
"numvisuals": ("NumVisuals", "moving backgrounds with a clock, a stopwatch, a timer, a counter or your own words"),
"cookieclicker": ("Cookie Clicker", "the whole game, to the grandmapocalypse, ascension and the dragon"),
+ "jetpackjoyride": ("Jetpack Joyride", "Barry's run through the lab, with five vehicles and the Final Spin"),
}
VARIANTS = [
("NumPlay-Invisible.nwa", "The same app, hidden: a blank icon with no name"),