mirror of
https://github.com/catseye/SixtyPical.git
synced 2025-02-21 04:29:14 +00:00
Trim the type of game_state_routine, but run into something odd.
This commit is contained in:
parent
1116229867
commit
105534de5b
@ -31,8 +31,8 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
typedef routine
|
typedef routine
|
||||||
inputs joy2, button_down, press_fire_msg, dispatch_game_state, save_x,
|
inputs joy2, button_down, press_fire_msg, dispatch_game_state,
|
||||||
actor_pos, pos, new_pos, actor_delta, delta, actor_logic,
|
actor_pos, actor_delta, actor_logic,
|
||||||
screen, screen1, screen2, screen3, screen4, colormap1, colormap2, colormap3, colormap4
|
screen, screen1, screen2, screen3, screen4, colormap1, colormap2, colormap3, colormap4
|
||||||
outputs button_down, dispatch_game_state,
|
outputs button_down, dispatch_game_state,
|
||||||
actor_pos, pos, new_pos, actor_delta, delta, actor_logic,
|
actor_pos, pos, new_pos, actor_delta, delta, actor_logic,
|
||||||
@ -243,8 +243,8 @@ routine check_new_position_in_bounds
|
|||||||
|
|
||||||
routine init_game
|
routine init_game
|
||||||
inputs actor_pos, actor_delta, actor_logic
|
inputs actor_pos, actor_delta, actor_logic
|
||||||
outputs actor_pos, actor_delta, pos, actor_logic
|
outputs actor_pos, actor_delta, actor_logic
|
||||||
trashes a, y, z, n, c, v
|
trashes pos, a, y, z, n, c, v
|
||||||
{
|
{
|
||||||
ld y, 0
|
ld y, 0
|
||||||
copy word 0, pos
|
copy word 0, pos
|
||||||
@ -402,7 +402,12 @@ define game_state_title_screen game_state_routine
|
|||||||
|
|
||||||
if c {
|
if c {
|
||||||
call clear_screen
|
call clear_screen
|
||||||
|
|
||||||
|
// FIXME: this seems wrong and we need to investigate it.
|
||||||
|
// init_game trashes `pos` (this is reasonable.) But pos is declared
|
||||||
|
// as an output to `game_state_routine`. This should be an error...
|
||||||
call init_game
|
call init_game
|
||||||
|
|
||||||
copy forward game_state_play, dispatch_game_state
|
copy forward game_state_play, dispatch_game_state
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user