Enjoy programming more!
Kidspod is a post site which supports young programmers.
First step to join us.
Register as a member
For members

2018/09/25 22:13:28

MixJuice GET URL : kidspod.club/mj/595

花火(BASIC 0.9.9 RC1〜/推奨 1.0.0〜)

詳細は イチゴジャム レシピ で公開しています。
「プログラムをみる」を参照して下さい。

SOURCE CODE

  1. CLS:'
  2.  
  3. NEW
  4.  
  5. 10 'Fireworks
  6. 20 CLV:CLS
  7. 30 LET [0],6,1,4,4
  8. 40 LET [4],9,5,10,3
  9. 50 LET [8],10,1,7,7
  10. 60 T=RND(11)+10
  11. 70 LC T,23:? "."
  12. 80 FOR Y=22 TO 11 STEP -1
  13. 90 LC T,23:?:WAIT 15
  14. 100 NEXT
  15. 110 FOR I=0 TO 10
  16. 120 FOR J=0 TO 10 STEP 2
  17. 130 LET A,[J]*I/10
  18. 140 LET B,[J+1]*I/10
  19. 150 LET X,A:LET Y,B
  20. 160 LET C,42:GOSUB 260
  21. 170 LET X,[J+50]:LET Y,[J+51]
  22. 180 LET C,32:GOSUB 260
  23. 190 LET [J+50],A:LET [J+51],B
  24. 200 NEXT:NEXT
  25. 210 FOR J=0 TO 10 STEP 2
  26. 220 LET X,[J+50]:LET Y,[J+51]
  27. 230 LET C,32:GOSUB 260
  28. 240 NEXT
  29. 250 WAIT RND(120):GOTO 50
  30. 260 LET D,X:LET E,Y:GOSUB 290
  31. 270 LET E,X:LET D,Y:GOSUB 290
  32. 280 RETURN
  33. 290 POKE #900+T+D+(10+E)*32,C
  34. 300 POKE #900+T+D+(10-E)*32,C
  35. 310 POKE #900+T-D+(10+E)*32,C
  36. 320 POKE #900+T-D+(10-E)*32,C
  37. 330 RETURN
  38.  
  39. 'OK

COMMENT

S