Ticket #33297

落下ブロックの出現を制御する

Open Date: 2014-03-02 08:51 Last Update: 2014-03-14 01:47

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

Details

落下ブロックの出現を制御する

  1. // ------------------------------------------------
  2. // ■ブロック湧き出し
  3. playtimer++
  4. if(playtimer \ (80 - int(dropspeed * 10.0) - level) == 0){
  5. if(level >= 10){
  6. // LEVEL10限定処理
  7. gene_count = (gene_count \ 7) + 1 // へビィ、コイン、ボム全部出る
  8. if(timelimit > 85 & timelimit < 95) : gene_count = BLOCK_TYPE_BOMB // ボムタイム
  9. if(timelimit > 65 & timelimit < 75) : gene_count = BLOCK_TYPE_HEAVY // へビィタイム
  10. if(timelimit > 45 & timelimit < 55) : gene_count = BLOCK_TYPE_BOMB // ボムタイム
  11. if(timelimit > 25 & timelimit < 35) : gene_count = BLOCK_TYPE_COIN // コインタイム
  12. }else{
  13. // 通常面
  14. if((level > 5 & level < 11)|(level > 15)){
  15. gene_count = (gene_count \ 5) + 1 // ヘビーブロック出現
  16. }else{
  17. gene_count = (gene_count \ 4) + 1 // ヘビーブロックは出ない
  18. }
  19. }
  20. adddblock double(rnd(560) + 40) , -64.0 , (double(rnd(11)) - 5.5) / 10.0 , dropspeed , gene_count
  21. }
  22. // 特殊ブロック湧き出し(コイン、ボム)
  23. if(timelimit \ 5 == 3 & playtimer \ 60 == 0 & level > 1 & level < 10){
  24. // 奇数面はコイン、偶数面はボム(ただし、一面だけは何も出ない)
  25. if(level \ 2 == 0){
  26. adddblock double(rnd(480) + 80) , -64.0 , (double(rnd(11)) - 5.5) / 10.0 , dropspeed , BLOCK_TYPE_BOMB
  27. }else{
  28. adddblock double(rnd(480) + 80) , -64.0 , (double(rnd(11)) - 5.5) / 10.0 , dropspeed , BLOCK_TYPE_COIN
  29. }
  30. }

Ticket History (3/4 Histories)

2014-03-02 08:51 Updated by: syun77
  • New Ticket "落下ブロックの出現を制御する" created
2014-03-05 19:39 Updated by: syun77
  • Component Update from ブロック制御 to 落下ブロック制御
2014-03-09 10:25 Updated by: syun77
  • Priority Update from 4 to 7
  • Details Updated
2014-03-14 01:47 Updated by: syun77
  • Status Update from Open to Closed
  • Resolution Update from None to Fixed
  • Ticket Close date is changed to 2014-03-14 01:47
Comment

r139で対応完了

Attachment File List

No attachments

Edit

Please login to add comment to this ticket » Login