You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a = World number
b = Stage number
c = Zone number
n = image number (single image can contain multiple zones)
Implement stage-codegen.py
Generate game_stage_Wa_Sb.cpp
Learn to parse *.tmx file, which is basically *.xml file
Restructure bg_wa_sb_n.tmx file(s), so that the zone boundaries can be identified with the zone number.
Change Tiled layers so that each zone takes each Tiled layers
Find the first non-zero cell from the front and back on each zone, to find top-left and bottom-right cell
(Optional) Fix the helper::tilemap::IndexRect ctor, so that it can take top-left and bottom-right cell
(Optional) Add object template to Tiled object layer
Parse bg_wa_sb_n.tmx file(s) and generate game_stage_Wa_Sb.cpp
When there is no certain entity available on zone c, generate constexpr bn::span<ZoneInfo::{EntityInfo}> Zc_{entityInfo}s_ instead of constexpr ZoneInfo::{EntityInfo} Zc_{entityInfo}s_[]
Overwrite game_stage_getter.h to currently existing stages
Optional things
Rebuild a stage only when it is edited
Compare the modified time of generated zone header and the *.tmx file(s) of the zone
os.path.getmtime() considered helpful
Verify if the stage is valid
Check if there is at least one entrance on Z0_entranceInfos_ (index 0 of it is where the stage starts)
Check if it has only one black hole (stage clear)
Check if every Zc_exitInfos_ is connected to a valid zone number and a valid entrance index of that zone
Check if every size of the zone is same or bigger than (30, 20) cells
Check if unsupported items present (or simply ignore that one?)
Warn unused entrance (exception: Z0_Ent0, where the stage starts)
Optimize codegen by generating each game_stage_Wa_Sb.cpp asynchronously.
The text was updated successfully, but these errors were encountered:
Implement
stage-codegen.py
game_stage_Wa_Sb.cpp
*.tmx
file, which is basically*.xml
filebg_wa_sb_n.tmx
file(s), so that the zone boundaries can be identified with the zone number.helper::tilemap::IndexRect
ctor, so that it can take top-left and bottom-right cellbg_wa_sb_n.tmx
file(s) and generategame_stage_Wa_Sb.cpp
constexpr bn::span<ZoneInfo::{EntityInfo}> Zc_{entityInfo}s_
instead ofconstexpr ZoneInfo::{EntityInfo} Zc_{entityInfo}s_[]
game_stage_getter.h
to currently existing stagesOptional things
*.tmx
file(s) of the zoneos.path.getmtime()
considered helpfulZ0_entranceInfos_
(index 0 of it is where the stage starts)Zc_exitInfos_
is connected to a valid zone number and a valid entrance index of that zone(30, 20)
cellsgame_stage_Wa_Sb.cpp
asynchronously.The text was updated successfully, but these errors were encountered: