自機本体の傾きを計算する
自機の更新で、傾きを計算する。(End Stepがいいかも?) その後、お皿の位置を再計算する。
// 皿の傾き blockweight = 0,0 blockcount = 0,0 repeat TOWERBLOCK_MAX if(tblock_type(cnt) == BLOCK_TYPE_NONE) : continue blockweight(tblock_lr(cnt)) += block_type_weight(tblock_type(cnt)) blockcount(tblock_lr(cnt)) ++ loop player_slant = player_slant * 0.95 + player_sx * 0.002 + (double(blockweight(1)) - double(blockweight(0))) * 0.003 // 左右の皿(それぞれのタワーの基底) tblock_type( TOWERBLOCK_L ) = BLOCK_TYPE_LIFT tblock_x( TOWERBLOCK_L ) = -PLAYER_LIFT_DIST * cos(player_slant) tblock_y( TOWERBLOCK_L ) = -PLAYER_LIFT_DIST * sin(player_slant) - 28.0 tblock_lr( TOWERBLOCK_L ) = TOWERBLOCK_L tblock_type( TOWERBLOCK_R ) = BLOCK_TYPE_LIFT tblock_x( TOWERBLOCK_R ) = PLAYER_LIFT_DIST * cos(player_slant) tblock_y( TOWERBLOCK_R ) = PLAYER_LIFT_DIST * sin(player_slant) - 28.0 tblock_lr( TOWERBLOCK_R ) = TOWERBLOCK_R
r76で対応完了
自機の更新で、傾きを計算する。(End Stepがいいかも?)
その後、お皿の位置を再計算する。