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.
C calculatorcalculator-gamescasiochesscrossy-roaddrive-madfx-cg50gamesgeometry-dashgraphing-calculatorndlessnumworksnumworks-appsnumworks-calculatornumworks-gamenumworks-gamestetristi-84-plus-ceti-nspire
Merge remote-tracking branch 'origin/main' into studio-next
Mason363119c47cc5667
diff --cc Makefileindex 42567ab1,36062e12..c461e0cf--- a/Makefile+++ b/Makefile@@@ -29,14 -29,8 +29,14 @@@ RAM_LIMIT = 14892# 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 JetpackJoyride StickmanHook DonkeyKong Dune+ BIG_APPS = Celeste HollowKnight Undertale ChampionIsland FinalEarth2 NumPowder NumBlocks NumDrive SubwaySurfers FiveNightsAtFreddys Doom BindingOfIsaac HillClimbRacing PlantsVsZombies SonicTheHedgehog CookieClicker LevelDevil JetpackJoyride StickmanHook DonkeyKong Dune MonkeyMart-# the calculator's space for installed apps (0x90200000 to 0x903F0000 in its flash)+# the calculator's space for installed apps: from the end of its software (64 KiB aligned) to 64 KiB before the+# end of its 4 MiB slot of flash, 0x903F0000. The software's size sets the start: 0x90200000 is the latest a+# NumPlay counts on (1.94 MB, APP_SPACE); Epsilon 26.4 on an N0120 ends at 0x90180000 (2.44 MB, the+# installer's 2496 KB)+APP_START = 0x90200000+APP_START_26 = 0x90180000+APP_END = 0x903F0000APP_SPACE = 2031616# with Enlarged Extra Apps (nwagyu's Nwagra), the app loader is told the space goes on to the end of the# external flash (0x90800000), over the second copy of the calculator's software: a NumPlay of the bigdiff --cc games/monkeymart/Makefileindex 00000000,cdc05f76..a06f55a0mode 000000,100644..100644--- a/games/monkeymart/Makefile+++ b/games/monkeymart/Makefile@@@ -1,0 -1,62 +1,62 @@@+ # Monkey Mart on the NumWorks calculator.+ # make output/monkeymart.nwa+ # make check link it like the calculator does (output/monkeymart.bin)+ # make host build/play: the game on a computer, for tests and pictures+ # make test the rules against the web game's numbers, a bot through the first mart to the second, random+ # keys, saves (with the sanitizers); with ORIGINAL=DIR (the web game taken apart, kept with the+ # reference: its Lua sources in DIR/lua), the marts' tables against the game's own text too+ # make data WEB=DIR src/data.c, src/data.h, src/art.c and src/art.h again, from the web game taken apart in DIR+ # (tools/data.py and tools/art.py: Python + Pillow; nothing in DIR is run)+ Q ?= @+ CC = arm-none-eabi-gcc+ NWLINK ?= npx --yes -- [email protected]+ BUILD_DIR = output++ SRC = src/main.c src/game.c src/draw.c src/save.c src/data.c src/art.c src/plat_eadk.c+ HEADERS = $(wildcard src/*.h) ../common/epsilon_app.h ../common/epsilon_files.h+-CFLAGS = -std=gnu11 $(shell $(NWLINK) eadk-cflags-device) -DPLATFORM_DEVICE=1++CFLAGS = -std=gnu11 $(shell $(NWLINK) eadk-cflags-device) -DPLATFORM_DEVICE=1 -DEPSILON_XL=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+ build: $(BUILD_DIR)/monkeymart.nwa++ # apps get 133652 bytes of RAM on custom builds of Epsilon 25.2 (148928 or more on official ones)+ check: $(BUILD_DIR)/monkeymart.nwa+ $(Q) $(NWLINK) nwa-bin --ram-length 133652 $< $(BUILD_DIR)/monkeymart.bin+ @echo "BIN $(BUILD_DIR)/monkeymart.bin: $$(wc -c < $(BUILD_DIR)/monkeymart.bin) bytes"++ $(BUILD_DIR)/monkeymart.nwa: $(SRC) $(HEADERS) $(BUILD_DIR)/icon.o+ @echo "LD $@"+ $(Q) $(CC) $(CFLAGS) $(LDFLAGS) $(SRC) $(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 and its bot, checks it and saves pictures+ HOST_SRC = tests/play.c src/draw.c src/save.c src/data.c src/art.c+ HOST_FLAGS = -std=gnu11 -O2 -g -Wall -Wextra -Wno-unused-parameter -ffp-contract=off -Isrc -DHOST+ host: build/play+ build/play: $(HOST_SRC) src/main.c src/game.c tests/bot.h $(wildcard src/*.h)+ $(Q) mkdir -p build+ $(Q) cc $(HOST_FLAGS) -fsanitize=address,undefined -fno-sanitize-recover=undefined $(HOST_SRC) -lm -o $@+ @echo "HOST $@"+ test: build/play+ build/play test build+ $(if $(ORIGINAL),python3 -I tools/data.py $(ORIGINAL) --check)++ data:+ python3 -I tools/data.py $(WEB)++ clean:+ $(Q) rm -rf $(BUILD_DIR) build