Ticket #33352

自機本体の傾きを計算する

Open Date: 2014-03-04 14:45 Last Update: 2014-03-07 08:57

Reporter:
Owner:
Status:
Closed
MileStone:
Priority:
7
Severity:
5 - Medium
Resolution:
Fixed
File:
None

Details

自機の更新で、傾きを計算する。(End Stepがいいかも?)
その後、お皿の位置を再計算する。

  1. // 皿の傾き
  2. blockweight = 0,0
  3. blockcount = 0,0
  4. repeat TOWERBLOCK_MAX
  5. if(tblock_type(cnt) == BLOCK_TYPE_NONE) : continue
  6. blockweight(tblock_lr(cnt)) += block_type_weight(tblock_type(cnt))
  7. blockcount(tblock_lr(cnt)) ++
  8. loop
  9. player_slant = player_slant * 0.95 + player_sx * 0.002 + (double(blockweight(1)) - double(blockweight(0))) * 0.003
  10. // 左右の皿(それぞれのタワーの基底)
  11. tblock_type( TOWERBLOCK_L ) = BLOCK_TYPE_LIFT
  12. tblock_x( TOWERBLOCK_L ) = -PLAYER_LIFT_DIST * cos(player_slant)
  13. tblock_y( TOWERBLOCK_L ) = -PLAYER_LIFT_DIST * sin(player_slant) - 28.0
  14. tblock_lr( TOWERBLOCK_L ) = TOWERBLOCK_L
  15. tblock_type( TOWERBLOCK_R ) = BLOCK_TYPE_LIFT
  16. tblock_x( TOWERBLOCK_R ) = PLAYER_LIFT_DIST * cos(player_slant)
  17. tblock_y( TOWERBLOCK_R ) = PLAYER_LIFT_DIST * sin(player_slant) - 28.0
  18. tblock_lr( TOWERBLOCK_R ) = TOWERBLOCK_R

Ticket History (3/4 Histories)

2014-03-04 14:45 Updated by: syun77
  • New Ticket "自機本体の傾きを計算する" created
2014-03-04 14:45 Updated by: syun77
  • Details Updated
2014-03-05 00:43 Updated by: syun77
  • Priority Update from 8 to 7
2014-03-07 08:57 Updated by: syun77
  • Resolution Update from None to Fixed
  • Status Update from Open to Closed
  • Ticket Close date is changed to 2014-03-07 08:57
Comment

r76で対応完了

Attachment File List

No attachments

Edit

Please login to add comment to this ticket » Login