设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 2222|回复: 8
打印 上一主题 下一主题

[RMVX发布] 很多天气变幻的源码

[复制链接]

Lv1.梦旅人

梦石
0
星屑
62
在线时间
77 小时
注册时间
2010-12-30
帖子
15
跳转到指定楼层
1
发表于 2011-1-8 20:44:19 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
本帖最后由 DeathKing 于 2011-2-6 12:03 编辑
  1. #==============================================================================
  2. #本帖选自88_小冰(329093766)[url=http://rpg.blue/index.php]http://rpg.blue/index.php[/url]
  3. #==============================================================================# Usage of user-defined weather. Look at the following globals:
  4. $WEATHER_UPDATE = false # the $WEATHER_IMAGES array has changed, please update
  5. $WEATHER_IMAGES = [] # the array of picture names to use
  6. $WEATHER_X = 0 # the number of pixels the image should move horizontally (positive = right, negative = left)
  7. $WEATHER_Y = 0 # the number of pizels the image should move vertically (positive = down, negative = up)
  8. $WEATHER_FADE = 0 # how much the image should fade each update (0 = no fade, 255 = fade instantly)
  9. $WEATHER_ANIMATED = false # whether or not the image should cycle through all the images

  10. # Take these out if you are using screen resolution script of Ccoa.
  11. HEIGHT = 416
  12. WIDTH = 544

  13. #==============================================================================
  14. # ** Spriteset_Weather
  15. #------------------------------------------------------------------------------

  16. class Spriteset_Weather
  17. #--------------------------------------------------------------------------
  18. # * Public Instance Variables
  19. #--------------------------------------------------------------------------
  20. attr_reader :type
  21. attr_reader :max
  22. attr_reader :ox
  23. attr_reader :oy
  24. #--------------------------------------------------------------------------
  25. # * Object Initialization
  26. #--------------------------------------------------------------------------
  27. def initialize(viewport = nil)
  28. @type = 0
  29. @max = 0
  30. @ox = 0
  31. @oy = 0

  32. @count = 0
  33. @current_pose = []
  34. @info = []
  35. @countarray = []

  36. make_bitmaps

  37. @sprites = []

  38. for i in 1..500
  39. sprite = Sprite.new(viewport)
  40. sprite.visible = false
  41. sprite.opacity = 0
  42. @sprites.push(sprite)
  43. @current_pose.push(0)
  44. @info.push(rand(50))
  45. @countarray.push(rand(15))
  46. end

  47. end
  48. #--------------------------------------------------------------------------
  49. # * Dispose
  50. #--------------------------------------------------------------------------
  51. def dispose
  52. for sprite in @sprites
  53. sprite.dispose
  54. end
  55. @rain_bitmap.dispose
  56. @storm_bitmap.dispose
  57. @snow_bitmap.dispose
  58. @hail_bitmap.dispose
  59. @petal_bitmap.dispose
  60. @blood_rain_bitmap.dispose
  61. @oil_rain_bitmap.dispose
  62. @golden_rain_bitmap.dispose
  63. @golden_storm_bitmap.dispose
  64. @acid_rain_bitmap.dispose
  65. @acid_storm_bitmap.dispose
  66. @sepia_rain_bitmap.dispose
  67. @sepia_storm_bitmap.dispose
  68. @blood_storm_bitmap.dispose
  69. @bloodblizz_bitmap.dispose
  70. for image in @autumn_leaf_bitmaps
  71. image.dispose
  72. end
  73. for image in @green_leaf_bitmaps
  74. image.dispose
  75. end
  76. for image in @yellow_leaf_bitmaps
  77. image.dispose
  78. end
  79. for image in @redmaple_leaf_bitmaps
  80. image.dispose
  81. end
  82. for image in @rose_bitmaps
  83. image.dispose
  84. end
  85. for image in @feather_bitmaps
  86. image.dispose
  87. end
  88. for image in @sparkle_bitmaps
  89. image.dispose
  90. end
  91. for image in @flame_meteor_bitmaps
  92. image.dispose
  93. end
  94. for image in @waterbomb_bitmaps
  95. image.dispose
  96. end
  97. for image in @icybomb_bitmaps
  98. image.dispose
  99. end
  100. for image in @flarebomb_bitmaps
  101. image.dispose
  102. end
  103. for image in @starburst_bitmaps
  104. image.dispose
  105. end
  106. for image in @monostarburst_bitmaps
  107. image.dispose
  108. end
  109. for image in @user_bitmaps
  110. image.dispose
  111. end
  112. $WEATHER_UPDATE = true
  113. end
  114. #--------------------------------------------------------------------------
  115. # * Set weather type
  116. # type : new weather type
  117. #--------------------------------------------------------------------------
  118. def type=(type)
  119. return if @type == type
  120. @type = type
  121. case @type
  122. when 1 # rain
  123. bitmap = @rain_bitmap
  124. when 2 # storm
  125. bitmap = @storm_bitmap
  126. when 3 # snow
  127. bitmap = @snow_bitmap
  128. when 4 # hail
  129. bitmap = @hail_bitmap
  130. when 5 # rain w/ thunder and lightning
  131. bitmap = @rain_bitmap
  132. @thunder = true
  133. when 6 # falling autumn leaves
  134. bitmap = @autumn_leaf_bitmaps[0]
  135. when 7 # blowing autumn leaves
  136. bitmap = @autumn_leaf_bitmaps[0]
  137. when 8 # swirling autumn leaves
  138. bitmap = @autumn_leaf_bitmaps[0]
  139. when 9 # falling green leaves
  140. bitmap = @green_leaf_bitmaps[0]
  141. when 10 # sakura petals
  142. bitmap = @petal_bitmap
  143. when 11 # rose petals
  144. bitmap = @rose_bitmaps[0]
  145. when 12 # feathers
  146. bitmap = @feather_bitmaps[0]
  147. when 13 # blood rain
  148. bitmap = @blood_rain_bitmap
  149. when 14 # sparkles
  150. bitmap = @sparkle_bitmaps[0]
  151. when 15 # user-defined
  152. bitmap = @user_bitmaps[rand(@user_bitmaps.size)]
  153. when 16 # blowing snow
  154. bitmap = @snow_bitmap
  155. when 17 # meteors
  156. bitmap = @meteor_bitmap
  157. when 18 # falling ash
  158. bitmap = @ash_bitmaps[rand(@ash_bitmaps.size)]
  159. when 19 # bubbles
  160. bitmap = @bubble_bitmaps[rand(@bubble_bitmaps.size)]
  161. when 21 # sparkles up
  162. bitmap = @sparkle_bitmaps[0]
  163. when 22 # blowing green leaves
  164. bitmap = @green_leaf_bitmaps[0]
  165. when 23 # swirling green leaves
  166. bitmap = @green_leaf_bitmaps[0]
  167. when 24 # falling yellow leaves
  168. bitmap = @yellow_leaf_bitmaps[0]
  169. when 25 # blowing yellow leaves
  170. bitmap = @yellow_leaf_bitmaps[0]
  171. when 26 # swirling yellow leaves
  172. bitmap = @yellow_leaf_bitmaps[0]
  173. when 27 # oil rain
  174. bitmap = @oil_rain_bitmap
  175. when 28 # golden rain
  176. bitmap = @golden_rain_bitmap
  177. when 29 # flame meteors
  178. bitmap = @flame_meteor_bitmap
  179. when 30 # starburst
  180. bitmap = @starburst_bitmaps[0]
  181. when 31 # uprising starburst
  182. bitmap = @starburst_bitmaps[0]
  183. when 32 # starburst rain
  184. bitmap = @starburst_bitmaps[0]
  185. when 33 # mono-starburst
  186. bitmap = @monostarburst_bitmaps[0]
  187. when 34 # uprising mono-starburst
  188. bitmap = @monostarburst_bitmaps[0]
  189. when 35 # mono-starburst rain
  190. bitmap = @monostarburst_bitmaps[0]
  191. when 36 # Golden rain w\ thunder and ligthning
  192. bitmap = @golden_rain_bitmap
  193. @golden_thunder = true
  194. when 37 # Golden storm
  195. bitmap = @golden_storm_bitmap
  196. when 38 # Oil storm
  197. bitmap = @oil_storm_bitmap
  198. when 39 # # Acid rain
  199. bitmap = @acid_rain_bitmap
  200. when 40 # Acid rain w\thunder and lightning
  201. bitmap = @acid_rain_bitmap
  202. @acid_thunder = true
  203. when 41 # Acid storm
  204. bitmap = @acid_storm_bitmap
  205. when 42 # Sepia rain
  206. bitmap = @sepia_rain_bitmap
  207. when 43 # Sepia rain w\ thunder and lightning
  208. bitmap = @sepia_rain_bitmap
  209. @sepia_thunder = true
  210. when 44 # Sepia storm
  211. bitmap = @sepia_storm_bitmap
  212. when 45 # Realistic storm
  213. bitmap = @storm_bitmap
  214. @real_storm = true
  215. when 46 # Blood rain w\ thunder and lightning
  216. bitmap = @blood_rain_bitmap
  217. @crimson_thunder = true
  218. when 47 # Blood storm
  219. bitmap = @blood_storm_bitmap
  220. when 48 # Blood blizzard
  221. bitmap = @bloodblizz_bitmap
  222. when 49 # Falling red maple leaves
  223. bitmap = @redmaple_leaf_bitmaps[0]
  224. when 50 # Blowing red maple leaves
  225. bitmap = @redmaple_leaf_bitmaps[0]
  226. when 51 # Swirling red maple leaves
  227. bitmap = @redmaple_leaf_bitmaps[0]
  228. when 52
  229. bitmap = @waterbomb_bitmaps
  230. when 53
  231. bitmap = @icybomb_bitmaps
  232. when 54
  233. bitmap = @flarebomb_bitmaps
  234. else
  235. bitmap = nil
  236. end

  237. if @type != 5
  238. @thunder = false
  239. end

  240. if @type != 36
  241. @golden_thunder = false
  242. end

  243. if @type != 40
  244. @acid_thunder = false
  245. end

  246. if @type != 43
  247. @sepia_thunder = false
  248. end

  249. if @type != 45
  250. @real_storm = false
  251. end

  252. if @type != 46
  253. @crimson_thunder = false
  254. end

  255. for i in [url=mailto:[email protected]][email protected][/url]
  256. sprite = @sprites[i]
  257. sprite.visible = (i <= @max)
  258. if @type == 19
  259. sprite.bitmap = @bubble_bitmaps[rand(@bubble_bitmaps.size)]
  260. elsif @type == 20
  261. sprite.bitmap = @bubble2_bitmaps[rand(@bubble2_bitmaps.size)]
  262. elsif @type == 3
  263. r = rand(@snow_bitmaps.size)
  264. @info[i] = r
  265. sprite.bitmap = @snow_bitmaps[r]
  266. else
  267. sprite.bitmap = bitmap
  268. end
  269. end
  270. end
  271. #--------------------------------------------------------------------------
  272. # * Set starting point X coordinate
  273. # ox : starting point X coordinate
  274. #--------------------------------------------------------------------------
  275. def ox=(ox)
  276. return if @ox == ox;
  277. @ox = ox
  278. for sprite in @sprites
  279. sprite.ox = @ox
  280. end
  281. end
  282. #--------------------------------------------------------------------------
  283. # * Set starting point Y coordinate
  284. # oy : starting point Y coordinate
  285. #--------------------------------------------------------------------------
  286. def oy=(oy)
  287. return if @oy == oy;
  288. @oy = oy
  289. for sprite in @sprites
  290. sprite.oy = @oy
  291. end
  292. end
  293. #--------------------------------------------------------------------------
  294. # * Set maximum number of sprites
  295. # max : maximum number of sprites
  296. #--------------------------------------------------------------------------
  297. def max=(max)
  298. return if @max == max;
  299. @max = [[max, 0].max, 40].min
  300. for i in 1..40
  301. sprite = @sprites[i]
  302. sprite.visible = (i <= @max) if sprite != nil
  303. if @type == 19
  304. sprite.bitmap = @bubble_bitmaps[rand(@bubble_bitmaps.size)]
  305. elsif @type == 20
  306. sprite.bitmap = @bubble2_bitmaps[rand(@bubble2_bitmaps.size)]
  307. elsif @type == 3
  308. r = rand(@snow_bitmaps.size)
  309. @info[i] = r
  310. sprite.bitmap = @snow_bitmaps[r]
  311. end
  312. end
  313. end
  314. #--------------------------------------------------------------------------
  315. # * Frame Update
  316. #--------------------------------------------------------------------------
  317. def update
  318. return if @type == 0
  319. for i in 1..@max
  320. sprite = @sprites[i]
  321. if @type == 1 or @type == 5 or @type == 13 or @type == 27 or @type == 28 or @type == 36 or @type == 39 or @type == 40 or @type == 42 or @type == 43 or @type == 46 #rain
  322. if sprite.opacity <= 150
  323. if @current_pose[i] == 0
  324. sprite.y += @rain_bitmap.height
  325. sprite.x -= @rain_bitmap.width
  326. if @type == 1 or @type == 5
  327. sprite.bitmap = @rain_splash
  328. else
  329. sprite.bitmap = @blood_rain_splash
  330. end
  331. if @type == 27
  332. sprite.bitmap = @oil_rain_splash
  333. end
  334. if @type == 28
  335. sprite.bitmap = @golden_rain_splash
  336. end
  337. if @type == 36
  338. sprite.bitmap = @golden_rain_splash
  339. end
  340. if @type == 39
  341. sprite.bitmap = @acid_rain_splash
  342. end
  343. if @type == 40
  344. sprite.bitmap = @acid_rain_splash
  345. end
  346. if @type == 42
  347. sprite.bitmap = @sepia_rain_splash
  348. end
  349. if @type == 43
  350. sprite.bitmap = @sepia_rain_splash
  351. end
  352. if @type == 46
  353. sprite.bitmap = @blood_rain_splash
  354. end
  355. @current_pose[i] = 1
  356. end
  357. else
  358. if @current_pose[i] == 1
  359. if @type == 1 or @type == 5
  360. sprite.bitmap = @rain_bitmap
  361. else
  362. sprite.bitmap = @blood_rain_bitmap
  363. end
  364. if @type == 27
  365. sprite.bitmap = @oil_rain_bitmap
  366. end
  367. if @type == 28
  368. sprite.bitmap = @golden_rain_bitmap
  369. end
  370. if @type == 36
  371. sprite.bitmap = @golden_rain_bitmap
  372. end
  373. if @type == 39
  374. sprite.bitmap = @acid_rain_bitmap
  375. end
  376. if @type == 40
  377. sprite.bitmap = @acid_rain_bitmap
  378. end
  379. if @type == 42
  380. sprite.bitmap = @sepia_rain_bitmap
  381. end
  382. if @type == 43
  383. sprite.bitmap = @sepia_rain_bitmap
  384. end
  385. if @type == 46
  386. sprite.bitmap = @blood_rain_bitmap
  387. end
  388. @current_pose[i] = 0
  389. end
  390. sprite.x -= 2
  391. sprite.y += 16
  392. if @thunder and (rand(8000 - @max) == 0)
  393. $game_map.screen.start_flash(Color.new(255, 255, 255, 255), 5)
  394. Audio.se_play("Audio/SE/Thunder1")
  395. end
  396. if @golden_thunder and (rand(8000 - @max) == 0)
  397. $game_map.screen.start_flash(Color.new(255, 255, 255, 255), 5)
  398. Audio.se_play("Audio/SE/Thunder1")
  399. end
  400. if @acid_thunder and (rand(5000 - @max) == 0)
  401. $game_map.screen.start_flash(Color.new(255, 255, 255, 255), 5)
  402. Audio.se_play("Audio/SE/Thunder1")
  403. end
  404. if @sepia_thunder and (rand(8000 - @max) == 0)
  405. $game_map.screen.start_flash(Color.new(169, 152, 142, 255), 5)
  406. Audio.se_play("Audio/SE/Thunder1")
  407. end
  408. if @sepia_thunder and (rand(8000 - @max) == 0)
  409. $game_map.screen.start_flash(Color.new(169, 152, 142, 255), 5)
  410. Audio.se_play("Audio/SE/Thunder1")
  411. end
  412. if @crimson_thunder and (rand(8000 - @max) == 0)
  413. $game_map.screen.start_flash(Color.new(141, 9, 9, 255), 5)
  414. Audio.se_play("Audio/SE/Thunder1")
  415. end
  416. end
  417. sprite.opacity -= 8
  418. end
  419. if @type == 2 or @type == 37 or @type == 38 or @type == 41 or @type == 44 or @type == 45 or @type == 47 # storm
  420. sprite.x -= 8
  421. sprite.y += 16
  422. sprite.opacity -= 12
  423. end
  424. if @real_storm and (rand(5000 - @max) == 0)
  425. $game_map.screen.start_flash(Color.new(255, 255, 255, 255), 5)
  426. $game_map.screen.start_shake(9, 4, 5)
  427. Audio.se_play("Audio/SE/Thunder9")
  428. end
  429. if @type == 3 # snow
  430. case @info[i]
  431. when 0 # smallest flake, fall the slowest
  432. sprite.y += 1
  433. when 1
  434. sprite.y += 3
  435. when 2
  436. sprite.y += 5
  437. when 3
  438. sprite.y += 7
  439. end
  440. sprite.opacity -= 3
  441. end
  442. if @type == 4 # hail
  443. sprite.x -= 1
  444. sprite.y += 18
  445. sprite.opacity -= 15
  446. end
  447. if @type == 6 # falling autumn leaves
  448. @count = rand(20)
  449. if @count == 0
  450. sprite.bitmap = @autumn_leaf_bitmaps[@current_pose[i]]
  451. @current_pose[i] = (@current_pose[i] + 1) % @autumn_leaf_bitmaps.size
  452. end
  453. sprite.x -= 1
  454. sprite.y += 1
  455. end
  456. if @type == 7 # blowing autumn leaves
  457. @count = rand(20)
  458. if @count == 0
  459. sprite.bitmap = @autumn_leaf_bitmaps[@current_pose[i]]
  460. @current_pose[i] = (@current_pose[i] + 1) % @autumn_leaf_bitmaps.size
  461. end
  462. sprite.x -= 10
  463. sprite.y += (rand(4) - 2)
  464. end
  465. if @type == 8 # swirling autumn leaves
  466. @count = rand(20)
  467. if @count == 0
  468. sprite.bitmap = @autumn_leaf_bitmaps[@current_pose[i]]
  469. @current_pose[i] = (@current_pose[i] + 1) % @autumn_leaf_bitmaps.size
  470. end
  471. if @info[i] != 0
  472. if @info[i] >= 1 and @info[i] <= 10
  473. sprite.x -= 3
  474. sprite.y -= 1
  475. elsif @info[i] >= 11 and @info[i] <= 16
  476. sprite.x -= 1
  477. sprite.y -= 2
  478. elsif @info[i] >= 17 and @info[i] <= 20
  479. sprite.y -= 3
  480. elsif @info[i] >= 21 and @info[i] <= 30
  481. sprite.y -= 2
  482. sprite.x += 1
  483. elsif @info[i] >= 31 and @info[i] <= 36
  484. sprite.y -= 1
  485. sprite.x += 3
  486. elsif @info[i] >= 37 and @info[i] <= 40
  487. sprite.x += 5
  488. elsif @info[i] >= 41 and @info[i] <= 46
  489. sprite.y += 1
  490. sprite.x += 3
  491. elsif @info[i] >= 47 and @info[i] <= 58
  492. sprite.y += 2
  493. sprite.x += 1
  494. elsif @info[i] >= 59 and @info[i] <= 64
  495. sprite.y += 3
  496. elsif @info[i] >= 65 and @info[i] <= 70
  497. sprite.x -= 1
  498. sprite.y += 2
  499. elsif @info[i] >= 71 and @info[i] <= 81
  500. sprite.x -= 3
  501. sprite.y += 1
  502. elsif @info[i] >= 82 and @info[i] <= 87
  503. sprite.x -= 5
  504. end
  505. @info[i] = (@info[i] + 1) % 88
  506. else
  507. if rand(200) == 0
  508. @info[i] = 1
  509. end
  510. sprite.x -= 5
  511. sprite.y += 1
  512. end
  513. end
  514. if @type == 49 # falling red maple leaves
  515. @count = rand(20)
  516. if @count == 0
  517. sprite.bitmap = @redmaple_leaf_bitmaps[@current_pose[i]]
  518. @current_pose[i] = (@current_pose[i] + 1) % @redmaple_leaf_bitmaps.size
  519. end
  520. sprite.x -= 1
  521. sprite.y += 1
  522. end
  523. if @type == 50 # blowing red maple leaves
  524. @count = rand(20)
  525. if @count == 0
  526. sprite.bitmap = @redmaple_leaf_bitmaps[@current_pose[i]]
  527. @current_pose[i] = (@current_pose[i] + 1) % @redmaple_leaf_bitmaps.size
  528. end
  529. sprite.x -= 10
  530. sprite.y += (rand(4) - 2)
  531. end
  532. if @type == 51 # swirling red maple leaves
  533. @count = rand(20)
  534. if @count == 0
  535. sprite.bitmap = @redmaple_leaf_bitmaps[@current_pose[i]]
  536. @current_pose[i] = (@current_pose[i] + 1) % @redmaple_leaf_bitmaps.size
  537. end
  538. if @info[i] != 0
  539. if @info[i] >= 1 and @info[i] <= 10
  540. sprite.x -= 3
  541. sprite.y -= 1
  542. elsif @info[i] >= 11 and @info[i] <= 16
  543. sprite.x -= 1
  544. sprite.y -= 2
  545. elsif @info[i] >= 17 and @info[i] <= 20
  546. sprite.y -= 3
  547. elsif @info[i] >= 21 and @info[i] <= 30
  548. sprite.y -= 2
  549. sprite.x += 1
  550. elsif @info[i] >= 31 and @info[i] <= 36
  551. sprite.y -= 1
  552. sprite.x += 3
  553. elsif @info[i] >= 37 and @info[i] <= 40
  554. sprite.x += 5
  555. elsif @info[i] >= 41 and @info[i] <= 46
  556. sprite.y += 1
  557. sprite.x += 3
  558. elsif @info[i] >= 47 and @info[i] <= 58
  559. sprite.y += 2
  560. sprite.x += 1
  561. elsif @info[i] >= 59 and @info[i] <= 64
  562. sprite.y += 3
  563. elsif @info[i] >= 65 and @info[i] <= 70
  564. sprite.x -= 1
  565. sprite.y += 2
  566. elsif @info[i] >= 71 and @info[i] <= 81
  567. sprite.x -= 3
  568. sprite.y += 1
  569. elsif @info[i] >= 82 and @info[i] <= 87
  570. sprite.x -= 5
  571. end
  572. @info[i] = (@info[i] + 1) % 88
  573. else
  574. if rand(200) == 0
  575. @info[i] = 1
  576. end
  577. sprite.x -= 5
  578. sprite.y += 1
  579. end
  580. end
  581. if @type == 9 # falling green leaves
  582. if @countarray[i] == 0
  583. @current_pose[i] = (@current_pose[i] + 1) % @green_leaf_bitmaps.size
  584. sprite.bitmap = @green_leaf_bitmaps[@current_pose[i]]
  585. @countarray[i] = rand(15)
  586. end
  587. @countarray[i] = (@countarray[i] + 1) % 15
  588. sprite.y += 1
  589. end
  590. if @type == 10 # sakura petals
  591. if @info[i] < 25
  592. sprite.x -= 1
  593. else
  594. sprite.x += 1
  595. end
  596. @info[i] = (@info[i] + 1) % 50
  597. sprite.y += 1
  598. end
  599. if @type == 11 # rose petals
  600. @count = rand(20)
  601. if @count == 0
  602. sprite.bitmap = @rose_bitmaps[@current_pose[i]]
  603. @current_pose[i] = (@current_pose[i] + 1) % @rose_bitmaps.size
  604. end
  605. if @info[i] % 2 == 0
  606. if @info[i] < 10
  607. sprite.x -= 1
  608. elsif
  609. sprite.x += 1
  610. end
  611. end
  612. sprite.y += 1
  613. end
  614. if @type == 12 # feathers
  615. if @countarray[i] == 0
  616. @current_pose[i] = (@current_pose[i] + 1) % @feather_bitmaps.size
  617. sprite.bitmap = @feather_bitmaps[@current_pose[i]]
  618. end
  619. @countarray[i] = (@countarray[i] + 1) % 15
  620. if rand(100) == 0
  621. sprite.x -= 1
  622. end
  623. if rand(100) == 0
  624. sprite.y -= 1
  625. end
  626. if @info[i] < 50
  627. if rand(2) == 0
  628. sprite.x -= 1
  629. else
  630. sprite.y -= 1
  631. end
  632. else
  633. if rand(2) == 0
  634. sprite.x += 1
  635. else
  636. sprite.y += 1
  637. end
  638. end
  639. @info[i] = (@info[i] + 1) % 100
  640. end

  641. if @type == 30 # starburst
  642. if @countarray[i] == 0
  643. @current_pose[i] = (@current_pose[i] + 1) % @starburst_bitmaps.size
  644. sprite.bitmap = @starburst_bitmaps[@current_pose[i]]
  645. end
  646. @countarray[i] = (@countarray[i] + 1) % 15
  647. sprite.y += 1
  648. sprite.opacity -= 1
  649. end
  650. if @type == 31 # starburst up
  651. if @countarray[i] == 0
  652. @current_pose[i] = (@current_pose[i] + 1) % @starburst_bitmaps.size
  653. sprite.bitmap = @starburst_bitmaps[@current_pose[i]]
  654. end
  655. @countarray[i] = (@countarray[i] + 1) % 15
  656. sprite.y -= 1
  657. sprite.opacity -= 1
  658. end
  659. if @type == 32 # starburst up
  660. if @countarray[i] == 0
  661. @current_pose[i] = (@current_pose[i] + 1) % @starburst_bitmaps.size
  662. sprite.bitmap = @starburst_bitmaps[@current_pose[i]]
  663. end
  664. @countarray[i] = (@countarray[i] + 1) % 15
  665. sprite.x -= 2
  666. sprite.y += 8
  667. sprite.opacity -= 1
  668. end

  669. if @type == 33 # mono-starburst
  670. if @countarray[i] == 0
  671. @current_pose[i] = (@current_pose[i] + 1) % @monostarburst_bitmaps.size
  672. sprite.bitmap = @monostarburst_bitmaps[@current_pose[i]]
  673. end
  674. @countarray[i] = (@countarray[i] + 1) % 15
  675. sprite.y += 1
  676. sprite.opacity -= 1
  677. end
  678. if @type == 34 # mono-starburst up
  679. if @countarray[i] == 0
  680. @current_pose[i] = (@current_pose[i] + 1) % @monostarburst_bitmaps.size
  681. sprite.bitmap = @monostarburst_bitmaps[@current_pose[i]]
  682. end
  683. @countarray[i] = (@countarray[i] + 1) % 15
  684. sprite.y -= 1
  685. sprite.opacity -= 1
  686. end
  687. if @type == 35 # mono-starburst rain
  688. if @countarray[i] == 0
  689. @current_pose[i] = (@current_pose[i] + 1) % @monostarburst_bitmaps.size
  690. sprite.bitmap = @monostarburst_bitmaps[@current_pose[i]]
  691. end
  692. @countarray[i] = (@countarray[i] + 1) % 15
  693. sprite.x -= 2
  694. sprite.y += 8
  695. sprite.opacity -= 1
  696. end
  697. if @type == 29 # meteors
  698. if @countarray[i] > 0
  699. if rand(20) == 0
  700. sprite.bitmap = @flame_impact_bitmap
  701. @countarray[i] = -5
  702. else
  703. sprite.x -= 6
  704. sprite.y += 10
  705. end
  706. else
  707. @countarray[i] += 1
  708. if @countarray[i] == 0
  709. sprite.bitmap = @flame_meteor_bitmap
  710. sprite.opacity = 0
  711. @count_array = 1
  712. end
  713. end
  714. end
  715. if @type == 18 # ash
  716. sprite.y += 2
  717. case @countarray[i] % 3
  718. when 0
  719. sprite.x -= 1
  720. when 1
  721. sprite.x += 1
  722. end
  723. end

  724. if @type == 14 # sparkles
  725. if @countarray[i] == 0
  726. @current_pose[i] = (@current_pose[i] + 1) % @sparkle_bitmaps.size
  727. sprite.bitmap = @sparkle_bitmaps[@current_pose[i]]
  728. end
  729. @countarray[i] = (@countarray[i] + 1) % 15
  730. sprite.y += 1
  731. sprite.opacity -= 1
  732. end
  733. if @type == 15 # user-defined
  734. if $WEATHER_UPDATE
  735. update_user_defined
  736. $WEATHER_UPDATE = false
  737. end
  738. if $WEATHER_ANIMATED and @countarray[i] == 0
  739. @current_pose[i] = (@current_pose[i] + 1) % @user_bitmaps.size
  740. sprite.bitmap = @user_bitmaps[@current_pose[i]]
  741. end
  742. sprite.x += $WEATHER_X
  743. sprite.y += $WEATHER_Y
  744. sprite.opacity -= $WEATHER_FADE
  745. end
  746. if @type == 16 # blowing snow
  747. sprite.x -= 10
  748. sprite.y += 6
  749. sprite.opacity -= 4
  750. end
  751. if @type == 48 # blood blizzard
  752. sprite.x -= 10
  753. sprite.y += 6
  754. sprite.opacity -= 4
  755. end
  756. if @type == 52 # water bombs
  757. if @countarray[i] > 0
  758. if rand(20) == 0
  759. sprite.bitmap = @waterbomb_impact_bitmap
  760. @countarray[i] = -5
  761. else
  762. sprite.x -= 3
  763. sprite.y += 5
  764. end
  765. else
  766. @countarray[i] += 1
  767. if @countarray[i] == 0
  768. sprite.bitmap = @waterbomb_bitmap
  769. sprite.opacity = 0
  770. @count_array = 1
  771. end
  772. end
  773. end
  774. if @type == 53 # icy bombs
  775. if @countarray[i] > 0
  776. if rand(20) == 0
  777. sprite.bitmap = @icybomb_impact_bitmap
  778. @countarray[i] = -5
  779. else
  780. sprite.x -= 3
  781. sprite.y += 5
  782. end
  783. else
  784. @countarray[i] += 1
  785. if @countarray[i] == 0
  786. sprite.bitmap = @icybomb_bitmap
  787. sprite.opacity = 0
  788. @count_array = 1
  789. end
  790. end
  791. end
  792. if @type == 54 # flare bombs
  793. if @countarray[i] > 0
  794. if rand(20) == 0
  795. sprite.bitmap = @flarebomb_impact_bitmap
  796. @countarray[i] = -5
  797. else
  798. sprite.x -= 3
  799. sprite.y += 5
  800. end
  801. else
  802. @countarray[i] += 1
  803. if @countarray[i] == 0
  804. sprite.bitmap = @flarebomb_bitmap
  805. sprite.opacity = 0
  806. @count_array = 1
  807. end
  808. end
  809. end
  810. if @type == 17 # meteors
  811. if @countarray[i] > 0
  812. if rand(20) == 0
  813. sprite.bitmap = @impact_bitmap
  814. @countarray[i] = -5
  815. else
  816. sprite.x -= 6
  817. sprite.y += 10
  818. end
  819. else
  820. @countarray[i] += 1
  821. if @countarray[i] == 0
  822. sprite.bitmap = @meteor_bitmap
  823. sprite.opacity = 0
  824. @count_array = 1
  825. end
  826. end
  827. end
  828. if @type == 18 # ash
  829. sprite.y += 2
  830. case @countarray[i] % 3
  831. when 0
  832. sprite.x -= 1
  833. when 1
  834. sprite.x += 1
  835. end
  836. end
  837. if @type == 19 or @type == 20 # bubbles
  838. switch = rand(75) + rand(75) + 1
  839. if @info[i] < switch / 2
  840. sprite.x -= 1
  841. else
  842. sprite.x += 1
  843. end
  844. @info[i] = (@info[i] + 1) % switch
  845. sprite.y -= 1
  846. if switch % 2 == 0
  847. sprite.opacity -= 1
  848. end
  849. end
  850. if @type == 21 # sparkles up
  851. if @countarray[i] == 0
  852. @current_pose[i] = (@current_pose[i] + 1) % @sparkle_bitmaps.size
  853. sprite.bitmap = @sparkle_bitmaps[@current_pose[i]]
  854. end
  855. @countarray[i] = (@countarray[i] + 1) % 15
  856. sprite.y -= 1
  857. sprite.opacity -= 1
  858. end
  859. if @type == 24 # falling yellow leaves
  860. @count = rand(20)
  861. if @count == 0
  862. sprite.bitmap = @yellow_leaf_bitmaps[@current_pose[i]]
  863. @current_pose[i] = (@current_pose[i] + 1) % @yellow_leaf_bitmaps.size
  864. end
  865. sprite.x -= 1
  866. sprite.y += 1
  867. end
  868. if @type == 22 # blowing green leaves
  869. @count = rand(20)
  870. if @count == 0
  871. sprite.bitmap = @green_leaf_bitmaps[@current_pose[i]]
  872. @current_pose[i] = (@current_pose[i] + 1) % @green_leaf_bitmaps.size
  873. end
  874. sprite.x -= 10
  875. sprite.y += (rand(4) - 2)
  876. end
  877. if @type == 23 # swirling green leaves
  878. @count = rand(20)
  879. if @count == 0
  880. sprite.bitmap = @green_leaf_bitmaps[@current_pose[i]]
  881. @current_pose[i] = (@current_pose[i] + 1) % @green_leaf_bitmaps.size
  882. end
  883. if @info[i] != 0
  884. if @info[i] >= 1 and @info[i] <= 10
  885. sprite.x -= 3
  886. sprite.y -= 1
  887. elsif @info[i] >= 11 and @info[i] <= 16
  888. sprite.x -= 1
  889. sprite.y -= 2
  890. elsif @info[i] >= 17 and @info[i] <= 20
  891. sprite.y -= 3
  892. elsif @info[i] >= 21 and @info[i] <= 30
  893. sprite.y -= 2
  894. sprite.x += 1
  895. elsif @info[i] >= 31 and @info[i] <= 36
  896. sprite.y -= 1
  897. sprite.x += 3
  898. elsif @info[i] >= 37 and @info[i] <= 40
  899. sprite.x += 5
  900. elsif @info[i] >= 41 and @info[i] <= 46
  901. sprite.y += 1
  902. sprite.x += 3
  903. elsif @info[i] >= 47 and @info[i] <= 58
  904. sprite.y += 2
  905. sprite.x += 1
  906. elsif @info[i] >= 59 and @info[i] <= 64
  907. sprite.y += 3
  908. elsif @info[i] >= 65 and @info[i] <= 70
  909. sprite.x -= 1
  910. sprite.y += 2
  911. elsif @info[i] >= 71 and @info[i] <= 81
  912. sprite.x -= 3
  913. sprite.y += 1
  914. elsif @info[i] >= 82 and @info[i] <= 87
  915. sprite.x -= 5
  916. end
  917. @info[i] = (@info[i] + 1) % 88
  918. else
  919. if rand(200) == 0
  920. @info[i] = 1
  921. end
  922. sprite.x -= 5
  923. sprite.y += 1
  924. end
  925. end
  926. if @type == 24 # falling yellow leaves
  927. @count = rand(20)
  928. if @count == 0
  929. sprite.bitmap = @yellow_leaf_bitmaps[@current_pose[i]]
  930. @current_pose[i] = (@current_pose[i] + 1) % @yellow_leaf_bitmaps.size
  931. end
  932. sprite.x -= 1
  933. sprite.y += 1
  934. end
  935. if @type == 25 # blowing yellow leaves
  936. @count = rand(20)
  937. if @count == 0
  938. sprite.bitmap = @yellow_leaf_bitmaps[@current_pose[i]]
  939. @current_pose[i] = (@current_pose[i] + 1) % @yellow_leaf_bitmaps.size
  940. end
  941. sprite.x -= 10
  942. sprite.y += (rand(4) - 2)
  943. end
  944. if @type == 26 # swirling yellow leaves
  945. @count = rand(20)
  946. if @count == 0
  947. sprite.bitmap = @yellow_leaf_bitmaps[@current_pose[i]]
  948. @current_pose[i] = (@current_pose[i] + 1) % @yellow_leaf_bitmaps.size
  949. end
  950. if @info[i] != 0
  951. if @info[i] >= 1 and @info[i] <= 10
  952. sprite.x -= 3
  953. sprite.y -= 1
  954. elsif @info[i] >= 11 and @info[i] <= 16
  955. sprite.x -= 1
  956. sprite.y -= 2
  957. elsif @info[i] >= 17 and @info[i] <= 20
  958. sprite.y -= 3
  959. elsif @info[i] >= 21 and @info[i] <= 30
  960. sprite.y -= 2
  961. sprite.x += 1
  962. elsif @info[i] >= 31 and @info[i] <= 36
  963. sprite.y -= 1
  964. sprite.x += 3
  965. elsif @info[i] >= 37 and @info[i] <= 40
  966. sprite.x += 5
  967. elsif @info[i] >= 41 and @info[i] <= 46
  968. sprite.y += 1
  969. sprite.x += 3
  970. elsif @info[i] >= 47 and @info[i] <= 58
  971. sprite.y += 2
  972. sprite.x += 1
  973. elsif @info[i] >= 59 and @info[i] <= 64
  974. sprite.y += 3
  975. elsif @info[i] >= 65 and @info[i] <= 70
  976. sprite.x -= 1
  977. sprite.y += 2
  978. elsif @info[i] >= 71 and @info[i] <= 81
  979. sprite.x -= 3
  980. sprite.y += 1
  981. elsif @info[i] >= 82 and @info[i] <= 87
  982. sprite.x -= 5
  983. end
  984. @info[i] = (@info[i] + 1) % 88
  985. else
  986. if rand(200) == 0
  987. @info[i] = 1
  988. end
  989. sprite.x -= 5
  990. sprite.y += 1
  991. end
  992. end

  993. x = sprite.x - @ox
  994. y = sprite.y - @oy
  995. if sprite.opacity < 64 or x < -50 or x > 750 or y < -300 or y > 500
  996. sprite.x = rand(800) - 50 + @ox
  997. sprite.y = rand(800) - 200 + @oy
  998. sprite.opacity = 255
  999. end
  1000. end
  1001. end
  1002. #-------------------------------------------------------------------------------
  1003. def make_bitmaps
  1004. color1 = Color.new(255, 255, 255, 255)
  1005. color2 = Color.new(255, 255, 255, 128)
  1006. @rain_bitmap = Bitmap.new(7, 56)
  1007. for i in 0..6
  1008. @rain_bitmap.fill_rect(6-i, i*8, 1, 8, color1)
  1009. end
  1010. @rain_splash = Bitmap.new(8, 5)
  1011. @rain_splash.fill_rect(1, 0, 6, 1, color2)
  1012. @rain_splash.fill_rect(1, 4, 6, 1, color2)
  1013. @rain_splash.fill_rect(0, 1, 1, 3, color2)
  1014. @rain_splash.fill_rect(7, 1, 1, 3, color2)
  1015. @rain_splash.set_pixel(1, 0, color1)
  1016. @rain_splash.set_pixel(0, 1, color1)
  1017. #-------------------------------------------------------------------------------
  1018. @storm_bitmap = Bitmap.new(34, 64)
  1019. for i in 0..31
  1020. @storm_bitmap.fill_rect(33-i, i*2, 1, 2, color2)
  1021. @storm_bitmap.fill_rect(32-i, i*2, 1, 2, color1)
  1022. @storm_bitmap.fill_rect(31-i, i*2, 1, 2, color2)
  1023. end
  1024. #-------------------------------------------------------------------------------
  1025. @snow_bitmap = Bitmap.new(6, 6)
  1026. @snow_bitmap.fill_rect(0, 1, 6, 4, color2)
  1027. @snow_bitmap.fill_rect(1, 0, 4, 6, color2)
  1028. @snow_bitmap.fill_rect(1, 2, 4, 2, color1)
  1029. @snow_bitmap.fill_rect(2, 1, 2, 4, color1)
  1030. @sprites = []
  1031. @snow_bitmaps = []

  1032. color3 = Color.new(255, 255, 255, 204)
  1033. @snow_bitmaps[0] = Bitmap.new(3, 3)
  1034. @snow_bitmaps[0].fill_rect(0, 0, 3, 3, color2)
  1035. @snow_bitmaps[0].fill_rect(0, 1, 3, 1, color3)
  1036. @snow_bitmaps[0].fill_rect(1, 0, 1, 3, color3)
  1037. @snow_bitmaps[0].set_pixel(1, 1, color1)

  1038. @snow_bitmaps[1] = Bitmap.new(4, 4)
  1039. @snow_bitmaps[1].fill_rect(0, 1, 4, 2, color2)
  1040. @snow_bitmaps[1].fill_rect(1, 0, 2, 4, color2)
  1041. @snow_bitmaps[1].fill_rect(1, 1, 2, 2, color1)

  1042. @snow_bitmaps[2] = Bitmap.new(5, 5)
  1043. @snow_bitmaps[1].fill_rect(0, 1, 5, 3, color3)
  1044. @snow_bitmaps[1].fill_rect(1, 0, 3, 5, color3)
  1045. @snow_bitmaps[1].fill_rect(1, 1, 3, 3, color2)
  1046. @snow_bitmaps[1].fill_rect(2, 1, 3, 1, color1)
  1047. @snow_bitmaps[1].fill_rect(1, 2, 1, 3, color1)

  1048. @snow_bitmaps[3] = Bitmap.new(7, 7)
  1049. @snow_bitmaps[1].fill_rect(1, 1, 5, 5, color3)
  1050. @snow_bitmaps[1].fill_rect(2, 0, 7, 3, color3)
  1051. @snow_bitmaps[1].fill_rect(0, 2, 3, 7, color3)
  1052. @snow_bitmaps[1].fill_rect(2, 1, 5, 3, color2)
  1053. @snow_bitmaps[1].fill_rect(1, 2, 3, 5, color2)
  1054. @snow_bitmaps[1].fill_rect(2, 2, 3, 3, color1)
  1055. @snow_bitmaps[1].fill_rect(3, 1, 5, 1, color1)
  1056. @snow_bitmaps[1].fill_rect(1, 3, 1, 5, color1)
  1057. #-------------------------------------------------------------------------------
  1058. #hail

  1059. blueGrey = Color.new(215, 227, 227, 150)
  1060. grey = Color.new(214, 217, 217, 150)
  1061. lightGrey = Color.new(233, 233, 233, 250)
  1062. lightBlue = Color.new(222, 239, 243, 250)

  1063. @hail_bitmap = Bitmap.new(4, 4)
  1064. @hail_bitmap.fill_rect(1, 0, 2, 1, blueGrey)
  1065. @hail_bitmap.fill_rect(0, 1, 1, 2, blueGrey)
  1066. @hail_bitmap.fill_rect(3, 1, 1, 2, grey)
  1067. @hail_bitmap.fill_rect(1, 3, 2, 1, grey)
  1068. @hail_bitmap.fill_rect(1, 1, 2, 2, lightGrey)
  1069. @hail_bitmap.set_pixel(1, 1, lightBlue)

  1070. #-------------------------------------------------------------------------------
  1071. #sakura petals

  1072. color3 = Color.new(255, 167, 192, 255) # light pink
  1073. color4 = Color.new(213, 106, 136, 255) # dark pink
  1074. @petal_bitmap = Bitmap.new(4, 4) #This creates a new bitmap that is 4 x 4 pixels
  1075. @petal_bitmap.fill_rect(0, 3, 1, 1, color3) # this makes a 1x1 pixel "rectangle" at the 0, 3 pixel of the image (upper left corner is 0, 0)
  1076. @petal_bitmap.fill_rect(1, 2, 1, 1, color3)
  1077. @petal_bitmap.fill_rect(2, 1, 1, 1, color3)
  1078. @petal_bitmap.fill_rect(3, 0, 1, 1, color3)
  1079. @petal_bitmap.fill_rect(1, 3, 1, 1, color4)
  1080. @petal_bitmap.fill_rect(2, 2, 1, 1, color4)
  1081. @petal_bitmap.fill_rect(3, 1, 1, 1, color4)

  1082. #-------------------------------------------------------------------------------
  1083. #autumn brown leaves

  1084. brightOrange = Color.new(248, 88, 0, 255)
  1085. orangeBrown = Color.new(144, 80, 56, 255)
  1086. burntRed = Color.new(152, 0, 0, 255)
  1087. paleOrange = Color.new(232, 160, 128, 255)
  1088. darkBrown = Color.new(72, 40, 0, 255)

  1089. @autumn_leaf_bitmaps = []

  1090. @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  1091. # draw the first of the leaf1 bitmaps
  1092. @autumn_leaf_bitmaps[0].set_pixel(5, 1, orangeBrown)
  1093. @autumn_leaf_bitmaps[0].set_pixel(6, 1, brightOrange)
  1094. @autumn_leaf_bitmaps[0].set_pixel(7, 1, paleOrange)
  1095. @autumn_leaf_bitmaps[0].set_pixel(3, 2, orangeBrown)
  1096. @autumn_leaf_bitmaps[0].fill_rect(4, 2, 2, 1, brightOrange)
  1097. @autumn_leaf_bitmaps[0].set_pixel(6, 2, paleOrange)
  1098. @autumn_leaf_bitmaps[0].set_pixel(2, 3, orangeBrown)
  1099. @autumn_leaf_bitmaps[0].set_pixel(3, 3, brightOrange)
  1100. @autumn_leaf_bitmaps[0].fill_rect(4, 3, 2, 1, paleOrange)
  1101. @autumn_leaf_bitmaps[0].set_pixel(1, 4, orangeBrown)
  1102. @autumn_leaf_bitmaps[0].set_pixel(2, 4, brightOrange)
  1103. @autumn_leaf_bitmaps[0].set_pixel(3, 4, paleOrange)
  1104. @autumn_leaf_bitmaps[0].set_pixel(1, 5, brightOrange)
  1105. @autumn_leaf_bitmaps[0].set_pixel(2, 5, paleOrange)
  1106. @autumn_leaf_bitmaps[0].set_pixel(0, 6, orangeBrown)
  1107. @autumn_leaf_bitmaps[0].set_pixel(1, 6, paleOrange)
  1108. @autumn_leaf_bitmaps[0].set_pixel(0, 7, paleOrange)

  1109. # draw the 2nd of the leaf1 bitmaps
  1110. @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  1111. @autumn_leaf_bitmaps[1].set_pixel(3, 0, brightOrange)
  1112. @autumn_leaf_bitmaps[1].set_pixel(7, 0, brightOrange)
  1113. @autumn_leaf_bitmaps[1].set_pixel(3, 1, orangeBrown)
  1114. @autumn_leaf_bitmaps[1].set_pixel(4, 1, burntRed)
  1115. @autumn_leaf_bitmaps[1].set_pixel(6, 1, brightOrange)
  1116. @autumn_leaf_bitmaps[1].set_pixel(0, 2, paleOrange)
  1117. @autumn_leaf_bitmaps[1].set_pixel(1, 2, brightOrange)
  1118. @autumn_leaf_bitmaps[1].set_pixel(2, 2, orangeBrown)
  1119. @autumn_leaf_bitmaps[1].set_pixel(3, 2, burntRed)
  1120. @autumn_leaf_bitmaps[1].set_pixel(4, 2, orangeBrown)
  1121. @autumn_leaf_bitmaps[1].set_pixel(5, 2, brightOrange)
  1122. @autumn_leaf_bitmaps[1].fill_rect(1, 3, 3, 1, orangeBrown)
  1123. @autumn_leaf_bitmaps[1].fill_rect(4, 3, 2, 1, brightOrange)
  1124. @autumn_leaf_bitmaps[1].set_pixel(6, 3, orangeBrown)
  1125. @autumn_leaf_bitmaps[1].set_pixel(2, 4, burntRed)
  1126. @autumn_leaf_bitmaps[1].fill_rect(3, 4, 3, 1, brightOrange)
  1127. @autumn_leaf_bitmaps[1].set_pixel(6, 4, burntRed)
  1128. @autumn_leaf_bitmaps[1].set_pixel(7, 4, darkBrown)
  1129. @autumn_leaf_bitmaps[1].set_pixel(1, 5, orangeBrown)
  1130. @autumn_leaf_bitmaps[1].fill_rect(2, 5, 2, 1, brightOrange)
  1131. @autumn_leaf_bitmaps[1].set_pixel(4, 5, orangeBrown)
  1132. @autumn_leaf_bitmaps[1].set_pixel(5, 5, burntRed)
  1133. @autumn_leaf_bitmaps[1].fill_rect(1, 6, 2, 1, brightOrange)
  1134. @autumn_leaf_bitmaps[1].fill_rect(4, 6, 2, 1, burntRed)
  1135. @autumn_leaf_bitmaps[1].set_pixel(0, 7, brightOrange)
  1136. @autumn_leaf_bitmaps[1].set_pixel(5, 7, darkBrown)

  1137. # draw the 3rd of the leaf1 bitmaps
  1138. @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  1139. @autumn_leaf_bitmaps[2].set_pixel(7, 1, paleOrange)
  1140. @autumn_leaf_bitmaps[2].set_pixel(6, 2, paleOrange)
  1141. @autumn_leaf_bitmaps[2].set_pixel(7, 2, orangeBrown)
  1142. @autumn_leaf_bitmaps[2].set_pixel(5, 3, paleOrange)
  1143. @autumn_leaf_bitmaps[2].set_pixel(6, 3, brightOrange)
  1144. @autumn_leaf_bitmaps[2].set_pixel(4, 4, paleOrange)
  1145. @autumn_leaf_bitmaps[2].set_pixel(5, 4, brightOrange)
  1146. @autumn_leaf_bitmaps[2].set_pixel(6, 4, orangeBrown)
  1147. @autumn_leaf_bitmaps[2].fill_rect(2, 5, 2, 1, paleOrange)
  1148. @autumn_leaf_bitmaps[2].set_pixel(4, 5, brightOrange)
  1149. @autumn_leaf_bitmaps[2].set_pixel(5, 5, orangeBrown)
  1150. @autumn_leaf_bitmaps[2].set_pixel(1, 6, paleOrange)
  1151. @autumn_leaf_bitmaps[2].fill_rect(2, 6, 2, 1, brightOrange)
  1152. @autumn_leaf_bitmaps[2].set_pixel(4, 6, orangeBrown)
  1153. @autumn_leaf_bitmaps[2].set_pixel(0, 7, paleOrange)
  1154. @autumn_leaf_bitmaps[2].set_pixel(1, 7, brightOrange)
  1155. @autumn_leaf_bitmaps[2].set_pixel(2, 7, orangeBrown)

  1156. # draw the 4th of the leaf1 bitmaps
  1157. @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  1158. @autumn_leaf_bitmaps[3].set_pixel(3, 0, brightOrange)
  1159. @autumn_leaf_bitmaps[3].set_pixel(7, 0, brightOrange)
  1160. @autumn_leaf_bitmaps[3].set_pixel(3, 1, orangeBrown)
  1161. @autumn_leaf_bitmaps[3].set_pixel(4, 1, burntRed)
  1162. @autumn_leaf_bitmaps[3].set_pixel(6, 1, brightOrange)
  1163. @autumn_leaf_bitmaps[3].set_pixel(0, 2, paleOrange)
  1164. @autumn_leaf_bitmaps[3].set_pixel(1, 2, brightOrange)
  1165. @autumn_leaf_bitmaps[3].set_pixel(2, 2, orangeBrown)
  1166. @autumn_leaf_bitmaps[3].set_pixel(3, 2, burntRed)
  1167. @autumn_leaf_bitmaps[3].set_pixel(4, 2, orangeBrown)
  1168. @autumn_leaf_bitmaps[3].set_pixel(5, 2, brightOrange)
  1169. @autumn_leaf_bitmaps[3].fill_rect(1, 3, 3, 1, orangeBrown)
  1170. @autumn_leaf_bitmaps[3].fill_rect(4, 3, 2, 1, brightOrange)
  1171. @autumn_leaf_bitmaps[3].set_pixel(6, 3, orangeBrown)
  1172. @autumn_leaf_bitmaps[3].set_pixel(2, 4, burntRed)
  1173. @autumn_leaf_bitmaps[3].fill_rect(3, 4, 3, 1, brightOrange)
  1174. @autumn_leaf_bitmaps[3].set_pixel(6, 4, burntRed)
  1175. @autumn_leaf_bitmaps[3].set_pixel(7, 4, darkBrown)
  1176. @autumn_leaf_bitmaps[3].set_pixel(1, 5, orangeBrown)
  1177. @autumn_leaf_bitmaps[3].fill_rect(2, 5, 2, 1, brightOrange)
  1178. @autumn_leaf_bitmaps[3].set_pixel(4, 5, orangeBrown)
  1179. @autumn_leaf_bitmaps[3].set_pixel(5, 5, burntRed)
  1180. @autumn_leaf_bitmaps[3].fill_rect(1, 6, 2, 1, brightOrange)
  1181. @autumn_leaf_bitmaps[3].fill_rect(4, 6, 2, 1, burntRed)
  1182. @autumn_leaf_bitmaps[3].set_pixel(0, 7, brightOrange)
  1183. @autumn_leaf_bitmaps[3].set_pixel(5, 7, darkBrown)

  1184. #-------------------------------------------------------------------------------

  1185. # Red maple leaves

  1186. @redmaple_leaf_bitmaps = []
  1187. brightRed = Color.new(255, 0, 0, 255)
  1188. midRed = Color.new(179, 17, 17, 255)
  1189. darkRed = Color.new(141, 9, 9, 255)

  1190. @redmaple_leaf_bitmaps.push(Bitmap.new(8, 8))
  1191. # draw the first of the red maple leaves bitmaps
  1192. @redmaple_leaf_bitmaps[0].set_pixel(5, 1, darkRed)
  1193. @redmaple_leaf_bitmaps[0].set_pixel(6, 1, brightRed)
  1194. @redmaple_leaf_bitmaps[0].set_pixel(7, 1, midRed)
  1195. @redmaple_leaf_bitmaps[0].set_pixel(3, 2, darkRed)
  1196. @redmaple_leaf_bitmaps[0].fill_rect(4, 2, 2, 1, brightRed)
  1197. @redmaple_leaf_bitmaps[0].set_pixel(6, 2, midRed)
  1198. @redmaple_leaf_bitmaps[0].set_pixel(2, 3, darkRed)
  1199. @redmaple_leaf_bitmaps[0].set_pixel(3, 3, brightRed)
  1200. @redmaple_leaf_bitmaps[0].fill_rect(4, 3, 2, 1, midRed)
  1201. @redmaple_leaf_bitmaps[0].set_pixel(1, 4, brightRed)
  1202. @redmaple_leaf_bitmaps[0].set_pixel(2, 4, brightRed)
  1203. @redmaple_leaf_bitmaps[0].set_pixel(3, 4, midRed)
  1204. @redmaple_leaf_bitmaps[0].set_pixel(1, 5, brightRed)
  1205. @redmaple_leaf_bitmaps[0].set_pixel(2, 5, midRed)
  1206. @redmaple_leaf_bitmaps[0].set_pixel(0, 6, darkRed)
  1207. @redmaple_leaf_bitmaps[0].set_pixel(1, 6, midRed)
  1208. @redmaple_leaf_bitmaps[0].set_pixel(0, 7, midRed)

  1209. # draw the 2nd of the red maple leaves bitmaps
  1210. @redmaple_leaf_bitmaps.push(Bitmap.new(8, 8))
  1211. @redmaple_leaf_bitmaps[1].set_pixel(3, 0, brightRed)
  1212. @redmaple_leaf_bitmaps[1].set_pixel(7, 0, brightRed)
  1213. @redmaple_leaf_bitmaps[1].set_pixel(3, 1, darkRed)
  1214. @redmaple_leaf_bitmaps[1].set_pixel(4, 1, burntRed)
  1215. @redmaple_leaf_bitmaps[1].set_pixel(6, 1, brightRed)
  1216. @redmaple_leaf_bitmaps[1].set_pixel(0, 2, midRed)
  1217. @redmaple_leaf_bitmaps[1].set_pixel(1, 2, brightRed)
  1218. @redmaple_leaf_bitmaps[1].set_pixel(2, 2, darkRed)
  1219. @redmaple_leaf_bitmaps[1].set_pixel(3, 2, burntRed)
  1220. @redmaple_leaf_bitmaps[1].set_pixel(4, 2, darkRed)
  1221. @redmaple_leaf_bitmaps[1].set_pixel(5, 2, brightRed)
  1222. @redmaple_leaf_bitmaps[1].fill_rect(1, 3, 3, 1, darkRed)
  1223. @redmaple_leaf_bitmaps[1].fill_rect(4, 3, 2, 1, brightRed)
  1224. @redmaple_leaf_bitmaps[1].set_pixel(6, 3, darkRed)
  1225. @redmaple_leaf_bitmaps[1].set_pixel(2, 4, burntRed)
  1226. @redmaple_leaf_bitmaps[1].fill_rect(3, 4, 3, 1, brightRed)
  1227. @redmaple_leaf_bitmaps[1].set_pixel(6, 4, burntRed)
  1228. @redmaple_leaf_bitmaps[1].set_pixel(7, 4, darkRed)
  1229. @redmaple_leaf_bitmaps[1].set_pixel(1, 5, darkRed)
  1230. @redmaple_leaf_bitmaps[1].fill_rect(2, 5, 2, 1, brightRed)
  1231. @redmaple_leaf_bitmaps[1].set_pixel(4, 5, darkRed)
  1232. @redmaple_leaf_bitmaps[1].set_pixel(5, 5, burntRed)
  1233. @redmaple_leaf_bitmaps[1].fill_rect(1, 6, 2, 1, brightRed)
  1234. @redmaple_leaf_bitmaps[1].fill_rect(4, 6, 2, 1, burntRed)
  1235. @redmaple_leaf_bitmaps[1].set_pixel(0, 7, brightRed)
  1236. @autumn_leaf_bitmaps[1].set_pixel(5, 7, darkRed)

  1237. # draw the 3rd of the red maple leaves bitmaps
  1238. @redmaple_leaf_bitmaps.push(Bitmap.new(8, 8))
  1239. @redmaple_leaf_bitmaps[2].set_pixel(7, 1, midRed)
  1240. @redmaple_leaf_bitmaps[2].set_pixel(6, 2, midRed)
  1241. @redmaple_leaf_bitmaps[2].set_pixel(7, 2, darkRed)
  1242. @redmaple_leaf_bitmaps[2].set_pixel(5, 3, midRed)
  1243. @redmaple_leaf_bitmaps[2].set_pixel(6, 3, brightRed)
  1244. @redmaple_leaf_bitmaps[2].set_pixel(4, 4, midRed)
  1245. @redmaple_leaf_bitmaps[2].set_pixel(5, 4, brightRed)
  1246. @redmaple_leaf_bitmaps[2].set_pixel(6, 4, darkRed)
  1247. @redmaple_leaf_bitmaps[2].fill_rect(2, 5, 2, 1, midRed)
  1248. @redmaple_leaf_bitmaps[2].set_pixel(4, 5, brightRed)
  1249. @redmaple_leaf_bitmaps[2].set_pixel(5, 5, darkRed)
  1250. @redmaple_leaf_bitmaps[2].set_pixel(1, 6, midRed)
  1251. @redmaple_leaf_bitmaps[2].fill_rect(2, 6, 2, 1, brightRed)
  1252. @redmaple_leaf_bitmaps[2].set_pixel(4, 6, darkRed)
  1253. @redmaple_leaf_bitmaps[2].set_pixel(0, 7, midRed)
  1254. @redmaple_leaf_bitmaps[2].set_pixel(1, 7, brightRed)
  1255. @redmaple_leaf_bitmaps[2].set_pixel(2, 7, darkRed)

  1256. # draw the 4th of the red maple leaves bitmaps
  1257. @redmaple_leaf_bitmaps.push(Bitmap.new(8, 8))
  1258. @redmaple_leaf_bitmaps[3].set_pixel(3, 0, brightRed)
  1259. @redmaple_leaf_bitmaps[3].set_pixel(7, 0, brightRed)
  1260. @redmaple_leaf_bitmaps[3].set_pixel(3, 1, darkRed)
  1261. @redmaple_leaf_bitmaps[3].set_pixel(4, 1, burntRed)
  1262. @redmaple_leaf_bitmaps[3].set_pixel(6, 1, brightRed)
  1263. @redmaple_leaf_bitmaps[3].set_pixel(0, 2, midRed)
  1264. @redmaple_leaf_bitmaps[3].set_pixel(1, 2, brightRed)
  1265. @redmaple_leaf_bitmaps[3].set_pixel(2, 2, darkRed)
  1266. @redmaple_leaf_bitmaps[3].set_pixel(3, 2, burntRed)
  1267. @redmaple_leaf_bitmaps[3].set_pixel(4, 2, darkRed)
  1268. @redmaple_leaf_bitmaps[3].set_pixel(5, 2, brightRed)
  1269. @redmaple_leaf_bitmaps[3].fill_rect(1, 3, 3, 1, darkRed)
  1270. @redmaple_leaf_bitmaps[3].fill_rect(4, 3, 2, 1, brightRed)
  1271. @redmaple_leaf_bitmaps[3].set_pixel(6, 3, darkRed)
  1272. @redmaple_leaf_bitmaps[3].set_pixel(2, 4, burntRed)
  1273. @redmaple_leaf_bitmaps[3].fill_rect(3, 4, 3, 1, brightRed)
  1274. @redmaple_leaf_bitmaps[3].set_pixel(6, 4, burntRed)
  1275. @redmaple_leaf_bitmaps[3].set_pixel(7, 4, darkRed)
  1276. @redmaple_leaf_bitmaps[3].set_pixel(1, 5, darkRed)
  1277. @redmaple_leaf_bitmaps[3].fill_rect(2, 5, 2, 1, brightRed)
  1278. @redmaple_leaf_bitmaps[3].set_pixel(4, 5, darkRed)
  1279. @redmaple_leaf_bitmaps[3].set_pixel(5, 5, burntRed)
  1280. @redmaple_leaf_bitmaps[3].fill_rect(1, 6, 2, 1, brightRed)
  1281. @redmaple_leaf_bitmaps[3].fill_rect(4, 6, 2, 1, burntRed)
  1282. @redmaple_leaf_bitmaps[3].set_pixel(0, 7, brightRed)
  1283. @redmaple_leaf_bitmaps[3].set_pixel(5, 7, darkRed)
  1284. #-------------------------------------------------------------------------------
  1285. #Green leaves

  1286. @green_leaf_bitmaps = []
  1287. darkGreen = Color.new(62, 76, 31, 255)
  1288. midGreen = Color.new(76, 91, 43, 255)
  1289. khaki = Color.new(105, 114, 66, 255)
  1290. lightGreen = Color.new(128, 136, 88, 255)
  1291. mint = Color.new(146, 154, 106, 255)

  1292. # 1st leaf bitmap
  1293. @green_leaf_bitmaps[0] = Bitmap.new(8, 8)
  1294. @green_leaf_bitmaps[0].set_pixel(1, 0, darkGreen)
  1295. @green_leaf_bitmaps[0].set_pixel(1, 1, midGreen)
  1296. @green_leaf_bitmaps[0].set_pixel(2, 1, darkGreen)
  1297. @green_leaf_bitmaps[0].set_pixel(2, 2, khaki)
  1298. @green_leaf_bitmaps[0].set_pixel(3, 2, darkGreen)
  1299. @green_leaf_bitmaps[0].set_pixel(4, 2, khaki)
  1300. @green_leaf_bitmaps[0].fill_rect(2, 3, 3, 1, midGreen)
  1301. @green_leaf_bitmaps[0].set_pixel(5, 3, khaki)
  1302. @green_leaf_bitmaps[0].fill_rect(2, 4, 2, 1, midGreen)
  1303. @green_leaf_bitmaps[0].set_pixel(4, 4, darkGreen)
  1304. @green_leaf_bitmaps[0].set_pixel(5, 4, lightGreen)
  1305. @green_leaf_bitmaps[0].set_pixel(6, 4, khaki)
  1306. @green_leaf_bitmaps[0].set_pixel(3, 5, midGreen)
  1307. @green_leaf_bitmaps[0].set_pixel(4, 5, darkGreen)
  1308. @green_leaf_bitmaps[0].set_pixel(5, 5, khaki)
  1309. @green_leaf_bitmaps[0].set_pixel(6, 5, lightGreen)
  1310. @green_leaf_bitmaps[0].set_pixel(4, 6, midGreen)
  1311. @green_leaf_bitmaps[0].set_pixel(5, 6, darkGreen)
  1312. @green_leaf_bitmaps[0].set_pixel(6, 6, lightGreen)
  1313. @green_leaf_bitmaps[0].set_pixel(6, 7, khaki)

  1314. # 2nd leaf bitmap
  1315. @green_leaf_bitmaps[1] = Bitmap.new(8, 8)
  1316. @green_leaf_bitmaps[1].fill_rect(1, 1, 1, 2, midGreen)
  1317. @green_leaf_bitmaps[1].fill_rect(2, 2, 2, 1, khaki)
  1318. @green_leaf_bitmaps[1].set_pixel(4, 2, lightGreen)
  1319. @green_leaf_bitmaps[1].fill_rect(2, 3, 2, 1, darkGreen)
  1320. @green_leaf_bitmaps[1].fill_rect(4, 3, 2, 1, lightGreen)
  1321. @green_leaf_bitmaps[1].set_pixel(2, 4, midGreen)
  1322. @green_leaf_bitmaps[1].set_pixel(3, 4, darkGreen)
  1323. @green_leaf_bitmaps[1].set_pixel(4, 4, khaki)
  1324. @green_leaf_bitmaps[1].fill_rect(5, 4, 2, 1, lightGreen)
  1325. @green_leaf_bitmaps[1].set_pixel(3, 5, midGreen)
  1326. @green_leaf_bitmaps[1].set_pixel(4, 5, darkGreen)
  1327. @green_leaf_bitmaps[1].set_pixel(5, 5, khaki)
  1328. @green_leaf_bitmaps[1].set_pixel(6, 5, lightGreen)
  1329. @green_leaf_bitmaps[1].set_pixel(5, 6, darkGreen)
  1330. @green_leaf_bitmaps[1].fill_rect(6, 6, 2, 1, khaki)

  1331. # 3rd leaf bitmap
  1332. @green_leaf_bitmaps[2] = Bitmap.new(8, 8)
  1333. @green_leaf_bitmaps[2].set_pixel(1, 1, darkGreen)
  1334. @green_leaf_bitmaps[2].fill_rect(1, 2, 2, 1, midGreen)
  1335. @green_leaf_bitmaps[2].set_pixel(2, 3, midGreen)
  1336. @green_leaf_bitmaps[2].set_pixel(3, 3, darkGreen)
  1337. @green_leaf_bitmaps[2].set_pixel(4, 3, midGreen)
  1338. @green_leaf_bitmaps[2].fill_rect(2, 4, 2, 1, midGreen)
  1339. @green_leaf_bitmaps[2].set_pixel(4, 4, darkGreen)
  1340. @green_leaf_bitmaps[2].set_pixel(5, 4, lightGreen)
  1341. @green_leaf_bitmaps[2].set_pixel(3, 5, midGreen)
  1342. @green_leaf_bitmaps[2].set_pixel(4, 5, darkGreen)
  1343. @green_leaf_bitmaps[2].fill_rect(5, 5, 2, 1, khaki)
  1344. @green_leaf_bitmaps[2].fill_rect(4, 6, 2, 1, midGreen)
  1345. @green_leaf_bitmaps[2].set_pixel(6, 6, lightGreen)
  1346. @green_leaf_bitmaps[2].set_pixel(6, 7, khaki)

  1347. # 4th leaf bitmap
  1348. @green_leaf_bitmaps[3] = Bitmap.new(8, 8)
  1349. @green_leaf_bitmaps[3].fill_rect(0, 3, 1, 2, darkGreen)
  1350. @green_leaf_bitmaps[3].set_pixel(1, 4, midGreen)
  1351. @green_leaf_bitmaps[3].set_pixel(2, 4, khaki)
  1352. @green_leaf_bitmaps[3].set_pixel(3, 4, lightGreen)
  1353. @green_leaf_bitmaps[3].set_pixel(4, 4, darkGreen)
  1354. @green_leaf_bitmaps[3].set_pixel(7, 4, midGreen)
  1355. @green_leaf_bitmaps[3].set_pixel(1, 5, darkGreen)
  1356. @green_leaf_bitmaps[3].set_pixel(2, 5, midGreen)
  1357. @green_leaf_bitmaps[3].set_pixel(3, 5, lightGreen)
  1358. @green_leaf_bitmaps[3].set_pixel(4, 5, mint)
  1359. @green_leaf_bitmaps[3].set_pixel(5, 5, lightGreen)
  1360. @green_leaf_bitmaps[3].set_pixel(6, 5, khaki)
  1361. @green_leaf_bitmaps[3].set_pixel(7, 5, midGreen)
  1362. @green_leaf_bitmaps[3].fill_rect(2, 6, 2, 1, midGreen)
  1363. @green_leaf_bitmaps[3].set_pixel(4, 6, lightGreen)
  1364. @green_leaf_bitmaps[3].set_pixel(5, 6, khaki)
  1365. @green_leaf_bitmaps[3].set_pixel(6, 6, midGreen)

  1366. # 5th leaf bitmap
  1367. @green_leaf_bitmaps[4] = Bitmap.new(8, 8)
  1368. @green_leaf_bitmaps[4].set_pixel(6, 2, midGreen)
  1369. @green_leaf_bitmaps[4].set_pixel(7, 2, darkGreen)
  1370. @green_leaf_bitmaps[4].fill_rect(4, 3, 2, 1, midGreen)
  1371. @green_leaf_bitmaps[4].set_pixel(6, 3, khaki)
  1372. @green_leaf_bitmaps[4].set_pixel(2, 4, darkGreen)
  1373. @green_leaf_bitmaps[4].fill_rect(3, 4, 2, 1, khaki)
  1374. @green_leaf_bitmaps[4].set_pixel(5, 4, lightGreen)
  1375. @green_leaf_bitmaps[4].set_pixel(6, 4, khaki)
  1376. @green_leaf_bitmaps[4].set_pixel(1, 5, midGreen)
  1377. @green_leaf_bitmaps[4].set_pixel(2, 5, khaki)
  1378. @green_leaf_bitmaps[4].set_pixel(3, 5, lightGreen)
  1379. @green_leaf_bitmaps[4].set_pixel(4, 5, mint)
  1380. @green_leaf_bitmaps[4].set_pixel(5, 5, midGreen)
  1381. @green_leaf_bitmaps[4].set_pixel(2, 6, darkGreen)
  1382. @green_leaf_bitmaps[4].fill_rect(3, 6, 2, 1, midGreen)

  1383. # 6th leaf bitmap
  1384. @green_leaf_bitmaps[5] = Bitmap.new(8, 8)
  1385. @green_leaf_bitmaps[5].fill_rect(6, 2, 2, 1, midGreen)
  1386. @green_leaf_bitmaps[5].fill_rect(4, 3, 2, 1, midGreen)
  1387. @green_leaf_bitmaps[5].set_pixel(6, 3, khaki)
  1388. @green_leaf_bitmaps[5].set_pixel(3, 4, midGreen)
  1389. @green_leaf_bitmaps[5].set_pixel(4, 4, khaki)
  1390. @green_leaf_bitmaps[5].set_pixel(5, 4, lightGreen)
  1391. @green_leaf_bitmaps[5].set_pixel(6, 4, mint)
  1392. @green_leaf_bitmaps[5].set_pixel(1, 5, midGreen)
  1393. @green_leaf_bitmaps[5].set_pixel(2, 5, khaki)
  1394. @green_leaf_bitmaps[5].fill_rect(3, 5, 2, 1, mint)
  1395. @green_leaf_bitmaps[5].set_pixel(5, 5, lightGreen)
  1396. @green_leaf_bitmaps[5].set_pixel(2, 6, midGreen)
  1397. @green_leaf_bitmaps[5].set_pixel(3, 6, khaki)
  1398. @green_leaf_bitmaps[5].set_pixel(4, 6, lightGreen)

  1399. # 7th leaf bitmap
  1400. @green_leaf_bitmaps[6] = Bitmap.new(8, 8)
  1401. @green_leaf_bitmaps[6].fill_rect(6, 1, 1, 2, midGreen)
  1402. @green_leaf_bitmaps[6].fill_rect(4, 2, 2, 1, midGreen)
  1403. @green_leaf_bitmaps[6].fill_rect(6, 2, 1, 2, darkGreen)
  1404. @green_leaf_bitmaps[6].fill_rect(3, 3, 2, 1, midGreen)
  1405. @green_leaf_bitmaps[6].set_pixel(5, 3, khaki)
  1406. @green_leaf_bitmaps[6].set_pixel(2, 4, midGreen)
  1407. @green_leaf_bitmaps[6].set_pixel(3, 4, khaki)
  1408. @green_leaf_bitmaps[6].set_pixel(4, 4, lightGreen)
  1409. @green_leaf_bitmaps[6].set_pixel(5, 4, midGreen)
  1410. @green_leaf_bitmaps[6].set_pixel(1, 5, midGreen)
  1411. @green_leaf_bitmaps[6].set_pixel(2, 5, khaki)
  1412. @green_leaf_bitmaps[6].fill_rect(3, 5, 2, 1, midGreen)
  1413. @green_leaf_bitmaps[6].set_pixel(1, 6, darkGreen)
  1414. @green_leaf_bitmaps[6].set_pixel(2, 6, midGreen)

  1415. # 8th leaf bitmap
  1416. @green_leaf_bitmaps[7] = Bitmap.new(8, 8)
  1417. @green_leaf_bitmaps[7].set_pixel(6, 1, midGreen)
  1418. @green_leaf_bitmaps[7].fill_rect(4, 2, 3, 2, midGreen)
  1419. @green_leaf_bitmaps[7].set_pixel(3, 3, darkGreen)
  1420. @green_leaf_bitmaps[7].set_pixel(2, 4, darkGreen)
  1421. @green_leaf_bitmaps[7].set_pixel(3, 4, midGreen)
  1422. @green_leaf_bitmaps[7].fill_rect(4, 4, 2, 1, khaki)
  1423. @green_leaf_bitmaps[7].set_pixel(1, 5, darkGreen)
  1424. @green_leaf_bitmaps[7].set_pixel(2, 5, midGreen)
  1425. @green_leaf_bitmaps[7].fill_rect(3, 5, 2, 1, lightGreen)
  1426. @green_leaf_bitmaps[7].set_pixel(2, 6, midGreen)
  1427. @green_leaf_bitmaps[7].set_pixel(3, 6, lightGreen)

  1428. # 9th leaf bitmap
  1429. @green_leaf_bitmaps[8] = Bitmap.new(8, 8)
  1430. @green_leaf_bitmaps[8].fill_rect(6, 1, 1, 2, midGreen)
  1431. @green_leaf_bitmaps[8].fill_rect(4, 2, 2, 1, midGreen)
  1432. @green_leaf_bitmaps[8].fill_rect(6, 2, 1, 2, darkGreen)
  1433. @green_leaf_bitmaps[8].fill_rect(3, 3, 2, 1, midGreen)
  1434. @green_leaf_bitmaps[8].set_pixel(5, 3, khaki)
  1435. @green_leaf_bitmaps[8].set_pixel(2, 4, midGreen)
  1436. @green_leaf_bitmaps[8].set_pixel(3, 4, khaki)
  1437. @green_leaf_bitmaps[8].set_pixel(4, 4, lightGreen)
  1438. @green_leaf_bitmaps[8].set_pixel(5, 4, midGreen)
  1439. @green_leaf_bitmaps[8].set_pixel(1, 5, midGreen)
  1440. @green_leaf_bitmaps[8].set_pixel(2, 5, khaki)
  1441. @green_leaf_bitmaps[8].fill_rect(3, 5, 2, 1, midGreen)
  1442. @green_leaf_bitmaps[8].set_pixel(1, 6, darkGreen)
  1443. @green_leaf_bitmaps[8].set_pixel(2, 6, midGreen)

  1444. # 10th leaf bitmap
  1445. @green_leaf_bitmaps[9] = Bitmap.new(8, 8)
  1446. @green_leaf_bitmaps[9].fill_rect(6, 2, 2, 1, midGreen)
  1447. @green_leaf_bitmaps[9].fill_rect(4, 3, 2, 1, midGreen)
  1448. @green_leaf_bitmaps[9].set_pixel(6, 3, khaki)
  1449. @green_leaf_bitmaps[9].set_pixel(3, 4, midGreen)
  1450. @green_leaf_bitmaps[9].set_pixel(4, 4, khaki)
  1451. @green_leaf_bitmaps[9].set_pixel(5, 4, lightGreen)
  1452. @green_leaf_bitmaps[9].set_pixel(6, 4, mint)
  1453. @green_leaf_bitmaps[9].set_pixel(1, 5, midGreen)
  1454. @green_leaf_bitmaps[9].set_pixel(2, 5, khaki)
  1455. @green_leaf_bitmaps[9].fill_rect(3, 5, 2, 1, mint)
  1456. @green_leaf_bitmaps[9].set_pixel(5, 5, lightGreen)
  1457. @green_leaf_bitmaps[9].set_pixel(2, 6, midGreen)
  1458. @green_leaf_bitmaps[9].set_pixel(3, 6, khaki)
  1459. @green_leaf_bitmaps[9].set_pixel(4, 6, lightGreen)

  1460. # 11th leaf bitmap
  1461. @green_leaf_bitmaps[10] = Bitmap.new(8, 8)
  1462. @green_leaf_bitmaps[10].set_pixel(6, 2, midGreen)
  1463. @green_leaf_bitmaps[10].set_pixel(7, 2, darkGreen)
  1464. @green_leaf_bitmaps[10].fill_rect(4, 3, 2, 1, midGreen)
  1465. @green_leaf_bitmaps[10].set_pixel(6, 3, khaki)
  1466. @green_leaf_bitmaps[10].set_pixel(2, 4, darkGreen)
  1467. @green_leaf_bitmaps[10].fill_rect(3, 4, 2, 1, khaki)
  1468. @green_leaf_bitmaps[10].set_pixel(5, 4, lightGreen)
  1469. @green_leaf_bitmaps[10].set_pixel(6, 4, khaki)
  1470. @green_leaf_bitmaps[10].set_pixel(1, 5, midGreen)
  1471. @green_leaf_bitmaps[10].set_pixel(2, 5, khaki)
  1472. @green_leaf_bitmaps[10].set_pixel(3, 5, lightGreen)
  1473. @green_leaf_bitmaps[10].set_pixel(4, 5, mint)
  1474. @green_leaf_bitmaps[10].set_pixel(5, 5, midGreen)
  1475. @green_leaf_bitmaps[10].set_pixel(2, 6, darkGreen)
  1476. @green_leaf_bitmaps[10].fill_rect(3, 6, 2, 1, midGreen)

  1477. # 12th leaf bitmap
  1478. @green_leaf_bitmaps[11] = Bitmap.new(8, 8)
  1479. @green_leaf_bitmaps[11].fill_rect(0, 3, 1, 2, darkGreen)
  1480. @green_leaf_bitmaps[11].set_pixel(1, 4, midGreen)
  1481. @green_leaf_bitmaps[11].set_pixel(2, 4, khaki)
  1482. @green_leaf_bitmaps[11].set_pixel(3, 4, lightGreen)
  1483. @green_leaf_bitmaps[11].set_pixel(4, 4, darkGreen)
  1484. @green_leaf_bitmaps[11].set_pixel(7, 4, midGreen)
  1485. @green_leaf_bitmaps[11].set_pixel(1, 5, darkGreen)
  1486. @green_leaf_bitmaps[11].set_pixel(2, 5, midGreen)
  1487. @green_leaf_bitmaps[11].set_pixel(3, 5, lightGreen)
  1488. @green_leaf_bitmaps[11].set_pixel(4, 5, mint)
  1489. @green_leaf_bitmaps[11].set_pixel(5, 5, lightGreen)
  1490. @green_leaf_bitmaps[11].set_pixel(6, 5, khaki)
  1491. @green_leaf_bitmaps[11].set_pixel(7, 5, midGreen)
  1492. @green_leaf_bitmaps[11].fill_rect(2, 6, 2, 1, midGreen)
  1493. @green_leaf_bitmaps[11].set_pixel(4, 6, lightGreen)
  1494. @green_leaf_bitmaps[11].set_pixel(5, 6, khaki)
  1495. @green_leaf_bitmaps[11].set_pixel(6, 6, midGreen)

  1496. # 13th leaf bitmap
  1497. @green_leaf_bitmaps[12] = Bitmap.new(8, 8)
  1498. @green_leaf_bitmaps[12].set_pixel(1, 1, darkGreen)
  1499. @green_leaf_bitmaps[12].fill_rect(1, 2, 2, 1, midGreen)
  1500. @green_leaf_bitmaps[12].set_pixel(2, 3, midGreen)
  1501. @green_leaf_bitmaps[12].set_pixel(3, 3, darkGreen)
  1502. @green_leaf_bitmaps[12].set_pixel(4, 3, midGreen)
  1503. @green_leaf_bitmaps[12].fill_rect(2, 4, 2, 1, midGreen)
  1504. @green_leaf_bitmaps[12].set_pixel(4, 4, darkGreen)
  1505. @green_leaf_bitmaps[12].set_pixel(5, 4, lightGreen)
  1506. @green_leaf_bitmaps[12].set_pixel(3, 5, midGreen)
  1507. @green_leaf_bitmaps[12].set_pixel(4, 5, darkGreen)
  1508. @green_leaf_bitmaps[12].fill_rect(5, 5, 2, 1, khaki)
  1509. @green_leaf_bitmaps[12].fill_rect(4, 6, 2, 1, midGreen)
  1510. @green_leaf_bitmaps[12].set_pixel(6, 6, lightGreen)
  1511. @green_leaf_bitmaps[12].set_pixel(6, 7, khaki)
  1512. #-------------------------------------------------------------------------------
  1513. #rose petals

  1514. @rose_bitmaps = []

  1515. # 1st rose petal bitmap
  1516. @rose_bitmaps[0] = Bitmap.new(3, 3)
  1517. @rose_bitmaps[0].fill_rect(1, 0, 2, 1, brightRed)
  1518. @rose_bitmaps[0].fill_rect(0, 1, 1, 2, brightRed)
  1519. @rose_bitmaps[0].fill_rect(1, 1, 2, 2, midRed)
  1520. @rose_bitmaps[0].set_pixel(2, 2, darkRed)

  1521. # 2nd rose petal bitmap
  1522. @rose_bitmaps[1] = Bitmap.new(3, 3)
  1523. @rose_bitmaps[1].set_pixel(0, 1, midRed)
  1524. @rose_bitmaps[1].set_pixel(1, 1, brightRed)
  1525. @rose_bitmaps[1].fill_rect(1, 2, 1, 2, midRed)
  1526. #-------------------------------------------------------------------------------
  1527. #Feathers

  1528. @feather_bitmaps = []
  1529. white = Color.new(255, 255, 255, 255)

  1530. # 1st feather bitmap
  1531. @feather_bitmaps[0] = Bitmap.new(3, 3)
  1532. @feather_bitmaps[0].set_pixel(0, 2, white)
  1533. @feather_bitmaps[0].set_pixel(1, 2, grey)
  1534. @feather_bitmaps[0].set_pixel(2, 1, grey)

  1535. # 2nd feather bitmap
  1536. @feather_bitmaps[0] = Bitmap.new(3, 3)
  1537. @feather_bitmaps[0].set_pixel(0, 0, white)
  1538. @feather_bitmaps[0].set_pixel(0, 1, grey)
  1539. @feather_bitmaps[0].set_pixel(1, 2, grey)

  1540. # 3rd feather bitmap
  1541. @feather_bitmaps[0] = Bitmap.new(3, 3)
  1542. @feather_bitmaps[0].set_pixel(2, 0, white)
  1543. @feather_bitmaps[0].set_pixel(1, 0, grey)
  1544. @feather_bitmaps[0].set_pixel(0, 1, grey)

  1545. # 4th feather bitmap
  1546. @feather_bitmaps[0] = Bitmap.new(3, 3)
  1547. @feather_bitmaps[0].set_pixel(2, 2, white)
  1548. @feather_bitmaps[0].set_pixel(2, 1, grey)
  1549. @feather_bitmaps[0].set_pixel(1, 0, grey)
  1550. #-------------------------------------------------------------------------------
  1551. #Blood rain

  1552. @blood_rain_bitmap = Bitmap.new(7, 56)
  1553. for i in 0..6
  1554. @blood_rain_bitmap.fill_rect(6-i, i*8, 1, 8, darkRed)
  1555. end
  1556. @blood_rain_splash = Bitmap.new(8, 5)
  1557. @blood_rain_splash.fill_rect(1, 0, 6, 1, darkRed)
  1558. @blood_rain_splash.fill_rect(1, 4, 6, 1, darkRed)
  1559. @blood_rain_splash.fill_rect(0, 1, 1, 3, darkRed)
  1560. @blood_rain_splash.fill_rect(7, 1, 1, 3, darkRed)
  1561. #-------------------------------------------------------------------------------

  1562. #Blood storm

  1563. @blood_storm_bitmap = Bitmap.new(34, 64)
  1564. for i in 0..31
  1565. @blood_storm_bitmap.fill_rect(33-i, i*2, 1, 2, darkRed)
  1566. @blood_storm_bitmap.fill_rect(32-i, i*2, 1, 2, darkRed)
  1567. @blood_storm_bitmap.fill_rect(31-i, i*2, 1, 2, darkRed)
  1568. end

  1569. #-------------------------------------------------------------------------------
  1570. #Blood blizzard

  1571. @bloodblizz_bitmap = Bitmap.new(6, 6)
  1572. @bloodblizz_bitmap.fill_rect(0, 1, 6, 4, midRed)
  1573. @bloodblizz_bitmap.fill_rect(1, 0, 4, 6, midRed)
  1574. @bloodblizz_bitmap.fill_rect(1, 2, 4, 2, darkRed)
  1575. @bloodblizz_bitmap.fill_rect(2, 1, 2, 4, darkRed)
  1576. @sprites = []
  1577. @bloodblizz_bitmaps = []

  1578. @bloodblizz_bitmaps[0] = Bitmap.new(3, 3)
  1579. @bloodblizz_bitmaps[0].fill_rect(0, 0, 3, 3, midRed)
  1580. @bloodblizz_bitmaps[0].fill_rect(0, 1, 3, 1, darkRed)
  1581. @bloodblizz_bitmaps[0].fill_rect(1, 0, 1, 3, darkRed)
  1582. @bloodblizz_bitmaps[0].set_pixel(1, 1, darkRed)

  1583. @bloodblizz_bitmaps[1] = Bitmap.new(4, 4)
  1584. @bloodblizz_bitmaps[1].fill_rect(0, 1, 4, 2, midRed)
  1585. @bloodblizz_bitmaps[1].fill_rect(1, 0, 2, 4, midRed)
  1586. @bloodblizz_bitmaps[1].fill_rect(1, 1, 2, 2, darkRed)

  1587. @bloodblizz_bitmaps[2] = Bitmap.new(5, 5)
  1588. @bloodblizz_bitmaps[1].fill_rect(0, 1, 5, 3, darkRed)
  1589. @bloodblizz_bitmaps[1].fill_rect(1, 0, 3, 5, darkRed)
  1590. @bloodblizz_bitmaps[1].fill_rect(1, 1, 3, 3, midRed)
  1591. @bloodblizz_bitmaps[1].fill_rect(2, 1, 3, 1, darkRed)
  1592. @bloodblizz_bitmaps[1].fill_rect(1, 2, 1, 3, darkRed)

  1593. @bloodblizz_bitmaps[3] = Bitmap.new(7, 7)
  1594. @bloodblizz_bitmaps[1].fill_rect(1, 1, 5, 5, darkRed)
  1595. @bloodblizz_bitmaps[1].fill_rect(2, 0, 7, 3, darkRed)
  1596. @bloodblizz_bitmaps[1].fill_rect(0, 2, 3, 7, darkRed)
  1597. @bloodblizz_bitmaps[1].fill_rect(2, 1, 5, 3, midRed)
  1598. @bloodblizz_bitmaps[1].fill_rect(1, 2, 3, 5, midRed)
  1599. @bloodblizz_bitmaps[1].fill_rect(2, 2, 3, 3, darkRed)
  1600. @bloodblizz_bitmaps[1].fill_rect(3, 1, 5, 1, darkRed)
  1601. @bloodblizz_bitmaps[1].fill_rect(1, 3, 1, 5, darkRed)
  1602. #-------------------------------------------------------------------------------

  1603. # Oil rain

  1604. darkgrey = Color.new(15, 15, 15, 255)
  1605. black = Color.new(0, 0, 0, 255)

  1606. @oil_rain_bitmap = Bitmap.new(7, 56)
  1607. for i in 0..6
  1608. @oil_rain_bitmap.fill_rect(6-i, i*8, 1, 8, darkgrey)
  1609. end
  1610. @oil_rain_splash = Bitmap.new(8, 5)
  1611. @oil_rain_splash.fill_rect(1, 0, 6, 1, darkgrey)
  1612. @oil_rain_splash.fill_rect(1, 4, 6, 1, darkgrey)
  1613. @oil_rain_splash.fill_rect(0, 1, 1, 3, black)
  1614. @oil_rain_splash.fill_rect(7, 1, 1, 3, black)
  1615. #-------------------------------------------------------------------------------

  1616. # Oil storm

  1617. @oil_storm_bitmap = Bitmap.new(34, 64)
  1618. for i in 0..31
  1619. @oil_storm_bitmap.fill_rect(33-i, i*2, 1, 2, darkgrey)
  1620. @oil_storm_bitmap.fill_rect(32-i, i*2, 1, 2, darkgrey)
  1621. @oil_storm_bitmap.fill_rect(31-i, i*2, 1, 2, darkgrey)
  1622. end
  1623. #-------------------------------------------------------------------------------

  1624. # Golden rain

  1625. darkYellow = Color.new(110, 104, 3, 255)
  1626. midYellow = Color.new(205, 194, 23, 255)
  1627. darkYellowtwo = Color.new(186, 176, 14, 255)
  1628. lightYellow = Color.new(218, 207, 36, 255)
  1629. lightYellowtwo = Color.new(227, 217, 56, 255)

  1630. @golden_rain_bitmap = Bitmap.new(7, 56)
  1631. for i in 0..6
  1632. @golden_rain_bitmap.fill_rect(6-i, i*8, 1, 8, lightYellow)
  1633. end
  1634. @golden_rain_splash = Bitmap.new(8, 5)
  1635. @golden_rain_splash.fill_rect(1, 0, 6, 1, lightYellow)
  1636. @golden_rain_splash.fill_rect(1, 4, 6, 1, lightYellow)
  1637. @golden_rain_splash.fill_rect(0, 1, 1, 3, lightYellow)
  1638. @golden_rain_splash.fill_rect(7, 1, 1, 3, lightYellow)
  1639. #-------------------------------------------------------------------------------

  1640. # Golden storm

  1641. @golden_storm_bitmap = Bitmap.new(34, 64)
  1642. for i in 0..31
  1643. @golden_storm_bitmap.fill_rect(33-i, i*2, 1, 2, lightYellow)
  1644. @golden_storm_bitmap.fill_rect(32-i, i*2, 1, 2, lightYellow)
  1645. @golden_storm_bitmap.fill_rect(31-i, i*2, 1, 2, lightYellow)
  1646. end
  1647. #-------------------------------------------------------------------------------

  1648. # Acid rain

  1649. @acid_rain_bitmap = Bitmap.new(7, 56)
  1650. for i in 0..6
  1651. @acid_rain_bitmap.fill_rect(6-i, i*8, 1, 8, midGreen)
  1652. end
  1653. @acid_rain_splash = Bitmap.new(8, 5)
  1654. @acid_rain_splash.fill_rect(1, 0, 6, 1, white)
  1655. @acid_rain_splash.fill_rect(1, 4, 6, 1, white)
  1656. @acid_rain_splash.fill_rect(0, 1, 1, 3, white)
  1657. @acid_rain_splash.fill_rect(7, 1, 1, 3, white)
  1658. #-------------------------------------------------------------------------------

  1659. # Acid storm

  1660. @acid_storm_bitmap = Bitmap.new(34, 64)
  1661. for i in 0..31
  1662. @acid_storm_bitmap.fill_rect(33-i, i*2, 1, 2, khaki)
  1663. @acid_storm_bitmap.fill_rect(32-i, i*2, 1, 2, khaki)
  1664. @acid_storm_bitmap.fill_rect(31-i, i*2, 1, 2, midGreen)
  1665. end
  1666. #-------------------------------------------------------------------------------

  1667. # Sepia rain

  1668. sepia_color = Color.new(167, 149, 139, 255)
  1669. sepia_colortwo = Color.new(100, 75, 63, 255)

  1670. @sepia_rain_bitmap = Bitmap.new(7, 56)
  1671. for i in 0..6
  1672. @sepia_rain_bitmap.fill_rect(6-i, i*8, 1, 8, sepia_colortwo)
  1673. end
  1674. @sepia_rain_splash = Bitmap.new(8, 5)
  1675. @sepia_rain_splash.fill_rect(1, 0, 6, 1, sepia_colortwo)
  1676. @sepia_rain_splash.fill_rect(1, 4, 6, 1, sepia_color)
  1677. @sepia_rain_splash.fill_rect(0, 1, 1, 3, sepia_colortwo)
  1678. @sepia_rain_splash.fill_rect(7, 1, 1, 3, sepia_color)
  1679. #-------------------------------------------------------------------------------

  1680. # Sepia storm

  1681. @sepia_storm_bitmap = Bitmap.new(34, 64)
  1682. for i in 0..31
  1683. @sepia_storm_bitmap.fill_rect(33-i, i*2, 1, 2, sepia_colortwo)
  1684. @sepia_storm_bitmap.fill_rect(32-i, i*2, 1, 2, sepia_colortwo)
  1685. @sepia_storm_bitmap.fill_rect(31-i, i*2, 1, 2, sepia_color)
  1686. end
  1687. #-------------------------------------------------------------------------------

  1688. # Yellow leaves

  1689. @yellow_leaf_bitmaps = []

  1690. # 1st leaf bitmap
  1691. @yellow_leaf_bitmaps[0] = Bitmap.new(8, 8)
  1692. @yellow_leaf_bitmaps[0].set_pixel(1, 0, darkYellow)
  1693. @yellow_leaf_bitmaps[0].set_pixel(1, 1, midYellow)
  1694. @yellow_leaf_bitmaps[0].set_pixel(2, 1, darkYellow)
  1695. @yellow_leaf_bitmaps[0].set_pixel(2, 2, darkYellowtwo)
  1696. @yellow_leaf_bitmaps[0].set_pixel(3, 2, darkYellow)
  1697. @yellow_leaf_bitmaps[0].set_pixel(4, 2, darkYellowtwo)
  1698. @yellow_leaf_bitmaps[0].fill_rect(2, 3, 3, 1, midYellow)
  1699. @yellow_leaf_bitmaps[0].set_pixel(5, 3, darkYellowtwo)
  1700. @yellow_leaf_bitmaps[0].fill_rect(2, 4, 2, 1, midYellow)
  1701. @yellow_leaf_bitmaps[0].set_pixel(4, 4, darkYellow)
  1702. @yellow_leaf_bitmaps[0].set_pixel(5, 4, lightYellow)
  1703. @yellow_leaf_bitmaps[0].set_pixel(6, 4, darkYellowtwo)
  1704. @yellow_leaf_bitmaps[0].set_pixel(3, 5, midYellow)
  1705. @yellow_leaf_bitmaps[0].set_pixel(4, 5, darkYellow)
  1706. @yellow_leaf_bitmaps[0].set_pixel(5, 5, darkYellowtwo)
  1707. @yellow_leaf_bitmaps[0].set_pixel(6, 5, lightYellow)
  1708. @yellow_leaf_bitmaps[0].set_pixel(4, 6, midYellow)
  1709. @yellow_leaf_bitmaps[0].set_pixel(5, 6, darkYellow)
  1710. @yellow_leaf_bitmaps[0].set_pixel(6, 6, lightYellow)
  1711. @yellow_leaf_bitmaps[0].set_pixel(6, 7, darkYellowtwo)

  1712. # 2nd leaf bitmap
  1713. @yellow_leaf_bitmaps[1] = Bitmap.new(8, 8)
  1714. @yellow_leaf_bitmaps[1].fill_rect(1, 1, 1, 2, midYellow)
  1715. @yellow_leaf_bitmaps[1].fill_rect(2, 2, 2, 1, darkYellowtwo)
  1716. @yellow_leaf_bitmaps[1].set_pixel(4, 2, lightYellow)
  1717. @yellow_leaf_bitmaps[1].fill_rect(2, 3, 2, 1, darkYellow)
  1718. @yellow_leaf_bitmaps[1].fill_rect(4, 3, 2, 1, lightYellow)
  1719. @yellow_leaf_bitmaps[1].set_pixel(2, 4, midYellow)
  1720. @yellow_leaf_bitmaps[1].set_pixel(3, 4, darkYellow)
  1721. @yellow_leaf_bitmaps[1].set_pixel(4, 4, darkYellowtwo)
  1722. @yellow_leaf_bitmaps[1].fill_rect(5, 4, 2, 1, lightYellow)
  1723. @yellow_leaf_bitmaps[1].set_pixel(3, 5, midYellow)
  1724. @yellow_leaf_bitmaps[1].set_pixel(4, 5, darkYellow)
  1725. @yellow_leaf_bitmaps[1].set_pixel(5, 5, darkYellowtwo)
  1726. @yellow_leaf_bitmaps[1].set_pixel(6, 5, lightYellow)
  1727. @yellow_leaf_bitmaps[1].set_pixel(5, 6, darkYellow)
  1728. @yellow_leaf_bitmaps[1].fill_rect(6, 6, 2, 1, darkYellowtwo)

  1729. # 3rd leaf bitmap
  1730. @yellow_leaf_bitmaps[2] = Bitmap.new(8, 8)
  1731. @yellow_leaf_bitmaps[2].set_pixel(1, 1, darkYellow)
  1732. @yellow_leaf_bitmaps[2].fill_rect(1, 2, 2, 1, midYellow)
  1733. @yellow_leaf_bitmaps[2].set_pixel(2, 3, midYellow)
  1734. @yellow_leaf_bitmaps[2].set_pixel(3, 3, darkYellow)
  1735. @yellow_leaf_bitmaps[2].set_pixel(4, 3, midYellow)
  1736. @yellow_leaf_bitmaps[2].fill_rect(2, 4, 2, 1, midYellow)
  1737. @yellow_leaf_bitmaps[2].set_pixel(4, 4, darkYellow)
  1738. @yellow_leaf_bitmaps[2].set_pixel(5, 4, lightYellow)
  1739. @yellow_leaf_bitmaps[2].set_pixel(3, 5, midYellow)
  1740. @yellow_leaf_bitmaps[2].set_pixel(4, 5, darkYellow)
  1741. @yellow_leaf_bitmaps[2].fill_rect(5, 5, 2, 1, darkYellowtwo)
  1742. @yellow_leaf_bitmaps[2].fill_rect(4, 6, 2, 1, midYellow)
  1743. @yellow_leaf_bitmaps[2].set_pixel(6, 6, lightYellow)
  1744. @yellow_leaf_bitmaps[2].set_pixel(6, 7, darkYellowtwo)

  1745. # 4th leaf bitmap
  1746. @yellow_leaf_bitmaps[3] = Bitmap.new(8, 8)
  1747. @yellow_leaf_bitmaps[3].fill_rect(0, 3, 1, 2, darkYellow)
  1748. @yellow_leaf_bitmaps[3].set_pixel(1, 4, midYellow)
  1749. @yellow_leaf_bitmaps[3].set_pixel(2, 4, darkYellowtwo)
  1750. @yellow_leaf_bitmaps[3].set_pixel(3, 4, lightYellow)
  1751. @yellow_leaf_bitmaps[3].set_pixel(4, 4, darkYellow)
  1752. @yellow_leaf_bitmaps[3].set_pixel(7, 4, midYellow)
  1753. @yellow_leaf_bitmaps[3].set_pixel(1, 5, darkYellow)
  1754. @yellow_leaf_bitmaps[3].set_pixel(2, 5, midYellow)
  1755. @yellow_leaf_bitmaps[3].set_pixel(3, 5, lightYellow)
  1756. @yellow_leaf_bitmaps[3].set_pixel(4, 5, lightYellowtwo)
  1757. @yellow_leaf_bitmaps[3].set_pixel(5, 5, lightYellow)
  1758. @yellow_leaf_bitmaps[3].set_pixel(6, 5, darkYellowtwo)
  1759. @yellow_leaf_bitmaps[3].set_pixel(7, 5, midYellow)
  1760. @yellow_leaf_bitmaps[3].fill_rect(2, 6, 2, 1, midYellow)
  1761. @yellow_leaf_bitmaps[3].set_pixel(4, 6, lightYellow)
  1762. @yellow_leaf_bitmaps[3].set_pixel(5, 6, darkYellowtwo)
  1763. @yellow_leaf_bitmaps[3].set_pixel(6, 6, midYellow)

  1764. # 5th leaf bitmap
  1765. @yellow_leaf_bitmaps[4] = Bitmap.new(8, 8)
  1766. @yellow_leaf_bitmaps[4].set_pixel(6, 2, midYellow)
  1767. @yellow_leaf_bitmaps[4].set_pixel(7, 2, darkYellow)
  1768. @yellow_leaf_bitmaps[4].fill_rect(4, 3, 2, 1, midYellow)
  1769. @yellow_leaf_bitmaps[4].set_pixel(6, 3, darkYellowtwo)
  1770. @yellow_leaf_bitmaps[4].set_pixel(2, 4, darkYellow)
  1771. @yellow_leaf_bitmaps[4].fill_rect(3, 4, 2, 1, darkYellowtwo)
  1772. @yellow_leaf_bitmaps[4].set_pixel(5, 4, lightYellow)
  1773. @yellow_leaf_bitmaps[4].set_pixel(6, 4, darkYellowtwo)
  1774. @yellow_leaf_bitmaps[4].set_pixel(1, 5, midYellow)
  1775. @yellow_leaf_bitmaps[4].set_pixel(2, 5, darkYellowtwo)
  1776. @yellow_leaf_bitmaps[4].set_pixel(3, 5, lightYellow)
  1777. @yellow_leaf_bitmaps[4].set_pixel(4, 5, lightYellowtwo)
  1778. @yellow_leaf_bitmaps[4].set_pixel(5, 5, midYellow)
  1779. @yellow_leaf_bitmaps[4].set_pixel(2, 6, darkYellow)
  1780. @yellow_leaf_bitmaps[4].fill_rect(3, 6, 2, 1, midYellow)

  1781. # 6th leaf bitmap
  1782. @yellow_leaf_bitmaps[5] = Bitmap.new(8, 8)
  1783. @yellow_leaf_bitmaps[5].fill_rect(6, 2, 2, 1, midYellow)
  1784. @yellow_leaf_bitmaps[5].fill_rect(4, 3, 2, 1, midYellow)
  1785. @yellow_leaf_bitmaps[5].set_pixel(6, 3, darkYellowtwo)
  1786. @yellow_leaf_bitmaps[5].set_pixel(3, 4, midYellow)
  1787. @yellow_leaf_bitmaps[5].set_pixel(4, 4, darkYellowtwo)
  1788. @yellow_leaf_bitmaps[5].set_pixel(5, 4, lightYellow)
  1789. @yellow_leaf_bitmaps[5].set_pixel(6, 4, lightYellowtwo)
  1790. @yellow_leaf_bitmaps[5].set_pixel(1, 5, midYellow)
  1791. @yellow_leaf_bitmaps[5].set_pixel(2, 5, darkYellowtwo)
  1792. @yellow_leaf_bitmaps[5].fill_rect(3, 5, 2, 1, lightYellowtwo)
  1793. @yellow_leaf_bitmaps[5].set_pixel(5, 5, lightYellow)
  1794. @yellow_leaf_bitmaps[5].set_pixel(2, 6, midYellow)
  1795. @yellow_leaf_bitmaps[5].set_pixel(3, 6, darkYellowtwo)
  1796. @yellow_leaf_bitmaps[5].set_pixel(4, 6, lightYellow)

  1797. # 7th leaf bitmap
  1798. @yellow_leaf_bitmaps[6] = Bitmap.new(8, 8)
  1799. @yellow_leaf_bitmaps[6].fill_rect(6, 1, 1, 2, midYellow)
  1800. @yellow_leaf_bitmaps[6].fill_rect(4, 2, 2, 1, midYellow)
  1801. @yellow_leaf_bitmaps[6].fill_rect(6, 2, 1, 2, darkYellow)
  1802. @yellow_leaf_bitmaps[6].fill_rect(3, 3, 2, 1, midYellow)
  1803. @yellow_leaf_bitmaps[6].set_pixel(5, 3, darkYellowtwo)
  1804. @yellow_leaf_bitmaps[6].set_pixel(2, 4, midYellow)
  1805. @yellow_leaf_bitmaps[6].set_pixel(3, 4, darkYellowtwo)
  1806. @yellow_leaf_bitmaps[6].set_pixel(4, 4, lightYellow)
  1807. @yellow_leaf_bitmaps[6].set_pixel(5, 4, midYellow)
  1808. @yellow_leaf_bitmaps[6].set_pixel(1, 5, midYellow)
  1809. @yellow_leaf_bitmaps[6].set_pixel(2, 5, darkYellowtwo)
  1810. @yellow_leaf_bitmaps[6].fill_rect(3, 5, 2, 1, midYellow)
  1811. @yellow_leaf_bitmaps[6].set_pixel(1, 6, darkYellow)
  1812. @yellow_leaf_bitmaps[6].set_pixel(2, 6, midYellow)

  1813. # 8th leaf bitmap
  1814. @yellow_leaf_bitmaps[7] = Bitmap.new(8, 8)
  1815. @yellow_leaf_bitmaps[7].set_pixel(6, 1, midYellow)
  1816. @yellow_leaf_bitmaps[7].fill_rect(4, 2, 3, 2, midYellow)
  1817. @yellow_leaf_bitmaps[7].set_pixel(3, 3, darkYellow)
  1818. @yellow_leaf_bitmaps[7].set_pixel(2, 4, darkYellow)
  1819. @yellow_leaf_bitmaps[7].set_pixel(3, 4, midYellow)
  1820. @yellow_leaf_bitmaps[7].fill_rect(4, 4, 2, 1, darkYellowtwo)
  1821. @yellow_leaf_bitmaps[7].set_pixel(1, 5, darkYellow)
  1822. @yellow_leaf_bitmaps[7].set_pixel(2, 5, midYellow)
  1823. @yellow_leaf_bitmaps[7].fill_rect(3, 5, 2, 1, lightYellow)
  1824. @yellow_leaf_bitmaps[7].set_pixel(2, 6, midYellow)
  1825. @yellow_leaf_bitmaps[7].set_pixel(3, 6, lightYellow)

  1826. # 9th leaf bitmap
  1827. @yellow_leaf_bitmaps[8] = Bitmap.new(8, 8)
  1828. @yellow_leaf_bitmaps[8].fill_rect(6, 1, 1, 2, midYellow)
  1829. @yellow_leaf_bitmaps[8].fill_rect(4, 2, 2, 1, midYellow)
  1830. @yellow_leaf_bitmaps[8].fill_rect(6, 2, 1, 2, darkYellow)
  1831. @yellow_leaf_bitmaps[8].fill_rect(3, 3, 2, 1, midYellow)
  1832. @yellow_leaf_bitmaps[8].set_pixel(5, 3, darkYellowtwo)
  1833. @yellow_leaf_bitmaps[8].set_pixel(2, 4, midYellow)
  1834. @yellow_leaf_bitmaps[8].set_pixel(3, 4, darkYellowtwo)
  1835. @yellow_leaf_bitmaps[8].set_pixel(4, 4, lightYellow)
  1836. @yellow_leaf_bitmaps[8].set_pixel(5, 4, midYellow)
  1837. @yellow_leaf_bitmaps[8].set_pixel(1, 5, midYellow)
  1838. @yellow_leaf_bitmaps[8].set_pixel(2, 5, darkYellowtwo)
  1839. @yellow_leaf_bitmaps[8].fill_rect(3, 5, 2, 1, midYellow)
  1840. @yellow_leaf_bitmaps[8].set_pixel(1, 6, darkYellow)
  1841. @yellow_leaf_bitmaps[8].set_pixel(2, 6, midYellow)

  1842. # 10th leaf bitmap
  1843. @yellow_leaf_bitmaps[9] = Bitmap.new(8, 8)
  1844. @yellow_leaf_bitmaps[9].fill_rect(6, 2, 2, 1, midYellow)
  1845. @yellow_leaf_bitmaps[9].fill_rect(4, 3, 2, 1, midYellow)
  1846. @yellow_leaf_bitmaps[9].set_pixel(6, 3, darkYellowtwo)
  1847. @yellow_leaf_bitmaps[9].set_pixel(3, 4, midYellow)
  1848. @yellow_leaf_bitmaps[9].set_pixel(4, 4, darkYellowtwo)
  1849. @yellow_leaf_bitmaps[9].set_pixel(5, 4, lightYellow)
  1850. @yellow_leaf_bitmaps[9].set_pixel(6, 4, lightYellowtwo)
  1851. @yellow_leaf_bitmaps[9].set_pixel(1, 5, midYellow)
  1852. @yellow_leaf_bitmaps[9].set_pixel(2, 5, darkYellowtwo)
  1853. @yellow_leaf_bitmaps[9].fill_rect(3, 5, 2, 1, lightYellowtwo)
  1854. @yellow_leaf_bitmaps[9].set_pixel(5, 5, lightYellow)
  1855. @yellow_leaf_bitmaps[9].set_pixel(2, 6, midYellow)
  1856. @yellow_leaf_bitmaps[9].set_pixel(3, 6, darkYellowtwo)
  1857. @yellow_leaf_bitmaps[9].set_pixel(4, 6, lightYellow)

  1858. # 11th leaf bitmap
  1859. @yellow_leaf_bitmaps[10] = Bitmap.new(8, 8)
  1860. @yellow_leaf_bitmaps[10].set_pixel(6, 2, midYellow)
  1861. @yellow_leaf_bitmaps[10].set_pixel(7, 2, darkYellow)
  1862. @yellow_leaf_bitmaps[10].fill_rect(4, 3, 2, 1, midYellow)
  1863. @yellow_leaf_bitmaps[10].set_pixel(6, 3, darkYellowtwo)
  1864. @yellow_leaf_bitmaps[10].set_pixel(2, 4, darkYellow)
  1865. @yellow_leaf_bitmaps[10].fill_rect(3, 4, 2, 1, darkYellowtwo)
  1866. @yellow_leaf_bitmaps[10].set_pixel(5, 4, lightYellow)
  1867. @yellow_leaf_bitmaps[10].set_pixel(6, 4, darkYellowtwo)
  1868. @yellow_leaf_bitmaps[10].set_pixel(1, 5, midYellow)
  1869. @yellow_leaf_bitmaps[10].set_pixel(2, 5, darkYellowtwo)
  1870. @yellow_leaf_bitmaps[10].set_pixel(3, 5, lightYellow)
  1871. @yellow_leaf_bitmaps[10].set_pixel(4, 5, lightYellowtwo)
  1872. @yellow_leaf_bitmaps[10].set_pixel(5, 5, midYellow)
  1873. @yellow_leaf_bitmaps[10].set_pixel(2, 6, darkYellow)
  1874. @yellow_leaf_bitmaps[10].fill_rect(3, 6, 2, 1, midYellow)

  1875. # 12th leaf bitmap
  1876. @yellow_leaf_bitmaps[11] = Bitmap.new(8, 8)
  1877. @yellow_leaf_bitmaps[11].fill_rect(0, 3, 1, 2, darkYellow)
  1878. @yellow_leaf_bitmaps[11].set_pixel(1, 4, midYellow)
  1879. @yellow_leaf_bitmaps[11].set_pixel(2, 4, darkYellowtwo)
  1880. @yellow_leaf_bitmaps[11].set_pixel(3, 4, lightYellow)
  1881. @yellow_leaf_bitmaps[11].set_pixel(4, 4, darkYellow)
  1882. @yellow_leaf_bitmaps[11].set_pixel(7, 4, midYellow)
  1883. @yellow_leaf_bitmaps[11].set_pixel(1, 5, darkYellow)
  1884. @yellow_leaf_bitmaps[11].set_pixel(2, 5, midYellow)
  1885. @yellow_leaf_bitmaps[11].set_pixel(3, 5, lightYellow)
  1886. @yellow_leaf_bitmaps[11].set_pixel(4, 5, lightYellowtwo)
  1887. @yellow_leaf_bitmaps[11].set_pixel(5, 5, lightYellow)
  1888. @yellow_leaf_bitmaps[11].set_pixel(6, 5, darkYellowtwo)
  1889. @yellow_leaf_bitmaps[11].set_pixel(7, 5, midYellow)
  1890. @yellow_leaf_bitmaps[11].fill_rect(2, 6, 2, 1, midYellow)
  1891. @yellow_leaf_bitmaps[11].set_pixel(4, 6, lightYellow)
  1892. @yellow_leaf_bitmaps[11].set_pixel(5, 6, darkYellowtwo)
  1893. @yellow_leaf_bitmaps[11].set_pixel(6, 6, midYellow)

  1894. # 13th leaf bitmap
  1895. @yellow_leaf_bitmaps[12] = Bitmap.new(8, 8)
  1896. @yellow_leaf_bitmaps[12].set_pixel(1, 1, darkYellow)
  1897. @yellow_leaf_bitmaps[12].fill_rect(1, 2, 2, 1, midYellow)
  1898. @yellow_leaf_bitmaps[12].set_pixel(2, 3, midYellow)
  1899. @yellow_leaf_bitmaps[12].set_pixel(3, 3, darkYellow)
  1900. @yellow_leaf_bitmaps[12].set_pixel(4, 3, midYellow)
  1901. @yellow_leaf_bitmaps[12].fill_rect(2, 4, 2, 1, midYellow)
  1902. @yellow_leaf_bitmaps[12].set_pixel(4, 4, darkYellow)
  1903. @yellow_leaf_bitmaps[12].set_pixel(5, 4, lightYellow)
  1904. @yellow_leaf_bitmaps[12].set_pixel(3, 5, midYellow)
  1905. @yellow_leaf_bitmaps[12].set_pixel(4, 5, darkYellow)
  1906. @yellow_leaf_bitmaps[12].fill_rect(5, 5, 2, 1, darkYellowtwo)
  1907. @yellow_leaf_bitmaps[12].fill_rect(4, 6, 2, 1, midYellow)
  1908. @yellow_leaf_bitmaps[12].set_pixel(6, 6, lightYellow)
  1909. @yellow_leaf_bitmaps[12].set_pixel(6, 7, darkYellowtwo)

  1910. #-------------------------------------------------------------------------------
  1911. @sparkle_bitmaps = []

  1912. lightBlue = Color.new(181, 244, 255, 255)
  1913. midBlue = Color.new(126, 197, 235, 255)
  1914. darkBlue = Color.new(77, 136, 225, 255)

  1915. # 1st sparkle bitmap
  1916. @sparkle_bitmaps[0] = Bitmap.new(7, 7)
  1917. @sparkle_bitmaps[0].set_pixel(3, 3, darkBlue)

  1918. # 2nd sparkle bitmap
  1919. @sparkle_bitmaps[1] = Bitmap.new(7, 7)
  1920. @sparkle_bitmaps[1].fill_rect(3, 2, 1, 3, darkBlue)
  1921. @sparkle_bitmaps[1].fill_rect(2, 3, 3, 1, darkBlue)
  1922. @sparkle_bitmaps[1].set_pixel(3, 3, midBlue)

  1923. # 3rd sparkle bitmap
  1924. @sparkle_bitmaps[2] = Bitmap.new(7, 7)
  1925. @sparkle_bitmaps[2].set_pixel(1, 1, darkBlue)
  1926. @sparkle_bitmaps[2].set_pixel(5, 1, darkBlue)
  1927. @sparkle_bitmaps[2].set_pixel(2, 2, midBlue)
  1928. @sparkle_bitmaps[2].set_pixel(4, 2, midBlue)
  1929. @sparkle_bitmaps[2].set_pixel(3, 3, lightBlue)
  1930. @sparkle_bitmaps[2].set_pixel(2, 4, midBlue)
  1931. @sparkle_bitmaps[2].set_pixel(4, 4, midBlue)
  1932. @sparkle_bitmaps[2].set_pixel(1, 5, darkBlue)
  1933. @sparkle_bitmaps[2].set_pixel(5, 5, darkBlue)

  1934. # 4th sparkle bitmap
  1935. @sparkle_bitmaps[3] = Bitmap.new(7, 7)
  1936. @sparkle_bitmaps[3].fill_rect(3, 1, 1, 5, darkBlue)
  1937. @sparkle_bitmaps[3].fill_rect(1, 3, 5, 1, darkBlue)
  1938. @sparkle_bitmaps[3].fill_rect(3, 2, 1, 3, midBlue)
  1939. @sparkle_bitmaps[3].fill_rect(2, 3, 3, 1, midBlue)
  1940. @sparkle_bitmaps[3].set_pixel(3, 3, lightBlue)

  1941. # 5th sparkle bitmap
  1942. @sparkle_bitmaps[4] = Bitmap.new(7, 7)
  1943. @sparkle_bitmaps[4].fill_rect(2, 2, 3, 3, midBlue)
  1944. @sparkle_bitmaps[4].fill_rect(3, 2, 1, 3, darkBlue)
  1945. @sparkle_bitmaps[4].fill_rect(2, 3, 3, 1, darkBlue)
  1946. @sparkle_bitmaps[4].set_pixel(3, 3, lightBlue)
  1947. @sparkle_bitmaps[4].set_pixel(1, 1, darkBlue)
  1948. @sparkle_bitmaps[4].set_pixel(5, 1, darkBlue)
  1949. @sparkle_bitmaps[4].set_pixel(1, 5, darkBlue)
  1950. @sparkle_bitmaps[4].set_pixel(5, 1, darkBlue)

  1951. # 6th sparkle bitmap
  1952. @sparkle_bitmaps[5] = Bitmap.new(7, 7)
  1953. @sparkle_bitmaps[5].fill_rect(2, 1, 3, 5, darkBlue)
  1954. @sparkle_bitmaps[5].fill_rect(1, 2, 5, 3, darkBlue)
  1955. @sparkle_bitmaps[5].fill_rect(2, 2, 3, 3, midBlue)
  1956. @sparkle_bitmaps[5].fill_rect(3, 1, 1, 5, midBlue)
  1957. @sparkle_bitmaps[5].fill_rect(1, 3, 5, 1, midBlue)
  1958. @sparkle_bitmaps[5].fill_rect(3, 2, 1, 3, lightBlue)
  1959. @sparkle_bitmaps[5].fill_rect(2, 3, 3, 1, lightBlue)
  1960. @sparkle_bitmaps[5].set_pixel(3, 3, white)

  1961. # 7th sparkle bitmap
  1962. @sparkle_bitmaps[6] = Bitmap.new(7, 7)
  1963. @sparkle_bitmaps[6].fill_rect(2, 1, 3, 5, midBlue)
  1964. @sparkle_bitmaps[6].fill_rect(1, 2, 5, 3, midBlue)
  1965. @sparkle_bitmaps[6].fill_rect(3, 0, 1, 7, darkBlue)
  1966. @sparkle_bitmaps[6].fill_rect(0, 3, 7, 1, darkBlue)
  1967. @sparkle_bitmaps[6].fill_rect(2, 2, 3, 3, lightBlue)
  1968. @sparkle_bitmaps[6].fill_rect(3, 2, 1, 3, midBlue)
  1969. @sparkle_bitmaps[6].fill_rect(2, 3, 3, 1, midBlue)
  1970. @sparkle_bitmaps[6].set_pixel(3, 3, white)
  1971. #-------------------------------------------------------------------------------
  1972. # Meteor bitmap

  1973. @meteor_bitmap = Bitmap.new(14, 12)
  1974. @meteor_bitmap.fill_rect(0, 8, 5, 4, paleOrange)
  1975. @meteor_bitmap.fill_rect(1, 7, 6, 4, paleOrange)
  1976. @meteor_bitmap.set_pixel(7, 8, paleOrange)
  1977. @meteor_bitmap.fill_rect(1, 8, 2, 2, brightOrange)
  1978. @meteor_bitmap.set_pixel(2, 7, brightOrange)
  1979. @meteor_bitmap.fill_rect(3, 6, 2, 1, brightOrange)
  1980. @meteor_bitmap.set_pixel(3, 8, brightOrange)
  1981. @meteor_bitmap.set_pixel(3, 10, brightOrange)
  1982. @meteor_bitmap.set_pixel(4, 9, brightOrange)
  1983. @meteor_bitmap.fill_rect(5, 5, 1, 5, brightOrange)
  1984. @meteor_bitmap.fill_rect(6, 4, 1, 5, brightOrange)
  1985. @meteor_bitmap.fill_rect(7, 3, 1, 5, brightOrange)
  1986. @meteor_bitmap.fill_rect(8, 6, 1, 2, brightOrange)
  1987. @meteor_bitmap.set_pixel(9, 5, brightOrange)
  1988. @meteor_bitmap.set_pixel(3, 8, midRed)
  1989. @meteor_bitmap.fill_rect(4, 7, 1, 2, midRed)
  1990. @meteor_bitmap.set_pixel(4, 5, midRed)
  1991. @meteor_bitmap.set_pixel(5, 4, midRed)
  1992. @meteor_bitmap.set_pixel(5, 6, midRed)
  1993. @meteor_bitmap.set_pixel(6, 5, midRed)
  1994. @meteor_bitmap.set_pixel(6, 7, midRed)
  1995. @meteor_bitmap.fill_rect(7, 4, 1, 3, midRed)
  1996. @meteor_bitmap.fill_rect(8, 3, 1, 3, midRed)
  1997. @meteor_bitmap.fill_rect(9, 2, 1, 3, midRed)
  1998. @meteor_bitmap.fill_rect(10, 1, 1, 3, midRed)
  1999. @meteor_bitmap.fill_rect(11, 0, 1, 3, midRed)
  2000. @meteor_bitmap.fill_rect(12, 0, 1, 2, midRed)
  2001. @meteor_bitmap.set_pixel(13, 0, midRed)

  2002. # Impact bitmap

  2003. @impact_bitmap = Bitmap.new(22, 11)
  2004. @impact_bitmap.fill_rect(0, 5, 1, 2, brightOrange)
  2005. @impact_bitmap.set_pixel(1, 4, brightOrange)
  2006. @impact_bitmap.set_pixel(1, 6, brightOrange)
  2007. @impact_bitmap.set_pixel(2, 3, brightOrange)
  2008. @impact_bitmap.set_pixel(2, 7, brightOrange)
  2009. @impact_bitmap.set_pixel(3, 2, midRed)
  2010. @impact_bitmap.set_pixel(3, 7, midRed)
  2011. @impact_bitmap.set_pixel(4, 2, brightOrange)
  2012. @impact_bitmap.set_pixel(4, 8, brightOrange)
  2013. @impact_bitmap.set_pixel(5, 2, midRed)
  2014. @impact_bitmap.fill_rect(5, 8, 3, 1, brightOrange)
  2015. @impact_bitmap.set_pixel(6, 1, midRed)
  2016. @impact_bitmap.fill_rect(7, 1, 8, 1, brightOrange)
  2017. @impact_bitmap.fill_rect(7, 9, 8, 1, midRed)
  2018. #-------------------------------------------------------------------------------
  2019. # Flame meteor bitmap

  2020. @flame_meteor_bitmap = Bitmap.new(14, 12)
  2021. @flame_meteor_bitmap.fill_rect(0, 8, 5, 4, brightOrange)
  2022. @flame_meteor_bitmap.fill_rect(1, 7, 6, 4, brightOrange)
  2023. @flame_meteor_bitmap.set_pixel(7, 8, brightOrange)
  2024. @flame_meteor_bitmap.fill_rect(1, 8, 2, 2, midYellow)
  2025. @flame_meteor_bitmap.set_pixel(2, 7, midYellow)
  2026. @flame_meteor_bitmap.fill_rect(3, 6, 2, 1, midYellow)
  2027. @flame_meteor_bitmap.set_pixel(3, 8, midYellow)
  2028. @flame_meteor_bitmap.set_pixel(3, 10, midYellow)
  2029. @flame_meteor_bitmap.set_pixel(4, 9, midYellow)
  2030. @flame_meteor_bitmap.fill_rect(5, 5, 1, 5, midYellow)
  2031. @flame_meteor_bitmap.fill_rect(6, 4, 1, 5, midYellow)
  2032. @flame_meteor_bitmap.fill_rect(7, 3, 1, 5, midYellow)
  2033. @flame_meteor_bitmap.fill_rect(8, 6, 1, 2, midYellow)
  2034. @flame_meteor_bitmap.set_pixel(9, 5, midYellow)
  2035. @flame_meteor_bitmap.set_pixel(3, 8, lightYellow)
  2036. @flame_meteor_bitmap.fill_rect(4, 7, 1, 2, lightYellowtwo)
  2037. @flame_meteor_bitmap.set_pixel(4, 5, lightYellow)
  2038. @flame_meteor_bitmap.set_pixel(5, 4, lightYellow)
  2039. @flame_meteor_bitmap.set_pixel(5, 6, lightYellow)
  2040. @flame_meteor_bitmap.set_pixel(6, 5, lightYellow)
  2041. @flame_meteor_bitmap.set_pixel(6, 7, lightYellow)
  2042. @flame_meteor_bitmap.fill_rect(7, 4, 1, 3, lightYellow)
  2043. @flame_meteor_bitmap.fill_rect(8, 3, 1, 3, lightYellow)
  2044. @flame_meteor_bitmap.fill_rect(9, 2, 1, 3, lightYellow)
  2045. @flame_meteor_bitmap.fill_rect(10, 1, 1, 3, lightYellow)
  2046. @flame_meteor_bitmap.fill_rect(11, 0, 1, 3, lightYellow)
  2047. @flame_meteor_bitmap.fill_rect(12, 0, 1, 2, lightYellow)
  2048. @flame_meteor_bitmap.set_pixel(13, 0, lightYellow)

  2049. # Flame impact bitmap

  2050. @flame_impact_bitmap = Bitmap.new(22, 11)
  2051. @flame_impact_bitmap.fill_rect(0, 5, 1, 2, midYellow)
  2052. @flame_impact_bitmap.set_pixel(1, 4, midYellow)
  2053. @flame_impact_bitmap.set_pixel(1, 6, midYellow)
  2054. @flame_impact_bitmap.set_pixel(2, 3, midYellow)
  2055. @flame_impact_bitmap.set_pixel(2, 7, midYellow)
  2056. @flame_impact_bitmap.set_pixel(3, 2, midYellow)
  2057. @flame_impact_bitmap.set_pixel(3, 7, lightYellow)
  2058. @flame_impact_bitmap.set_pixel(4, 2, brightOrange)
  2059. @flame_impact_bitmap.set_pixel(4, 8, brightOrange)
  2060. @flame_impact_bitmap.set_pixel(5, 2, lightYellow)
  2061. @flame_impact_bitmap.fill_rect(5, 8, 3, 1, midYellow)
  2062. @flame_impact_bitmap.set_pixel(6, 1, lightYellow)
  2063. @flame_impact_bitmap.fill_rect(7, 1, 8, 1, midYellow)
  2064. @flame_impact_bitmap.fill_rect(7, 9, 8, 1, lightYellow)
  2065. #-------------------------------------------------------------------------------

  2066. # Ash bitmaps

  2067. @ash_bitmaps = []
  2068. @ash_bitmaps[0] = Bitmap.new(3, 3)
  2069. @ash_bitmaps[0].fill_rect(0, 1, 1, 3, lightGrey)
  2070. @ash_bitmaps[0].fill_rect(1, 0, 3, 1, lightGrey)
  2071. @ash_bitmaps[0].set_pixel(1, 1, white)
  2072. @ash_bitmaps[1] = Bitmap.new(3, 3)
  2073. @ash_bitmaps[1].fill_rect(0, 1, 1, 3, grey)
  2074. @ash_bitmaps[1].fill_rect(1, 0, 3, 1, grey)
  2075. @ash_bitmaps[1].set_pixel(1, 1, lightGrey)
  2076. #-------------------------------------------------------------------------------

  2077. # Bubble bitmaps

  2078. @bubble_bitmaps = []
  2079. darkBlue = Color.new(77, 136, 225, 160)
  2080. aqua = Color.new(197, 253, 254, 160)
  2081. lavender = Color.new(225, 190, 244, 160)

  2082. # first bubble bitmap
  2083. @bubble_bitmaps[0] = Bitmap.new(24, 24)
  2084. @bubble_bitmaps[0].fill_rect(0, 9, 24, 5, darkBlue)
  2085. @bubble_bitmaps[0].fill_rect(1, 6, 22, 11, darkBlue)
  2086. @bubble_bitmaps[0].fill_rect(2, 5, 20, 13, darkBlue)
  2087. @bubble_bitmaps[0].fill_rect(3, 4, 18, 15, darkBlue)
  2088. @bubble_bitmaps[0].fill_rect(4, 3, 16, 17, darkBlue)
  2089. @bubble_bitmaps[0].fill_rect(5, 2, 14, 19, darkBlue)
  2090. @bubble_bitmaps[0].fill_rect(6, 1, 12, 21, darkBlue)
  2091. @bubble_bitmaps[0].fill_rect(9, 0, 5, 24, darkBlue)
  2092. @bubble_bitmaps[0].fill_rect(2, 11, 20, 4, aqua)
  2093. @bubble_bitmaps[0].fill_rect(3, 7, 18, 10, aqua)
  2094. @bubble_bitmaps[0].fill_rect(4, 6, 16, 12, aqua)
  2095. @bubble_bitmaps[0].fill_rect(5, 5, 14, 14, aqua)
  2096. @bubble_bitmaps[0].fill_rect(6, 4, 12, 16, aqua)
  2097. @bubble_bitmaps[0].fill_rect(9, 2, 4, 20, aqua)
  2098. @bubble_bitmaps[0].fill_rect(5, 10, 1, 7, lavender)
  2099. @bubble_bitmaps[0].fill_rect(6, 14, 1, 5, lavender)
  2100. @bubble_bitmaps[0].fill_rect(7, 15, 1, 4, lavender)
  2101. @bubble_bitmaps[0].fill_rect(8, 16, 1, 4, lavender)
  2102. @bubble_bitmaps[0].fill_rect(9, 17, 1, 3, lavender)
  2103. @bubble_bitmaps[0].fill_rect(10, 18, 4, 3, lavender)
  2104. @bubble_bitmaps[0].fill_rect(14, 18, 1, 2, lavender)
  2105. @bubble_bitmaps[0].fill_rect(13, 5, 4, 4, white)
  2106. @bubble_bitmaps[0].fill_rect(14, 4, 2, 1, white)
  2107. @bubble_bitmaps[0].set_pixel(17, 6, white)

  2108. # second bubble bitmap
  2109. @bubble_bitmaps[1] = Bitmap.new(14, 15)
  2110. @bubble_bitmaps[1].fill_rect(0, 4, 14, 7, darkBlue)
  2111. @bubble_bitmaps[1].fill_rect(1, 3, 12, 9, darkBlue)
  2112. @bubble_bitmaps[1].fill_rect(2, 2, 10, 11, darkBlue)
  2113. @bubble_bitmaps[1].fill_rect(3, 1, 8, 13, darkBlue)
  2114. @bubble_bitmaps[1].fill_rect(5, 0, 4, 15, darkBlue)
  2115. @bubble_bitmaps[1].fill_rect(1, 5, 12, 4, aqua)
  2116. @bubble_bitmaps[1].fill_rect(2, 4, 10, 6, aqua)
  2117. @bubble_bitmaps[1].fill_rect(3, 3, 8, 8, aqua)
  2118. @bubble_bitmaps[1].fill_rect(4, 2, 6, 10, aqua)
  2119. @bubble_bitmaps[1].fill_rect(1, 5, 12, 4, aqua)
  2120. @bubble_bitmaps[1].fill_rect(3, 9, 1, 2, lavender)
  2121. @bubble_bitmaps[1].fill_rect(4, 10, 1, 2, lavender)
  2122. @bubble_bitmaps[1].fill_rect(5, 11, 4, 1, lavender)
  2123. @bubble_bitmaps[1].fill_rect(6, 12, 2, 1, white)
  2124. @bubble_bitmaps[1].fill_rect(8, 3, 2, 2, white)
  2125. @bubble_bitmaps[1].set_pixel(7, 4, white)
  2126. @bubble_bitmaps[1].set_pixel(8, 5, white)

  2127. # Other option for bubbles
  2128. @bubble2_bitmaps = Array.new
  2129. darkSteelGray = Color.new(145, 150, 155, 160)
  2130. midSteelGray = Color.new(180, 180, 185, 160)
  2131. lightSteelGray = Color.new(225, 225, 235, 160)
  2132. steelBlue = Color.new(145, 145, 165, 160)
  2133. lightSteelBlue = Color.new(165, 170, 180, 160)
  2134. transparentWhite = Color.new(255, 255, 255, 160)

  2135. # first bubble 2 bitmap
  2136. @bubble2_bitmaps[0] = Bitmap.new(6, 6)
  2137. @bubble2_bitmaps[0].fill_rect(0, 0, 6, 6, darkSteelGray)
  2138. @bubble2_bitmaps[0].fill_rect(0, 2, 6, 2, midSteelGray)
  2139. @bubble2_bitmaps[0].fill_rect(2, 0, 2, 6, midSteelGray)
  2140. @bubble2_bitmaps[0].fill_rect(2, 2, 2, 2, lightSteelGray)

  2141. # second bubble 2 bitmap
  2142. @bubble2_bitmaps[1] = Bitmap.new(8, 8)
  2143. @bubble2_bitmaps[1].fill_rect(0, 2, 2, 4, steelBlue)
  2144. @bubble2_bitmaps[1].fill_rect(2, 0, 4, 2, darkSteelGray)
  2145. @bubble2_bitmaps[1].fill_rect(6, 2, 2, 2, darkSteelGray)
  2146. @bubble2_bitmaps[1].fill_rect(2, 6, 2, 2, darkSteelGray)
  2147. @bubble2_bitmaps[1].fill_rect(6, 4, 2, 2, midSteelGray)
  2148. @bubble2_bitmaps[1].fill_rect(4, 6, 2, 2, midSteelGray)
  2149. @bubble2_bitmaps[1].fill_rect(4, 4, 2, 2, lightSteelBlue)
  2150. @bubble2_bitmaps[1].fill_rect(2, 4, 2, 2, lightSteelGray)
  2151. @bubble2_bitmaps[1].fill_rect(4, 2, 2, 2, lightSteelGray)
  2152. @bubble2_bitmaps[1].fill_rect(2, 2, 2, 2, transparentWhite)

  2153. # third bubble 2 bitmap
  2154. @bubble2_bitmaps[2] = Bitmap.new(8, 10)
  2155. @bubble2_bitmaps[2].fill_rect(8, 2, 2, 4, steelBlue)
  2156. @bubble2_bitmaps[2].fill_rect(2, 0, 8, 2, darkSteelGray)
  2157. @bubble2_bitmaps[2].fill_rect(2, 6, 8, 2, darkSteelGray)
  2158. @bubble2_bitmaps[2].fill_rect(4, 0, 2, 2, midSteelGray)
  2159. @bubble2_bitmaps[2].fill_rect(4, 6, 2, 2, midSteelGray)
  2160. @bubble2_bitmaps[2].fill_rect(0, 2, 2, 2, midSteelGray)
  2161. @bubble2_bitmaps[2].fill_rect(0, 4, 2, 2, lightSteelBlue)
  2162. @bubble2_bitmaps[2].fill_rect(2, 2, 6, 4, lightSteelGray)
  2163. @bubble2_bitmaps[2].fill_rect(2, 2, 4, 2, transparentWhite)
  2164. @bubble2_bitmaps[2].fill_rect(4, 4, 2, 2, transparentWhite)

  2165. # fourth bubble 2 bitmap
  2166. @bubble2_bitmaps[3] = Bitmap.new(14, 14)
  2167. @bubble2_bitmaps[3].fill_rect(4, 0, 4, 2, steelBlue)
  2168. @bubble2_bitmaps[3].fill_rect(0, 4, 2, 4, steelBlue)
  2169. @bubble2_bitmaps[3].fill_rect(12, 4, 2, 4, steelBlue)
  2170. @bubble2_bitmaps[3].fill_rect(8, 0, 2, 2, darkSteelGray)
  2171. @bubble2_bitmaps[3].fill_rect(0, 6, 2, 2, darkSteelGray)
  2172. @bubble2_bitmaps[3].fill_rect(12, 6, 2, 2, darkSteelGray)
  2173. @bubble2_bitmaps[3].fill_rect(4, 12, 6, 2, darkSteelGray)
  2174. @bubble2_bitmaps[3].fill_rect(8, 0, 2, 2, darkSteelGray)
  2175. @bubble2_bitmaps[3].fill_rect(2, 2, 10, 10, midSteelGray)
  2176. @bubble2_bitmaps[3].fill_rect(6, 12, 2, 2, midSteelGray)
  2177. @bubble2_bitmaps[3].fill_rect(2, 4, 10, 6, lightSteelGray)
  2178. @bubble2_bitmaps[3].fill_rect(4, 2, 2, 2, lightSteelGray)
  2179. @bubble2_bitmaps[3].fill_rect(6, 10, 4, 2, lightSteelGray)
  2180. @bubble2_bitmaps[3].fill_rect(6, 4, 2, 2, transparentWhite)
  2181. @bubble2_bitmaps[3].fill_rect(4, 6, 2, 2, transparentWhite)
  2182. #-------------------------------------------------------------------------------

  2183. # Water bombs bitmap

  2184. @waterbomb_bitmap = Bitmap.new(8, 8)
  2185. @waterbomb_bitmap.fill_rect(0, 2, 2, 4, aqua)
  2186. @waterbomb_bitmap.fill_rect(2, 0, 4, 2, aqua)
  2187. @waterbomb_bitmap.fill_rect(6, 2, 2, 2, aqua)
  2188. @waterbomb_bitmap.fill_rect(2, 6, 2, 2, aqua)
  2189. @waterbomb_bitmap.fill_rect(6, 4, 2, 2, aqua)
  2190. @waterbomb_bitmap.fill_rect(4, 6, 2, 2, aqua)
  2191. @waterbomb_bitmap.fill_rect(4, 4, 2, 2, aqua)
  2192. @waterbomb_bitmap.fill_rect(2, 4, 2, 2, aqua)
  2193. @waterbomb_bitmap.fill_rect(4, 2, 2, 2, aqua)
  2194. @waterbomb_bitmap.fill_rect(2, 2, 2, 2, aqua)


  2195. # Water bombs impact bitmap

  2196. @waterbomb_impact_bitmap = Bitmap.new(8, 5)
  2197. @waterbomb_impact_bitmap.fill_rect(1, 0, 6, 1, aqua)
  2198. @waterbomb_impact_bitmap.fill_rect(1, 4, 6, 1, aqua)
  2199. @waterbomb_impact_bitmap.fill_rect(0, 1, 1, 3, aqua)
  2200. @waterbomb_impact_bitmap.fill_rect(7, 1, 1, 3, aqua)
  2201. @waterbomb_impact_bitmap.set_pixel(1, 0, aqua)
  2202. @waterbomb_impact_bitmap.set_pixel(0, 1, aqua)
  2203. #-------------------------------------------------------------------------------


  2204. # Icy bombs bitmap

  2205. @icybomb_bitmap = Bitmap.new(8, 8)
  2206. @icybomb_bitmap.fill_rect(0, 2, 2, 4, lightBlue)
  2207. @icybomb_bitmap.fill_rect(2, 0, 4, 2, lightBlue)
  2208. @icybomb_bitmap.fill_rect(6, 2, 2, 2, lightBlue)
  2209. @icybomb_bitmap.fill_rect(2, 6, 2, 2, lightBlue)
  2210. @icybomb_bitmap.fill_rect(6, 4, 2, 2, lightBlue)
  2211. @icybomb_bitmap.fill_rect(4, 6, 2, 2, lightBlue)
  2212. @icybomb_bitmap.fill_rect(4, 4, 2, 2, lightBlue)
  2213. @icybomb_bitmap.fill_rect(2, 4, 2, 2, lightBlue)
  2214. @icybomb_bitmap.fill_rect(4, 2, 2, 2, lightBlue)
  2215. @icybomb_bitmap.fill_rect(2, 2, 2, 2, lightBlue)


  2216. # Icy bombs impact bitmap

  2217. @icybomb_impact_bitmap = Bitmap.new(8, 5)
  2218. @icybomb_impact_bitmap.fill_rect(1, 0, 6, 1, lightBlue)
  2219. @icybomb_impact_bitmap.fill_rect(1, 4, 6, 1, lightBlue)
  2220. @icybomb_impact_bitmap.fill_rect(0, 1, 1, 3, lightBlue)
  2221. @icybomb_impact_bitmap.fill_rect(7, 1, 1, 3, lightBlue)
  2222. @icybomb_impact_bitmap.set_pixel(1, 0, lightBlue)
  2223. @icybomb_impact_bitmap.set_pixel(0, 1, lightBlue)
  2224. #-------------------------------------------------------------------------------


  2225. # Flare bombs bitmap

  2226. @flarebomb_bitmap = Bitmap.new(8, 8)
  2227. @flarebomb_bitmap.fill_rect(0, 2, 2, 4, midYellow)
  2228. @flarebomb_bitmap.fill_rect(2, 0, 4, 2, midYellow)
  2229. @flarebomb_bitmap.fill_rect(6, 2, 2, 2, midYellow)
  2230. @flarebomb_bitmap.fill_rect(2, 6, 2, 2, brightOrange)
  2231. @flarebomb_bitmap.fill_rect(6, 4, 2, 2, brightOrange)
  2232. @flarebomb_bitmap.fill_rect(4, 6, 2, 2, midYellow)
  2233. @flarebomb_bitmap.fill_rect(4, 4, 2, 2, brightOrange)
  2234. @flarebomb_bitmap.fill_rect(2, 4, 2, 2, midYellow)
  2235. @flarebomb_bitmap.fill_rect(4, 2, 2, 2, midYellow)
  2236. @flarebomb_bitmap.fill_rect(2, 2, 2, 2, midYellow)

  2237. # Flare bomb impact bitmap

  2238. @flarebomb_impact_bitmap = Bitmap.new(8, 5)
  2239. @flarebomb_impact_bitmap.fill_rect(1, 0, 6, 1, brightOrange)
  2240. @flarebomb_impact_bitmap.fill_rect(1, 4, 6, 1, brightOrange)
  2241. @flarebomb_impact_bitmap.fill_rect(0, 1, 1, 3, midYellow)
  2242. @flarebomb_impact_bitmap.fill_rect(7, 1, 1, 3, midYellow)
  2243. @flarebomb_impact_bitmap.set_pixel(1, 0, midYellow)
  2244. @flarebomb_impact_bitmap.set_pixel(0, 1, midYellow)
  2245. #-------------------------------------------------------------------------------

  2246. # Starburst bitmaps

  2247. @starburst_bitmaps = []

  2248. starburst_yellow = Color.new(233, 210, 142, 255)
  2249. starburst_yellowtwo = Color.new(219, 191, 95, 255)
  2250. starburst_lightyellow = Color.new(242, 229, 190, 255)
  2251. starburst_pink = Color.new(241, 185, 187, 255)
  2252. starburst_red = Color.new(196, 55, 84, 255)
  2253. starburst_redtwo = Color.new(178, 15, 56, 255)
  2254. starburst_cyan = Color.new (189, 225, 242, 255)
  2255. starburst_blue = Color.new (102, 181, 221, 255)
  2256. starburst_bluetwo = Color.new (5, 88, 168, 255)
  2257. starburst_lightgreen = Color.new(205, 246, 205, 255)
  2258. starburst_green = Color.new(88, 221, 89, 255)
  2259. starburst_greentwo = Color.new(44, 166, 0, 255)
  2260. starburst_purple = Color.new(216, 197, 255, 255)
  2261. starburst_violet = Color.new(155, 107, 255, 255)
  2262. starburst_violettwo = Color.new(71, 0, 222, 255)
  2263. starburst_lightorange = Color.new(255, 220, 177, 255)
  2264. starburst_orange = Color.new(255, 180, 85, 255)
  2265. starburst_orangetwo = Color.new(222, 124, 0, 255)

  2266. # 1st starburst bitmap
  2267. @starburst_bitmaps[0] = Bitmap.new(8, 8)
  2268. @starburst_bitmaps[0].set_pixel(3, 3, starburst_lightyellow)

  2269. # 2nd starburst bitmap
  2270. @starburst_bitmaps[1] = Bitmap.new(8, 8)
  2271. @starburst_bitmaps[1].fill_rect(3, 2, 1, 3, starburst_yellow)
  2272. @starburst_bitmaps[1].fill_rect(2, 3, 3, 1, starburst_yellow)
  2273. @starburst_bitmaps[1].set_pixel(3, 3, starburst_lightyellow)

  2274. # 3rd starburst bitmap
  2275. @starburst_bitmaps[2] = Bitmap.new(7, 7)
  2276. @starburst_bitmaps[2].set_pixel(1, 1, starburst_yellow)
  2277. @starburst_bitmaps[2].set_pixel(5, 1, starburst_yellow)
  2278. @starburst_bitmaps[2].set_pixel(2, 2, starburst_yellowtwo)
  2279. @starburst_bitmaps[2].set_pixel(4, 2, starburst_yellow)
  2280. @starburst_bitmaps[2].set_pixel(3, 3, starburst_lightyellow)
  2281. @starburst_bitmaps[2].set_pixel(2, 4, starburst_yellowtwo)
  2282. @starburst_bitmaps[2].set_pixel(4, 4, starburst_yellowtwo)
  2283. @starburst_bitmaps[2].set_pixel(1, 5, starburst_yellow)
  2284. @starburst_bitmaps[2].set_pixel(5, 5, starburst_yellow)

  2285. # 4th starburst bitmap
  2286. @starburst_bitmaps[3] = Bitmap.new(7, 7)
  2287. @starburst_bitmaps[3].fill_rect(3, 1, 1, 5, starburst_yellow)
  2288. @starburst_bitmaps[3].fill_rect(1, 3, 5, 1, starburst_yellowtwo)
  2289. @starburst_bitmaps[3].fill_rect(3, 2, 1, 3, starburst_yellow)
  2290. @starburst_bitmaps[3].fill_rect(2, 3, 3, 1, starburst_yellowtwo)
  2291. @starburst_bitmaps[3].set_pixel(3, 3, starburst_lightyellow)

  2292. # 5th starburst bitmap
  2293. @starburst_bitmaps[4] = Bitmap.new(7, 7)
  2294. @starburst_bitmaps[4].fill_rect(2, 2, 3, 3, starburst_yellow)
  2295. @starburst_bitmaps[4].fill_rect(3, 2, 1, 3, starburst_yellow)
  2296. @starburst_bitmaps[4].fill_rect(2, 3, 3, 1, starburst_yellowtwo)
  2297. @starburst_bitmaps[4].set_pixel(3, 3, starburst_lightyellow)
  2298. @starburst_bitmaps[4].set_pixel(1, 1, starburst_yellow)
  2299. @starburst_bitmaps[4].set_pixel(5, 1, starburst_yellow)
  2300. @starburst_bitmaps[4].set_pixel(1, 5, starburst_yellowtwo)
  2301. @starburst_bitmaps[4].set_pixel(5, 1, starburst_yellowtwo)

  2302. # 6th starburst bitmap
  2303. @starburst_bitmaps[5] = Bitmap.new(8, 8)
  2304. @starburst_bitmaps[5].fill_rect(3, 2, 1, 3, starburst_yellow)
  2305. @starburst_bitmaps[5].fill_rect(2, 3, 3, 1, starburst_yellow)
  2306. @starburst_bitmaps[5].set_pixel(3, 3, starburst_lightyellow)

  2307. # 7th starburst bitmap
  2308. @starburst_bitmaps[6] = Bitmap.new(8, 8)
  2309. @starburst_bitmaps[6].fill_rect(3, 2, 1, 3, starburst_green)
  2310. @starburst_bitmaps[6].fill_rect(2, 3, 3, 1, starburst_green)
  2311. @starburst_bitmaps[6].set_pixel(3, 3, starburst_lightgreen)

  2312. # 8th starburst bitmap
  2313. @starburst_bitmaps[7] = Bitmap.new(7, 7)
  2314. @starburst_bitmaps[7].set_pixel(1, 1, starburst_greentwo)
  2315. @starburst_bitmaps[7].set_pixel(5, 1, starburst_greentwo)
  2316. @starburst_bitmaps[7].set_pixel(2, 2, starburst_greentwo)
  2317. @starburst_bitmaps[7].set_pixel(4, 2, starburst_greentwo)
  2318. @starburst_bitmaps[7].set_pixel(3, 3, starburst_green)
  2319. @starburst_bitmaps[7].set_pixel(2, 4, starburst_green)
  2320. @starburst_bitmaps[7].set_pixel(4, 4, starburst_green)
  2321. @starburst_bitmaps[7].set_pixel(1, 5, starburst_green)
  2322. @starburst_bitmaps[7].set_pixel(5, 5, starburst_lightgreen)

  2323. # 9th starburst bitmap
  2324. @starburst_bitmaps[8] = Bitmap.new(7, 7)
  2325. @starburst_bitmaps[8].fill_rect(3, 1, 1, 5, starburst_greentwo)
  2326. @starburst_bitmaps[8].fill_rect(1, 3, 5, 1, starburst_greentwo)
  2327. @starburst_bitmaps[8].fill_rect(3, 2, 1, 3, starburst_green)
  2328. @starburst_bitmaps[8].fill_rect(2, 3, 3, 1, starburst_green)
  2329. @starburst_bitmaps[8].set_pixel(3, 3, starburst_lightgreen)

  2330. # 10th starburst bitmap
  2331. @starburst_bitmaps[9] = Bitmap.new(7, 7)
  2332. @starburst_bitmaps[9].fill_rect(2, 1, 3, 5, starburst_greentwo)
  2333. @starburst_bitmaps[9].fill_rect(1, 2, 5, 3, starburst_greentwo)
  2334. @starburst_bitmaps[9].fill_rect(2, 2, 3, 3, starburst_green)
  2335. @starburst_bitmaps[9].fill_rect(3, 1, 1, 5, starburst_green)
  2336. @starburst_bitmaps[9].fill_rect(1, 3, 5, 1, starburst_green)
  2337. @starburst_bitmaps[9].fill_rect(3, 2, 1, 3, starburst_lightgreen)
  2338. @starburst_bitmaps[9].fill_rect(2, 3, 3, 1, starburst_lightgreen)
  2339. @starburst_bitmaps[9].set_pixel(3, 3, starburst_lightgreen)

  2340. # 11en starburst bitmap
  2341. @starburst_bitmaps[10] = Bitmap.new(7, 7)
  2342. @starburst_bitmaps[10].fill_rect(2, 2, 3, 3, starburst_greentwo)
  2343. @starburst_bitmaps[10].fill_rect(3, 2, 1, 3, starburst_greentwo)
  2344. @starburst_bitmaps[10].fill_rect(2, 3, 3, 1, starburst_green)
  2345. @starburst_bitmaps[10].set_pixel(3, 3, starburst_lightgreen)
  2346. @starburst_bitmaps[10].set_pixel(1, 1, starburst_green)
  2347. @starburst_bitmaps[10].set_pixel(5, 1, starburst_green)
  2348. @starburst_bitmaps[10].set_pixel(1, 5, starburst_greentwo)
  2349. @starburst_bitmaps[10].set_pixel(5, 1, starburst_greentwo)

  2350. # 12en starburst bitmap
  2351. @starburst_bitmaps[11] = Bitmap.new(8, 8)
  2352. @starburst_bitmaps[11].fill_rect(3, 2, 1, 3, starburst_green)
  2353. @starburst_bitmaps[11].fill_rect(2, 3, 3, 1, starburst_green)
  2354. @starburst_bitmaps[11].set_pixel(3, 3, starburst_lightgreen)

  2355. # 13en starburst bitmap
  2356. @starburst_bitmaps[12] = Bitmap.new(8, 8)
  2357. @starburst_bitmaps[12].fill_rect(3, 2, 1, 3, starburst_blue)
  2358. @starburst_bitmaps[12].fill_rect(2, 3, 3, 1, starburst_blue)
  2359. @starburst_bitmaps[12].set_pixel(3, 3, starburst_cyan)

  2360. # 14en starburst bitmap
  2361. @starburst_bitmaps[13] = Bitmap.new(7, 7)
  2362. @starburst_bitmaps[13].set_pixel(1, 1, starburst_bluetwo)
  2363. @starburst_bitmaps[13].set_pixel(5, 1, starburst_bluetwo)
  2364. @starburst_bitmaps[13].set_pixel(2, 2, starburst_bluetwo)
  2365. @starburst_bitmaps[13].set_pixel(4, 2, starburst_bluetwo)
  2366. @starburst_bitmaps[13].set_pixel(3, 3, starburst_blue)
  2367. @starburst_bitmaps[13].set_pixel(2, 4, starburst_blue)
  2368. @starburst_bitmaps[13].set_pixel(4, 4, starburst_blue)
  2369. @starburst_bitmaps[13].set_pixel(1, 5, starburst_blue)
  2370. @starburst_bitmaps[13].set_pixel(5, 5, starburst_cyan)

  2371. # 15en starburst bitmap
  2372. @starburst_bitmaps[14] = Bitmap.new(7, 7)
  2373. @starburst_bitmaps[14].fill_rect(3, 1, 1, 5, starburst_bluetwo)
  2374. @starburst_bitmaps[14].fill_rect(1, 3, 5, 1, starburst_bluetwo)
  2375. @starburst_bitmaps[14].fill_rect(3, 2, 1, 3, starburst_blue)
  2376. @starburst_bitmaps[14].fill_rect(2, 3, 3, 1, starburst_blue)
  2377. @starburst_bitmaps[14].set_pixel(3, 3, starburst_cyan)

  2378. # 16en starburst bitmap
  2379. @starburst_bitmaps[15] = Bitmap.new(7, 7)
  2380. @starburst_bitmaps[15].fill_rect(2, 1, 3, 5, starburst_bluetwo)
  2381. @starburst_bitmaps[15].fill_rect(1, 2, 5, 3, starburst_bluetwo)
  2382. @starburst_bitmaps[15].fill_rect(2, 2, 3, 3, starburst_blue)
  2383. @starburst_bitmaps[15].fill_rect(3, 1, 1, 5, starburst_blue)
  2384. @starburst_bitmaps[15].fill_rect(1, 3, 5, 1, starburst_blue)
  2385. @starburst_bitmaps[15].fill_rect(3, 2, 1, 3, starburst_cyan)
  2386. @starburst_bitmaps[15].fill_rect(2, 3, 3, 1, starburst_cyan)
  2387. @starburst_bitmaps[15].set_pixel(3, 3, starburst_cyan)

  2388. # 17en starburst bitmap
  2389. @starburst_bitmaps[16] = Bitmap.new(8, 8)
  2390. @starburst_bitmaps[16].fill_rect(3, 2, 1, 3, starburst_blue)
  2391. @starburst_bitmaps[16].fill_rect(2, 3, 3, 1, starburst_blue)
  2392. @starburst_bitmaps[16].set_pixel(3, 3, starburst_cyan)

  2393. # 18en starburst bitmap
  2394. @starburst_bitmaps[17] = Bitmap.new(8, 8)
  2395. @starburst_bitmaps[17].fill_rect(3, 2, 1, 3, starburst_violet)
  2396. @starburst_bitmaps[17].fill_rect(2, 3, 3, 1, starburst_violet)
  2397. @starburst_bitmaps[17].set_pixel(3, 3, starburst_purple)

  2398. # 19en starburst bitmap
  2399. @starburst_bitmaps[18] = Bitmap.new(7, 7)
  2400. @starburst_bitmaps[18].set_pixel(1, 1, starburst_violettwo)
  2401. @starburst_bitmaps[18].set_pixel(5, 1, starburst_violettwo)
  2402. @starburst_bitmaps[18].set_pixel(2, 2, starburst_violettwo)
  2403. @starburst_bitmaps[18].set_pixel(4, 2, starburst_violettwo)
  2404. @starburst_bitmaps[18].set_pixel(3, 3, starburst_violet)
  2405. @starburst_bitmaps[18].set_pixel(2, 4, starburst_violet)
  2406. @starburst_bitmaps[18].set_pixel(4, 4, starburst_violet)
  2407. @starburst_bitmaps[18].set_pixel(1, 5, starburst_violet)
  2408. @starburst_bitmaps[18].set_pixel(5, 5, starburst_purple)

  2409. # 20y starburst bitmap
  2410. @starburst_bitmaps[19] = Bitmap.new(7, 7)
  2411. @starburst_bitmaps[19].fill_rect(3, 1, 1, 5, starburst_violettwo)
  2412. @starburst_bitmaps[19].fill_rect(1, 3, 5, 1, starburst_violettwo)
  2413. @starburst_bitmaps[19].fill_rect(3, 2, 1, 3, starburst_violet)
  2414. @starburst_bitmaps[19].fill_rect(2, 3, 3, 1, starburst_violet)
  2415. @starburst_bitmaps[19].set_pixel(3, 3, starburst_violet)

  2416. # 21st starburst bitmap
  2417. @starburst_bitmaps[20] = Bitmap.new(7, 7)
  2418. @starburst_bitmaps[20].fill_rect(2, 1, 3, 5, starburst_violettwo)
  2419. @starburst_bitmaps[20].fill_rect(1, 2, 5, 3, starburst_violettwo)
  2420. @starburst_bitmaps[20].fill_rect(2, 2, 3, 3, starburst_violet)
  2421. @starburst_bitmaps[20].fill_rect(3, 1, 1, 5, starburst_violet)
  2422. @starburst_bitmaps[20].fill_rect(1, 3, 5, 1, starburst_violet)
  2423. @starburst_bitmaps[20].fill_rect(3, 2, 1, 3, starburst_purple)
  2424. @starburst_bitmaps[20].fill_rect(2, 3, 3, 1, starburst_purple)
  2425. @starburst_bitmaps[20].set_pixel(3, 3, starburst_purple)

  2426. # 22nd starburst bitmap
  2427. @starburst_bitmaps[21] = Bitmap.new(7, 7)
  2428. @starburst_bitmaps[21].fill_rect(2, 1, 3, 5, starburst_violet)
  2429. @starburst_bitmaps[21].fill_rect(1, 2, 5, 3, starburst_violet)
  2430. @starburst_bitmaps[21].fill_rect(3, 0, 1, 7, starburst_violettwo)
  2431. @starburst_bitmaps[21].fill_rect(0, 3, 7, 1, starburst_violettwo)
  2432. @starburst_bitmaps[21].fill_rect(2, 2, 3, 3, starburst_purple)
  2433. @starburst_bitmaps[21].fill_rect(3, 2, 1, 3, starburst_violet)
  2434. @starburst_bitmaps[21].fill_rect(2, 3, 3, 1, starburst_violet)
  2435. @starburst_bitmaps[21].set_pixel(3, 3, starburst_purple)

  2436. # 23d starburst bitmap
  2437. @starburst_bitmaps[22] = Bitmap.new(8, 8)
  2438. @starburst_bitmaps[22].fill_rect(3, 2, 1, 3, starburst_violet)
  2439. @starburst_bitmaps[22].fill_rect(2, 3, 3, 1, starburst_violet)
  2440. @starburst_bitmaps[22].set_pixel(3, 3, starburst_purple)

  2441. # 24th starburst bitmap
  2442. @starburst_bitmaps[23] = Bitmap.new(8, 8)
  2443. @starburst_bitmaps[23].fill_rect(3, 2, 1, 3, starburst_red)
  2444. @starburst_bitmaps[23].fill_rect(2, 3, 3, 1, starburst_red)
  2445. @starburst_bitmaps[23].set_pixel(3, 3, starburst_pink)

  2446. # 25th starburst bitmap
  2447. @starburst_bitmaps[24] = Bitmap.new(7, 7)
  2448. @starburst_bitmaps[24].set_pixel(1, 1, starburst_redtwo)
  2449. @starburst_bitmaps[24].set_pixel(5, 1, starburst_redtwo)
  2450. @starburst_bitmaps[24].set_pixel(2, 2, starburst_redtwo)
  2451. @starburst_bitmaps[24].set_pixel(4, 2, starburst_redtwo)
  2452. @starburst_bitmaps[24].set_pixel(3, 3, starburst_red)
  2453. @starburst_bitmaps[24].set_pixel(2, 4, starburst_red)
  2454. @starburst_bitmaps[24].set_pixel(4, 4, starburst_red)
  2455. @starburst_bitmaps[24].set_pixel(1, 5, starburst_red)
  2456. @starburst_bitmaps[24].set_pixel(5, 5, starburst_pink)

  2457. # 26th starburst bitmap
  2458. @starburst_bitmaps[25] = Bitmap.new(7, 7)
  2459. @starburst_bitmaps[25].fill_rect(3, 1, 1, 5, starburst_redtwo)
  2460. @starburst_bitmaps[25].fill_rect(1, 3, 5, 1, starburst_redtwo)
  2461. @starburst_bitmaps[25].fill_rect(3, 2, 1, 3, starburst_red)
  2462. @starburst_bitmaps[25].fill_rect(2, 3, 3, 1, starburst_red)
  2463. @starburst_bitmaps[25].set_pixel(3, 3, starburst_pink)

  2464. # 27th starburst bitmap
  2465. @starburst_bitmaps[26] = Bitmap.new(7, 7)
  2466. @starburst_bitmaps[26].fill_rect(2, 1, 3, 5, starburst_redtwo)
  2467. @starburst_bitmaps[26].fill_rect(1, 2, 5, 3, starburst_redtwo)
  2468. @starburst_bitmaps[26].fill_rect(2, 2, 3, 3, starburst_red)
  2469. @starburst_bitmaps[26].fill_rect(3, 1, 1, 5, starburst_red)
  2470. @starburst_bitmaps[26].fill_rect(1, 3, 5, 1, starburst_red)
  2471. @starburst_bitmaps[26].fill_rect(3, 2, 1, 3, starburst_pink)
  2472. @starburst_bitmaps[26].fill_rect(2, 3, 3, 1, starburst_pink)
  2473. @starburst_bitmaps[26].set_pixel(3, 3, starburst_pink)

  2474. # 28th starburst bitmap
  2475. @starburst_bitmaps[27] = Bitmap.new(7, 7)
  2476. @starburst_bitmaps[27].fill_rect(2, 1, 3, 5, starburst_red)
  2477. @starburst_bitmaps[27].fill_rect(1, 2, 5, 3, starburst_red)
  2478. @starburst_bitmaps[27].fill_rect(3, 0, 1, 7, starburst_redtwo)
  2479. @starburst_bitmaps[27].fill_rect(0, 3, 7, 1, starburst_redtwo)
  2480. @starburst_bitmaps[27].fill_rect(2, 2, 3, 3, starburst_pink)
  2481. @starburst_bitmaps[27].fill_rect(3, 2, 1, 3, starburst_red)
  2482. @starburst_bitmaps[27].fill_rect(2, 3, 3, 1, starburst_red)
  2483. @starburst_bitmaps[27].set_pixel(3, 3, starburst_pink)

  2484. # 29th starburst bitmap
  2485. @starburst_bitmaps[28] = Bitmap.new(8, 8)
  2486. @starburst_bitmaps[28].fill_rect(3, 2, 1, 3, starburst_red)
  2487. @starburst_bitmaps[28].fill_rect(2, 3, 3, 1, starburst_red)
  2488. @starburst_bitmaps[28].set_pixel(3, 3, starburst_pink)

  2489. # 30y starburst bitmap
  2490. @starburst_bitmaps[29] = Bitmap.new(8, 8)
  2491. @starburst_bitmaps[29].fill_rect(3, 2, 1, 3, starburst_orange)
  2492. @starburst_bitmaps[29].fill_rect(2, 3, 3, 1, starburst_orange)
  2493. @starburst_bitmaps[29].set_pixel(3, 3, starburst_lightorange)

  2494. # 31st starburst bitmap
  2495. @starburst_bitmaps[30] = Bitmap.new(7, 7)
  2496. @starburst_bitmaps[30].set_pixel(1, 1, starburst_orangetwo)
  2497. @starburst_bitmaps[30].set_pixel(5, 1, starburst_orangetwo)
  2498. @starburst_bitmaps[30].set_pixel(2, 2, starburst_orangetwo)
  2499. @starburst_bitmaps[30].set_pixel(4, 2, starburst_orangetwo)
  2500. @starburst_bitmaps[30].set_pixel(3, 3, starburst_orange)
  2501. @starburst_bitmaps[30].set_pixel(2, 4, starburst_orange)
  2502. @starburst_bitmaps[30].set_pixel(4, 4, starburst_orange)
  2503. @starburst_bitmaps[30].set_pixel(1, 5, starburst_orange)
  2504. @starburst_bitmaps[30].set_pixel(5, 5, starburst_lightorange)

  2505. # 32nd starburst bitmap
  2506. @starburst_bitmaps[31] = Bitmap.new(7, 7)
  2507. @starburst_bitmaps[31].fill_rect(3, 1, 1, 5, starburst_orangetwo)
  2508. @starburst_bitmaps[31].fill_rect(1, 3, 5, 1, starburst_orangetwo)
  2509. @starburst_bitmaps[31].fill_rect(3, 2, 1, 3, starburst_orange)
  2510. @starburst_bitmaps[31].fill_rect(2, 3, 3, 1, starburst_orange)
  2511. @starburst_bitmaps[31].set_pixel(3, 3, starburst_lightorange)

  2512. # 33d starburst bitmap
  2513. @starburst_bitmaps[32] = Bitmap.new(7, 7)
  2514. @starburst_bitmaps[32].fill_rect(2, 1, 3, 5, starburst_orangetwo)
  2515. @starburst_bitmaps[32].fill_rect(1, 2, 5, 3, starburst_orangetwo)
  2516. @starburst_bitmaps[32].fill_rect(2, 2, 3, 3, starburst_orange)
  2517. @starburst_bitmaps[32].fill_rect(3, 1, 1, 5, starburst_orange)
  2518. @starburst_bitmaps[32].fill_rect(1, 3, 5, 1, starburst_orange)
  2519. @starburst_bitmaps[32].fill_rect(3, 2, 1, 3, starburst_lightorange)
  2520. @starburst_bitmaps[32].fill_rect(2, 3, 3, 1, starburst_lightorange)
  2521. @starburst_bitmaps[32].set_pixel(3, 3, starburst_lightorange)

  2522. # 34th starburst bitmap
  2523. @starburst_bitmaps[33] = Bitmap.new(7, 7)
  2524. @starburst_bitmaps[33].fill_rect(2, 1, 3, 5, starburst_orange)
  2525. @starburst_bitmaps[33].fill_rect(1, 2, 5, 3, starburst_orange)
  2526. @starburst_bitmaps[33].fill_rect(3, 0, 1, 7, starburst_orangetwo)
  2527. @starburst_bitmaps[33].fill_rect(0, 3, 7, 1, starburst_orangetwo)
  2528. @starburst_bitmaps[33].fill_rect(2, 2, 3, 3, starburst_lightorange)
  2529. @starburst_bitmaps[33].fill_rect(3, 2, 1, 3, starburst_orange)
  2530. @starburst_bitmaps[33].fill_rect(2, 3, 3, 1, starburst_orange)
  2531. @starburst_bitmaps[33].set_pixel(3, 3, starburst_lightorange)

  2532. # 35th starburst bitmap
  2533. @starburst_bitmaps[34] = Bitmap.new(8, 8)
  2534. @starburst_bitmaps[34].fill_rect(3, 2, 1, 3, starburst_orange)
  2535. @starburst_bitmaps[34].fill_rect(2, 3, 3, 1, starburst_orange)
  2536. @starburst_bitmaps[34].set_pixel(3, 3, starburst_lightorange)

  2537. # 36th starburst bitmap
  2538. @starburst_bitmaps[35] = Bitmap.new(8, 8)
  2539. @starburst_bitmaps[35].set_pixel(3, 3, starburst_lightorange)
  2540. #-------------------------------------------------------------------------------
  2541. @monostarburst_bitmaps = []

  2542. # 1st starburst bitmap
  2543. @monostarburst_bitmaps[0] = Bitmap.new(8, 8)
  2544. @monostarburst_bitmaps[0].set_pixel(3, 3, starburst_lightyellow)

  2545. # 2nd starburst bitmap
  2546. @monostarburst_bitmaps[1] = Bitmap.new(8, 8)
  2547. @monostarburst_bitmaps[1].fill_rect(3, 2, 1, 3, starburst_yellow)
  2548. @monostarburst_bitmaps[1].fill_rect(2, 3, 3, 1, starburst_yellow)
  2549. @monostarburst_bitmaps[1].set_pixel(3, 3, starburst_lightyellow)

  2550. # 3d starburst bitmap
  2551. @monostarburst_bitmaps[2] = Bitmap.new(7, 7)
  2552. @monostarburst_bitmaps[2].set_pixel(1, 1, starburst_yellowtwo)
  2553. @monostarburst_bitmaps[2].set_pixel(5, 1, starburst_yellowtwo)
  2554. @monostarburst_bitmaps[2].set_pixel(2, 2, starburst_yellowtwo)
  2555. @monostarburst_bitmaps[2].set_pixel(4, 2, starburst_yellowtwo)
  2556. @monostarburst_bitmaps[2].set_pixel(3, 3, starburst_yellow)
  2557. @monostarburst_bitmaps[2].set_pixel(2, 4, starburst_yellow)
  2558. @monostarburst_bitmaps[2].set_pixel(4, 4, starburst_yellow)
  2559. @monostarburst_bitmaps[2].set_pixel(1, 5, starburst_yellow)
  2560. @monostarburst_bitmaps[2].set_pixel(5, 5, starburst_lightyellow)

  2561. # 4th starburst bitmap
  2562. @monostarburst_bitmaps[3] = Bitmap.new(7, 7)
  2563. @monostarburst_bitmaps[3].fill_rect(3, 1, 1, 5, starburst_yellowtwo)
  2564. @monostarburst_bitmaps[3].fill_rect(1, 3, 5, 1, starburst_yellowtwo)
  2565. @monostarburst_bitmaps[3].fill_rect(3, 2, 1, 3, starburst_yellow)
  2566. @monostarburst_bitmaps[3].fill_rect(2, 3, 3, 1, starburst_yellow)
  2567. @monostarburst_bitmaps[3].set_pixel(3, 3, starburst_lightyellow)

  2568. # 5th starburst bitmap
  2569. @monostarburst_bitmaps[4] = Bitmap.new(7, 7)
  2570. @monostarburst_bitmaps[4].fill_rect(2, 1, 3, 5, starburst_yellowtwo)
  2571. @monostarburst_bitmaps[4].fill_rect(1, 2, 5, 3, starburst_yellowtwo)
  2572. @monostarburst_bitmaps[4].fill_rect(2, 2, 3, 3, starburst_yellow)
  2573. @monostarburst_bitmaps[4].fill_rect(3, 1, 1, 5, starburst_yellow)
  2574. @monostarburst_bitmaps[4].fill_rect(1, 3, 5, 1, starburst_yellow)
  2575. @monostarburst_bitmaps[4].fill_rect(3, 2, 1, 3, starburst_lightyellow)
  2576. @monostarburst_bitmaps[4].fill_rect(2, 3, 3, 1, starburst_lightyellow)
  2577. @monostarburst_bitmaps[4].set_pixel(3, 3, starburst_lightyellow)

  2578. # 6th starburst bitmap
  2579. @monostarburst_bitmaps[5] = Bitmap.new(7, 7)
  2580. @monostarburst_bitmaps[5].fill_rect(2, 1, 3, 5, starburst_yellow)
  2581. @monostarburst_bitmaps[5].fill_rect(1, 2, 5, 3, starburst_yellow)
  2582. @monostarburst_bitmaps[5].fill_rect(3, 0, 1, 7, starburst_yellowtwo)
  2583. @monostarburst_bitmaps[5].fill_rect(0, 3, 7, 1, starburst_yellowtwo)
  2584. @monostarburst_bitmaps[5].fill_rect(2, 2, 3, 3, starburst_lightyellow)
  2585. @monostarburst_bitmaps[5].fill_rect(3, 2, 1, 3, starburst_yellow)
  2586. @monostarburst_bitmaps[5].fill_rect(2, 3, 3, 1, starburst_yellow)
  2587. @monostarburst_bitmaps[5].set_pixel(3, 3, starburst_lightyellow)

  2588. # 7th starburst bitmap
  2589. @monostarburst_bitmaps[6] = Bitmap.new(8, 8)
  2590. @monostarburst_bitmaps[6].fill_rect(3, 2, 1, 3, starburst_yellow)
  2591. @monostarburst_bitmaps[6].fill_rect(2, 3, 3, 1, starburst_yellow)
  2592. @monostarburst_bitmaps[6].set_pixel(3, 3, starburst_lightyellow)

  2593. # 8th starburst bitmap
  2594. @monostarburst_bitmaps[7] = Bitmap.new(8, 8)
  2595. @monostarburst_bitmaps[7].set_pixel(3, 3, starburst_lightyellow)
  2596. #-------------------------------------------------------------------------------

  2597. @user_bitmaps = []
  2598. update_user_defined
  2599. end

  2600. def update_user_defined
  2601. for image in @user_bitmaps
  2602. image.dispose
  2603. end

  2604. #user-defined bitmaps
  2605. for name in $WEATHER_IMAGES
  2606. @user_bitmaps.push(RPG::Cache.picture(name))
  2607. end
  2608. for sprite in @sprites
  2609. sprite.bitmap = @user_bitmaps[rand(@user_bitmaps.size)]
  2610. end
  2611. end
  2612. end

  2613. class Scene_Map
  2614. def weather
  2615. @spriteset.weather
  2616. end
  2617. end
  2618. class Spriteset_Map
  2619. attr_accessor :weather
  2620. end
