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.

Keep the variant objects between builds; hold NumDrive's test keys

Mason3639404d1cc3b9a
diff --git a/Makefile b/Makefile
index 6b9da87a..28cfcafa 100644
--- a/Makefile
+++ b/Makefile
@@ -101,6 +101,7 @@ $(B)/arm/shots_%.o: $(B)/gen/shots_%.c launcher/src/np.h
$(ARM_CC) $(ARM_CFLAGS) -c $< -o $@
$(B)/arm/arena.o $(B)/arm/marks.o: $(B)/arm/%.o: $(B)/gen/gametable.c
$(ARM_CC) $(EADK_CFLAGS) -c $(B)/gen/$*.s -o $@
+.SECONDARY: $(foreach v,$(VARIANTS),$(B)/variant/$(v)-name.o $(B)/variant/$(v)-icon.o)
$(B)/variant/%-name.o: launcher/app_name.c Makefile | $(B)
mkdir -p $(B)/variant
$(ARM_CC) $(ARM_CFLAGS) '-DNP_APP_NAME=$(NAME_$*)' -c $< -o $@
diff --git a/tests/test_games.py b/tests/test_games.py
index 819698b3..b2ca885e 100644
--- a/tests/test_games.py
+++ b/tests/test_games.py
@@ -47,8 +47,10 @@ GAMES = {
"numdash": ("NumDash.nwa", "numdash.nds", presses((2500, "ok"), (4000, "ok"), (5500, "ok")), 9000,
presses((2500, "ok")), 5000),
# pause, level list, next level, play: that saves the level to start from
- "numdrive": ("NumDrive.nwa", "drivemad.sav", presses((1500, "ok"), (2000, "back"), (2500, "right"), (3000, "ok")),
- 5000, presses((1500, "ok"), (2000, "back"), (2500, "left"), (3000, "ok")), 5000),
+ # (held keys: the pause card's frames are slow while it slides in)
+ "numdrive": ("NumDrive.nwa", "drivemad.sav",
+ presses((1500, "ok", 250), (2000, "back", 250), (2500, "right", 250), (3000, "ok", 250)), 5000,
+ presses((1500, "ok", 250), (2000, "back", 250), (2500, "left", 250), (3000, "ok", 250)), 5000),
"tetris": ("Tetris.nwa", "tetris.sav", presses((1200, "ok")) + every(2500, 7000, 500, "up"), 8000,
presses((1200, "ok"), (2500, "ok")), 5000),
}