積みタワーブロックの崩壊判定を実装する
//-------------------------------------------------------- // 積みタワーブロック・崩壊判定 //-------------------------------------------------------- *checktowerbreak // 皿バランスによるタワー崩壊 if(absf(player_slant) > BALANCE_THREATHOLD){ repeat TOWERBLOCK_MAX if(tblock_type(cnt) == BLOCK_TYPE_NONE | tblock_type(cnt) == BLOCK_TYPE_LIFT) : continue if((tblock_lr(cnt) == TOWERBLOCK_L & player_slant > 0)|(tblock_lr(cnt) == TOWERBLOCK_R & player_slant < 0)) : continue vx = double(rnd(20)) / 10.0 - 1.0 + player_sx vy = double(rnd(20)) / 10.0 - 1.0 + player_sy rr = (double(rnd(21)) / 20.0 - 0.55) * 0.3 tx = tblock_x(cnt) + tblock_x(tblock_lr(cnt)) + player_x ty = tblock_y(cnt) + tblock_y(tblock_lr(cnt)) + player_y addcblock tx , ty , vx , vy , rr , tblock_type(cnt) tblock_type(cnt) = BLOCK_TYPE_NONE loop nodest = CHECK_BAD ds_play SND_CRASH a = rnd(5) if( a == 0 ) : ds_play SND_AAAAA if( a == 1 ) : ds_play SND_AAAAA2 } return
r79で対応完了
Details