复制代码

点评

⊙_⊙这么长的脚本,辛苦你了。  发表于 2013-10-4 08:37
神马原因?我什么都看不到- -  发表于 2011-2-18 19:43
如果是转载请发地球村,看起来是外国人写的东东用蹩脚的谷歌翻译的中文?  发表于 2011-1-9 10:35
脚本所需大量素材(声音的),因此脚本无法在所有机器上表现效果,请重补截图和工程,脚本过长就不用发了。  发表于 2011-1-8 21:01

评分

参与人数 5星屑 +71 收起 理由
张咚咚 + 5 辛苦了
诡异の猫 + 60 very good 感谢
pigger123 + 2 精品文章/我很赞同——保持队形.
退屈£无聊 + 2 LZ自行要求
liqunsz + 2 精品内容/我很赞同

查看全部评分

Lv2.观梦者

梦石
0
星屑
398
在线时间
972 小时
注册时间
2007-12-31
帖子
2137
2
发表于 2011-1-8 20:44:51 | 只看该作者
本帖最后由 liqunsz 于 2011-1-8 20:49 编辑

占楼抢位置

围观群众表示我什么都不知道
回复 支持 反对

使用道具 举报

Lv1.梦旅人

小小的百鬼夜行<

梦石
0
星屑
54
在线时间
579 小时
注册时间
2010-7-29
帖子
2682

