80 lines
1.8 KiB
ArmAsm
80 lines
1.8 KiB
ArmAsm
/********************************************************************************
|
|
-------------------------
|
|
Ultra 64 MARIO Brothers
|
|
-------------------------
|
|
Numbers Strategy
|
|
|
|
April 4 1996 programed by Iwamoto Daiki
|
|
********************************************************************************/
|
|
|
|
/*################*/
|
|
#ifdef ASSEMBLER
|
|
/*################*/
|
|
|
|
/*==============================================================================
|
|
Path Data
|
|
===============================================================================*/
|
|
e_numbers:
|
|
p_initialize(item)
|
|
p_setbit(flag,stf_moveON)
|
|
p_softspritemodeON
|
|
p_save_nowpos
|
|
p_program(s_numbers_init)
|
|
|
|
p_while
|
|
p_program(s_numbers_main)
|
|
p_loop
|
|
|
|
/*################*/
|
|
#else
|
|
/*################*/
|
|
|
|
|
|
/*==================================================================================================
|
|
C Program
|
|
===================================================================================================*/
|
|
|
|
/***************************************************************************************************
|
|
Init
|
|
***************************************************************************************************/
|
|
extern void s_numbers_init(void)
|
|
{
|
|
obj_animecounter = obj_programselect;
|
|
obj_speedY = 26;
|
|
|
|
}
|
|
/***************************************************************************************************
|
|
Main
|
|
***************************************************************************************************/
|
|
extern void s_numbers_main(void)
|
|
{
|
|
|
|
obj_worldY += obj_speedY;
|
|
obj_speedY -= 2;
|
|
|
|
if (obj_speedY < -21) {
|
|
obj_speedY = 14;
|
|
}
|
|
|
|
|
|
if (obj_timer == 35) {
|
|
StrategyRecord* stp = s_makeobj_nowpos(execstp,S_spark,e_coinspark);
|
|
stp->s[stw_worldY].f -= 30;
|
|
|
|
execstp->status = 0;
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*################*/
|
|
#endif
|
|
/*################*/
|
|
|
|
|