applications/PoP: порт Prince of Persia — PoC (roomtest) + пайплайн
Порт PoP на Sprinter. Текущий PoC — applications/PoP/roomtest/: комната 1 (фон-композиция тайлов) + Kid с управлением на raw-клавиатуре и коллизией с картой. - roomtest — pop_bg (фон), pop_kid (спрайты Kid, column-major флип, seqtbl-анимация), pop_ctrl (порт control() PoP на held-state kbd_raw), pop_map (коллизия seg004/005: бег/стоп у стены, падение/приземление, отскок seq_47, вертикальный прыжок K4.1). MEMORY=small (DATA сразу за CODE, ~23КБ кода не лезет в huge). - toolchain (PoP) — pop_pack_kid/pop_pack_bg/render_room/extract — распаковка res-графики MSDOS в атласы + композиция комнат. - toolchain/ (корень) — make_hdd.sh (быстрый HDD-тест вместо FDD), png_strip.py / room_compose.py (ассет-пайплайн). - docs — PORT_PLAN, KID_PLAN, форматы ресурсов (Apple II / MSDOS / DAT). - bgtest/coltest/poc — ранние PoC (фон, коллизия, первый прототип). .gitignore: build-артефакты applications/*/*/*; исключены внешние референс-репозитории (SDLPoP/mininim/PR/Apple-II — свои git-клоны) и оригинальные game-данные MSDOS/ (копирайт, только для реверса форматов). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@@ -0,0 +1,32 @@
|
||||
/* pop_bg_atlas.h — раскладка атласов статического фона PoP.
|
||||
* Сгенерировано toolchain/pop_pack_bg.py — НЕ править вручную.
|
||||
*
|
||||
* Прямая адресация (ноль remap-таблиц в W2):
|
||||
* ENV фон id N -> atlas env_bg[N>>5], idx N&31
|
||||
* WALL id N -> atlas wall, idx N
|
||||
* FORE id N -> atlas fore, idx N
|
||||
*/
|
||||
#ifndef POP_BG_ATLAS_H
|
||||
#define POP_BG_ATLAS_H
|
||||
|
||||
#define POP_ENV_SHIFT 5
|
||||
#define POP_ENV_MASK 31
|
||||
#define POP_ENV_PAGES 5
|
||||
|
||||
/* Палитра: env-слоты, wall-слоты (сприйт-пиксель i -> база+i). */
|
||||
#define POP_PAL_ENV 0x50
|
||||
#define POP_PAL_WALL 0x60
|
||||
|
||||
/* Имена файлов атласов (грузятся atlas_load). */
|
||||
static const char *const pop_env_atl[POP_ENV_PAGES] = {
|
||||
"pop_env0.atl",
|
||||
"pop_env1.atl",
|
||||
"pop_env2.atl",
|
||||
"pop_env3.atl",
|
||||
"pop_env4.atl",
|
||||
};
|
||||
#define POP_WALL_ATL "pop_wall.atl"
|
||||
#define POP_FORE_ATL "pop_fore.atl"
|
||||
#define POP_BG_PAL "pop_bg.pal"
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,39 @@
|
||||
/* kid_atlas.h — раскладка атласов Kid. Сгенерировано pop_pack_kid.py. */
|
||||
#ifndef KID_ATLAS_H
|
||||
#define KID_ATLAS_H
|
||||
#define KID_SHIFT 3
|
||||
#define KID_MASK 7
|
||||
#define KID_PAGES 28
|
||||
#define KID_PAL 0x70
|
||||
static const char *const kid_atl[KID_PAGES] = {
|
||||
"kid0.atl",
|
||||
"kid1.atl",
|
||||
"kid2.atl",
|
||||
"kid3.atl",
|
||||
"kid4.atl",
|
||||
"kid5.atl",
|
||||
"kid6.atl",
|
||||
"kid7.atl",
|
||||
"kid8.atl",
|
||||
"kid9.atl",
|
||||
"kid10.atl",
|
||||
"kid11.atl",
|
||||
"kid12.atl",
|
||||
"kid13.atl",
|
||||
"kid14.atl",
|
||||
"kid15.atl",
|
||||
"kid16.atl",
|
||||
"kid17.atl",
|
||||
"kid18.atl",
|
||||
"kid19.atl",
|
||||
"kid20.atl",
|
||||
"kid21.atl",
|
||||
"kid22.atl",
|
||||
"kid23.atl",
|
||||
"kid24.atl",
|
||||
"kid25.atl",
|
||||
"kid26.atl",
|
||||
"kid27.atl",
|
||||
};
|
||||
#define KID_PAL_FILE "kid.pal"
|
||||
#endif
|
||||
|
After Width: | Height: | Size: 87 B |
|
After Width: | Height: | Size: 155 B |
|
After Width: | Height: | Size: 631 B |
|
After Width: | Height: | Size: 624 B |
|
After Width: | Height: | Size: 825 B |
|
After Width: | Height: | Size: 130 B |
|
After Width: | Height: | Size: 236 B |
|
After Width: | Height: | Size: 832 B |
|
After Width: | Height: | Size: 911 B |
|
After Width: | Height: | Size: 236 B |
|
After Width: | Height: | Size: 236 B |
|
After Width: | Height: | Size: 208 B |
|
After Width: | Height: | Size: 206 B |
|
After Width: | Height: | Size: 208 B |
|
After Width: | Height: | Size: 199 B |
|
After Width: | Height: | Size: 190 B |
|
After Width: | Height: | Size: 698 B |
|
After Width: | Height: | Size: 478 B |
|
After Width: | Height: | Size: 889 B |
|
After Width: | Height: | Size: 236 B |
|
After Width: | Height: | Size: 764 B |
|
After Width: | Height: | Size: 821 B |
|
After Width: | Height: | Size: 831 B |
|
After Width: | Height: | Size: 825 B |
|
After Width: | Height: | Size: 236 B |
|
After Width: | Height: | Size: 236 B |
|
After Width: | Height: | Size: 715 B |
|
After Width: | Height: | Size: 130 B |
|
After Width: | Height: | Size: 867 B |
|
After Width: | Height: | Size: 650 B |
|
After Width: | Height: | Size: 131 B |
|
After Width: | Height: | Size: 759 B |
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
|
||||