贵宾

3
发表于 2011-1-8 20:49:42 | 只看该作者
抢楼太完了喵
我是来看奇迹的

点评

我发出来的时候就表示着你们已经晚了=ω=  发表于 2011-1-8 20:50
某只PHP/HTML小白鼠→退屈の间


Cause I knew you were trouble when you walked in
So shame is on me now
I flow me to place i ve never been
till you put me down oh
Now Im lying on the cold hard ground
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
49
在线时间
83 小时
注册时间
2008-4-19
帖子
420
4
发表于 2011-1-8 20:52:02 | 只看该作者
难为LZ了- -
像素什么的都是一个一个调的吧
好吧这是II让我贴的- -
回复 支持 反对

使用道具 举报

Lv4.逐梦者 (版主)

职业の水客

梦石
0
星屑
13969
在线时间
7201 小时
注册时间
2010-6-16
帖子
3497

开拓者

5
发表于 2011-1-8 21:36:43 | 只看该作者
- -强大........围观状态

点评

⊙_⊙  发表于 2013-10-4 08:38
一个看图的地方
群爆炸重建后状态:论坛老人最多(只剩下了活跃的老人),技术力很强(依旧不变)的编程灌水群:901540785
专门讨论RM相关的Q群:56875149
PS:第一个群不是专门讨论RM的,第二个才是哦。
回复 支持 反对

使用道具 举报

Lv4.逐梦者

弓箭手?剑兰

梦石
0
星屑
5459
在线时间
833 小时
注册时间
2010-11-17
帖子
1140
6
发表于 2011-1-8 23:56:43 | 只看该作者
1.脚本请用脚本框框着,不然很卡
2.这是脚本发布吗?(应该去发布区的)
3.脚本太长不要显示出来,只要在文章里注意标示作者就好了。
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
62
在线时间
77 小时
注册时间
2010-12-30
帖子
15
7
 楼主| 发表于 2011-1-9 10:10:06 | 只看该作者
代码用完就消失了,没办法

点评

⊙_⊙  发表于 2013-10-4 08:38
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
217 小时
注册时间
2009-11-15
帖子
42
8
发表于 2011-2-5 18:01:44 | 只看该作者
LZ啊。太谢谢你了啊,谢谢啊
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
184 小时
注册时间
2010-6-27
帖子
1794
9
发表于 2011-2-5 20:37:52 | 只看该作者
回复 329093766 的帖子

我竟然看不到
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-11-16 00:39

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表