Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Decompilation] [th04/th05] Stage tiles: Renderer activation
Part of P0258, funded by [Anonymous] and Blue Bolt.
- Loading branch information
Showing
7 changed files
with
66 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
public _scroll_line_on_page, _tile_invalidate_box | ||
public _bg_render_not_bombing, _bg_render_bombing, _bg_render_bombing_func | ||
public _tile_render_all_time | ||
_scroll_line_on_page dw 2 dup(?) | ||
_tile_invalidate_box Point <?> | ||
_bg_render_not_bombing dw ? | ||
_bg_render_bombing dw ? | ||
_bg_render_bombing_func dw ? | ||
dw ? | ||
_tile_render_all_time db ? | ||
evendata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#pragma option -zPmain_01 | ||
|
||
#include "platform.h" | ||
#include "pc98.h" | ||
#include "th04/main/bg.hpp" | ||
#include "th04/main/tile/tile.hpp" | ||
|
||
#define render_all_time tile_render_all_time | ||
extern uint8_t render_all_time; | ||
|
||
static void pascal near tiles_render_all_timed(void) | ||
{ | ||
tiles_render_all(); | ||
render_all_time--; | ||
if(render_all_time == 0) { | ||
bg_render_not_bombing = tiles_render; | ||
} | ||
} | ||
|
||
void tiles_activate(void) | ||
{ | ||
bg_render_not_bombing = tiles_render; | ||
} | ||
|
||
void pascal tiles_activate_and_render_all_for_next_N_frames(uint8_t n) | ||
{ | ||
render_all_time = n; | ||
bg_render_not_bombing = tiles_render_all_timed; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "th04/main/tile/tile.cpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters