Guest User

Untitled

a guest
Jul 25th, 2018
650
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 228.29 KB | None | 0 0
  1. #=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
  2. # Zer0 Advanced Weather
  3. # Author: ForeverZer0
  4. # Base Script: Ccoa
  5. # Color Effects: Agckuu Coceg
  6. # Version: 1.1
  7. # Date: 4.7.2010
  8. #=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
  9. # Version History
  10. #=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
  11. # Version 1.0 (3.31.2010)
  12. # - Original Release
  13. #
  14. # Version 1.1 (4.7.2010)
  15. # - Added weather effects
  16. # - Bats
  17. # - Bees
  18. # - Fish (good for underwater scenes)
  19. # - Ravens
  20. # - Butterfly flight has been made a little more random, they will now turn
  21. # and not just move in a straight line until they leave the screen
  22. # - Improved leaf effects. They now initialize in random poses.
  23. # - Updated Credits, forgot to credit Blizzard for Bitmap2Code! :\
  24. # - Made some minor coding improvements
  25. #
  26. #=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
  27. #
  28. # Instructions:
  29. #
  30. # 1. Place anywhere below Spriteset_Map.
  31. # 2. Weather can be still be changed with the normal script call...
  32. #
  33. # $game_screen.weather(type, power, transition)
  34. #
  35. # ...but a new addition has been added. The weather variation can be
  36. # changed by using this script call:
  37. #
  38. # $game_screen.weather(type, power, transition, variation)
  39. #
  40. # If you omit the variation, it will be assumed to be 0 and the normal
  41. # default weather pattern will be used.
  42. #
  43. # Notes/Issues:
  44. #
  45. # Realistic Storm uses random volume and pitch for the thunder. It also
  46. # incorporates a quick screen shake (Agckuu Coceg), but only if the
  47. # volume and pitch are both high (ForeverZer0), to give a realistic feel
  48. # to the storm.
  49. #
  50. # Credits/Thanks:
  51. #
  52. # 1. Ccoa (base script, most default weather effects)
  53. # 2. Agckuu Coceg (inspiration, most color effects)
  54. # 3. Blizzard (Bitmap2Code program made new effects possible)
  55. # 4. ForeverZer0 (all the rest ;)
  56. #
  57. #=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
  58. #
  59. # Anything within () is a possible variation for the respective weather type.
  60. # The first item is the default, or 0, and the following are 1, 2, etc. in
  61. # order.
  62. #
  63. # Weather Types
  64. # 1. Rain (Normal, Blood, Oil, Acid, Golden, Sepia)
  65. # 2. Storm (Normal, Blood, Oil, Acid, Golden, Sepia)
  66. # 3. Snow (Normal, Crimson)
  67. # 4. Hail
  68. # 5. Rain w/ thunder & lightning (Normal, Blood, Oil, Acid, Golden, Sepia)
  69. # 6. Falling Leaves (Green, Yellow, Autumn, Red Maple)
  70. # 7. Blowing Leaves (Green, Yellow, Autumn, Red Maple)
  71. # 8. Swirling Leaves (Green, Yellow, Autumn, Red Maple)
  72. # 9. Realistic Storm
  73. # 10. Sakura Petals
  74. # 11. Petals (Rose, bubble_color3, Tiger Lily, Pink, Blue, Green, Blue-Purple)
  75. # 12. Feathers
  76. # 13. Butterflies (Violet, Red, Yellow, Aqua-blue, Green)
  77. # 14. Sparkles (Blue, Lavender, Pink, Green, White)
  78. # 15. User Defined
  79. # 16. Blowing Snow (Normal, Crimson)
  80. # 17. Meteors (Normal, Flame, Rock)
  81. # 18. Falling Ash
  82. # 19. Bubbles
  83. # 20. Bubbles 2
  84. # 21. Sparkles (Up) (Blue, Lavender, Pink, Green, White)
  85. # 22. Falling Rocks
  86. # 23. Arrows
  87. # 24. Starburst-Burst
  88. # 25. Starburst-Up
  89. # 26. Starburst-Rain
  90. # 27. Monochromatic Starburst-Burst (Yellow, Green, Aqua-blue, Blue, Violet, Red)
  91. # 28. Monochromatic Starburst-Up (same as above)
  92. # 29. Monochromatic Starburst-Down (same as above)
  93. # 30. Bombs (Water, Ice, Flare)
  94. # 31. Birds
  95. # 32. Bats
  96. # 33. Bees
  97. # 34. Fish
  98. # 35. Ravens
  99. #
  100. #=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
  101. # BEGIN CONFIGURATION
  102. #=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
  103.  
  104. WEATHER_TYPE_VARIABLE = 25
  105. # ID of game variable. Will be equal to the "type" of weather.
  106.  
  107. ADVERSE_WEATHER_SWITCH = 13
  108. # ID of the game switch. Will be true during bad weather. (see below)
  109.  
  110. ADVERSE_WEATHER = [1, 2, 4, 5, 9, 16]
  111. # Include any effects you wish. Adverse weather switch will be true when
  112. # any of these weather patterns are occuring.
  113.  
  114. THUNDER_RATE = 6
  115. # Adjust how constant the thunder is. Higher values will increase the delay
  116. # between thunder strikes. Weather power will still effect the rate, but this
  117. # will change the overall rate. 0 will result in constant, unending screen
  118. # flashes. Not good for epileptics... :P
  119.  
  120. #=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
  121. # END CONFIGURATION
  122. #=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
  123.  
  124. #-------------------------------------------------------------------------------
  125. # Weather Power:
  126. # An integer from 0-50. 0 = no weather, 50 = 500 sprites
  127. #-------------------------------------------------------------------------------
  128. # Transition:
  129. # The number of frames to "transition" the weather in
  130. #-------------------------------------------------------------------------------
  131. # Usage of user-defined weather:
  132. # Look at the following globals:
  133. #-------------------------------------------------------------------------------
  134. $WEATHER_UPDATE = false # the $WEATHER_IMAGES array has changed, please update
  135. $WEATHER_IMAGES = [] # the array of picture names to use
  136. $WEATHER_X = 0 # the number of pixels the image should move horizontally (positive = right, negative = left)
  137. $WEATHER_Y = 0 # the number of pizels the image should move vertically (positive = down, negative = up)
  138. $WEATHER_FADE = 0 # how much the image should fade each update (0 = no fade, 255 = fade instantly)
  139. $WEATHER_ANIMATED = false # whether or not the image should cycle through all the images
  140. #-------------------------------------------------------------------------------
  141.  
  142. $zer0_adv_weather = 1.1
  143.  
  144. module RPG
  145. class Weather
  146. def initialize(viewport = nil)
  147. $game_screen = Game_Screen.new if $game_screen == nil
  148. @type = @max = @ox = @oy = @count = 0
  149. @current_pose, @info, @countarray = [], [], []
  150. make_bitmaps
  151.  
  152. (1..500).each {|i|
  153. sprite = Sprite.new(viewport)
  154. sprite.z = 1000
  155. sprite.visible = false
  156. sprite.opacity = 0
  157. @sprites.push(sprite)
  158. @current_pose.push(0)
  159. @info.push(rand(50))
  160. @countarray.push(rand(15))
  161. }
  162. end
  163.  
  164. def dispose
  165.  
  166. @sprites.each {|sprite| sprite.dispose}
  167.  
  168. [@rain_bitmap, @storm_bitmap, @impact_bitmap, @meteor_bitmap, @hail_bitmap,
  169. @sakura_bitmap, @snow_bitmap, @bomb_bitmap, @arrow_bitmap, @fish_bitmap
  170. ].each {|bitmap| bitmap.dispose}
  171.  
  172. @leaf_bitmaps.each {|image| image.dispose}
  173. @petal_bitmaps.each {|image| image.dispose}
  174. @feather_bitmaps.each {|image| image.dispose}
  175. @sparkle_bitmaps.each {|image| image.dispose}
  176. @starburst_bitmaps.each {|image| image.dispose}
  177. @monostarburst_bitmaps.each {|image| image.dispose}
  178. @fallingrocks_bitmaps.each {|image| image.dispose}
  179. @butterfly_bitmaps.each {|image| image.dispose}
  180. @bird_bitmaps.each {|image| image.dispose}
  181. @bat_bitmaps.each {|image| image.dispose}
  182. @bee_bitmaps.each {|image| image.dispose}
  183. @raven_bitmaps.each {|image| image.dispose}
  184. @user_bitmaps.each {|image| image.dispose}
  185.  
  186. $WEATHER_UPDATE = true
  187.  
  188. end
  189. #-------------------------------------------------------------------------------
  190. def type=(type)
  191. return if @type == type
  192. @type = type
  193. case @type
  194. when 1, 5, 9 # Rain, Thunder, Real Thunder
  195. bitmap = @rain_bitmap
  196. @thunder = true if @type == 5
  197. @realistic_thunder = true if @type == 9
  198. when 2 # Storm
  199. bitmap = @storm_bitmap
  200. when 3, 16 # Snow
  201. bitmap = @snow_bitmap
  202. when 4 # Hail
  203. bitmap = @hail_bitmap
  204. when 6, 7, 8 # Leaves
  205. bitmap = @leaf_bitmaps
  206. when 10 # Sakura petals
  207. bitmap = @sakura_bitmap
  208. when 11 # Flower petals
  209. bitmap = @petal_bitmaps[0]
  210. when 12 # Feathers
  211. bitmap = @feather_bitmaps[0]
  212. when 13 # Butterflies
  213. bitmap = @butterfly_bitmaps
  214. when 14 # Sparkles
  215. bitmap = @sparkle_bitmaps[0]
  216. when 15 # User-defined
  217. r = rand(@user_bitmaps.size)
  218. bitmap = @user_bitmaps[r]
  219. when 17 # Meteors
  220. bitmap = @meteor_bitmap
  221. when 18 # Falling ash
  222. bitmap = @ash_bitmaps[rand(2)]
  223. when 19 # Bubbles
  224. bitmap = @bubble_bitmaps[rand(2)]
  225. when 20 # Bubbles 2
  226. bitmap = @bubble2_bitmaps[rand(4)]
  227. when 21 # Sparkles up
  228. bitmap = @sparkle_bitmaps[0]
  229. when 22 # Falling rocks
  230. bitmap = @fallingrocks_bitmaps
  231. when 23 # Arrows
  232. bitmap = @arrow_bitmap
  233. when 24, 25, 26 # Starburst
  234. bitmap = @starburst_bitmaps[0]
  235. when 27, 28, 29 # Mono-starburst
  236. bitmap = @monostarburst_bitmaps[0]
  237. when 30 # Bombs
  238. bitmap = @bomb_bitmap
  239. when 31 # Birds
  240. bitmap = @bird_bitmaps
  241. when 32 # Bats
  242. bitmap = @bat_bitmaps
  243. when 33 # Bees
  244. bitmap = @bee_bitmaps
  245. when 34 # Fish
  246. bitmap = @fish_bitmap
  247. when 35 # Ravens
  248. bitmap = @raven_bitmaps
  249. else # No weather
  250. bitmap = nil
  251. end
  252.  
  253. @thunder = false if @type != 5
  254. @realistic_thunder = false if @type != 9
  255.  
  256. # Operates the Adverse Weather Switch and Weather Type Variable
  257. if $game_switches != nil && $game_variables != nil
  258. $game_variables[WEATHER_TYPE_VARIABLE] = $game_screen.weather_type
  259. if ADVERSE_WEATHER.include?($game_screen.weather_type)
  260. $game_switches[ADVERSE_WEATHER_SWITCH] = true
  261. else
  262. $game_switches[ADVERSE_WEATHER_SWITCH] = false
  263. end
  264. end
  265.  
  266. (1..500).each {|i|
  267. sprite = @sprites[i]
  268. if sprite != nil
  269. sprite.visible = (i <= @max)
  270. if @type == 3
  271. r = @info[i] = rand(4)
  272. sprite.bitmap = @snow_bitmaps[r]
  273. elsif @type == 6 || @type == 7 || @type == 8
  274. @current_pose[i] = rand(13)
  275. bitmap = @leaf_bitmaps[@current_pose[i]]
  276. elsif @type == 13
  277. @current_pose[i] = rand(16)
  278. sprite.bitmap = @butterfly_bitmaps[@current_pose[i]]
  279. elsif @type == 19
  280. sprite.bitmap = @bubble_bitmaps[rand(2)]
  281. elsif @type == 20
  282. sprite.bitmap = @bubble2_bitmaps[rand(4)]
  283. elsif @type == 22
  284. r = @info[i] = rand(3)
  285. sprite.bitmap = @fallingrocks_bitmaps[r]
  286. elsif @type == 31
  287. @current_pose[i] = rand(4)
  288. sprite.bitmap = @bird_bitmaps[@current_pose[i]]
  289. elsif @type == 32
  290. @current_pose[i] = rand(16)
  291. sprite.bitmap = @bat_bitmaps[@current_pose[i]]
  292. elsif @type == 33
  293. @current_pose[i] = rand(16)
  294. sprite.bitmap = @bee_bitmaps[@current_pose[i]]
  295. elsif @type == 34
  296. @info[i] = rand(200)
  297. sprite.bitmap = bitmap
  298. elsif @type == 35
  299. @current_pose[i] = rand(16)
  300. sprite.bitmap = @raven_bitmaps[@current_pose[i]]
  301. else
  302. sprite.bitmap = bitmap
  303. end
  304. end
  305. }
  306. end
  307.  
  308. def ox=(ox)
  309. return if @ox == ox;
  310. @ox = ox
  311. @sprites.each {|sprite| sprite.ox = @ox}
  312. end
  313.  
  314. def oy=(oy)
  315. return if @oy == oy;
  316. @oy = oy
  317. @sprites.each {|sprite| sprite.oy = @oy}
  318. end
  319.  
  320. def max=(max)
  321. return if @max == max;
  322. @max = [[max, 0].max, 500].min
  323. (1..500).each {|i|
  324. sprite = @sprites[i]
  325. sprite.visible = (i <= @max) if sprite != nil
  326. }
  327. end
  328.  
  329. #-------------------------------------------------------------------------------
  330. def update
  331. return if @type == 0
  332. (1..@max).each {|i|
  333. sprite = @sprites[i]
  334. break if sprite == nil
  335. #----------------------------------------------------------------------
  336. if @type == 1 || @type == 5 || @type == 9 # Rain
  337. if sprite.opacity <= 150
  338. if @current_pose[i] == 0
  339. sprite.y += @rain_bitmap.height
  340. sprite.x -= @rain_bitmap.width
  341. if @type == 1 || @type == 5 || @type == 9
  342. sprite.bitmap = @rain_splash
  343. end
  344. @current_pose[i] = 1
  345. end
  346. else
  347. if @current_pose[i] == 1
  348. if @type == 1 || @type == 5 || @type == 9
  349. sprite.bitmap = @rain_bitmap
  350. end
  351. @current_pose[i] = 0
  352. end
  353. sprite.x -= 2
  354. sprite.y += 16
  355. if @thunder && (rand((THUNDER_RATE * 2000) - @max) == 0)
  356. case $game_screen.weather_variation
  357. when 0, 2, 3, 4 # Normal, Acid, Oil, and Golden
  358. $game_screen.start_flash(Color.new(255, 255, 255, 255), 5)
  359. when 1 # Blood
  360. $game_screen.start_flash(Color.new(141, 9, 9, 255), 5)
  361. when 5 # Sepia
  362. $game_screen.start_flash(Color.new(169, 152, 142, 255), 5)
  363. end
  364. Audio.se_play('Audio/SE/061-Thunderclap01')
  365. end
  366. end
  367. sprite.opacity -= 8
  368. end
  369. if @realistic_thunder && (rand((THUNDER_RATE * 2000) - @max) == 0)
  370. thundervolume = rand(50) + 50 # Random number 50-100
  371. thunderpitch = rand(100) + 50 # Random number 50-150
  372. Audio.se_play('Audio/SE/061-Thunderclap01', thundervolume, thunderpitch)
  373. # Screen will not flash or shake unless the volume and pitch are high
  374. if thundervolume > 75 && thunderpitch > 100
  375. $game_screen.start_flash(Color.new(255, 255, 255, 255), 7)
  376. $game_screen.start_shake(9, 7, 5)
  377. end
  378. end
  379. #----------------------------------------------------------------------
  380. if @type == 2 # Storm
  381. sprite.x -= 8
  382. sprite.y += 16
  383. sprite.opacity -= 12
  384. end
  385. #----------------------------------------------------------------------
  386. if @type == 3 # Snow
  387. case @info[i]
  388. when 0
  389. sprite.y += 1
  390. when 1
  391. sprite.y += 3
  392. when 2
  393. sprite.y += 5
  394. when 3
  395. sprite.y += 7
  396. end
  397. sprite.opacity -= 3
  398. end
  399. #----------------------------------------------------------------------
  400. if @type == 4 # Hail
  401. sprite.x -= 1
  402. sprite.y += 18
  403. sprite.opacity -= 15
  404. end
  405. #----------------------------------------------------------------------
  406. if @type == 6 # Falling Leaves
  407. @count = rand(20)
  408. if @count == 0
  409. sprite.bitmap = @leaf_bitmaps[@current_pose[i]]
  410. @current_pose[i] = (@current_pose[i] + 1) % 13
  411. end
  412. sprite.y += 1
  413. end
  414. #----------------------------------------------------------------------
  415. if @type == 7 # Blowing Leaves
  416. @count = rand(20)
  417. if @count == 0
  418. sprite.bitmap = @leaf_bitmaps[@current_pose[i]]
  419. @current_pose[i] = (@current_pose[i] + 1) % 13
  420. end
  421. sprite.x -= 10
  422. sprite.y += (rand(4) - 2)
  423. end
  424. #----------------------------------------------------------------------
  425. if @type == 8 # Swirling Leaves
  426. @count = rand(20)
  427. if @count == 0
  428. sprite.bitmap = @leaf_bitmaps[@current_pose[i]]
  429. @current_pose[i] = (@current_pose[i] + 1) % 13
  430. end
  431. if @info[i] != 0
  432. if @info[i] >= 1 && @info[i] <= 10
  433. sprite.x -= 3
  434. sprite.y -= 1
  435. elsif @info[i] >= 11 && @info[i] <= 16
  436. sprite.x -= 1
  437. sprite.y -= 2
  438. elsif @info[i] >= 17 && @info[i] <= 20
  439. sprite.y -= 3
  440. elsif @info[i] >= 21 && @info[i] <= 30
  441. sprite.y -= 2
  442. sprite.x += 1
  443. elsif @info[i] >= 31 && @info[i] <= 36
  444. sprite.y -= 1
  445. sprite.x += 3
  446. elsif @info[i] >= 37 && @info[i] <= 40
  447. sprite.x += 5
  448. elsif @info[i] >= 41 && @info[i] <= 46
  449. sprite.y += 1
  450. sprite.x += 3
  451. elsif @info[i] >= 47 && @info[i] <= 58
  452. sprite.y += 2
  453. sprite.x += 1
  454. elsif @info[i] >= 59 && @info[i] <= 64
  455. sprite.y += 3
  456. elsif @info[i] >= 65 && @info[i] <= 70
  457. sprite.x -= 1
  458. sprite.y += 2
  459. elsif @info[i] >= 71 && @info[i] <= 81
  460. sprite.x -= 3
  461. sprite.y += 1
  462. elsif @info[i] >= 82 && @info[i] <= 87
  463. sprite.x -= 5
  464. end
  465. @info[i] = (@info[i] + 1) % 88
  466. else
  467. if rand(200) == 0
  468. @info[i] = 1
  469. end
  470. sprite.x -= 5
  471. sprite.y += 1
  472. end
  473. end
  474. #----------------------------------------------------------------------
  475. if @type == 10 # Sakura Petals
  476. if @info[i] < 25
  477. sprite.x -= 1
  478. else
  479. sprite.x += 1
  480. end
  481. @info[i] = (@info[i] + 1) % 50
  482. sprite.y += 1
  483. end
  484. #----------------------------------------------------------------------
  485. if @type == 11 # Flower Petals
  486. @count = rand(20)
  487. if @count == 0
  488. sprite.bitmap = @petal_bitmaps[@current_pose[i]]
  489. @current_pose[i] = (@current_pose[i] + 1) % @petal_bitmaps.size
  490. end
  491. if @info[i] % 2 == 0
  492. if @info[i] < 10
  493. sprite.x -= 1
  494. elsif
  495. sprite.x += 1
  496. end
  497. end
  498. sprite.y += 1
  499. end
  500. #----------------------------------------------------------------------
  501. if @type == 12 # Feathers
  502. if @countarray[i] == 0
  503. @current_pose[i] = (@current_pose[i] + 1) % @feather_bitmaps.size
  504. sprite.bitmap = @feather_bitmaps[@current_pose[i]]
  505. end
  506. @countarray[i] = (@countarray[i] + 1) % 15
  507. if rand(100) == 0
  508. sprite.x -= 1
  509. end
  510. if rand(100) == 0
  511. sprite.y -= 1
  512. end
  513. if @info[i] < 50
  514. if rand(2) == 0
  515. sprite.x -= 1
  516. else
  517. sprite.y -= 1
  518. end
  519. else
  520. if rand(2) == 0
  521. sprite.x += 1
  522. else
  523. sprite.y += 1
  524. end
  525. end
  526. @info[i] = (@info[i] + 1) % 100
  527. end
  528. #----------------------------------------------------------------------
  529. if @type == 13 # Butterflies
  530. @count = (@count += 1) % 5
  531. @info[i] = rand(50)
  532. sprite.bitmap = @butterfly_bitmaps[@current_pose[i]]
  533. if @count == 0 || 3
  534. if @count == 0
  535. case @current_pose[i]
  536. when 0, 1, 2, 3
  537. @current_pose[i] = (@current_pose[i] += 1) % 4
  538. when 4, 5, 6, 7
  539. @current_pose[i] = ((@current_pose[i] += 1) % 4) + 4
  540. when 8, 9, 10, 11
  541. @current_pose[i] = ((@current_pose[i] += 1) % 4) + 8
  542. when 12, 13, 14, 15
  543. @current_pose[i] = ((@current_pose[i] += 1) % 4) + 12
  544. end
  545. end
  546. case @current_pose[i]
  547. when 0, 1, 2, 3
  548. sprite.y -= 1
  549. sprite.x -= 1 if @current_pose[i] == 0
  550. sprite.x += 1 if @current_pose[i] == 2
  551. when 4, 5, 6, 7
  552. sprite.y += 1
  553. sprite.x += 1 if @current_pose[i] == 4
  554. sprite.x -= 1 if @current_pose[i] == 6
  555. when 8, 9, 10, 11
  556. sprite.x -= 1
  557. sprite.y -= 1 if @current_pose[i] == 8
  558. sprite.y += 1 if @current_pose[i] == 10
  559. when 12, 13, 14, 15
  560. sprite.x += 1
  561. sprite.y -= 1 if @current_pose[i] == 12
  562. sprite.y += 1 if @current_pose[i] == 14
  563. end
  564. if @info[i] < 10
  565. @current_pose[i] = (@current_pose[i] += 1) % 16
  566. end
  567. end
  568. end
  569. #----------------------------------------------------------------------
  570. if @type == 14 # Sparkles
  571. if @countarray[i] == 0
  572. @current_pose[i] = (@current_pose[i] + 1) % @sparkle_bitmaps.size
  573. sprite.bitmap = @sparkle_bitmaps[@current_pose[i]]
  574. end
  575. @countarray[i] = (@countarray[i] + 1) % 15
  576. sprite.y += 1
  577. sprite.opacity -= 1
  578. end
  579. #----------------------------------------------------------------------
  580. if @type == 15 # User-Defined
  581. if $WEATHER_UPDATE
  582. update_user_defined
  583. $WEATHER_UPDATE = false
  584. end
  585. if $WEATHER_ANIMATED && @countarray[i] == 0
  586. @current_pose[i] = (@current_pose[i] + 1) % @user_bitmaps.size
  587. sprite.bitmap = @user_bitmaps[@current_pose[i]]
  588. end
  589. sprite.x += $WEATHER_X
  590. sprite.y += $WEATHER_Y
  591. sprite.opacity -= $WEATHER_FADE
  592. end
  593. #----------------------------------------------------------------------
  594. if @type == 16 # Blowing Snow
  595. sprite.x -= 10
  596. sprite.y += 6
  597. sprite.opacity -= 4
  598. end
  599. #----------------------------------------------------------------------
  600. if @type == 17 # Meteors
  601. if @countarray[i] > 0
  602. if rand(20) == 0
  603. sprite.bitmap = @impact_bitmap
  604. @countarray[i] = -5
  605. else
  606. sprite.x -= 6
  607. sprite.y += 10
  608. end
  609. else
  610. @countarray[i] += 1
  611. if @countarray[i] == 0
  612. sprite.bitmap = @meteor_bitmap
  613. sprite.opacity = 0
  614. @count_array = 1
  615. end
  616. end
  617. end
  618. #----------------------------------------------------------------------
  619. if @type == 18 # Ash
  620. sprite.y += 2
  621. case @countarray[i] % 3
  622. when 0
  623. sprite.x -= 1
  624. when 1
  625. sprite.x += 1
  626. end
  627. end
  628. #----------------------------------------------------------------------
  629. if @type == 19 || @type == 20 # Bubbles
  630. switch = rand(75) + rand(75) + 1
  631. if @info[i] < switch / 2
  632. sprite.x -= 1
  633. else
  634. sprite.x += 1
  635. end
  636. @info[i] = (@info[i] + 1) % switch
  637. sprite.y -= 1
  638. if switch % 2 == 0
  639. sprite.opacity -= 1
  640. end
  641. end
  642. #----------------------------------------------------------------------
  643. if @type == 21 # Sparkles Up
  644. if @countarray[i] == 0
  645. @current_pose[i] = (@current_pose[i] + 1) % @sparkle_bitmaps.size
  646. sprite.bitmap = @sparkle_bitmaps[@current_pose[i]]
  647. end
  648. @countarray[i] = (@countarray[i] + 1) % 15
  649. sprite.y -= 1
  650. sprite.opacity -= 1
  651. end
  652. #----------------------------------------------------------------------
  653. if @type == 22 # Falling Rocks
  654. case @info[i]
  655. when 0 # large
  656. sprite.y += 10
  657. when 1 # small
  658. sprite.y += 5
  659. when 2 # mid-size
  660. sprite.y += 7
  661. end
  662. sprite.opacity -= 1
  663. end
  664. #----------------------------------------------------------------------
  665. if @type == 23 # Arrows
  666. sprite.y += 10
  667. sprite.x -= 7
  668. end
  669. #----------------------------------------------------------------------
  670. if @type == 24 # Starburst
  671. if @countarray[i] == 0
  672. @current_pose[i] = (@current_pose[i] + 1) % @starburst_bitmaps.size
  673. sprite.bitmap = @starburst_bitmaps[@current_pose[i]]
  674. end
  675. @countarray[i] = (@countarray[i] + 1) % 15
  676. sprite.y += 1
  677. sprite.opacity -= 1
  678. end
  679. #----------------------------------------------------------------------
  680. if @type == 25 # Starburst up
  681. if @countarray[i] == 0
  682. @current_pose[i] = (@current_pose[i] + 1) % @starburst_bitmaps.size
  683. sprite.bitmap = @starburst_bitmaps[@current_pose[i]]
  684. end
  685. @countarray[i] = (@countarray[i] + 1) % 15
  686. sprite.y -= 1
  687. sprite.opacity -= 1
  688. end
  689. #----------------------------------------------------------------------
  690. if @type == 26 # Starburst Rain
  691. if @countarray[i] == 0
  692. @current_pose[i] = (@current_pose[i] + 1) % @starburst_bitmaps.size
  693. sprite.bitmap = @starburst_bitmaps[@current_pose[i]]
  694. end
  695. @countarray[i] = (@countarray[i] + 1) % 15
  696. sprite.x -= 2
  697. sprite.y += 8
  698. sprite.opacity -= 1
  699. end
  700. #----------------------------------------------------------------------
  701. if @type == 27 # Monochromatic Starburst
  702. if @countarray[i] == 0
  703. @current_pose[i] = (@current_pose[i] + 1) % @monostarburst_bitmaps.size
  704. sprite.bitmap = @monostarburst_bitmaps[@current_pose[i]]
  705. end
  706. @countarray[i] = (@countarray[i] + 1) % 15
  707. sprite.y += 1
  708. sprite.opacity -= 1
  709. end
  710. #----------------------------------------------------------------------
  711. if @type == 28 # Monochromatic Starburst Up
  712. if @countarray[i] == 0
  713. @current_pose[i] = (@current_pose[i] + 1) % @monostarburst_bitmaps.size
  714. sprite.bitmap = @monostarburst_bitmaps[@current_pose[i]]
  715. end
  716. @countarray[i] = (@countarray[i] + 1) % 15
  717. sprite.y -= 1
  718. sprite.opacity -= 1
  719. end
  720. #----------------------------------------------------------------------
  721. if @type == 29 # Monochromatic Starburst Rain
  722. if @countarray[i] == 0
  723. @current_pose[i] = (@current_pose[i] + 1) % @monostarburst_bitmaps.size
  724. sprite.bitmap = @monostarburst_bitmaps[@current_pose[i]]
  725. end
  726. @countarray[i] = (@countarray[i] + 1) % 15
  727. sprite.x -= 2
  728. sprite.y += 8
  729. sprite.opacity -= 1
  730. end
  731. #----------------------------------------------------------------------
  732. if @type == 30 # Bombs
  733. if @countarray[i] > 0
  734. if rand(20) == 0
  735. sprite.bitmap = @bomb_impact_bitmap
  736. @countarray[i] = -5
  737. else
  738. sprite.x -= 3
  739. sprite.y += 5
  740. end
  741. else
  742. @countarray[i] += 1
  743. if @countarray[i] == 0
  744. sprite.bitmap = @bomb_bitmap
  745. sprite.opacity = 0
  746. @count_array = 1
  747. end
  748. end
  749. end
  750. x = sprite.x - @ox
  751. y = sprite.y - @oy
  752. if sprite.opacity < 64 || x < -50 || x > SCREEN_RESOLUTION[0] + 150 ||
  753. y < -300 || y > SCREEN_RESOLUTION[1] + 32
  754. sprite.x = rand(SCREEN_RESOLUTION[0] + 160) - 50 + @ox
  755. sprite.y = rand(SCREEN_RESOLUTION[1] + 320) - 200 + @oy
  756. sprite.opacity = 255
  757. end
  758. #----------------------------------------------------------------------
  759. if @type == 31 # Birds
  760. @count = (@count += 1) % 5
  761. if @count == 0
  762. @current_pose[i] = (@current_pose[i] += 1) % 4
  763. end
  764. sprite.bitmap = @bird_bitmaps[@current_pose[i]]
  765. sprite.x -= rand(2) + 3
  766. sprite.y -= 1 if @info[i].between?(0, 20)
  767. sprite.y += 1 if @info[i].between?(20, 40)
  768. sprite.y -= 1 if @info[i].between?(40, 70)
  769. sprite.y += 1 if @info[i].between?(70, 120)
  770. @info[i] = (@info[i] += 1) % 120
  771. end
  772. #----------------------------------------------------------------------
  773. if @type == 32 || @type == 33 # Bats and Bees
  774. @count = (@count += 1) % 5
  775. sprite.bitmap = @bat_bitmaps[@current_pose[i]] if @type == 32
  776. sprite.bitmap = @bee_bitmaps[@current_pose[i]] if @type == 33
  777. if @count == 0 || 3
  778. if @count == 0
  779. case @current_pose[i]
  780. when 0, 1, 2, 3 # Left
  781. @current_pose[i] = (@current_pose[i] += 1) % 4
  782. when 4, 5, 6, 7 # Up
  783. @current_pose[i] = ((@current_pose[i] += 1) % 4) + 4
  784. when 8, 9, 10, 11 # Right
  785. @current_pose[i] = ((@current_pose[i] += 1) % 4) + 8
  786. when 12, 13, 14, 15 # Down
  787. @current_pose[i] = ((@current_pose[i] += 1) % 4) + 12
  788. end
  789. end
  790. @info[i] = rand(50)
  791. case @current_pose[i]
  792. when 0, 1, 2, 3
  793. sprite.x -= 4
  794. sprite.y += 3 if @info[i] <= 35
  795. sprite.y -= 3 if @info[i] > 35
  796. when 4, 5, 6, 7
  797. sprite.y -= 4
  798. sprite.x += 3 if @info[i] <= 40
  799. sprite.x -= 3 if @info[i] > 40
  800. when 8, 9, 10, 11
  801. sprite.x += 4
  802. sprite.y += 3 if @info[i] <= 15
  803. sprite.y -= 3 if @info[i] > 15
  804. when 12, 13, 14, 15
  805. sprite.y += 4
  806. sprite.x += 3 if @info[i] <= 25
  807. sprite.x -= 3 if @info[i] > 25
  808. end
  809. if @info[i] < 10
  810. @current_pose[i] = (@current_pose[i] += 1) % 16
  811. end
  812. end
  813. end
  814. #----------------------------------------------------------------------
  815. if @type == 34 # Fish
  816. @info[i] = (@info[i] += 1) % 200
  817. sprite.x -= rand(2) + 1
  818. sprite.x -= 3 if @info[i] >= 180
  819. sprite.y -= 1 if @info[i] < 75
  820. sprite.y += 1 if @info[i].between?(75, 150)
  821. end
  822. #----------------------------------------------------------------------
  823. if @type == 35 # Ravens
  824. @count = (@count += 1) % 5
  825. sprite.bitmap = @raven_bitmaps[@current_pose[i]]
  826. if @count == 0 || 3
  827. if @count == 0
  828. case @current_pose[i]
  829. when 0, 1, 2, 3 # Left
  830. @current_pose[i] = (@current_pose[i] += 1) % 4
  831. when 4, 5, 6, 7 # Up
  832. @current_pose[i] = ((@current_pose[i] += 1) % 4) + 4
  833. when 8, 9, 10, 11 # Right
  834. @current_pose[i] = ((@current_pose[i] += 1) % 4) + 8
  835. when 12, 13, 14, 15 # Down
  836. @current_pose[i] = ((@current_pose[i] += 1) % 4) + 12
  837. end
  838. end
  839. @info[i] = rand(50)
  840. case @current_pose[i]
  841. when 0, 1, 2, 3
  842. sprite.x -= 2
  843. sprite.y += 1 if @info[i] <= 35
  844. sprite.y -= 1 if @info[i] > 35
  845. when 4, 5, 6, 7
  846. sprite.y -= 2
  847. sprite.x += 1 if @info[i] <= 40
  848. sprite.x -= 1 if @info[i] > 40
  849. when 8, 9, 10, 11
  850. sprite.x += 2
  851. sprite.y += 1 if @info[i] <= 15
  852. sprite.y -= 1 if @info[i] > 15
  853. when 12, 13, 14, 15
  854. sprite.y += 2
  855. sprite.x += 1 if @info[i] <= 25
  856. sprite.x -= 1 if @info[i] > 25
  857. end
  858. if @info[i] < 5
  859. @current_pose[i] = (@current_pose[i] += 1) % 16
  860. end
  861. end
  862. end
  863. #----------------------------------------------------------------------
  864. }
  865. end
  866. #-------------------------------------------------------------------------------
  867. def make_bitmaps
  868.  
  869. # All the colors for each type are used only for their respective bitmaps
  870. # now, therefore the colors can be changed for one type without worrying
  871. # about messing up another that shares that color.
  872.  
  873. #-------------------------------------------------------------------------------
  874. # Rain Bitmap
  875.  
  876. @rain_bitmap = Bitmap.new(7, 56)
  877. rain_color = case $game_screen.weather_variation
  878. when 1 then Color.new(141, 9, 9) # Blood Rain
  879. when 2 then Color.new(15, 15, 15) # Oil Rain
  880. when 3 then Color.new(76, 91, 43) # Acid Rain
  881. when 4 then Color.new(218, 207, 36) # Golden Rain
  882. when 5 then Color.new(100, 75, 63) # Sepia Rain
  883. else
  884. Color.new(255, 255, 255) # Normal
  885. end
  886.  
  887. (0..6).each {|i| @rain_bitmap.fill_rect(6-i, i*8, 1, 8, rain_color)}
  888. #-------------------------------------------------------------------------------
  889. # Storm Bitmap
  890.  
  891. @storm_bitmap = Bitmap.new(34, 64)
  892. case $game_screen.weather_variation
  893. when 1 # Blood
  894. storm_color1 = Color.new(141, 9, 9)
  895. storm_color2 = Color.new(141, 9, 9, 128)
  896. when 2 # Oil
  897. storm_color1 = Color.new(15, 15, 15)
  898. storm_color2 = Color.new(15, 15, 15, 128)
  899. when 3 # Acid
  900. storm_color1 = Color.new(227, 217, 56)
  901. storm_color2 = Color.new(218, 207, 36)
  902. when 4 # Golden
  903. storm_color1 = Color.new(227, 217, 56)
  904. storm_color2 = Color.new(218, 207, 36)
  905. when 5 # Sepia
  906. storm_color1 = Color.new(167, 149, 139)
  907. storm_color2 = Color.new(100, 75, 63)
  908. else # Normal, Realistic (Default)
  909. storm_color1 = Color.new(255, 255, 255)
  910. storm_color2 = Color.new(255, 255, 255, 128)
  911. end
  912.  
  913. (0..31).each {|i|
  914. @storm_bitmap.fill_rect(33-i, i*2, 1, 2, storm_color2)
  915. @storm_bitmap.fill_rect(32-i, i*2, 1, 2, storm_color1)
  916. @storm_bitmap.fill_rect(31-i, i*2, 1, 2, storm_color2)
  917. }
  918. #-------------------------------------------------------------------------------
  919. # Splash Bitmap
  920.  
  921. @rain_splash = Bitmap.new(8, 5)
  922. case $game_screen.weather_variation
  923. when 1 # Blood splash
  924. splash_color1 = Color.new(141, 9, 9)
  925. splash_color2 = Color.new(141, 9, 9, 128)
  926. when 2 # Oil splash
  927. splash_color1 = Color.new(0, 0, 0)
  928. splash_color2 = Color.new(15, 15, 15)
  929. when 4 # Golden splash
  930. splash_color1 = Color.new(227, 217, 56)
  931. splash_color2 = Color.new(218, 207, 36)
  932. when 5 # Sepia splash
  933. splash_color1 = Color.new(167, 149, 139)
  934. splash_color2 = Color.new(100, 75, 63)
  935. else # Normal (Default)
  936. splash_color1 = Color.new(255, 255, 255)
  937. splash_color2 = Color.new(255, 255, 255, 128)
  938. end
  939.  
  940. @rain_splash.fill_rect(1, 0, 6, 1, splash_color2)
  941. @rain_splash.fill_rect(1, 4, 6, 1, splash_color2)
  942. @rain_splash.fill_rect(0, 1, 1, 3, splash_color2)
  943. @rain_splash.fill_rect(7, 1, 1, 3, splash_color2)
  944. @rain_splash.set_pixel(1, 0, splash_color1)
  945. @rain_splash.set_pixel(0, 1, splash_color1)
  946. #-------------------------------------------------------------------------------
  947. # Snow Bitmaps
  948.  
  949. case $game_screen.weather_variation
  950. when 1 # Crimson
  951. snow_color1 = Color.new(141, 9, 9)
  952. snow_color2 = Color.new(141, 9, 9, 128)
  953. snow_color3 = Color.new(141, 9, 9, 204)
  954. else # Normal (Default)
  955. snow_color1 = Color.new(255, 255, 255)
  956. snow_color2 = Color.new(255, 255, 255, 128)
  957. snow_color3 = Color.new(255, 255, 255, 204)
  958. end
  959.  
  960. # Used for Blowing Snow
  961. @snow_bitmap = Bitmap.new(6, 6)
  962. @snow_bitmap.fill_rect(0, 1, 6, 4, snow_color2)
  963. @snow_bitmap.fill_rect(1, 0, 4, 6, snow_color2)
  964. @snow_bitmap.fill_rect(1, 2, 4, 2, snow_color1)
  965. @snow_bitmap.fill_rect(2, 1, 2, 4, snow_color1)
  966.  
  967. # Used for Falling Snow
  968. @sprites = []
  969. @snow_bitmaps = []
  970. @snow_bitmaps[0] = Bitmap.new(3, 3)
  971. @snow_bitmaps[0].fill_rect(0, 0, 3, 3, snow_color2)
  972. @snow_bitmaps[0].fill_rect(0, 1, 3, 1, snow_color3)
  973. @snow_bitmaps[0].fill_rect(1, 0, 1, 3, snow_color3)
  974. @snow_bitmaps[0].set_pixel(1, 1, snow_color1)
  975.  
  976. @snow_bitmaps[1] = Bitmap.new(4, 4)
  977. @snow_bitmaps[1].fill_rect(0, 1, 4, 2, snow_color2)
  978. @snow_bitmaps[1].fill_rect(1, 0, 2, 4, snow_color2)
  979. @snow_bitmaps[1].fill_rect(1, 1, 2, 2, snow_color1)
  980.  
  981. @snow_bitmaps[2] = Bitmap.new(5, 5)
  982. @snow_bitmaps[2].fill_rect(0, 1, 5, 3, snow_color3)
  983. @snow_bitmaps[2].fill_rect(1, 0, 3, 5, snow_color3)
  984. @snow_bitmaps[2].fill_rect(1, 1, 3, 3, snow_color2)
  985. @snow_bitmaps[2].fill_rect(2, 1, 3, 1, snow_color1)
  986. @snow_bitmaps[2].fill_rect(1, 2, 1, 3, snow_color1)
  987.  
  988. @snow_bitmaps[3] = Bitmap.new(7, 7)
  989. @snow_bitmaps[3].fill_rect(1, 1, 5, 5, snow_color3)
  990. @snow_bitmaps[3].fill_rect(2, 0, 7, 3, snow_color3)
  991. @snow_bitmaps[3].fill_rect(0, 2, 3, 7, snow_color3)
  992. @snow_bitmaps[3].fill_rect(2, 1, 5, 3, snow_color2)
  993. @snow_bitmaps[3].fill_rect(1, 2, 3, 5, snow_color2)
  994. @snow_bitmaps[3].fill_rect(2, 2, 3, 3, snow_color1)
  995. @snow_bitmaps[3].fill_rect(3, 1, 5, 1, snow_color1)
  996. @snow_bitmaps[3].fill_rect(1, 3, 1, 5, snow_color1)
  997. #-------------------------------------------------------------------------------
  998. #Hail
  999.  
  1000. hail_color1 = Color.new(215, 227, 227, 150)
  1001. hail_color2 = Color.new(214, 217, 217, 150)
  1002. hail_color3 = Color.new(233, 233, 233, 250)
  1003. hail_color4 = Color.new(222, 239, 243, 250)
  1004.  
  1005. @hail_bitmap = Bitmap.new(4, 4)
  1006. @hail_bitmap.fill_rect(1, 0, 2, 1, hail_color1)
  1007. @hail_bitmap.fill_rect(0, 1, 1, 2, hail_color1)
  1008. @hail_bitmap.fill_rect(3, 1, 1, 2, hail_color2)
  1009. @hail_bitmap.fill_rect(1, 3, 2, 1, hail_color2)
  1010. @hail_bitmap.fill_rect(1, 1, 2, 2, hail_color3)
  1011. @hail_bitmap.set_pixel(1, 1, hail_color4)
  1012. #-------------------------------------------------------------------------------
  1013. #Sakura Petals
  1014.  
  1015. sakura_color1 = Color.new(255, 167, 192, 255)
  1016. sakura_color2 = Color.new(213, 106, 136, 255)
  1017.  
  1018. @sakura_bitmap = Bitmap.new(4, 4)
  1019. @sakura_bitmap.fill_rect(0, 3, 1, 1, sakura_color1)
  1020. @sakura_bitmap.fill_rect(1, 2, 1, 1, sakura_color1)
  1021. @sakura_bitmap.fill_rect(2, 1, 1, 1, sakura_color1)
  1022. @sakura_bitmap.fill_rect(3, 0, 1, 1, sakura_color1)
  1023. @sakura_bitmap.fill_rect(1, 3, 1, 1, sakura_color2)
  1024. @sakura_bitmap.fill_rect(2, 2, 1, 1, sakura_color2)
  1025. @sakura_bitmap.fill_rect(3, 1, 1, 1, sakura_color2)
  1026. #-------------------------------------------------------------------------------
  1027. # Leaf Bitmaps
  1028.  
  1029. @leaf_bitmaps = []
  1030. case $game_screen.weather_variation
  1031. when 1 # Yellow
  1032. leaf_color1 = Color.new(110, 104, 3)
  1033. leaf_color2 = Color.new(205, 194, 23)
  1034. leaf_color3 = Color.new(186, 176, 14)
  1035. leaf_color4 = Color.new(218, 207, 36)
  1036. leaf_color5 = Color.new(227, 217, 56)
  1037. when 2 # Autumn
  1038. leaf_color1 = Color.new(248, 88, 0)
  1039. leaf_color2 = Color.new(144, 80, 56)
  1040. leaf_color3 = Color.new(152, 0, 0)
  1041. leaf_color4 = Color.new(232, 160, 128)
  1042. leaf_color5 = Color.new(72, 40, 0)
  1043. when 3 # Red Maple
  1044. leaf_color1 = Color.new(255, 0, 0)
  1045. leaf_color2 = Color.new(179, 17, 17)
  1046. leaf_color3 = Color.new(141, 9, 9)
  1047. leaf_color4 = Color.new(179, 17, 17)
  1048. leaf_color5 = Color.new(141, 9, 9)
  1049. else # Green (Default)
  1050. leaf_color1 = Color.new(62, 76, 31)
  1051. leaf_color2 = Color.new(76, 91, 43)
  1052. leaf_color3 = Color.new(105, 114, 66)
  1053. leaf_color4 = Color.new(128, 136, 88)
  1054. leaf_color5 = Color.new(146, 154, 106)
  1055. end
  1056.  
  1057. # 1st leaf bitmap
  1058. @leaf_bitmaps[0] = Bitmap.new(8, 8)
  1059. @leaf_bitmaps[0].set_pixel(1, 0, leaf_color1)
  1060. @leaf_bitmaps[0].set_pixel(1, 1, leaf_color2)
  1061. @leaf_bitmaps[0].set_pixel(2, 1, leaf_color1)
  1062. @leaf_bitmaps[0].set_pixel(2, 2, leaf_color3)
  1063. @leaf_bitmaps[0].set_pixel(3, 2, leaf_color1)
  1064. @leaf_bitmaps[0].set_pixel(4, 2, leaf_color3)
  1065. @leaf_bitmaps[0].fill_rect(2, 3, 3, 1, leaf_color2)
  1066. @leaf_bitmaps[0].set_pixel(5, 3, leaf_color3)
  1067. @leaf_bitmaps[0].fill_rect(2, 4, 2, 1, leaf_color2)
  1068. @leaf_bitmaps[0].set_pixel(4, 4, leaf_color1)
  1069. @leaf_bitmaps[0].set_pixel(5, 4, leaf_color4)
  1070. @leaf_bitmaps[0].set_pixel(6, 4, leaf_color3)
  1071. @leaf_bitmaps[0].set_pixel(3, 5, leaf_color2)
  1072. @leaf_bitmaps[0].set_pixel(4, 5, leaf_color1)
  1073. @leaf_bitmaps[0].set_pixel(5, 5, leaf_color3)
  1074. @leaf_bitmaps[0].set_pixel(6, 5, leaf_color4)
  1075. @leaf_bitmaps[0].set_pixel(4, 6, leaf_color2)
  1076. @leaf_bitmaps[0].set_pixel(5, 6, leaf_color1)
  1077. @leaf_bitmaps[0].set_pixel(6, 6, leaf_color4)
  1078. @leaf_bitmaps[0].set_pixel(6, 7, leaf_color3)
  1079.  
  1080. # 2nd leaf bitmap
  1081. @leaf_bitmaps[1] = Bitmap.new(8, 8)
  1082. @leaf_bitmaps[1].fill_rect(1, 1, 1, 2, leaf_color2)
  1083. @leaf_bitmaps[1].fill_rect(2, 2, 2, 1, leaf_color3)
  1084. @leaf_bitmaps[1].set_pixel(4, 2, leaf_color4)
  1085. @leaf_bitmaps[1].fill_rect(2, 3, 2, 1, leaf_color1)
  1086. @leaf_bitmaps[1].fill_rect(4, 3, 2, 1, leaf_color4)
  1087. @leaf_bitmaps[1].set_pixel(2, 4, leaf_color2)
  1088. @leaf_bitmaps[1].set_pixel(3, 4, leaf_color1)
  1089. @leaf_bitmaps[1].set_pixel(4, 4, leaf_color3)
  1090. @leaf_bitmaps[1].fill_rect(5, 4, 2, 1, leaf_color4)
  1091. @leaf_bitmaps[1].set_pixel(3, 5, leaf_color2)
  1092. @leaf_bitmaps[1].set_pixel(4, 5, leaf_color1)
  1093. @leaf_bitmaps[1].set_pixel(5, 5, leaf_color3)
  1094. @leaf_bitmaps[1].set_pixel(6, 5, leaf_color4)
  1095. @leaf_bitmaps[1].set_pixel(5, 6, leaf_color1)
  1096. @leaf_bitmaps[1].fill_rect(6, 6, 2, 1, leaf_color3)
  1097.  
  1098. # 3rd leaf bitmap
  1099. @leaf_bitmaps[2] = Bitmap.new(8, 8)
  1100. @leaf_bitmaps[2].set_pixel(1, 1, leaf_color1)
  1101. @leaf_bitmaps[2].fill_rect(1, 2, 2, 1, leaf_color2)
  1102. @leaf_bitmaps[2].set_pixel(2, 3, leaf_color2)
  1103. @leaf_bitmaps[2].set_pixel(3, 3, leaf_color1)
  1104. @leaf_bitmaps[2].set_pixel(4, 3, leaf_color2)
  1105. @leaf_bitmaps[2].fill_rect(2, 4, 2, 1, leaf_color2)
  1106. @leaf_bitmaps[2].set_pixel(4, 4, leaf_color1)
  1107. @leaf_bitmaps[2].set_pixel(5, 4, leaf_color4)
  1108. @leaf_bitmaps[2].set_pixel(3, 5, leaf_color2)
  1109. @leaf_bitmaps[2].set_pixel(4, 5, leaf_color1)
  1110. @leaf_bitmaps[2].fill_rect(5, 5, 2, 1, leaf_color3)
  1111. @leaf_bitmaps[2].fill_rect(4, 6, 2, 1, leaf_color2)
  1112. @leaf_bitmaps[2].set_pixel(6, 6, leaf_color4)
  1113. @leaf_bitmaps[2].set_pixel(6, 7, leaf_color3)
  1114.  
  1115. # 4th leaf bitmap
  1116. @leaf_bitmaps[3] = Bitmap.new(8, 8)
  1117. @leaf_bitmaps[3].fill_rect(0, 3, 1, 2, leaf_color1)
  1118. @leaf_bitmaps[3].set_pixel(1, 4, leaf_color2)
  1119. @leaf_bitmaps[3].set_pixel(2, 4, leaf_color3)
  1120. @leaf_bitmaps[3].set_pixel(3, 4, leaf_color4)
  1121. @leaf_bitmaps[3].set_pixel(4, 4, leaf_color1)
  1122. @leaf_bitmaps[3].set_pixel(7, 4, leaf_color2)
  1123. @leaf_bitmaps[3].set_pixel(1, 5, leaf_color1)
  1124. @leaf_bitmaps[3].set_pixel(2, 5, leaf_color2)
  1125. @leaf_bitmaps[3].set_pixel(3, 5, leaf_color4)
  1126. @leaf_bitmaps[3].set_pixel(4, 5, leaf_color5)
  1127. @leaf_bitmaps[3].set_pixel(5, 5, leaf_color4)
  1128. @leaf_bitmaps[3].set_pixel(6, 5, leaf_color3)
  1129. @leaf_bitmaps[3].set_pixel(7, 5, leaf_color2)
  1130. @leaf_bitmaps[3].fill_rect(2, 6, 2, 1, leaf_color2)
  1131. @leaf_bitmaps[3].set_pixel(4, 6, leaf_color4)
  1132. @leaf_bitmaps[3].set_pixel(5, 6, leaf_color3)
  1133. @leaf_bitmaps[3].set_pixel(6, 6, leaf_color2)
  1134.  
  1135. # 5th leaf bitmap
  1136. @leaf_bitmaps[4] = Bitmap.new(8, 8)
  1137. @leaf_bitmaps[4].set_pixel(6, 2, leaf_color2)
  1138. @leaf_bitmaps[4].set_pixel(7, 2, leaf_color1)
  1139. @leaf_bitmaps[4].fill_rect(4, 3, 2, 1, leaf_color2)
  1140. @leaf_bitmaps[4].set_pixel(6, 3, leaf_color3)
  1141. @leaf_bitmaps[4].set_pixel(2, 4, leaf_color1)
  1142. @leaf_bitmaps[4].fill_rect(3, 4, 2, 1, leaf_color3)
  1143. @leaf_bitmaps[4].set_pixel(5, 4, leaf_color4)
  1144. @leaf_bitmaps[4].set_pixel(6, 4, leaf_color3)
  1145. @leaf_bitmaps[4].set_pixel(1, 5, leaf_color2)
  1146. @leaf_bitmaps[4].set_pixel(2, 5, leaf_color3)
  1147. @leaf_bitmaps[4].set_pixel(3, 5, leaf_color4)
  1148. @leaf_bitmaps[4].set_pixel(4, 5, leaf_color5)
  1149. @leaf_bitmaps[4].set_pixel(5, 5, leaf_color2)
  1150. @leaf_bitmaps[4].set_pixel(2, 6, leaf_color1)
  1151. @leaf_bitmaps[4].fill_rect(3, 6, 2, 1, leaf_color2)
  1152.  
  1153. # 6th leaf bitmap
  1154. @leaf_bitmaps[5] = Bitmap.new(8, 8)
  1155. @leaf_bitmaps[5].fill_rect(6, 2, 2, 1, leaf_color2)
  1156. @leaf_bitmaps[5].fill_rect(4, 3, 2, 1, leaf_color2)
  1157. @leaf_bitmaps[5].set_pixel(6, 3, leaf_color3)
  1158. @leaf_bitmaps[5].set_pixel(3, 4, leaf_color2)
  1159. @leaf_bitmaps[5].set_pixel(4, 4, leaf_color3)
  1160. @leaf_bitmaps[5].set_pixel(5, 4, leaf_color4)
  1161. @leaf_bitmaps[5].set_pixel(6, 4, leaf_color5)
  1162. @leaf_bitmaps[5].set_pixel(1, 5, leaf_color2)
  1163. @leaf_bitmaps[5].set_pixel(2, 5, leaf_color3)
  1164. @leaf_bitmaps[5].fill_rect(3, 5, 2, 1, leaf_color5)
  1165. @leaf_bitmaps[5].set_pixel(5, 5, leaf_color4)
  1166. @leaf_bitmaps[5].set_pixel(2, 6, leaf_color2)
  1167. @leaf_bitmaps[5].set_pixel(3, 6, leaf_color3)
  1168. @leaf_bitmaps[5].set_pixel(4, 6, leaf_color4)
  1169.  
  1170. # 7th leaf bitmap
  1171. @leaf_bitmaps[6] = Bitmap.new(8, 8)
  1172. @leaf_bitmaps[6].fill_rect(6, 1, 1, 2, leaf_color2)
  1173. @leaf_bitmaps[6].fill_rect(4, 2, 2, 1, leaf_color2)
  1174. @leaf_bitmaps[6].fill_rect(6, 2, 1, 2, leaf_color1)
  1175. @leaf_bitmaps[6].fill_rect(3, 3, 2, 1, leaf_color2)
  1176. @leaf_bitmaps[6].set_pixel(5, 3, leaf_color3)
  1177. @leaf_bitmaps[6].set_pixel(2, 4, leaf_color2)
  1178. @leaf_bitmaps[6].set_pixel(3, 4, leaf_color3)
  1179. @leaf_bitmaps[6].set_pixel(4, 4, leaf_color4)
  1180. @leaf_bitmaps[6].set_pixel(5, 4, leaf_color2)
  1181. @leaf_bitmaps[6].set_pixel(1, 5, leaf_color2)
  1182. @leaf_bitmaps[6].set_pixel(2, 5, leaf_color3)
  1183. @leaf_bitmaps[6].fill_rect(3, 5, 2, 1, leaf_color2)
  1184. @leaf_bitmaps[6].set_pixel(1, 6, leaf_color1)
  1185. @leaf_bitmaps[6].set_pixel(2, 6, leaf_color2)
  1186.  
  1187. # 8th leaf bitmap
  1188. @leaf_bitmaps[7] = Bitmap.new(8, 8)
  1189. @leaf_bitmaps[7].set_pixel(6, 1, leaf_color2)
  1190. @leaf_bitmaps[7].fill_rect(4, 2, 3, 2, leaf_color2)
  1191. @leaf_bitmaps[7].set_pixel(3, 3, leaf_color1)
  1192. @leaf_bitmaps[7].set_pixel(2, 4, leaf_color1)
  1193. @leaf_bitmaps[7].set_pixel(3, 4, leaf_color2)
  1194. @leaf_bitmaps[7].fill_rect(4, 4, 2, 1, leaf_color3)
  1195. @leaf_bitmaps[7].set_pixel(1, 5, leaf_color1)
  1196. @leaf_bitmaps[7].set_pixel(2, 5, leaf_color2)
  1197. @leaf_bitmaps[7].fill_rect(3, 5, 2, 1, leaf_color4)
  1198. @leaf_bitmaps[7].set_pixel(2, 6, leaf_color2)
  1199. @leaf_bitmaps[7].set_pixel(3, 6, leaf_color4)
  1200.  
  1201. # 9th leaf bitmap
  1202. @leaf_bitmaps[8] = Bitmap.new(8, 8)
  1203. @leaf_bitmaps[8].fill_rect(6, 1, 1, 2, leaf_color2)
  1204. @leaf_bitmaps[8].fill_rect(4, 2, 2, 1, leaf_color2)
  1205. @leaf_bitmaps[8].fill_rect(6, 2, 1, 2, leaf_color1)
  1206. @leaf_bitmaps[8].fill_rect(3, 3, 2, 1, leaf_color2)
  1207. @leaf_bitmaps[8].set_pixel(5, 3, leaf_color3)
  1208. @leaf_bitmaps[8].set_pixel(2, 4, leaf_color2)
  1209. @leaf_bitmaps[8].set_pixel(3, 4, leaf_color3)
  1210. @leaf_bitmaps[8].set_pixel(4, 4, leaf_color4)
  1211. @leaf_bitmaps[8].set_pixel(5, 4, leaf_color2)
  1212. @leaf_bitmaps[8].set_pixel(1, 5, leaf_color2)
  1213. @leaf_bitmaps[8].set_pixel(2, 5, leaf_color3)
  1214. @leaf_bitmaps[8].fill_rect(3, 5, 2, 1, leaf_color2)
  1215. @leaf_bitmaps[8].set_pixel(1, 6, leaf_color1)
  1216. @leaf_bitmaps[8].set_pixel(2, 6, leaf_color2)
  1217.  
  1218. # 10th leaf bitmap
  1219. @leaf_bitmaps[9] = Bitmap.new(8, 8)
  1220. @leaf_bitmaps[9].fill_rect(6, 2, 2, 1, leaf_color2)
  1221. @leaf_bitmaps[9].fill_rect(4, 3, 2, 1, leaf_color2)
  1222. @leaf_bitmaps[9].set_pixel(6, 3, leaf_color3)
  1223. @leaf_bitmaps[9].set_pixel(3, 4, leaf_color2)
  1224. @leaf_bitmaps[9].set_pixel(4, 4, leaf_color3)
  1225. @leaf_bitmaps[9].set_pixel(5, 4, leaf_color4)
  1226. @leaf_bitmaps[9].set_pixel(6, 4, leaf_color5)
  1227. @leaf_bitmaps[9].set_pixel(1, 5, leaf_color2)
  1228. @leaf_bitmaps[9].set_pixel(2, 5, leaf_color3)
  1229. @leaf_bitmaps[9].fill_rect(3, 5, 2, 1, leaf_color5)
  1230. @leaf_bitmaps[9].set_pixel(5, 5, leaf_color4)
  1231. @leaf_bitmaps[9].set_pixel(2, 6, leaf_color2)
  1232. @leaf_bitmaps[9].set_pixel(3, 6, leaf_color3)
  1233. @leaf_bitmaps[9].set_pixel(4, 6, leaf_color4)
  1234.  
  1235. # 11th leaf bitmap
  1236. @leaf_bitmaps[10] = Bitmap.new(8, 8)
  1237. @leaf_bitmaps[10].set_pixel(6, 2, leaf_color2)
  1238. @leaf_bitmaps[10].set_pixel(7, 2, leaf_color1)
  1239. @leaf_bitmaps[10].fill_rect(4, 3, 2, 1, leaf_color2)
  1240. @leaf_bitmaps[10].set_pixel(6, 3, leaf_color3)
  1241. @leaf_bitmaps[10].set_pixel(2, 4, leaf_color1)
  1242. @leaf_bitmaps[10].fill_rect(3, 4, 2, 1, leaf_color3)
  1243. @leaf_bitmaps[10].set_pixel(5, 4, leaf_color4)
  1244. @leaf_bitmaps[10].set_pixel(6, 4, leaf_color3)
  1245. @leaf_bitmaps[10].set_pixel(1, 5, leaf_color2)
  1246. @leaf_bitmaps[10].set_pixel(2, 5, leaf_color3)
  1247. @leaf_bitmaps[10].set_pixel(3, 5, leaf_color4)
  1248. @leaf_bitmaps[10].set_pixel(4, 5, leaf_color5)
  1249. @leaf_bitmaps[10].set_pixel(5, 5, leaf_color2)
  1250. @leaf_bitmaps[10].set_pixel(2, 6, leaf_color1)
  1251. @leaf_bitmaps[10].fill_rect(3, 6, 2, 1, leaf_color2)
  1252.  
  1253. # 12th leaf bitmap
  1254. @leaf_bitmaps[11] = Bitmap.new(8, 8)
  1255. @leaf_bitmaps[11].fill_rect(0, 3, 1, 2, leaf_color1)
  1256. @leaf_bitmaps[11].set_pixel(1, 4, leaf_color2)
  1257. @leaf_bitmaps[11].set_pixel(2, 4, leaf_color3)
  1258. @leaf_bitmaps[11].set_pixel(3, 4, leaf_color4)
  1259. @leaf_bitmaps[11].set_pixel(4, 4, leaf_color1)
  1260. @leaf_bitmaps[11].set_pixel(7, 4, leaf_color2)
  1261. @leaf_bitmaps[11].set_pixel(1, 5, leaf_color1)
  1262. @leaf_bitmaps[11].set_pixel(2, 5, leaf_color2)
  1263. @leaf_bitmaps[11].set_pixel(3, 5, leaf_color4)
  1264. @leaf_bitmaps[11].set_pixel(4, 5, leaf_color5)
  1265. @leaf_bitmaps[11].set_pixel(5, 5, leaf_color4)
  1266. @leaf_bitmaps[11].set_pixel(6, 5, leaf_color3)
  1267. @leaf_bitmaps[11].set_pixel(7, 5, leaf_color2)
  1268. @leaf_bitmaps[11].fill_rect(2, 6, 2, 1, leaf_color2)
  1269. @leaf_bitmaps[11].set_pixel(4, 6, leaf_color4)
  1270. @leaf_bitmaps[11].set_pixel(5, 6, leaf_color3)
  1271. @leaf_bitmaps[11].set_pixel(6, 6, leaf_color2)
  1272.  
  1273. # 13th leaf bitmap
  1274. @leaf_bitmaps[12] = Bitmap.new(8, 8)
  1275. @leaf_bitmaps[12].set_pixel(1, 1, leaf_color1)
  1276. @leaf_bitmaps[12].fill_rect(1, 2, 2, 1, leaf_color2)
  1277. @leaf_bitmaps[12].set_pixel(2, 3, leaf_color2)
  1278. @leaf_bitmaps[12].set_pixel(3, 3, leaf_color1)
  1279. @leaf_bitmaps[12].set_pixel(4, 3, leaf_color2)
  1280. @leaf_bitmaps[12].fill_rect(2, 4, 2, 1, leaf_color2)
  1281. @leaf_bitmaps[12].set_pixel(4, 4, leaf_color1)
  1282. @leaf_bitmaps[12].set_pixel(5, 4, leaf_color4)
  1283. @leaf_bitmaps[12].set_pixel(3, 5, leaf_color2)
  1284. @leaf_bitmaps[12].set_pixel(4, 5, leaf_color1)
  1285. @leaf_bitmaps[12].fill_rect(5, 5, 2, 1, leaf_color3)
  1286. @leaf_bitmaps[12].fill_rect(4, 6, 2, 1, leaf_color2)
  1287. @leaf_bitmaps[12].set_pixel(6, 6, leaf_color4)
  1288. @leaf_bitmaps[12].set_pixel(6, 7, leaf_color3)
  1289. #-------------------------------------------------------------------------------
  1290. # Petals
  1291.  
  1292. @petal_bitmaps = []
  1293. case $game_screen.weather_variation
  1294. when 1 # Lavender
  1295. petal_color1 = Color.new(213, 80, 254)
  1296. petal_color2 = Color.new(176, 92, 201)
  1297. petal_color3 = Color.new(154, 86, 175)
  1298. when 2 # Tiger Lily
  1299. petal_color1 = Color.new(254, 154, 40)
  1300. petal_color2 = Color.new(254, 162, 65)
  1301. petal_color3 = Color.new(254, 135, 71)
  1302. when 3 # Pink
  1303. petal_color1 = Color.new(247, 80, 119)
  1304. petal_color2 = Color.new(247, 101, 138)
  1305. petal_color3 = Color.new(244, 105, 165)
  1306. when 4 # Blue
  1307. petal_color1 = Color.new(109, 126, 238)
  1308. petal_color2 = Color.new(128, 143, 240)
  1309. petal_color3 = Color.new(129, 165, 236)
  1310. when 5 # Green
  1311. petal_color1 = Color.new(136, 217, 135)
  1312. petal_color2 = Color.new(153, 221, 152)
  1313. petal_color3 = Color.new(170, 221, 154)
  1314. when 6 # Blue-Purple
  1315. petal_color1 = Color.new(94, 44, 170)
  1316. petal_color2 = Color.new(105, 62, 170)
  1317. petal_color3 = Color.new(78, 60, 168)
  1318. else # Rose
  1319. petal_color1 = Color.new(255, 0, 0)
  1320. petal_color2 = Color.new(179, 17, 17)
  1321. petal_color3 = Color.new(141, 9, 9)
  1322. end
  1323.  
  1324. # 1st petal bitmap
  1325. @petal_bitmaps[0] = Bitmap.new(3, 3)
  1326. @petal_bitmaps[0].fill_rect(1, 0, 2, 1, petal_color1)
  1327. @petal_bitmaps[0].fill_rect(0, 1, 1, 2, petal_color1)
  1328. @petal_bitmaps[0].fill_rect(1, 1, 2, 2, petal_color2)
  1329. @petal_bitmaps[0].set_pixel(2, 2, petal_color3)
  1330.  
  1331. # 2nd petal bitmap
  1332. @petal_bitmaps[1] = Bitmap.new(3, 3)
  1333. @petal_bitmaps[1].set_pixel(0, 1, petal_color2)
  1334. @petal_bitmaps[1].set_pixel(1, 1, petal_color1)
  1335. @petal_bitmaps[1].fill_rect(1, 2, 1, 2, petal_color2)
  1336. #-------------------------------------------------------------------------------
  1337. #Feathers
  1338.  
  1339. @feather_bitmaps = []
  1340. feather_color1 = Color.new(255, 255, 255)
  1341. feather_color2 = Color.new(214, 217, 217, 150)
  1342.  
  1343. # 1st feather bitmap
  1344. @feather_bitmaps[0] = Bitmap.new(3, 3)
  1345. @feather_bitmaps[0].set_pixel(0, 2, feather_color1)
  1346. @feather_bitmaps[0].set_pixel(1, 2, feather_color2)
  1347. @feather_bitmaps[0].set_pixel(2, 1, feather_color2)
  1348.  
  1349. # 2nd feather bitmap
  1350. @feather_bitmaps[0] = Bitmap.new(3, 3)
  1351. @feather_bitmaps[0].set_pixel(0, 0, feather_color1)
  1352. @feather_bitmaps[0].set_pixel(0, 1, feather_color2)
  1353. @feather_bitmaps[0].set_pixel(1, 2, feather_color2)
  1354.  
  1355. # 3rd feather bitmap
  1356. @feather_bitmaps[0] = Bitmap.new(3, 3)
  1357. @feather_bitmaps[0].set_pixel(2, 0, feather_color1)
  1358. @feather_bitmaps[0].set_pixel(1, 0, feather_color2)
  1359. @feather_bitmaps[0].set_pixel(0, 1, feather_color2)
  1360.  
  1361. # 4th feather bitmap
  1362. @feather_bitmaps[0] = Bitmap.new(3, 3)
  1363. @feather_bitmaps[0].set_pixel(2, 2, feather_color1)
  1364. @feather_bitmaps[0].set_pixel(2, 1, feather_color2)
  1365. @feather_bitmaps[0].set_pixel(1, 0, feather_color2)
  1366. #-------------------------------------------------------------------------------
  1367. # Sparkle bitmaps
  1368.  
  1369. @sparkle_bitmaps = []
  1370. case $game_screen.weather_variation
  1371. when 1 # Lavender
  1372. sparkle_color1 = Color.new(197, 181, 255)
  1373. sparkle_color2 = Color.new(171, 126, 234)
  1374. sparkle_color3 = Color.new(187 , 77, 234)
  1375. sparkle_color4 = Color.new(255, 255, 255)
  1376. when 2 # Pink
  1377. sparkle_color1 = Color.new(255, 181, 234)
  1378. sparkle_color2 = Color.new(232, 125, 178)
  1379. sparkle_color3 = Color.new(232, 76, 110)
  1380. sparkle_color4 = Color.new(255, 255, 255)
  1381. when 3 # Green
  1382. sparkle_color1 = Color.new(222, 255, 181)
  1383. sparkle_color2 = Color.new(157, 226, 122)
  1384. sparkle_color3 = Color.new(85, 226, 74)
  1385. sparkle_color4 = Color.new(255, 255, 255)
  1386. when 4 # White
  1387. sparkle_color1 = Color.new(236, 236, 236)
  1388. sparkle_color2 = Color.new(218, 218, 218)
  1389. sparkle_color3 = Color.new(210, 210, 210)
  1390. sparkle_color4 = Color.new(255, 255, 255)
  1391. else # Blue
  1392. sparkle_color1 = Color.new(181, 244, 255)
  1393. sparkle_color2 = Color.new(126, 197, 235)
  1394. sparkle_color3 = Color.new(77, 136, 225)
  1395. sparkle_color4 = Color.new(255, 255, 255)
  1396. end
  1397.  
  1398. # 1st sparkle bitmap
  1399. @sparkle_bitmaps[0] = Bitmap.new(7, 7)
  1400. @sparkle_bitmaps[0].set_pixel(3, 3, sparkle_color3)
  1401.  
  1402. # 2nd sparkle bitmap
  1403. @sparkle_bitmaps[1] = Bitmap.new(7, 7)
  1404. @sparkle_bitmaps[1].fill_rect(3, 2, 1, 3, sparkle_color3)
  1405. @sparkle_bitmaps[1].fill_rect(2, 3, 3, 1, sparkle_color3)
  1406. @sparkle_bitmaps[1].set_pixel(3, 3, sparkle_color2)
  1407.  
  1408. # 3rd sparkle bitmap
  1409. @sparkle_bitmaps[2] = Bitmap.new(7, 7)
  1410. @sparkle_bitmaps[2].set_pixel(1, 1, sparkle_color3)
  1411. @sparkle_bitmaps[2].set_pixel(5, 1, sparkle_color3)
  1412. @sparkle_bitmaps[2].set_pixel(2, 2, sparkle_color2)
  1413. @sparkle_bitmaps[2].set_pixel(4, 2, sparkle_color2)
  1414. @sparkle_bitmaps[2].set_pixel(3, 3, sparkle_color1)
  1415. @sparkle_bitmaps[2].set_pixel(2, 4, sparkle_color2)
  1416. @sparkle_bitmaps[2].set_pixel(4, 4, sparkle_color2)
  1417. @sparkle_bitmaps[2].set_pixel(1, 5, sparkle_color3)
  1418. @sparkle_bitmaps[2].set_pixel(5, 5, sparkle_color3)
  1419.  
  1420. # 4th sparkle bitmap
  1421. @sparkle_bitmaps[3] = Bitmap.new(7, 7)
  1422. @sparkle_bitmaps[3].fill_rect(3, 1, 1, 5, sparkle_color3)
  1423. @sparkle_bitmaps[3].fill_rect(1, 3, 5, 1, sparkle_color3)
  1424. @sparkle_bitmaps[3].fill_rect(3, 2, 1, 3, sparkle_color2)
  1425. @sparkle_bitmaps[3].fill_rect(2, 3, 3, 1, sparkle_color2)
  1426. @sparkle_bitmaps[3].set_pixel(3, 3, sparkle_color1)
  1427.  
  1428. # 5th sparkle bitmap
  1429. @sparkle_bitmaps[4] = Bitmap.new(7, 7)
  1430. @sparkle_bitmaps[4].fill_rect(2, 2, 3, 3, sparkle_color2)
  1431. @sparkle_bitmaps[4].fill_rect(3, 2, 1, 3, sparkle_color3)
  1432. @sparkle_bitmaps[4].fill_rect(2, 3, 3, 1, sparkle_color3)
  1433. @sparkle_bitmaps[4].set_pixel(3, 3, sparkle_color1)
  1434. @sparkle_bitmaps[4].set_pixel(1, 1, sparkle_color3)
  1435. @sparkle_bitmaps[4].set_pixel(5, 1, sparkle_color3)
  1436. @sparkle_bitmaps[4].set_pixel(1, 5, sparkle_color3)
  1437. @sparkle_bitmaps[4].set_pixel(5, 1, sparkle_color3)
  1438.  
  1439. # 6th sparkle bitmap
  1440. @sparkle_bitmaps[5] = Bitmap.new(7, 7)
  1441. @sparkle_bitmaps[5].fill_rect(2, 1, 3, 5, sparkle_color3)
  1442. @sparkle_bitmaps[5].fill_rect(1, 2, 5, 3, sparkle_color3)
  1443. @sparkle_bitmaps[5].fill_rect(2, 2, 3, 3, sparkle_color2)
  1444. @sparkle_bitmaps[5].fill_rect(3, 1, 1, 5, sparkle_color2)
  1445. @sparkle_bitmaps[5].fill_rect(1, 3, 5, 1, sparkle_color2)
  1446. @sparkle_bitmaps[5].fill_rect(3, 2, 1, 3, sparkle_color1)
  1447. @sparkle_bitmaps[5].fill_rect(2, 3, 3, 1, sparkle_color1)
  1448. @sparkle_bitmaps[5].set_pixel(3, 3, sparkle_color4)
  1449.  
  1450. # 7th sparkle bitmap
  1451. @sparkle_bitmaps[6] = Bitmap.new(7, 7)
  1452. @sparkle_bitmaps[6].fill_rect(2, 1, 3, 5, sparkle_color2)
  1453. @sparkle_bitmaps[6].fill_rect(1, 2, 5, 3, sparkle_color2)
  1454. @sparkle_bitmaps[6].fill_rect(3, 0, 1, 7, sparkle_color3)
  1455. @sparkle_bitmaps[6].fill_rect(0, 3, 7, 1, sparkle_color3)
  1456. @sparkle_bitmaps[6].fill_rect(2, 2, 3, 3, sparkle_color1)
  1457. @sparkle_bitmaps[6].fill_rect(3, 2, 1, 3, sparkle_color2)
  1458. @sparkle_bitmaps[6].fill_rect(2, 3, 3, 1, sparkle_color2)
  1459. @sparkle_bitmaps[6].set_pixel(3, 3, sparkle_color4)
  1460. #-------------------------------------------------------------------------------
  1461. # Meteor bitmap
  1462.  
  1463. case $game_screen.weather_variation
  1464. when 1 # Flame Meteor
  1465. meteor_color1 = Color.new(248, 88, 0)
  1466. meteor_color2 = Color.new(205, 194, 23)
  1467. meteor_color3 = Color.new(218, 207, 36)
  1468. when 2 # Rock Meteor
  1469. meteor_color1 = Color.new(60, 60, 60)
  1470. meteor_color2 = Color.new(248, 88, 0)
  1471. meteor_color3 = Color.new(218, 207, 36)
  1472. else # Normal Meteor
  1473. meteor_color1 = Color.new(232, 160, 128)
  1474. meteor_color2 = Color.new(248, 88, 0)
  1475. meteor_color3 = Color.new(179, 17, 17)
  1476. end
  1477.  
  1478. @meteor_bitmap = Bitmap.new(14, 12)
  1479. @meteor_bitmap.fill_rect(0, 8, 5, 4, meteor_color1)
  1480. @meteor_bitmap.fill_rect(1, 7, 6, 4, meteor_color1)
  1481. @meteor_bitmap.set_pixel(7, 8, meteor_color1)
  1482. @meteor_bitmap.fill_rect(1, 8, 2, 2, meteor_color2)
  1483. @meteor_bitmap.set_pixel(2, 7, meteor_color2)
  1484. @meteor_bitmap.fill_rect(3, 6, 2, 1, meteor_color2)
  1485. @meteor_bitmap.set_pixel(3, 8, meteor_color2)
  1486. @meteor_bitmap.set_pixel(3, 10, meteor_color2)
  1487. @meteor_bitmap.set_pixel(4, 9, meteor_color2)
  1488. @meteor_bitmap.fill_rect(5, 5, 1, 5, meteor_color2)
  1489. @meteor_bitmap.fill_rect(6, 4, 1, 5, meteor_color2)
  1490. @meteor_bitmap.fill_rect(7, 3, 1, 5, meteor_color2)
  1491. @meteor_bitmap.fill_rect(8, 6, 1, 2, meteor_color2)
  1492. @meteor_bitmap.set_pixel(9, 5, meteor_color2)
  1493. @meteor_bitmap.set_pixel(3, 8, meteor_color3)
  1494. @meteor_bitmap.fill_rect(4, 7, 1, 2, meteor_color3)
  1495. @meteor_bitmap.set_pixel(4, 5, meteor_color3)
  1496. @meteor_bitmap.set_pixel(5, 4, meteor_color3)
  1497. @meteor_bitmap.set_pixel(5, 6, meteor_color3)
  1498. @meteor_bitmap.set_pixel(6, 5, meteor_color3)
  1499. @meteor_bitmap.set_pixel(6, 7, meteor_color3)
  1500. @meteor_bitmap.fill_rect(7, 4, 1, 3, meteor_color3)
  1501. @meteor_bitmap.fill_rect(8, 3, 1, 3, meteor_color3)
  1502. @meteor_bitmap.fill_rect(9, 2, 1, 3, meteor_color3)
  1503. @meteor_bitmap.fill_rect(10, 1, 1, 3, meteor_color3)
  1504. @meteor_bitmap.fill_rect(11, 0, 1, 3, meteor_color3)
  1505. @meteor_bitmap.fill_rect(12, 0, 1, 2, meteor_color3)
  1506. @meteor_bitmap.set_pixel(13, 0, meteor_color3)
  1507.  
  1508. # Impact bitmap
  1509. @impact_bitmap = Bitmap.new(22, 11)
  1510. @impact_bitmap.fill_rect(0, 5, 1, 2, meteor_color2)
  1511. @impact_bitmap.set_pixel(1, 4, meteor_color2)
  1512. @impact_bitmap.set_pixel(1, 6, meteor_color2)
  1513. @impact_bitmap.set_pixel(2, 3, meteor_color2)
  1514. @impact_bitmap.set_pixel(2, 7, meteor_color2)
  1515. @impact_bitmap.set_pixel(3, 2, meteor_color3)
  1516. @impact_bitmap.set_pixel(3, 7, meteor_color3)
  1517. @impact_bitmap.set_pixel(4, 2, meteor_color2)
  1518. @impact_bitmap.set_pixel(4, 8, meteor_color2)
  1519. @impact_bitmap.set_pixel(5, 2, meteor_color3)
  1520. @impact_bitmap.fill_rect(5, 8, 3, 1, meteor_color2)
  1521. @impact_bitmap.set_pixel(6, 1, meteor_color3)
  1522. @impact_bitmap.fill_rect(7, 1, 8, 1, meteor_color2)
  1523. @impact_bitmap.fill_rect(7, 9, 8, 1, meteor_color3)
  1524. #-------------------------------------------------------------------------------
  1525. # Ash bitmaps
  1526.  
  1527. ash_color1 = Color.new(210, 210, 210, 250)
  1528. ash_color2 = Color.new(255, 255, 255)
  1529. ash_color3 = Color.new(214, 217, 217, 150)
  1530.  
  1531. @ash_bitmaps = []
  1532. @ash_bitmaps[0] = Bitmap.new(3, 3)
  1533. @ash_bitmaps[0].fill_rect(0, 1, 1, 3, ash_color1)
  1534. @ash_bitmaps[0].fill_rect(1, 0, 3, 1, ash_color1)
  1535. @ash_bitmaps[0].set_pixel(1, 1, ash_color2)
  1536. @ash_bitmaps[1] = Bitmap.new(3, 3)
  1537. @ash_bitmaps[1].fill_rect(0, 1, 1, 3, ash_color3)
  1538. @ash_bitmaps[1].fill_rect(1, 0, 3, 1, ash_color3)
  1539. @ash_bitmaps[1].set_pixel(1, 1, ash_color1)
  1540. #-------------------------------------------------------------------------------
  1541. # Bubble bitmaps
  1542.  
  1543. @bubble_bitmaps = []
  1544. bubble_color1 = Color.new(77, 136, 225, 160)
  1545. bubble_color2 = Color.new(197, 253, 254, 160)
  1546. bubble_color3 = Color.new(225, 190, 244, 160)
  1547. bubble_color4 = Color.new(255, 255, 255)
  1548.  
  1549. # first bubble bitmap
  1550. @bubble_bitmaps[0] = Bitmap.new(24, 24)
  1551. @bubble_bitmaps[0].fill_rect(0, 9, 24, 5, bubble_color1)
  1552. @bubble_bitmaps[0].fill_rect(1, 6, 22, 11, bubble_color1)
  1553. @bubble_bitmaps[0].fill_rect(2, 5, 20, 13, bubble_color1)
  1554. @bubble_bitmaps[0].fill_rect(3, 4, 18, 15, bubble_color1)
  1555. @bubble_bitmaps[0].fill_rect(4, 3, 16, 17, bubble_color1)
  1556. @bubble_bitmaps[0].fill_rect(5, 2, 14, 19, bubble_color1)
  1557. @bubble_bitmaps[0].fill_rect(6, 1, 12, 21, bubble_color1)
  1558. @bubble_bitmaps[0].fill_rect(9, 0, 5, 24, bubble_color1)
  1559. @bubble_bitmaps[0].fill_rect(2, 11, 20, 4, bubble_color2)
  1560. @bubble_bitmaps[0].fill_rect(3, 7, 18, 10, bubble_color2)
  1561. @bubble_bitmaps[0].fill_rect(4, 6, 16, 12, bubble_color2)
  1562. @bubble_bitmaps[0].fill_rect(5, 5, 14, 14, bubble_color2)
  1563. @bubble_bitmaps[0].fill_rect(6, 4, 12, 16, bubble_color2)
  1564. @bubble_bitmaps[0].fill_rect(9, 2, 4, 20, bubble_color2)
  1565. @bubble_bitmaps[0].fill_rect(5, 10, 1, 7, bubble_color3)
  1566. @bubble_bitmaps[0].fill_rect(6, 14, 1, 5, bubble_color3)
  1567. @bubble_bitmaps[0].fill_rect(7, 15, 1, 4, bubble_color3)
  1568. @bubble_bitmaps[0].fill_rect(8, 16, 1, 4, bubble_color3)
  1569. @bubble_bitmaps[0].fill_rect(9, 17, 1, 3, bubble_color3)
  1570. @bubble_bitmaps[0].fill_rect(10, 18, 4, 3, bubble_color3)
  1571. @bubble_bitmaps[0].fill_rect(14, 18, 1, 2, bubble_color3)
  1572. @bubble_bitmaps[0].fill_rect(13, 5, 4, 4, bubble_color4)
  1573. @bubble_bitmaps[0].fill_rect(14, 4, 2, 1, bubble_color4)
  1574. @bubble_bitmaps[0].set_pixel(17, 6, bubble_color4)
  1575.  
  1576. # second bubble bitmap
  1577. @bubble_bitmaps[1] = Bitmap.new(14, 15)
  1578. @bubble_bitmaps[1].fill_rect(0, 4, 14, 7, bubble_color1)
  1579. @bubble_bitmaps[1].fill_rect(1, 3, 12, 9, bubble_color1)
  1580. @bubble_bitmaps[1].fill_rect(2, 2, 10, 11, bubble_color1)
  1581. @bubble_bitmaps[1].fill_rect(3, 1, 8, 13, bubble_color1)
  1582. @bubble_bitmaps[1].fill_rect(5, 0, 4, 15, bubble_color1)
  1583. @bubble_bitmaps[1].fill_rect(1, 5, 12, 4, bubble_color2)
  1584. @bubble_bitmaps[1].fill_rect(2, 4, 10, 6, bubble_color2)
  1585. @bubble_bitmaps[1].fill_rect(3, 3, 8, 8, bubble_color2)
  1586. @bubble_bitmaps[1].fill_rect(4, 2, 6, 10, bubble_color2)
  1587. @bubble_bitmaps[1].fill_rect(1, 5, 12, 4, bubble_color2)
  1588. @bubble_bitmaps[1].fill_rect(3, 9, 1, 2, bubble_color3)
  1589. @bubble_bitmaps[1].fill_rect(4, 10, 1, 2, bubble_color3)
  1590. @bubble_bitmaps[1].fill_rect(5, 11, 4, 1, bubble_color3)
  1591. @bubble_bitmaps[1].fill_rect(6, 12, 2, 1, bubble_color4)
  1592. @bubble_bitmaps[1].fill_rect(8, 3, 2, 2, bubble_color4)
  1593. @bubble_bitmaps[1].set_pixel(7, 4, bubble_color4)
  1594. @bubble_bitmaps[1].set_pixel(8, 5, bubble_color4)
  1595.  
  1596. # Other option for bubbles
  1597. @bubble2_bitmaps = Array.new
  1598. bubble2_color1 = Color.new(145, 150, 155, 160)
  1599. bubble2_color2 = Color.new(180, 180, 185, 160)
  1600. bubble2_color3 = Color.new(225, 225, 235, 160)
  1601. bubble2_color4 = Color.new(145, 145, 165, 160)
  1602. bubble2_color5 = Color.new(165, 170, 180, 160)
  1603. bubble2_color6 = Color.new(255, 255, 255, 160)
  1604.  
  1605. # first bubble 2 bitmap
  1606. @bubble2_bitmaps[0] = Bitmap.new(6, 6)
  1607. @bubble2_bitmaps[0].fill_rect(0, 0, 6, 6, bubble2_color1)
  1608. @bubble2_bitmaps[0].fill_rect(0, 2, 6, 2, bubble2_color2)
  1609. @bubble2_bitmaps[0].fill_rect(2, 0, 2, 6, bubble2_color2)
  1610. @bubble2_bitmaps[0].fill_rect(2, 2, 2, 2, bubble2_color3)
  1611.  
  1612. # second bubble 2 bitmap
  1613. @bubble2_bitmaps[1] = Bitmap.new(8, 8)
  1614. @bubble2_bitmaps[1].fill_rect(0, 2, 2, 4, bubble2_color4)
  1615. @bubble2_bitmaps[1].fill_rect(2, 0, 4, 2, bubble2_color1)
  1616. @bubble2_bitmaps[1].fill_rect(6, 2, 2, 2, bubble2_color1)
  1617. @bubble2_bitmaps[1].fill_rect(2, 6, 2, 2, bubble2_color1)
  1618. @bubble2_bitmaps[1].fill_rect(6, 4, 2, 2, bubble2_color2)
  1619. @bubble2_bitmaps[1].fill_rect(4, 6, 2, 2, bubble2_color2)
  1620. @bubble2_bitmaps[1].fill_rect(4, 4, 2, 2, bubble2_color5)
  1621. @bubble2_bitmaps[1].fill_rect(2, 4, 2, 2, bubble2_color3)
  1622. @bubble2_bitmaps[1].fill_rect(4, 2, 2, 2, bubble2_color3)
  1623. @bubble2_bitmaps[1].fill_rect(2, 2, 2, 2, bubble2_color6)
  1624.  
  1625. # third bubble 2 bitmap
  1626. @bubble2_bitmaps[2] = Bitmap.new(8, 10)
  1627. @bubble2_bitmaps[2].fill_rect(8, 2, 2, 4, bubble2_color4)
  1628. @bubble2_bitmaps[2].fill_rect(2, 0, 8, 2, bubble2_color1)
  1629. @bubble2_bitmaps[2].fill_rect(2, 6, 8, 2, bubble2_color1)
  1630. @bubble2_bitmaps[2].fill_rect(4, 0, 2, 2, bubble2_color2)
  1631. @bubble2_bitmaps[2].fill_rect(4, 6, 2, 2, bubble2_color2)
  1632. @bubble2_bitmaps[2].fill_rect(0, 2, 2, 2, bubble2_color2)
  1633. @bubble2_bitmaps[2].fill_rect(0, 4, 2, 2, bubble2_color5)
  1634. @bubble2_bitmaps[2].fill_rect(2, 2, 6, 4, bubble2_color3)
  1635. @bubble2_bitmaps[2].fill_rect(2, 2, 4, 2, bubble2_color6)
  1636. @bubble2_bitmaps[2].fill_rect(4, 4, 2, 2, bubble2_color6)
  1637.  
  1638. # fourth bubble 2 bitmap
  1639. @bubble2_bitmaps[3] = Bitmap.new(14, 14)
  1640. @bubble2_bitmaps[3].fill_rect(4, 0, 4, 2, bubble2_color4)
  1641. @bubble2_bitmaps[3].fill_rect(0, 4, 2, 4, bubble2_color4)
  1642. @bubble2_bitmaps[3].fill_rect(12, 4, 2, 4, bubble2_color4)
  1643. @bubble2_bitmaps[3].fill_rect(8, 0, 2, 2, bubble2_color1)
  1644. @bubble2_bitmaps[3].fill_rect(0, 6, 2, 2, bubble2_color1)
  1645. @bubble2_bitmaps[3].fill_rect(12, 6, 2, 2, bubble2_color1)
  1646. @bubble2_bitmaps[3].fill_rect(4, 12, 6, 2, bubble2_color1)
  1647. @bubble2_bitmaps[3].fill_rect(8, 0, 2, 2, bubble2_color1)
  1648. @bubble2_bitmaps[3].fill_rect(2, 2, 10, 10, bubble2_color2)
  1649. @bubble2_bitmaps[3].fill_rect(6, 12, 2, 2, bubble2_color2)
  1650. @bubble2_bitmaps[3].fill_rect(2, 4, 10, 6, bubble2_color3)
  1651. @bubble2_bitmaps[3].fill_rect(4, 2, 2, 2, bubble2_color3)
  1652. @bubble2_bitmaps[3].fill_rect(6, 10, 4, 2, bubble2_color3)
  1653. @bubble2_bitmaps[3].fill_rect(6, 4, 2, 2, bubble2_color6)
  1654. @bubble2_bitmaps[3].fill_rect(4, 6, 2, 2, bubble2_color6)
  1655. #-------------------------------------------------------------------------------
  1656. # Bomb bitmap
  1657.  
  1658. case $game_screen.weather_variation
  1659. when 1 # Flare
  1660. bomb_color1 = Color.new(205, 194, 23)
  1661. bomb_color2 = Color.new(248, 88, 0)
  1662. when 2 # Ice
  1663. bomb_color1 = Color.new(181, 244, 255)
  1664. bomb_color2 = Color.new(181, 244, 255)
  1665. else # Water
  1666. bomb_color1 = Color.new(197, 253, 254, 160)
  1667. bomb_color2 = Color.new(197, 253, 254, 160)
  1668. end
  1669.  
  1670. @bomb_bitmap = Bitmap.new(8, 8)
  1671. @bomb_bitmap.fill_rect(0, 2, 2, 4, bomb_color1)
  1672. @bomb_bitmap.fill_rect(2, 0, 4, 2, bomb_color1)
  1673. @bomb_bitmap.fill_rect(6, 2, 2, 2, bomb_color1)
  1674. @bomb_bitmap.fill_rect(2, 6, 2, 2, bomb_color2)
  1675. @bomb_bitmap.fill_rect(6, 4, 2, 2, bomb_color2)
  1676. @bomb_bitmap.fill_rect(4, 6, 2, 2, bomb_color1)
  1677. @bomb_bitmap.fill_rect(4, 4, 2, 2, bomb_color2)
  1678. @bomb_bitmap.fill_rect(2, 4, 2, 2, bomb_color1)
  1679. @bomb_bitmap.fill_rect(4, 2, 2, 2, bomb_color1)
  1680. @bomb_bitmap.fill_rect(2, 2, 2, 2, bomb_color1)
  1681.  
  1682. # Bomb impact bitmap
  1683. @bomb_impact_bitmap = Bitmap.new(8, 5)
  1684. @bomb_impact_bitmap.fill_rect(1, 0, 6, 1, bomb_color2)
  1685. @bomb_impact_bitmap.fill_rect(1, 4, 6, 1, bomb_color2)
  1686. @bomb_impact_bitmap.fill_rect(0, 1, 1, 3, bomb_color1)
  1687. @bomb_impact_bitmap.fill_rect(7, 1, 1, 3, bomb_color1)
  1688. @bomb_impact_bitmap.set_pixel(1, 0, bomb_color1)
  1689. @bomb_impact_bitmap.set_pixel(0, 1, bomb_color1)
  1690. #-------------------------------------------------------------------------------
  1691. # Starburst bitmaps (prismatic)
  1692.  
  1693. @starburst_bitmaps = []
  1694. starburst_color1 = Color.new(233, 210, 142)
  1695. starburst_color2 = Color.new(219, 191, 95)
  1696. starburst_color3 = Color.new(242, 229, 190)
  1697. starburst_color4 = Color.new(241, 185, 187)
  1698. starburst_color5 = Color.new(196, 55, 84)
  1699. starburst_color6 = Color.new(178, 15, 56)
  1700. starburst_color7 = Color.new (189, 225, 242)
  1701. starburst_color8 = Color.new (102, 181, 221)
  1702. starburst_color9 = Color.new (5, 88, 168)
  1703. starburst_color10 = Color.new(205, 246, 205)
  1704. starburst_color11 = Color.new(88, 221, 89)
  1705. starburst_color12 = Color.new(44, 166, 0)
  1706. starburst_color13 = Color.new(216, 197, 255)
  1707. starburst_color14 = Color.new(155, 107, 255)
  1708. starburst_color15 = Color.new(71, 0, 222)
  1709. starburst_color16 = Color.new(255, 220, 177)
  1710. starburst_color17 = Color.new(255, 180, 85)
  1711. starburst_color18 = Color.new(222, 124, 0)
  1712.  
  1713. # 1st starburst bitmap
  1714. @starburst_bitmaps[0] = Bitmap.new(8, 8)
  1715. @starburst_bitmaps[0].set_pixel(3, 3, starburst_color3)
  1716.  
  1717. # 2nd starburst bitmap
  1718. @starburst_bitmaps[1] = Bitmap.new(8, 8)
  1719. @starburst_bitmaps[1].fill_rect(3, 2, 1, 3, starburst_color1)
  1720. @starburst_bitmaps[1].fill_rect(2, 3, 3, 1, starburst_color1)
  1721. @starburst_bitmaps[1].set_pixel(3, 3, starburst_color3)
  1722.  
  1723. # 3rd starburst bitmap
  1724. @starburst_bitmaps[2] = Bitmap.new(7, 7)
  1725. @starburst_bitmaps[2].set_pixel(1, 1, starburst_color1)
  1726. @starburst_bitmaps[2].set_pixel(5, 1, starburst_color1)
  1727. @starburst_bitmaps[2].set_pixel(2, 2, starburst_color2)
  1728. @starburst_bitmaps[2].set_pixel(4, 2, starburst_color1)
  1729. @starburst_bitmaps[2].set_pixel(3, 3, starburst_color3)
  1730. @starburst_bitmaps[2].set_pixel(2, 4, starburst_color2)
  1731. @starburst_bitmaps[2].set_pixel(4, 4, starburst_color2)
  1732. @starburst_bitmaps[2].set_pixel(1, 5, starburst_color1)
  1733. @starburst_bitmaps[2].set_pixel(5, 5, starburst_color1)
  1734.  
  1735. # 4th starburst bitmap
  1736. @starburst_bitmaps[3] = Bitmap.new(7, 7)
  1737. @starburst_bitmaps[3].fill_rect(3, 1, 1, 5, starburst_color1)
  1738. @starburst_bitmaps[3].fill_rect(1, 3, 5, 1, starburst_color2)
  1739. @starburst_bitmaps[3].fill_rect(3, 2, 1, 3, starburst_color1)
  1740. @starburst_bitmaps[3].fill_rect(2, 3, 3, 1, starburst_color2)
  1741. @starburst_bitmaps[3].set_pixel(3, 3, starburst_color3)
  1742.  
  1743. # 5th starburst bitmap
  1744. @starburst_bitmaps[4] = Bitmap.new(7, 7)
  1745. @starburst_bitmaps[4].fill_rect(2, 2, 3, 3, starburst_color1)
  1746. @starburst_bitmaps[4].fill_rect(3, 2, 1, 3, starburst_color1)
  1747. @starburst_bitmaps[4].fill_rect(2, 3, 3, 1, starburst_color2)
  1748. @starburst_bitmaps[4].set_pixel(3, 3, starburst_color3)
  1749. @starburst_bitmaps[4].set_pixel(1, 1, starburst_color1)
  1750. @starburst_bitmaps[4].set_pixel(5, 1, starburst_color1)
  1751. @starburst_bitmaps[4].set_pixel(1, 5, starburst_color2)
  1752. @starburst_bitmaps[4].set_pixel(5, 1, starburst_color2)
  1753.  
  1754. # 6th starburst bitmap
  1755. @starburst_bitmaps[5] = Bitmap.new(8, 8)
  1756. @starburst_bitmaps[5].fill_rect(3, 2, 1, 3, starburst_color1)
  1757. @starburst_bitmaps[5].fill_rect(2, 3, 3, 1, starburst_color1)
  1758. @starburst_bitmaps[5].set_pixel(3, 3, starburst_color3)
  1759.  
  1760. # 7th starburst bitmap
  1761. @starburst_bitmaps[6] = Bitmap.new(8, 8)
  1762. @starburst_bitmaps[6].fill_rect(3, 2, 1, 3, starburst_color11)
  1763. @starburst_bitmaps[6].fill_rect(2, 3, 3, 1, starburst_color11)
  1764. @starburst_bitmaps[6].set_pixel(3, 3, starburst_color10)
  1765.  
  1766. # 8th starburst bitmap
  1767. @starburst_bitmaps[7] = Bitmap.new(7, 7)
  1768. @starburst_bitmaps[7].set_pixel(1, 1, starburst_color12)
  1769. @starburst_bitmaps[7].set_pixel(5, 1, starburst_color12)
  1770. @starburst_bitmaps[7].set_pixel(2, 2, starburst_color12)
  1771. @starburst_bitmaps[7].set_pixel(4, 2, starburst_color12)
  1772. @starburst_bitmaps[7].set_pixel(3, 3, starburst_color11)
  1773. @starburst_bitmaps[7].set_pixel(2, 4, starburst_color11)
  1774. @starburst_bitmaps[7].set_pixel(4, 4, starburst_color11)
  1775. @starburst_bitmaps[7].set_pixel(1, 5, starburst_color11)
  1776. @starburst_bitmaps[7].set_pixel(5, 5, starburst_color10)
  1777.  
  1778. # 9th starburst bitmap
  1779. @starburst_bitmaps[8] = Bitmap.new(7, 7)
  1780. @starburst_bitmaps[8].fill_rect(3, 1, 1, 5, starburst_color12)
  1781. @starburst_bitmaps[8].fill_rect(1, 3, 5, 1, starburst_color12)
  1782. @starburst_bitmaps[8].fill_rect(3, 2, 1, 3, starburst_color11)
  1783. @starburst_bitmaps[8].fill_rect(2, 3, 3, 1, starburst_color11)
  1784. @starburst_bitmaps[8].set_pixel(3, 3, starburst_color10)
  1785.  
  1786. # 10th starburst bitmap
  1787. @starburst_bitmaps[9] = Bitmap.new(7, 7)
  1788. @starburst_bitmaps[9].fill_rect(2, 1, 3, 5, starburst_color12)
  1789. @starburst_bitmaps[9].fill_rect(1, 2, 5, 3, starburst_color12)
  1790. @starburst_bitmaps[9].fill_rect(2, 2, 3, 3, starburst_color11)
  1791. @starburst_bitmaps[9].fill_rect(3, 1, 1, 5, starburst_color11)
  1792. @starburst_bitmaps[9].fill_rect(1, 3, 5, 1, starburst_color11)
  1793. @starburst_bitmaps[9].fill_rect(3, 2, 1, 3, starburst_color10)
  1794. @starburst_bitmaps[9].fill_rect(2, 3, 3, 1, starburst_color10)
  1795. @starburst_bitmaps[9].set_pixel(3, 3, starburst_color10)
  1796.  
  1797. # 11th starburst bitmap
  1798. @starburst_bitmaps[10] = Bitmap.new(7, 7)
  1799. @starburst_bitmaps[10].fill_rect(2, 2, 3, 3, starburst_color12)
  1800. @starburst_bitmaps[10].fill_rect(3, 2, 1, 3, starburst_color12)
  1801. @starburst_bitmaps[10].fill_rect(2, 3, 3, 1, starburst_color11)
  1802. @starburst_bitmaps[10].set_pixel(3, 3, starburst_color10)
  1803. @starburst_bitmaps[10].set_pixel(1, 1, starburst_color11)
  1804. @starburst_bitmaps[10].set_pixel(5, 1, starburst_color11)
  1805. @starburst_bitmaps[10].set_pixel(1, 5, starburst_color12)
  1806. @starburst_bitmaps[10].set_pixel(5, 1, starburst_color12)
  1807.  
  1808. # 12th starburst bitmap
  1809. @starburst_bitmaps[11] = Bitmap.new(8, 8)
  1810. @starburst_bitmaps[11].fill_rect(3, 2, 1, 3, starburst_color11)
  1811. @starburst_bitmaps[11].fill_rect(2, 3, 3, 1, starburst_color11)
  1812. @starburst_bitmaps[11].set_pixel(3, 3, starburst_color10)
  1813.  
  1814. # 13th starburst bitmap
  1815. @starburst_bitmaps[12] = Bitmap.new(8, 8)
  1816. @starburst_bitmaps[12].fill_rect(3, 2, 1, 3, starburst_color8)
  1817. @starburst_bitmaps[12].fill_rect(2, 3, 3, 1, starburst_color8)
  1818. @starburst_bitmaps[12].set_pixel(3, 3, starburst_color7)
  1819.  
  1820. # 14th starburst bitmap
  1821. @starburst_bitmaps[13] = Bitmap.new(7, 7)
  1822. @starburst_bitmaps[13].set_pixel(1, 1, starburst_color9)
  1823. @starburst_bitmaps[13].set_pixel(5, 1, starburst_color9)
  1824. @starburst_bitmaps[13].set_pixel(2, 2, starburst_color9)
  1825. @starburst_bitmaps[13].set_pixel(4, 2, starburst_color9)
  1826. @starburst_bitmaps[13].set_pixel(3, 3, starburst_color8)
  1827. @starburst_bitmaps[13].set_pixel(2, 4, starburst_color8)
  1828. @starburst_bitmaps[13].set_pixel(4, 4, starburst_color8)
  1829. @starburst_bitmaps[13].set_pixel(1, 5, starburst_color8)
  1830. @starburst_bitmaps[13].set_pixel(5, 5, starburst_color7)
  1831.  
  1832. # 15th starburst bitmap
  1833. @starburst_bitmaps[14] = Bitmap.new(7, 7)
  1834. @starburst_bitmaps[14].fill_rect(3, 1, 1, 5, starburst_color9)
  1835. @starburst_bitmaps[14].fill_rect(1, 3, 5, 1, starburst_color9)
  1836. @starburst_bitmaps[14].fill_rect(3, 2, 1, 3, starburst_color8)
  1837. @starburst_bitmaps[14].fill_rect(2, 3, 3, 1, starburst_color8)
  1838. @starburst_bitmaps[14].set_pixel(3, 3, starburst_color7)
  1839.  
  1840. # 16th starburst bitmap
  1841. @starburst_bitmaps[15] = Bitmap.new(7, 7)
  1842. @starburst_bitmaps[15].fill_rect(2, 1, 3, 5, starburst_color9)
  1843. @starburst_bitmaps[15].fill_rect(1, 2, 5, 3, starburst_color9)
  1844. @starburst_bitmaps[15].fill_rect(2, 2, 3, 3, starburst_color8)
  1845. @starburst_bitmaps[15].fill_rect(3, 1, 1, 5, starburst_color8)
  1846. @starburst_bitmaps[15].fill_rect(1, 3, 5, 1, starburst_color8)
  1847. @starburst_bitmaps[15].fill_rect(3, 2, 1, 3, starburst_color7)
  1848. @starburst_bitmaps[15].fill_rect(2, 3, 3, 1, starburst_color7)
  1849. @starburst_bitmaps[15].set_pixel(3, 3, starburst_color7)
  1850.  
  1851. # 17th starburst bitmap
  1852. @starburst_bitmaps[16] = Bitmap.new(8, 8)
  1853. @starburst_bitmaps[16].fill_rect(3, 2, 1, 3, starburst_color8)
  1854. @starburst_bitmaps[16].fill_rect(2, 3, 3, 1, starburst_color8)
  1855. @starburst_bitmaps[16].set_pixel(3, 3, starburst_color7)
  1856.  
  1857. # 18th starburst bitmap
  1858. @starburst_bitmaps[17] = Bitmap.new(8, 8)
  1859. @starburst_bitmaps[17].fill_rect(3, 2, 1, 3, starburst_color14)
  1860. @starburst_bitmaps[17].fill_rect(2, 3, 3, 1, starburst_color14)
  1861. @starburst_bitmaps[17].set_pixel(3, 3, starburst_color13)
  1862.  
  1863. # 19th starburst bitmap
  1864. @starburst_bitmaps[18] = Bitmap.new(7, 7)
  1865. @starburst_bitmaps[18].set_pixel(1, 1, starburst_color15)
  1866. @starburst_bitmaps[18].set_pixel(5, 1, starburst_color15)
  1867. @starburst_bitmaps[18].set_pixel(2, 2, starburst_color15)
  1868. @starburst_bitmaps[18].set_pixel(4, 2, starburst_color15)
  1869. @starburst_bitmaps[18].set_pixel(3, 3, starburst_color14)
  1870. @starburst_bitmaps[18].set_pixel(2, 4, starburst_color14)
  1871. @starburst_bitmaps[18].set_pixel(4, 4, starburst_color14)
  1872. @starburst_bitmaps[18].set_pixel(1, 5, starburst_color14)
  1873. @starburst_bitmaps[18].set_pixel(5, 5, starburst_color13)
  1874.  
  1875. # 20th starburst bitmap
  1876. @starburst_bitmaps[19] = Bitmap.new(7, 7)
  1877. @starburst_bitmaps[19].fill_rect(3, 1, 1, 5, starburst_color15)
  1878. @starburst_bitmaps[19].fill_rect(1, 3, 5, 1, starburst_color15)
  1879. @starburst_bitmaps[19].fill_rect(3, 2, 1, 3, starburst_color14)
  1880. @starburst_bitmaps[19].fill_rect(2, 3, 3, 1, starburst_color14)
  1881. @starburst_bitmaps[19].set_pixel(3, 3, starburst_color14)
  1882.  
  1883. # 21st starburst bitmap
  1884. @starburst_bitmaps[20] = Bitmap.new(7, 7)
  1885. @starburst_bitmaps[20].fill_rect(2, 1, 3, 5, starburst_color15)
  1886. @starburst_bitmaps[20].fill_rect(1, 2, 5, 3, starburst_color15)
  1887. @starburst_bitmaps[20].fill_rect(2, 2, 3, 3, starburst_color14)
  1888. @starburst_bitmaps[20].fill_rect(3, 1, 1, 5, starburst_color14)
  1889. @starburst_bitmaps[20].fill_rect(1, 3, 5, 1, starburst_color14)
  1890. @starburst_bitmaps[20].fill_rect(3, 2, 1, 3, starburst_color13)
  1891. @starburst_bitmaps[20].fill_rect(2, 3, 3, 1, starburst_color13)
  1892. @starburst_bitmaps[20].set_pixel(3, 3, starburst_color13)
  1893.  
  1894. # 22nd starburst bitmap
  1895. @starburst_bitmaps[21] = Bitmap.new(7, 7)
  1896. @starburst_bitmaps[21].fill_rect(2, 1, 3, 5, starburst_color14)
  1897. @starburst_bitmaps[21].fill_rect(1, 2, 5, 3, starburst_color14)
  1898. @starburst_bitmaps[21].fill_rect(3, 0, 1, 7, starburst_color15)
  1899. @starburst_bitmaps[21].fill_rect(0, 3, 7, 1, starburst_color15)
  1900. @starburst_bitmaps[21].fill_rect(2, 2, 3, 3, starburst_color13)
  1901. @starburst_bitmaps[21].fill_rect(3, 2, 1, 3, starburst_color14)
  1902. @starburst_bitmaps[21].fill_rect(2, 3, 3, 1, starburst_color14)
  1903. @starburst_bitmaps[21].set_pixel(3, 3, starburst_color13)
  1904.  
  1905. # 23rd starburst bitmap
  1906. @starburst_bitmaps[22] = Bitmap.new(8, 8)
  1907. @starburst_bitmaps[22].fill_rect(3, 2, 1, 3, starburst_color14)
  1908. @starburst_bitmaps[22].fill_rect(2, 3, 3, 1, starburst_color14)
  1909. @starburst_bitmaps[22].set_pixel(3, 3, starburst_color13)
  1910.  
  1911. # 24th starburst bitmap
  1912. @starburst_bitmaps[23] = Bitmap.new(8, 8)
  1913. @starburst_bitmaps[23].fill_rect(3, 2, 1, 3, starburst_color5)
  1914. @starburst_bitmaps[23].fill_rect(2, 3, 3, 1, starburst_color5)
  1915. @starburst_bitmaps[23].set_pixel(3, 3, starburst_color4)
  1916.  
  1917. # 25th starburst bitmap
  1918. @starburst_bitmaps[24] = Bitmap.new(7, 7)
  1919. @starburst_bitmaps[24].set_pixel(1, 1, starburst_color6)
  1920. @starburst_bitmaps[24].set_pixel(5, 1, starburst_color6)
  1921. @starburst_bitmaps[24].set_pixel(2, 2, starburst_color6)
  1922. @starburst_bitmaps[24].set_pixel(4, 2, starburst_color6)
  1923. @starburst_bitmaps[24].set_pixel(3, 3, starburst_color5)
  1924. @starburst_bitmaps[24].set_pixel(2, 4, starburst_color5)
  1925. @starburst_bitmaps[24].set_pixel(4, 4, starburst_color5)
  1926. @starburst_bitmaps[24].set_pixel(1, 5, starburst_color5)
  1927. @starburst_bitmaps[24].set_pixel(5, 5, starburst_color4)
  1928.  
  1929. # 26th starburst bitmap
  1930. @starburst_bitmaps[25] = Bitmap.new(7, 7)
  1931. @starburst_bitmaps[25].fill_rect(3, 1, 1, 5, starburst_color6)
  1932. @starburst_bitmaps[25].fill_rect(1, 3, 5, 1, starburst_color6)
  1933. @starburst_bitmaps[25].fill_rect(3, 2, 1, 3, starburst_color5)
  1934. @starburst_bitmaps[25].fill_rect(2, 3, 3, 1, starburst_color5)
  1935. @starburst_bitmaps[25].set_pixel(3, 3, starburst_color4)
  1936.  
  1937. # 27th starburst bitmap
  1938. @starburst_bitmaps[26] = Bitmap.new(7, 7)
  1939. @starburst_bitmaps[26].fill_rect(2, 1, 3, 5, starburst_color6)
  1940. @starburst_bitmaps[26].fill_rect(1, 2, 5, 3, starburst_color6)
  1941. @starburst_bitmaps[26].fill_rect(2, 2, 3, 3, starburst_color5)
  1942. @starburst_bitmaps[26].fill_rect(3, 1, 1, 5, starburst_color5)
  1943. @starburst_bitmaps[26].fill_rect(1, 3, 5, 1, starburst_color5)
  1944. @starburst_bitmaps[26].fill_rect(3, 2, 1, 3, starburst_color4)
  1945. @starburst_bitmaps[26].fill_rect(2, 3, 3, 1, starburst_color4)
  1946. @starburst_bitmaps[26].set_pixel(3, 3, starburst_color4)
  1947.  
  1948. # 28th starburst bitmap
  1949. @starburst_bitmaps[27] = Bitmap.new(7, 7)
  1950. @starburst_bitmaps[27].fill_rect(2, 1, 3, 5, starburst_color5)
  1951. @starburst_bitmaps[27].fill_rect(1, 2, 5, 3, starburst_color5)
  1952. @starburst_bitmaps[27].fill_rect(3, 0, 1, 7, starburst_color6)
  1953. @starburst_bitmaps[27].fill_rect(0, 3, 7, 1, starburst_color6)
  1954. @starburst_bitmaps[27].fill_rect(2, 2, 3, 3, starburst_color4)
  1955. @starburst_bitmaps[27].fill_rect(3, 2, 1, 3, starburst_color5)
  1956. @starburst_bitmaps[27].fill_rect(2, 3, 3, 1, starburst_color5)
  1957. @starburst_bitmaps[27].set_pixel(3, 3, starburst_color4)
  1958.  
  1959. # 29th starburst bitmap
  1960. @starburst_bitmaps[28] = Bitmap.new(8, 8)
  1961. @starburst_bitmaps[28].fill_rect(3, 2, 1, 3, starburst_color5)
  1962. @starburst_bitmaps[28].fill_rect(2, 3, 3, 1, starburst_color5)
  1963. @starburst_bitmaps[28].set_pixel(3, 3, starburst_color4)
  1964.  
  1965. # 30th starburst bitmap
  1966. @starburst_bitmaps[29] = Bitmap.new(8, 8)
  1967. @starburst_bitmaps[29].fill_rect(3, 2, 1, 3, starburst_color17)
  1968. @starburst_bitmaps[29].fill_rect(2, 3, 3, 1, starburst_color17)
  1969. @starburst_bitmaps[29].set_pixel(3, 3, starburst_color16)
  1970.  
  1971. # 31st starburst bitmap
  1972. @starburst_bitmaps[30] = Bitmap.new(7, 7)
  1973. @starburst_bitmaps[30].set_pixel(1, 1, starburst_color18)
  1974. @starburst_bitmaps[30].set_pixel(5, 1, starburst_color18)
  1975. @starburst_bitmaps[30].set_pixel(2, 2, starburst_color18)
  1976. @starburst_bitmaps[30].set_pixel(4, 2, starburst_color18)
  1977. @starburst_bitmaps[30].set_pixel(3, 3, starburst_color17)
  1978. @starburst_bitmaps[30].set_pixel(2, 4, starburst_color17)
  1979. @starburst_bitmaps[30].set_pixel(4, 4, starburst_color17)
  1980. @starburst_bitmaps[30].set_pixel(1, 5, starburst_color17)
  1981. @starburst_bitmaps[30].set_pixel(5, 5, starburst_color16)
  1982.  
  1983. # 32nd starburst bitmap
  1984. @starburst_bitmaps[31] = Bitmap.new(7, 7)
  1985. @starburst_bitmaps[31].fill_rect(3, 1, 1, 5, starburst_color18)
  1986. @starburst_bitmaps[31].fill_rect(1, 3, 5, 1, starburst_color18)
  1987. @starburst_bitmaps[31].fill_rect(3, 2, 1, 3, starburst_color17)
  1988. @starburst_bitmaps[31].fill_rect(2, 3, 3, 1, starburst_color17)
  1989. @starburst_bitmaps[31].set_pixel(3, 3, starburst_color16)
  1990.  
  1991. # 33rd starburst bitmap
  1992. @starburst_bitmaps[32] = Bitmap.new(7, 7)
  1993. @starburst_bitmaps[32].fill_rect(2, 1, 3, 5, starburst_color18)
  1994. @starburst_bitmaps[32].fill_rect(1, 2, 5, 3, starburst_color18)
  1995. @starburst_bitmaps[32].fill_rect(2, 2, 3, 3, starburst_color17)
  1996. @starburst_bitmaps[32].fill_rect(3, 1, 1, 5, starburst_color17)
  1997. @starburst_bitmaps[32].fill_rect(1, 3, 5, 1, starburst_color17)
  1998. @starburst_bitmaps[32].fill_rect(3, 2, 1, 3, starburst_color16)
  1999. @starburst_bitmaps[32].fill_rect(2, 3, 3, 1, starburst_color16)
  2000. @starburst_bitmaps[32].set_pixel(3, 3, starburst_color16)
  2001.  
  2002. # 34th starburst bitmap
  2003. @starburst_bitmaps[33] = Bitmap.new(7, 7)
  2004. @starburst_bitmaps[33].fill_rect(2, 1, 3, 5, starburst_color17)
  2005. @starburst_bitmaps[33].fill_rect(1, 2, 5, 3, starburst_color17)
  2006. @starburst_bitmaps[33].fill_rect(3, 0, 1, 7, starburst_color18)
  2007. @starburst_bitmaps[33].fill_rect(0, 3, 7, 1, starburst_color18)
  2008. @starburst_bitmaps[33].fill_rect(2, 2, 3, 3, starburst_color16)
  2009. @starburst_bitmaps[33].fill_rect(3, 2, 1, 3, starburst_color17)
  2010. @starburst_bitmaps[33].fill_rect(2, 3, 3, 1, starburst_color17)
  2011. @starburst_bitmaps[33].set_pixel(3, 3, starburst_color16)
  2012.  
  2013. # 35th starburst bitmap
  2014. @starburst_bitmaps[34] = Bitmap.new(8, 8)
  2015. @starburst_bitmaps[34].fill_rect(3, 2, 1, 3, starburst_color17)
  2016. @starburst_bitmaps[34].fill_rect(2, 3, 3, 1, starburst_color17)
  2017. @starburst_bitmaps[34].set_pixel(3, 3, starburst_color16)
  2018.  
  2019. # 36th starburst bitmap
  2020. @starburst_bitmaps[35] = Bitmap.new(8, 8)
  2021. @starburst_bitmaps[35].set_pixel(3, 3, starburst_color16)
  2022. #-------------------------------------------------------------------------------
  2023. # Monochrome starburst bitmaps
  2024.  
  2025. @monostarburst_bitmaps = []
  2026. case $game_screen.weather_variation
  2027. when 1 # Green
  2028. monostarburst_color1 = Color.new(159, 232, 141)
  2029. monostarburst_color2 = Color.new(198, 239, 189)
  2030. monostarburst_color3 = Color.new(115, 216, 95)
  2031. when 2 # Aqua-blue
  2032. monostarburst_color1 = Color.new(139, 229, 217)
  2033. monostarburst_color2 = Color.new(189, 237, 231)
  2034. monostarburst_color3 = Color.new(94, 214, 202)
  2035. when 3 # Blue
  2036. monostarburst_color1 = Color.new(138, 153, 226)
  2037. monostarburst_color2 = Color.new(187, 195, 234)
  2038. monostarburst_color3 = Color.new(93, 108, 211)
  2039. when 4 # Violet
  2040. monostarburst_color1 = Color.new(205, 139, 224)
  2041. monostarburst_color2 = Color.new(221, 185, 232)
  2042. monostarburst_color3 = Color.new(189, 94, 209)
  2043. when 5 # Red
  2044. monostarburst_color1 = Color.new(221, 139, 161)
  2045. monostarburst_color2 = Color.new(229, 183, 196)
  2046. monostarburst_color3 = Color.new(206, 92, 117)
  2047. else # Yellow (Default)
  2048. monostarburst_color1 = Color.new(233, 210, 142)
  2049. monostarburst_color2 = Color.new(242, 229, 190)
  2050. monostarburst_color3 = Color.new(219, 191, 95)
  2051. end
  2052.  
  2053. # 1st starburst bitmap
  2054. @monostarburst_bitmaps[0] = Bitmap.new(8, 8)
  2055. @monostarburst_bitmaps[0].set_pixel(3, 3, monostarburst_color2)
  2056.  
  2057. # 2nd starburst bitmap
  2058. @monostarburst_bitmaps[1] = Bitmap.new(8, 8)
  2059. @monostarburst_bitmaps[1].fill_rect(3, 2, 1, 3, monostarburst_color1)
  2060. @monostarburst_bitmaps[1].fill_rect(2, 3, 3, 1, monostarburst_color1)
  2061. @monostarburst_bitmaps[1].set_pixel(3, 3, monostarburst_color2)
  2062.  
  2063. # 3d starburst bitmap
  2064. @monostarburst_bitmaps[2] = Bitmap.new(7, 7)
  2065. @monostarburst_bitmaps[2].set_pixel(1, 1, monostarburst_color3)
  2066. @monostarburst_bitmaps[2].set_pixel(5, 1, monostarburst_color3)
  2067. @monostarburst_bitmaps[2].set_pixel(2, 2, monostarburst_color3)
  2068. @monostarburst_bitmaps[2].set_pixel(4, 2, monostarburst_color3)
  2069. @monostarburst_bitmaps[2].set_pixel(3, 3, monostarburst_color1)
  2070. @monostarburst_bitmaps[2].set_pixel(2, 4, monostarburst_color1)
  2071. @monostarburst_bitmaps[2].set_pixel(4, 4, monostarburst_color1)
  2072. @monostarburst_bitmaps[2].set_pixel(1, 5, monostarburst_color1)
  2073. @monostarburst_bitmaps[2].set_pixel(5, 5, monostarburst_color2)
  2074.  
  2075. # 4th starburst bitmap
  2076. @monostarburst_bitmaps[3] = Bitmap.new(7, 7)
  2077. @monostarburst_bitmaps[3].fill_rect(3, 1, 1, 5, monostarburst_color3)
  2078. @monostarburst_bitmaps[3].fill_rect(1, 3, 5, 1, monostarburst_color3)
  2079. @monostarburst_bitmaps[3].fill_rect(3, 2, 1, 3, monostarburst_color1)
  2080. @monostarburst_bitmaps[3].fill_rect(2, 3, 3, 1, monostarburst_color1)
  2081. @monostarburst_bitmaps[3].set_pixel(3, 3, monostarburst_color2)
  2082.  
  2083. # 5th starburst bitmap
  2084. @monostarburst_bitmaps[4] = Bitmap.new(7, 7)
  2085. @monostarburst_bitmaps[4].fill_rect(2, 1, 3, 5, monostarburst_color3)
  2086. @monostarburst_bitmaps[4].fill_rect(1, 2, 5, 3, monostarburst_color3)
  2087. @monostarburst_bitmaps[4].fill_rect(2, 2, 3, 3, monostarburst_color1)
  2088. @monostarburst_bitmaps[4].fill_rect(3, 1, 1, 5, monostarburst_color1)
  2089. @monostarburst_bitmaps[4].fill_rect(1, 3, 5, 1, monostarburst_color1)
  2090. @monostarburst_bitmaps[4].fill_rect(3, 2, 1, 3, monostarburst_color2)
  2091. @monostarburst_bitmaps[4].fill_rect(2, 3, 3, 1, monostarburst_color2)
  2092. @monostarburst_bitmaps[4].set_pixel(3, 3, monostarburst_color2)
  2093.  
  2094. # 6th starburst bitmap
  2095. @monostarburst_bitmaps[5] = Bitmap.new(7, 7)
  2096. @monostarburst_bitmaps[5].fill_rect(2, 1, 3, 5, monostarburst_color1)
  2097. @monostarburst_bitmaps[5].fill_rect(1, 2, 5, 3, monostarburst_color1)
  2098. @monostarburst_bitmaps[5].fill_rect(3, 0, 1, 7, monostarburst_color3)
  2099. @monostarburst_bitmaps[5].fill_rect(0, 3, 7, 1, monostarburst_color3)
  2100. @monostarburst_bitmaps[5].fill_rect(2, 2, 3, 3, monostarburst_color2)
  2101. @monostarburst_bitmaps[5].fill_rect(3, 2, 1, 3, monostarburst_color1)
  2102. @monostarburst_bitmaps[5].fill_rect(2, 3, 3, 1, monostarburst_color1)
  2103. @monostarburst_bitmaps[5].set_pixel(3, 3, monostarburst_color2)
  2104.  
  2105. # 7th starburst bitmap
  2106. @monostarburst_bitmaps[6] = Bitmap.new(8, 8)
  2107. @monostarburst_bitmaps[6].fill_rect(3, 2, 1, 3, monostarburst_color1)
  2108. @monostarburst_bitmaps[6].fill_rect(2, 3, 3, 1, monostarburst_color1)
  2109. @monostarburst_bitmaps[6].set_pixel(3, 3, monostarburst_color2)
  2110.  
  2111. # 8th starburst bitmap
  2112. @monostarburst_bitmaps[7] = Bitmap.new(8, 8)
  2113. @monostarburst_bitmaps[7].set_pixel(3, 3, monostarburst_color2)
  2114. #-------------------------------------------------------------------------------
  2115. # Falling rock bitmaps
  2116.  
  2117. @fallingrocks_bitmaps = []
  2118. rock_color1 = Color.new(173, 145, 127)
  2119. rock_color2 = Color.new(195, 159, 153)
  2120. rock_color3 = Color.new(128, 120, 112)
  2121. rock_color4 = Color.new(99, 92, 116)
  2122. rock_color5 = Color.new(107, 89, 79)
  2123. rock_color6 = Color.new(130, 110, 97)
  2124. rock_color7 = Color.new(214, 181, 150)
  2125. rock_color8 = Color.new(155, 129, 112)
  2126. rock_color9 = Color.new(193, 177, 180)
  2127. rock_color10 = Color.new(180, 180, 180)
  2128.  
  2129. # 1st falling rock bitmap
  2130. @fallingrocks_bitmaps[0] = Bitmap.new(10, 7)
  2131. @fallingrocks_bitmaps[0].fill_rect(3, 0, 3, 1, rock_color1)
  2132. @fallingrocks_bitmaps[0].fill_rect(1, 1, 2, 1, rock_color1)
  2133. @fallingrocks_bitmaps[0].set_pixel(3, 1, rock_color10)
  2134. @fallingrocks_bitmaps[0].fill_rect(4, 1, 1, 3, rock_color9)
  2135. @fallingrocks_bitmaps[0].set_pixel(5, 1, rock_color2)
  2136. @fallingrocks_bitmaps[0].set_pixel(6, 1, rock_color1)
  2137. @fallingrocks_bitmaps[0].set_pixel(0, 2, rock_color1)
  2138. @fallingrocks_bitmaps[0].fill_rect(1, 2, 3, 1, rock_color7)
  2139. @fallingrocks_bitmaps[0].set_pixel(5, 2, rock_color9)
  2140. @fallingrocks_bitmaps[0].set_pixel(6, 2, rock_color2)
  2141. @fallingrocks_bitmaps[0].set_pixel(7, 2, rock_color3)
  2142. @fallingrocks_bitmaps[0].fill_rect(8, 2, 2, 3, rock_color4)
  2143. @fallingrocks_bitmaps[0].set_pixel(0, 3, rock_color3)
  2144. @fallingrocks_bitmaps[0].set_pixel(1, 3, rock_color10)
  2145. @fallingrocks_bitmaps[0].set_pixel(2, 3, rock_color7)
  2146. @fallingrocks_bitmaps[0].set_pixel(3, 3, rock_color10)
  2147. @fallingrocks_bitmaps[0].set_pixel(5, 3, rock_color2)
  2148. @fallingrocks_bitmaps[0].set_pixel(6, 3, rock_color1)
  2149. @fallingrocks_bitmaps[0].set_pixel(7, 3, rock_color5)
  2150. @fallingrocks_bitmaps[0].fill_rect(0, 4, 2, 1, rock_color5)
  2151. @fallingrocks_bitmaps[0].set_pixel(2, 4, rock_color3)
  2152. @fallingrocks_bitmaps[0].set_pixel(3, 4, rock_color9)
  2153. @fallingrocks_bitmaps[0].set_pixel(4, 4, rock_color2)
  2154. @fallingrocks_bitmaps[0].set_pixel(5, 4, rock_color1)
  2155. @fallingrocks_bitmaps[0].set_pixel(6, 4, rock_color8)
  2156. @fallingrocks_bitmaps[0].set_pixel(7, 4, rock_color3)
  2157. @fallingrocks_bitmaps[0].set_pixel(1, 5, rock_color4)
  2158. @fallingrocks_bitmaps[0].fill_rect(2, 5, 2, 1, rock_color5)
  2159. @fallingrocks_bitmaps[0].fill_rect(4, 5, 2, 1, rock_color3)
  2160. @fallingrocks_bitmaps[0].fill_rect(6, 5, 2, 1, rock_color5)
  2161. @fallingrocks_bitmaps[0].set_pixel(8, 5, rock_color4)
  2162. @fallingrocks_bitmaps[0].fill_rect(3, 6, 5, 1, rock_color4)
  2163.  
  2164. # 2nd falling rock bitmap
  2165. @fallingrocks_bitmaps[1] = Bitmap.new(5, 4)
  2166. @fallingrocks_bitmaps[1].set_pixel(1, 0, rock_color8)
  2167. @fallingrocks_bitmaps[1].set_pixel(2, 0, rock_color1)
  2168. @fallingrocks_bitmaps[1].set_pixel(3, 0, rock_color6)
  2169. @fallingrocks_bitmaps[1].set_pixel(0, 1, rock_color6)
  2170. @fallingrocks_bitmaps[1].set_pixel(1, 1, rock_color1)
  2171. @fallingrocks_bitmaps[1].set_pixel(2, 1, rock_color2)
  2172. @fallingrocks_bitmaps[1].set_pixel(3, 1, rock_color1)
  2173. @fallingrocks_bitmaps[1].set_pixel(4, 1, rock_color5)
  2174. @fallingrocks_bitmaps[1].fill_rect(0, 2, 1, 2, rock_color4)
  2175. @fallingrocks_bitmaps[1].fill_rect(1, 2, 2, 1, rock_color6)
  2176. @fallingrocks_bitmaps[1].set_pixel(3, 2, rock_color5)
  2177. @fallingrocks_bitmaps[1].fill_rect(1, 3, 3, 1, rock_color4)
  2178.  
  2179. # 3rd falling rock bitmap
  2180. @fallingrocks_bitmaps[2] = Bitmap.new(7, 6)
  2181. @fallingrocks_bitmaps[2].set_pixel(2, 0, rock_color4)
  2182. @fallingrocks_bitmaps[2].set_pixel(3, 0, rock_color3)
  2183. @fallingrocks_bitmaps[2].set_pixel(4, 0, rock_color8)
  2184. @fallingrocks_bitmaps[2].set_pixel(5, 0, rock_color6)
  2185. @fallingrocks_bitmaps[2].set_pixel(1, 1, rock_color3)
  2186. @fallingrocks_bitmaps[2].set_pixel(2, 1, rock_color8)
  2187. @fallingrocks_bitmaps[2].set_pixel(3, 1, rock_color2)
  2188. @fallingrocks_bitmaps[2].fill_rect(4, 1, 1, 2, rock_color9)
  2189. @fallingrocks_bitmaps[2].set_pixel(5, 1, rock_color8)
  2190. @fallingrocks_bitmaps[2].fill_rect(6, 1, 1, 3, rock_color4)
  2191. @fallingrocks_bitmaps[2].set_pixel(0, 2, rock_color3)
  2192. @fallingrocks_bitmaps[2].set_pixel(1, 2, rock_color8)
  2193. @fallingrocks_bitmaps[2].set_pixel(2, 2, rock_color2)
  2194. @fallingrocks_bitmaps[2].fill_rect(3, 2, 1, 2, rock_color9)
  2195. @fallingrocks_bitmaps[2].set_pixel(5, 2, rock_color6)
  2196. @fallingrocks_bitmaps[2].set_pixel(0, 3, rock_color6)
  2197. @fallingrocks_bitmaps[2].set_pixel(1, 3, rock_color2)
  2198. @fallingrocks_bitmaps[2].set_pixel(2, 3, rock_color7)
  2199. @fallingrocks_bitmaps[2].set_pixel(4, 3, rock_color6)
  2200. @fallingrocks_bitmaps[2].fill_rect(5, 3, 1, 2, rock_color4)
  2201. @fallingrocks_bitmaps[2].set_pixel(0, 4, rock_color5)
  2202. @fallingrocks_bitmaps[2].set_pixel(1, 4, rock_color6)
  2203. @fallingrocks_bitmaps[2].set_pixel(2, 4, rock_color9)
  2204. @fallingrocks_bitmaps[2].set_pixel(3, 4, rock_color6)
  2205. @fallingrocks_bitmaps[2].fill_rect(4, 4, 1, 2, rock_color4)
  2206. @fallingrocks_bitmaps[2].set_pixel(0, 5, rock_color6)
  2207. @fallingrocks_bitmaps[2].fill_rect(1, 5, 2, 1, rock_color5)
  2208. @fallingrocks_bitmaps[2].set_pixel(3, 5, rock_color4)
  2209. #-------------------------------------------------------------------------------
  2210. # Arrows
  2211.  
  2212. arrow_color1 = Color.new(38, 0, 0)
  2213. arrow_color2 = Color.new(73, 10, 42)
  2214. arrow_color3 = Color.new(80, 50, 20)
  2215. arrow_color4 = Color.new(255, 255, 255)
  2216. arrow_color5 = Color.new(180, 180, 180)
  2217.  
  2218. @arrow_bitmap = Bitmap.new(23, 23)
  2219. @arrow_bitmap.fill_rect(19, 0, 1, 3, arrow_color4)
  2220. @arrow_bitmap.fill_rect(20, 0, 1, 2, arrow_color5)
  2221. @arrow_bitmap.set_pixel(22, 0, arrow_color3)
  2222. @arrow_bitmap.fill_rect(18, 1, 1, 3, arrow_color5)
  2223. @arrow_bitmap.set_pixel(21, 1, arrow_color3)
  2224. @arrow_bitmap.fill_rect(17, 2, 1, 3, arrow_color4)
  2225. @arrow_bitmap.set_pixel(20, 2, arrow_color3)
  2226. @arrow_bitmap.fill_rect(21, 2, 2, 1, arrow_color5)
  2227. @arrow_bitmap.set_pixel(19, 3, arrow_color3)
  2228. @arrow_bitmap.fill_rect(20, 3, 3, 1, arrow_color4)
  2229. @arrow_bitmap.set_pixel(18, 4, arrow_color3)
  2230. @arrow_bitmap.fill_rect(19, 4, 3, 1, arrow_color5)
  2231. @arrow_bitmap.set_pixel(17, 5, arrow_color3)
  2232. @arrow_bitmap.fill_rect(18, 5, 3, 1, arrow_color4)
  2233. @arrow_bitmap.set_pixel(16, 6, arrow_color3)
  2234. @arrow_bitmap.set_pixel(15, 7, arrow_color3)
  2235. @arrow_bitmap.set_pixel(14, 8, arrow_color3)
  2236. @arrow_bitmap.set_pixel(13, 9, arrow_color3)
  2237. @arrow_bitmap.set_pixel(12, 10, arrow_color3)
  2238. @arrow_bitmap.set_pixel(11, 11, arrow_color3)
  2239. @arrow_bitmap.set_pixel(10, 12, arrow_color3)
  2240. @arrow_bitmap.set_pixel(9, 13, arrow_color3)
  2241. @arrow_bitmap.set_pixel(8, 14, arrow_color3)
  2242. @arrow_bitmap.set_pixel(7, 15, arrow_color3)
  2243. @arrow_bitmap.set_pixel(6, 16, arrow_color3)
  2244. @arrow_bitmap.set_pixel(5, 17, arrow_color3)
  2245. @arrow_bitmap.set_pixel(4, 18, arrow_color3)
  2246. @arrow_bitmap.fill_rect(1, 19, 3, 1, arrow_color1)
  2247. @arrow_bitmap.fill_rect(0, 20, 1, 3, arrow_color1)
  2248. @arrow_bitmap.set_pixel(1, 20, arrow_color2)
  2249. @arrow_bitmap.set_pixel(2, 20, arrow_color5)
  2250. @arrow_bitmap.fill_rect(3, 20, 1, 2, arrow_color1)
  2251. @arrow_bitmap.set_pixel(1, 21, arrow_color5)
  2252. @arrow_bitmap.set_pixel(2, 21, arrow_color2)
  2253. @arrow_bitmap.fill_rect(1, 22, 2, 1, arrow_color1)
  2254. #-------------------------------------------------------------------------------
  2255. # Butterflies
  2256.  
  2257. @butterfly_bitmaps = []
  2258. case $game_screen.weather_variation
  2259. when 1
  2260. # Red butterflies
  2261. butterfly_color1 = Color.new(204, 53, 55)
  2262. butterfly_color2 = Color.new(206, 76, 74)
  2263. butterfly_color3 = Color.new(252, 131, 137)
  2264. butterfly_color4 = Color.new(255, 178, 163)
  2265. butterfly_color5 = Color.new(175, 35, 49)
  2266. when 2
  2267. # Yellow butterflies
  2268. butterfly_color1 = Color.new(209, 190, 75)
  2269. butterfly_color2 = Color.new(254, 228, 131)
  2270. butterfly_color3 = Color.new(205, 178, 52)
  2271. butterfly_color4 = Color.new(255, 255, 162)
  2272. butterfly_color5 = Color.new(177, 141, 34)
  2273. when 3
  2274. # Aqua-blue butterflies
  2275. butterfly_color1 = Color.new(53, 204, 201)
  2276. butterfly_color2 = Color.new(73, 204, 204)
  2277. butterfly_color3 = Color.new(129, 249, 243)
  2278. butterfly_color4 = Color.new(163, 241, 255)
  2279. butterfly_color5 = Color.new(34, 173, 159)
  2280. when 4
  2281. # Green butterflies
  2282. butterfly_color1 = Color.new(63, 204, 53)
  2283. butterfly_color2 = Color.new(77, 204, 73)
  2284. butterfly_color3 = Color.new(138, 247, 128)
  2285. butterfly_color4 = Color.new(163, 255, 173)
  2286. butterfly_color5 = Color.new(54, 170, 34)
  2287. else
  2288. # Violet butterflies
  2289. butterfly_color1 = Color.new(163, 53, 204)
  2290. butterfly_color2 = Color.new(173, 73, 204)
  2291. butterfly_color3 = Color.new(209, 128, 242)
  2292. butterfly_color4 = Color.new(247, 163, 255)
  2293. butterfly_color5 = Color.new(121, 33, 165)
  2294. end
  2295.  
  2296. # Butterfly up 1
  2297. @butterfly_bitmaps[0] = Bitmap.new(9, 6)
  2298. @butterfly_bitmaps[0].fill_rect(1, 0, 2, 1, butterfly_color1)
  2299. @butterfly_bitmaps[0].fill_rect(6, 0, 2, 1, butterfly_color1)
  2300. @butterfly_bitmaps[0].fill_rect(0, 1, 1, 2, butterfly_color1)
  2301. @butterfly_bitmaps[0].set_pixel(1, 1, butterfly_color2)
  2302. @butterfly_bitmaps[0].fill_rect(2, 1, 1, 2, butterfly_color4)
  2303. @butterfly_bitmaps[0].set_pixel(3, 1, butterfly_color1)
  2304. @butterfly_bitmaps[0].set_pixel(5, 1, butterfly_color1)
  2305. @butterfly_bitmaps[0].fill_rect(6, 1, 1, 2, butterfly_color4)
  2306. @butterfly_bitmaps[0].set_pixel(7, 1, butterfly_color2)
  2307. @butterfly_bitmaps[0].fill_rect(8, 1, 1, 2, butterfly_color1)
  2308. @butterfly_bitmaps[0].set_pixel(1, 2, butterfly_color4)
  2309. @butterfly_bitmaps[0].set_pixel(3, 2, butterfly_color4)
  2310. @butterfly_bitmaps[0].set_pixel(4, 2, butterfly_color1)
  2311. @butterfly_bitmaps[0].set_pixel(5, 2, butterfly_color4)
  2312. @butterfly_bitmaps[0].set_pixel(7, 2, butterfly_color4)
  2313. @butterfly_bitmaps[0].set_pixel(1, 3, butterfly_color5)
  2314. @butterfly_bitmaps[0].fill_rect(2, 3, 2, 1, butterfly_color2)
  2315. @butterfly_bitmaps[0].set_pixel(4, 3, butterfly_color5)
  2316. @butterfly_bitmaps[0].fill_rect(5, 3, 2, 1, butterfly_color2)
  2317. @butterfly_bitmaps[0].set_pixel(7, 3, butterfly_color5)
  2318. @butterfly_bitmaps[0].fill_rect(1, 4, 1, 2, butterfly_color1)
  2319. @butterfly_bitmaps[0].set_pixel(2, 4, butterfly_color4)
  2320. @butterfly_bitmaps[0].set_pixel(3, 4, butterfly_color5)
  2321. @butterfly_bitmaps[0].set_pixel(5, 4, butterfly_color5)
  2322. @butterfly_bitmaps[0].set_pixel(6, 4, butterfly_color4)
  2323. @butterfly_bitmaps[0].fill_rect(7, 4, 1, 2, butterfly_color1)
  2324. @butterfly_bitmaps[0].set_pixel(2, 5, butterfly_color1)
  2325. @butterfly_bitmaps[0].set_pixel(6, 5, butterfly_color1)
  2326.  
  2327. # Butterfly up 2
  2328. @butterfly_bitmaps[1] = Bitmap.new(9, 6)
  2329. @butterfly_bitmaps[1].fill_rect(2, 0, 2, 1, butterfly_color1)
  2330. @butterfly_bitmaps[1].fill_rect(5, 0, 2, 1, butterfly_color1)
  2331. @butterfly_bitmaps[1].fill_rect(0, 1, 1, 2, butterfly_color1)
  2332. @butterfly_bitmaps[1].fill_rect(1, 1, 3, 1, butterfly_color4)
  2333. @butterfly_bitmaps[1].fill_rect(4, 1, 1, 2, butterfly_color1)
  2334. @butterfly_bitmaps[1].fill_rect(5, 1, 3, 1, butterfly_color4)
  2335. @butterfly_bitmaps[1].fill_rect(8, 1, 1, 2, butterfly_color1)
  2336. @butterfly_bitmaps[1].fill_rect(1, 2, 2, 1, butterfly_color4)
  2337. @butterfly_bitmaps[1].set_pixel(3, 2, butterfly_color2)
  2338. @butterfly_bitmaps[1].set_pixel(5, 2, butterfly_color2)
  2339. @butterfly_bitmaps[1].fill_rect(6, 2, 2, 1, butterfly_color4)
  2340. @butterfly_bitmaps[1].set_pixel(1, 3, butterfly_color5)
  2341. @butterfly_bitmaps[1].fill_rect(2, 3, 2, 1, butterfly_color1)
  2342. @butterfly_bitmaps[1].set_pixel(4, 3, butterfly_color5)
  2343. @butterfly_bitmaps[1].fill_rect(5, 3, 2, 1, butterfly_color1)
  2344. @butterfly_bitmaps[1].set_pixel(7, 3, butterfly_color5)
  2345. @butterfly_bitmaps[1].set_pixel(1, 4, butterfly_color1)
  2346. @butterfly_bitmaps[1].set_pixel(2, 4, butterfly_color2)
  2347. @butterfly_bitmaps[1].set_pixel(3, 4, butterfly_color5)
  2348. @butterfly_bitmaps[1].set_pixel(5, 4, butterfly_color5)
  2349. @butterfly_bitmaps[1].set_pixel(6, 4, butterfly_color2)
  2350. @butterfly_bitmaps[1].set_pixel(7, 4, butterfly_color1)
  2351. @butterfly_bitmaps[1].set_pixel(2, 5, butterfly_color1)
  2352. @butterfly_bitmaps[1].set_pixel(6, 5, butterfly_color1)
  2353.  
  2354. # Butterfly up 3
  2355. @butterfly_bitmaps[2] = Bitmap.new(9, 6)
  2356. @butterfly_bitmaps[2].fill_rect(1, 0, 2, 1, butterfly_color1)
  2357. @butterfly_bitmaps[2].fill_rect(6, 0, 2, 1, butterfly_color1)
  2358. @butterfly_bitmaps[2].fill_rect(0, 1, 1, 2, butterfly_color1)
  2359. @butterfly_bitmaps[2].set_pixel(1, 1, butterfly_color2)
  2360. @butterfly_bitmaps[2].fill_rect(2, 1, 1, 2, butterfly_color4)
  2361. @butterfly_bitmaps[2].set_pixel(3, 1, butterfly_color1)
  2362. @butterfly_bitmaps[2].set_pixel(5, 1, butterfly_color1)
  2363. @butterfly_bitmaps[2].fill_rect(6, 1, 1, 2, butterfly_color4)
  2364. @butterfly_bitmaps[2].set_pixel(7, 1, butterfly_color2)
  2365. @butterfly_bitmaps[2].fill_rect(8, 1, 1, 2, butterfly_color1)
  2366. @butterfly_bitmaps[2].set_pixel(1, 2, butterfly_color4)
  2367. @butterfly_bitmaps[2].set_pixel(3, 2, butterfly_color4)
  2368. @butterfly_bitmaps[2].set_pixel(4, 2, butterfly_color1)
  2369. @butterfly_bitmaps[2].set_pixel(5, 2, butterfly_color4)
  2370. @butterfly_bitmaps[2].set_pixel(7, 2, butterfly_color4)
  2371. @butterfly_bitmaps[2].set_pixel(1, 3, butterfly_color5)
  2372. @butterfly_bitmaps[2].fill_rect(2, 3, 2, 1, butterfly_color2)
  2373. @butterfly_bitmaps[2].set_pixel(4, 3, butterfly_color5)
  2374. @butterfly_bitmaps[2].fill_rect(5, 3, 2, 1, butterfly_color2)
  2375. @butterfly_bitmaps[2].set_pixel(7, 3, butterfly_color5)
  2376. @butterfly_bitmaps[2].fill_rect(1, 4, 1, 2, butterfly_color1)
  2377. @butterfly_bitmaps[2].set_pixel(2, 4, butterfly_color4)
  2378. @butterfly_bitmaps[2].set_pixel(3, 4, butterfly_color5)
  2379. @butterfly_bitmaps[2].set_pixel(5, 4, butterfly_color5)
  2380. @butterfly_bitmaps[2].set_pixel(6, 4, butterfly_color4)
  2381. @butterfly_bitmaps[2].fill_rect(7, 4, 1, 2, butterfly_color1)
  2382. @butterfly_bitmaps[2].set_pixel(2, 5, butterfly_color1)
  2383. @butterfly_bitmaps[2].set_pixel(6, 5, butterfly_color1)
  2384.  
  2385. # Butterfly up 4
  2386. @butterfly_bitmaps[3] = Bitmap.new(7, 6)
  2387. @butterfly_bitmaps[3].fill_rect(1, 0, 2, 1, butterfly_color1)
  2388. @butterfly_bitmaps[3].fill_rect(4, 0, 2, 1, butterfly_color1)
  2389. @butterfly_bitmaps[3].fill_rect(0, 1, 1, 2, butterfly_color1)
  2390. @butterfly_bitmaps[3].fill_rect(1, 1, 2, 2, butterfly_color4)
  2391. @butterfly_bitmaps[3].fill_rect(4, 1, 2, 2, butterfly_color4)
  2392. @butterfly_bitmaps[3].fill_rect(6, 1, 1, 2, butterfly_color1)
  2393. @butterfly_bitmaps[3].fill_rect(3, 2, 1, 2, butterfly_color1)
  2394. @butterfly_bitmaps[3].set_pixel(1, 3, butterfly_color5)
  2395. @butterfly_bitmaps[3].fill_rect(2, 3, 1, 2, butterfly_color2)
  2396. @butterfly_bitmaps[3].fill_rect(4, 3, 1, 2, butterfly_color2)
  2397. @butterfly_bitmaps[3].set_pixel(5, 3, butterfly_color5)
  2398. @butterfly_bitmaps[3].set_pixel(1, 4, butterfly_color2)
  2399. @butterfly_bitmaps[3].set_pixel(3, 4, butterfly_color5)
  2400. @butterfly_bitmaps[3].set_pixel(5, 4, butterfly_color2)
  2401. @butterfly_bitmaps[3].set_pixel(1, 5, butterfly_color1)
  2402. @butterfly_bitmaps[3].set_pixel(2, 5, butterfly_color5)
  2403. @butterfly_bitmaps[3].set_pixel(4, 5, butterfly_color5)
  2404. @butterfly_bitmaps[3].set_pixel(5, 5, butterfly_color1)
  2405.  
  2406. # Butterfly down 1
  2407. @butterfly_bitmaps[4] = Bitmap.new(9, 6)
  2408. @butterfly_bitmaps[4].fill_rect(1, 0, 2, 1, butterfly_color1)
  2409. @butterfly_bitmaps[4].fill_rect(6, 0, 2, 1, butterfly_color1)
  2410. @butterfly_bitmaps[4].set_pixel(1, 1, butterfly_color1)
  2411. @butterfly_bitmaps[4].set_pixel(2, 1, butterfly_color4)
  2412. @butterfly_bitmaps[4].set_pixel(3, 1, butterfly_color5)
  2413. @butterfly_bitmaps[4].set_pixel(5, 1, butterfly_color5)
  2414. @butterfly_bitmaps[4].set_pixel(6, 1, butterfly_color4)
  2415. @butterfly_bitmaps[4].set_pixel(7, 1, butterfly_color1)
  2416. @butterfly_bitmaps[4].set_pixel(1, 2, butterfly_color5)
  2417. @butterfly_bitmaps[4].fill_rect(2, 2, 2, 1, butterfly_color2)
  2418. @butterfly_bitmaps[4].set_pixel(4, 2, butterfly_color5)
  2419. @butterfly_bitmaps[4].fill_rect(5, 2, 2, 1, butterfly_color2)
  2420. @butterfly_bitmaps[4].set_pixel(7, 2, butterfly_color5)
  2421. @butterfly_bitmaps[4].fill_rect(0, 3, 1, 2, butterfly_color1)
  2422. @butterfly_bitmaps[4].fill_rect(1, 3, 3, 1, butterfly_color4)
  2423. @butterfly_bitmaps[4].set_pixel(4, 3, butterfly_color1)
  2424. @butterfly_bitmaps[4].fill_rect(5, 3, 3, 1, butterfly_color4)
  2425. @butterfly_bitmaps[4].fill_rect(8, 3, 1, 2, butterfly_color1)
  2426. @butterfly_bitmaps[4].set_pixel(1, 4, butterfly_color2)
  2427. @butterfly_bitmaps[4].set_pixel(2, 4, butterfly_color4)
  2428. @butterfly_bitmaps[4].set_pixel(3, 4, butterfly_color1)
  2429. @butterfly_bitmaps[4].set_pixel(5, 4, butterfly_color1)
  2430. @butterfly_bitmaps[4].set_pixel(6, 4, butterfly_color4)
  2431. @butterfly_bitmaps[4].set_pixel(7, 4, butterfly_color2)
  2432. @butterfly_bitmaps[4].fill_rect(1, 5, 2, 1, butterfly_color1)
  2433. @butterfly_bitmaps[4].fill_rect(6, 5, 2, 1, butterfly_color1)
  2434.  
  2435. # Butterfly down 2
  2436. @butterfly_bitmaps[5] = Bitmap.new(9, 6)
  2437. @butterfly_bitmaps[5].set_pixel(2, 0, butterfly_color1)
  2438. @butterfly_bitmaps[5].set_pixel(6, 0, butterfly_color1)
  2439. @butterfly_bitmaps[5].set_pixel(1, 1, butterfly_color1)
  2440. @butterfly_bitmaps[5].set_pixel(2, 1, butterfly_color2)
  2441. @butterfly_bitmaps[5].set_pixel(3, 1, butterfly_color5)
  2442. @butterfly_bitmaps[5].set_pixel(5, 1, butterfly_color5)
  2443. @butterfly_bitmaps[5].set_pixel(6, 1, butterfly_color2)
  2444. @butterfly_bitmaps[5].set_pixel(7, 1, butterfly_color1)
  2445. @butterfly_bitmaps[5].set_pixel(1, 2, butterfly_color5)
  2446. @butterfly_bitmaps[5].fill_rect(2, 2, 2, 1, butterfly_color1)
  2447. @butterfly_bitmaps[5].set_pixel(4, 2, butterfly_color5)
  2448. @butterfly_bitmaps[5].fill_rect(5, 2, 2, 1, butterfly_color1)
  2449. @butterfly_bitmaps[5].set_pixel(7, 2, butterfly_color5)
  2450. @butterfly_bitmaps[5].fill_rect(0, 3, 1, 2, butterfly_color1)
  2451. @butterfly_bitmaps[5].fill_rect(1, 3, 2, 2, butterfly_color4)
  2452. @butterfly_bitmaps[5].set_pixel(3, 3, butterfly_color2)
  2453. @butterfly_bitmaps[5].fill_rect(4, 3, 1, 2, butterfly_color1)
  2454. @butterfly_bitmaps[5].set_pixel(5, 3, butterfly_color2)
  2455. @butterfly_bitmaps[5].fill_rect(6, 3, 2, 2, butterfly_color4)
  2456. @butterfly_bitmaps[5].fill_rect(8, 3, 1, 2, butterfly_color1)
  2457. @butterfly_bitmaps[5].set_pixel(3, 4, butterfly_color4)
  2458. @butterfly_bitmaps[5].set_pixel(5, 4, butterfly_color4)
  2459. @butterfly_bitmaps[5].fill_rect(2, 5, 2, 1, butterfly_color1)
  2460. @butterfly_bitmaps[5].fill_rect(5, 5, 2, 1, butterfly_color1)
  2461.  
  2462. # Butterfly down 3
  2463. @butterfly_bitmaps[6] = Bitmap.new(9, 6)
  2464. @butterfly_bitmaps[6].fill_rect(1, 0, 2, 1, butterfly_color1)
  2465. @butterfly_bitmaps[6].fill_rect(6, 0, 2, 1, butterfly_color1)
  2466. @butterfly_bitmaps[6].set_pixel(1, 1, butterfly_color1)
  2467. @butterfly_bitmaps[6].set_pixel(2, 1, butterfly_color4)
  2468. @butterfly_bitmaps[6].set_pixel(3, 1, butterfly_color5)
  2469. @butterfly_bitmaps[6].set_pixel(5, 1, butterfly_color5)
  2470. @butterfly_bitmaps[6].set_pixel(6, 1, butterfly_color4)
  2471. @butterfly_bitmaps[6].set_pixel(7, 1, butterfly_color1)
  2472. @butterfly_bitmaps[6].set_pixel(1, 2, butterfly_color5)
  2473. @butterfly_bitmaps[6].fill_rect(2, 2, 2, 1, butterfly_color2)
  2474. @butterfly_bitmaps[6].set_pixel(4, 2, butterfly_color5)
  2475. @butterfly_bitmaps[6].fill_rect(5, 2, 2, 1, butterfly_color2)
  2476. @butterfly_bitmaps[6].set_pixel(7, 2, butterfly_color5)
  2477. @butterfly_bitmaps[6].fill_rect(0, 3, 1, 2, butterfly_color1)
  2478. @butterfly_bitmaps[6].fill_rect(1, 3, 3, 1, butterfly_color4)
  2479. @butterfly_bitmaps[6].set_pixel(4, 3, butterfly_color1)
  2480. @butterfly_bitmaps[6].fill_rect(5, 3, 3, 1, butterfly_color4)
  2481. @butterfly_bitmaps[6].fill_rect(8, 3, 1, 2, butterfly_color1)
  2482. @butterfly_bitmaps[6].set_pixel(1, 4, butterfly_color2)
  2483. @butterfly_bitmaps[6].set_pixel(2, 4, butterfly_color4)
  2484. @butterfly_bitmaps[6].set_pixel(3, 4, butterfly_color1)
  2485. @butterfly_bitmaps[6].set_pixel(5, 4, butterfly_color1)
  2486. @butterfly_bitmaps[6].set_pixel(6, 4, butterfly_color4)
  2487. @butterfly_bitmaps[6].set_pixel(7, 4, butterfly_color2)
  2488. @butterfly_bitmaps[6].fill_rect(1, 5, 2, 1, butterfly_color1)
  2489. @butterfly_bitmaps[6].fill_rect(6, 5, 2, 1, butterfly_color1)
  2490.  
  2491. # Butterfly down 4
  2492. @butterfly_bitmaps[7] = Bitmap.new(7, 6)
  2493. @butterfly_bitmaps[7].set_pixel(1, 0, butterfly_color1)
  2494. @butterfly_bitmaps[7].set_pixel(2, 0, butterfly_color5)
  2495. @butterfly_bitmaps[7].set_pixel(4, 0, butterfly_color5)
  2496. @butterfly_bitmaps[7].set_pixel(5, 0, butterfly_color1)
  2497. @butterfly_bitmaps[7].fill_rect(1, 1, 2, 1, butterfly_color2)
  2498. @butterfly_bitmaps[7].set_pixel(3, 1, butterfly_color5)
  2499. @butterfly_bitmaps[7].fill_rect(4, 1, 2, 1, butterfly_color2)
  2500. @butterfly_bitmaps[7].set_pixel(1, 2, butterfly_color5)
  2501. @butterfly_bitmaps[7].set_pixel(2, 2, butterfly_color2)
  2502. @butterfly_bitmaps[7].fill_rect(3, 2, 1, 2, butterfly_color1)
  2503. @butterfly_bitmaps[7].set_pixel(4, 2, butterfly_color2)
  2504. @butterfly_bitmaps[7].set_pixel(5, 2, butterfly_color5)
  2505. @butterfly_bitmaps[7].fill_rect(0, 3, 1, 2, butterfly_color1)
  2506. @butterfly_bitmaps[7].fill_rect(1, 3, 2, 2, butterfly_color4)
  2507. @butterfly_bitmaps[7].fill_rect(4, 3, 2, 2, butterfly_color4)
  2508. @butterfly_bitmaps[7].fill_rect(6, 3, 1, 2, butterfly_color1)
  2509. @butterfly_bitmaps[7].fill_rect(1, 5, 2, 1, butterfly_color1)
  2510. @butterfly_bitmaps[7].fill_rect(4, 5, 2, 1, butterfly_color1)
  2511.  
  2512. # Butterfly left 1
  2513. @butterfly_bitmaps[8] = Bitmap.new(7, 7)
  2514. @butterfly_bitmaps[8].set_pixel(2, 0, butterfly_color3)
  2515. @butterfly_bitmaps[8].fill_rect(3, 0, 2, 1, butterfly_color1)
  2516. @butterfly_bitmaps[8].fill_rect(0, 1, 2, 2, butterfly_color3)
  2517. @butterfly_bitmaps[8].set_pixel(2, 1, butterfly_color2)
  2518. @butterfly_bitmaps[8].fill_rect(3, 1, 1, 3, butterfly_color4)
  2519. @butterfly_bitmaps[8].set_pixel(4, 1, butterfly_color2)
  2520. @butterfly_bitmaps[8].fill_rect(5, 1, 1, 3, butterfly_color1)
  2521. @butterfly_bitmaps[8].fill_rect(2, 2, 1, 2, butterfly_color4)
  2522. @butterfly_bitmaps[8].set_pixel(4, 2, butterfly_color4)
  2523. @butterfly_bitmaps[8].set_pixel(0, 3, butterfly_color3)
  2524. @butterfly_bitmaps[8].fill_rect(1, 3, 1, 2, butterfly_color5)
  2525. @butterfly_bitmaps[8].set_pixel(4, 3, butterfly_color2)
  2526. @butterfly_bitmaps[8].fill_rect(2, 4, 2, 1, butterfly_color2)
  2527. @butterfly_bitmaps[8].set_pixel(4, 4, butterfly_color1)
  2528. @butterfly_bitmaps[8].set_pixel(5, 4, butterfly_color5)
  2529. @butterfly_bitmaps[8].set_pixel(2, 5, butterfly_color5)
  2530. @butterfly_bitmaps[8].set_pixel(3, 5, butterfly_color1)
  2531. @butterfly_bitmaps[8].fill_rect(4, 5, 2, 1, butterfly_color2)
  2532. @butterfly_bitmaps[8].set_pixel(6, 5, butterfly_color1)
  2533. @butterfly_bitmaps[8].set_pixel(3, 6, butterfly_color5)
  2534. @butterfly_bitmaps[8].fill_rect(4, 6, 2, 1, butterfly_color1)
  2535.  
  2536. # Butterfly left 2
  2537. @butterfly_bitmaps[9] = Bitmap.new(7, 6)
  2538. @butterfly_bitmaps[9].fill_rect(1, 0, 2, 1, butterfly_color2)
  2539. @butterfly_bitmaps[9].set_pixel(3, 0, butterfly_color1)
  2540. @butterfly_bitmaps[9].fill_rect(0, 1, 1, 2, butterfly_color3)
  2541. @butterfly_bitmaps[9].set_pixel(1, 1, butterfly_color2)
  2542. @butterfly_bitmaps[9].set_pixel(2, 1, butterfly_color4)
  2543. @butterfly_bitmaps[9].set_pixel(3, 1, butterfly_color2)
  2544. @butterfly_bitmaps[9].set_pixel(4, 1, butterfly_color3)
  2545. @butterfly_bitmaps[9].set_pixel(1, 2, butterfly_color5)
  2546. @butterfly_bitmaps[9].set_pixel(2, 2, butterfly_color2)
  2547. @butterfly_bitmaps[9].set_pixel(3, 2, butterfly_color4)
  2548. @butterfly_bitmaps[9].fill_rect(4, 2, 1, 2, butterfly_color2)
  2549. @butterfly_bitmaps[9].fill_rect(5, 2, 1, 2, butterfly_color3)
  2550. @butterfly_bitmaps[9].set_pixel(2, 3, butterfly_color5)
  2551. @butterfly_bitmaps[9].set_pixel(3, 3, butterfly_color3)
  2552. @butterfly_bitmaps[9].set_pixel(4, 4, butterfly_color3)
  2553. @butterfly_bitmaps[9].set_pixel(5, 4, butterfly_color2)
  2554. @butterfly_bitmaps[9].set_pixel(6, 4, butterfly_color3)
  2555. @butterfly_bitmaps[9].set_pixel(5, 5, butterfly_color3)
  2556. @butterfly_bitmaps[9].set_pixel(6, 5, butterfly_color2)
  2557.  
  2558. # Butterfly left 3
  2559. @butterfly_bitmaps[10] = Bitmap.new(7, 6)
  2560. @butterfly_bitmaps[10].fill_rect(2, 0, 2, 1, butterfly_color3)
  2561. @butterfly_bitmaps[10].set_pixel(4, 0, butterfly_color5)
  2562. @butterfly_bitmaps[10].fill_rect(0, 1, 2, 1, butterfly_color3)
  2563. @butterfly_bitmaps[10].set_pixel(2, 1, butterfly_color2)
  2564. @butterfly_bitmaps[10].fill_rect(3, 1, 2, 2, butterfly_color4)
  2565. @butterfly_bitmaps[10].set_pixel(5, 1, butterfly_color5)
  2566. @butterfly_bitmaps[10].set_pixel(0, 2, butterfly_color3)
  2567. @butterfly_bitmaps[10].set_pixel(1, 2, butterfly_color2)
  2568. @butterfly_bitmaps[10].fill_rect(2, 2, 1, 2, butterfly_color4)
  2569. @butterfly_bitmaps[10].set_pixel(5, 2, butterfly_color3)
  2570. @butterfly_bitmaps[10].set_pixel(1, 3, butterfly_color3)
  2571. @butterfly_bitmaps[10].set_pixel(3, 3, butterfly_color2)
  2572. @butterfly_bitmaps[10].set_pixel(4, 3, butterfly_color3)
  2573. @butterfly_bitmaps[10].fill_rect(5, 3, 1, 2, butterfly_color2)
  2574. @butterfly_bitmaps[10].fill_rect(6, 3, 1, 2, butterfly_color3)
  2575. @butterfly_bitmaps[10].fill_rect(2, 4, 2, 1, butterfly_color3)
  2576. @butterfly_bitmaps[10].set_pixel(4, 4, butterfly_color2)
  2577. @butterfly_bitmaps[10].fill_rect(4, 5, 2, 1, butterfly_color3)
  2578.  
  2579. # Butterfly left 4
  2580. @butterfly_bitmaps[11] = Bitmap.new(7, 6)
  2581. @butterfly_bitmaps[11].fill_rect(1, 0, 2, 1, butterfly_color2)
  2582. @butterfly_bitmaps[11].set_pixel(3, 0, butterfly_color1)
  2583. @butterfly_bitmaps[11].fill_rect(0, 1, 2, 1, butterfly_color3)
  2584. @butterfly_bitmaps[11].set_pixel(2, 1, butterfly_color4)
  2585. @butterfly_bitmaps[11].set_pixel(3, 1, butterfly_color2)
  2586. @butterfly_bitmaps[11].set_pixel(4, 1, butterfly_color3)
  2587. @butterfly_bitmaps[11].set_pixel(0, 2, butterfly_color3)
  2588. @butterfly_bitmaps[11].set_pixel(1, 2, butterfly_color5)
  2589. @butterfly_bitmaps[11].set_pixel(2, 2, butterfly_color2)
  2590. @butterfly_bitmaps[11].set_pixel(3, 2, butterfly_color4)
  2591. @butterfly_bitmaps[11].fill_rect(4, 2, 1, 2, butterfly_color2)
  2592. @butterfly_bitmaps[11].fill_rect(5, 2, 1, 2, butterfly_color3)
  2593. @butterfly_bitmaps[11].set_pixel(2, 3, butterfly_color5)
  2594. @butterfly_bitmaps[11].set_pixel(3, 3, butterfly_color3)
  2595. @butterfly_bitmaps[11].set_pixel(4, 4, butterfly_color3)
  2596. @butterfly_bitmaps[11].set_pixel(5, 4, butterfly_color2)
  2597. @butterfly_bitmaps[11].fill_rect(6, 4, 1, 2, butterfly_color3)
  2598. @butterfly_bitmaps[11].set_pixel(5, 5, butterfly_color3)
  2599.  
  2600. # Butterfly right 1
  2601. @butterfly_bitmaps[12] = Bitmap.new(7, 7)
  2602. @butterfly_bitmaps[12].fill_rect(2, 0, 2, 1, butterfly_color1)
  2603. @butterfly_bitmaps[12].set_pixel(4, 0, butterfly_color3)
  2604. @butterfly_bitmaps[12].fill_rect(1, 1, 1, 3, butterfly_color1)
  2605. @butterfly_bitmaps[12].set_pixel(2, 1, butterfly_color2)
  2606. @butterfly_bitmaps[12].fill_rect(3, 1, 1, 3, butterfly_color4)
  2607. @butterfly_bitmaps[12].set_pixel(4, 1, butterfly_color2)
  2608. @butterfly_bitmaps[12].fill_rect(5, 1, 2, 2, butterfly_color3)
  2609. @butterfly_bitmaps[12].set_pixel(2, 2, butterfly_color4)
  2610. @butterfly_bitmaps[12].fill_rect(4, 2, 1, 2, butterfly_color4)
  2611. @butterfly_bitmaps[12].set_pixel(2, 3, butterfly_color2)
  2612. @butterfly_bitmaps[12].fill_rect(5, 3, 1, 2, butterfly_color5)
  2613. @butterfly_bitmaps[12].set_pixel(6, 3, butterfly_color3)
  2614. @butterfly_bitmaps[12].set_pixel(1, 4, butterfly_color5)
  2615. @butterfly_bitmaps[12].set_pixel(2, 4, butterfly_color1)
  2616. @butterfly_bitmaps[12].fill_rect(3, 4, 2, 1, butterfly_color2)
  2617. @butterfly_bitmaps[12].set_pixel(0, 5, butterfly_color1)
  2618. @butterfly_bitmaps[12].fill_rect(1, 5, 2, 1, butterfly_color2)
  2619. @butterfly_bitmaps[12].set_pixel(3, 5, butterfly_color1)
  2620. @butterfly_bitmaps[12].set_pixel(4, 5, butterfly_color5)
  2621. @butterfly_bitmaps[12].fill_rect(1, 6, 2, 1, butterfly_color1)
  2622. @butterfly_bitmaps[12].set_pixel(3, 6, butterfly_color5)
  2623.  
  2624. # Butterfly right 2
  2625. @butterfly_bitmaps[13] = Bitmap.new(7, 6)
  2626. @butterfly_bitmaps[13].set_pixel(3, 0, butterfly_color1)
  2627. @butterfly_bitmaps[13].fill_rect(4, 0, 2, 1, butterfly_color2)
  2628. @butterfly_bitmaps[13].set_pixel(2, 1, butterfly_color3)
  2629. @butterfly_bitmaps[13].set_pixel(3, 1, butterfly_color2)
  2630. @butterfly_bitmaps[13].set_pixel(4, 1, butterfly_color4)
  2631. @butterfly_bitmaps[13].set_pixel(5, 1, butterfly_color2)
  2632. @butterfly_bitmaps[13].fill_rect(6, 1, 1, 2, butterfly_color3)
  2633. @butterfly_bitmaps[13].fill_rect(1, 2, 1, 2, butterfly_color3)
  2634. @butterfly_bitmaps[13].fill_rect(2, 2, 1, 2, butterfly_color2)
  2635. @butterfly_bitmaps[13].set_pixel(3, 2, butterfly_color4)
  2636. @butterfly_bitmaps[13].set_pixel(4, 2, butterfly_color2)
  2637. @butterfly_bitmaps[13].set_pixel(5, 2, butterfly_color5)
  2638. @butterfly_bitmaps[13].set_pixel(3, 3, butterfly_color3)
  2639. @butterfly_bitmaps[13].set_pixel(4, 3, butterfly_color5)
  2640. @butterfly_bitmaps[13].set_pixel(0, 4, butterfly_color3)
  2641. @butterfly_bitmaps[13].set_pixel(1, 4, butterfly_color2)
  2642. @butterfly_bitmaps[13].set_pixel(2, 4, butterfly_color3)
  2643. @butterfly_bitmaps[13].set_pixel(0, 5, butterfly_color2)
  2644. @butterfly_bitmaps[13].set_pixel(1, 5, butterfly_color3)
  2645.  
  2646. # Butterfly right 3
  2647. @butterfly_bitmaps[14] = Bitmap.new(7, 6)
  2648. @butterfly_bitmaps[14].set_pixel(2, 0, butterfly_color5)
  2649. @butterfly_bitmaps[14].fill_rect(3, 0, 2, 1, butterfly_color3)
  2650. @butterfly_bitmaps[14].set_pixel(1, 1, butterfly_color5)
  2651. @butterfly_bitmaps[14].fill_rect(2, 1, 2, 2, butterfly_color4)
  2652. @butterfly_bitmaps[14].set_pixel(4, 1, butterfly_color2)
  2653. @butterfly_bitmaps[14].fill_rect(5, 1, 2, 1, butterfly_color3)
  2654. @butterfly_bitmaps[14].set_pixel(1, 2, butterfly_color3)
  2655. @butterfly_bitmaps[14].fill_rect(4, 2, 1, 2, butterfly_color4)
  2656. @butterfly_bitmaps[14].set_pixel(5, 2, butterfly_color2)
  2657. @butterfly_bitmaps[14].set_pixel(6, 2, butterfly_color3)
  2658. @butterfly_bitmaps[14].fill_rect(0, 3, 1, 2, butterfly_color3)
  2659. @butterfly_bitmaps[14].fill_rect(1, 3, 1, 2, butterfly_color2)
  2660. @butterfly_bitmaps[14].set_pixel(2, 3, butterfly_color3)
  2661. @butterfly_bitmaps[14].set_pixel(3, 3, butterfly_color2)
  2662. @butterfly_bitmaps[14].set_pixel(5, 3, butterfly_color3)
  2663. @butterfly_bitmaps[14].set_pixel(2, 4, butterfly_color2)
  2664. @butterfly_bitmaps[14].fill_rect(3, 4, 2, 1, butterfly_color3)
  2665. @butterfly_bitmaps[14].fill_rect(1, 5, 2, 1, butterfly_color3)
  2666.  
  2667. # Butterfly right 4
  2668. @butterfly_bitmaps[15] = Bitmap.new(7, 6)
  2669. @butterfly_bitmaps[15].set_pixel(3, 0, butterfly_color1)
  2670. @butterfly_bitmaps[15].fill_rect(4, 0, 2, 1, butterfly_color2)
  2671. @butterfly_bitmaps[15].set_pixel(2, 1, butterfly_color3)
  2672. @butterfly_bitmaps[15].set_pixel(3, 1, butterfly_color2)
  2673. @butterfly_bitmaps[15].set_pixel(4, 1, butterfly_color4)
  2674. @butterfly_bitmaps[15].fill_rect(5, 1, 2, 1, butterfly_color3)
  2675. @butterfly_bitmaps[15].fill_rect(1, 2, 1, 2, butterfly_color3)
  2676. @butterfly_bitmaps[15].fill_rect(2, 2, 1, 2, butterfly_color2)
  2677. @butterfly_bitmaps[15].set_pixel(3, 2, butterfly_color4)
  2678. @butterfly_bitmaps[15].set_pixel(4, 2, butterfly_color2)
  2679. @butterfly_bitmaps[15].set_pixel(5, 2, butterfly_color5)
  2680. @butterfly_bitmaps[15].set_pixel(6, 2, butterfly_color3)
  2681. @butterfly_bitmaps[15].set_pixel(3, 3, butterfly_color3)
  2682. @butterfly_bitmaps[15].set_pixel(4, 3, butterfly_color5)
  2683. @butterfly_bitmaps[15].fill_rect(0, 4, 1, 2, butterfly_color3)
  2684. @butterfly_bitmaps[15].set_pixel(1, 4, butterfly_color2)
  2685. @butterfly_bitmaps[15].set_pixel(2, 4, butterfly_color3)
  2686. @butterfly_bitmaps[15].set_pixel(1, 5, butterfly_color3)
  2687. #-------------------------------------------------------------------------------
  2688. # Bird bitmaps
  2689.  
  2690. @bird_bitmaps = []
  2691. bird_color1 = Color.new(100, 100, 100)
  2692. bird_color2 = Color.new(170, 170, 170)
  2693. bird_color3 = Color.new(136, 136, 136)
  2694. bird_color4 = Color.new(204, 204, 204)
  2695. bird_color5 = Color.new(240, 240, 240)
  2696. bird_color6 = Color.new(73, 51, 87)
  2697. bird_color7 = Color.new(191, 90, 97)
  2698. bird_color8 = Color.new(255, 255, 255)
  2699. bird_color9 = Color.new(223, 130, 142)
  2700.  
  2701. # Bird left 1
  2702. @bird_bitmaps[0] = Bitmap.new(12, 10)
  2703. @bird_bitmaps[0].fill_rect(7, 0, 3, 1, bird_color1)
  2704. @bird_bitmaps[0].set_pixel(5, 1, bird_color1)
  2705. @bird_bitmaps[0].fill_rect(6, 1, 2, 1, bird_color2)
  2706. @bird_bitmaps[0].set_pixel(8, 1, bird_color3)
  2707. @bird_bitmaps[0].set_pixel(9, 1, bird_color1)
  2708. @bird_bitmaps[0].set_pixel(3, 2, bird_color1)
  2709. @bird_bitmaps[0].set_pixel(4, 2, bird_color2)
  2710. @bird_bitmaps[0].set_pixel(5, 2, bird_color3)
  2711. @bird_bitmaps[0].set_pixel(6, 2, bird_color4)
  2712. @bird_bitmaps[0].fill_rect(7, 2, 5, 1, bird_color8)
  2713. @bird_bitmaps[0].set_pixel(3, 3, bird_color6)
  2714. @bird_bitmaps[0].set_pixel(4, 3, bird_color3)
  2715. @bird_bitmaps[0].fill_rect(5, 3, 1, 3, bird_color8)
  2716. @bird_bitmaps[0].set_pixel(6, 3, bird_color3)
  2717. @bird_bitmaps[0].fill_rect(7, 3, 2, 1, bird_color4)
  2718. @bird_bitmaps[0].set_pixel(9, 3, bird_color8)
  2719. @bird_bitmaps[0].set_pixel(10, 3, bird_color2)
  2720. @bird_bitmaps[0].set_pixel(11, 3, bird_color6)
  2721. @bird_bitmaps[0].fill_rect(1, 4, 2, 1, bird_color3)
  2722. @bird_bitmaps[0].set_pixel(3, 4, bird_color1)
  2723. @bird_bitmaps[0].fill_rect(4, 4, 1, 2, bird_color2)
  2724. @bird_bitmaps[0].set_pixel(6, 4, bird_color2)
  2725. @bird_bitmaps[0].fill_rect(7, 4, 1, 2, bird_color4)
  2726. @bird_bitmaps[0].set_pixel(8, 4, bird_color8)
  2727. @bird_bitmaps[0].set_pixel(9, 4, bird_color2)
  2728. @bird_bitmaps[0].set_pixel(10, 4, bird_color6)
  2729. @bird_bitmaps[0].fill_rect(1, 5, 3, 1, bird_color8)
  2730. @bird_bitmaps[0].set_pixel(6, 5, bird_color3)
  2731. @bird_bitmaps[0].set_pixel(8, 5, bird_color2)
  2732. @bird_bitmaps[0].set_pixel(1, 6, bird_color6)
  2733. @bird_bitmaps[0].set_pixel(2, 6, bird_color2)
  2734. @bird_bitmaps[0].fill_rect(3, 6, 2, 2, bird_color8)
  2735. @bird_bitmaps[0].set_pixel(5, 6, bird_color4)
  2736. @bird_bitmaps[0].set_pixel(6, 6, bird_color2)
  2737. @bird_bitmaps[0].set_pixel(7, 6, bird_color1)
  2738. @bird_bitmaps[0].set_pixel(2, 7, bird_color1)
  2739. @bird_bitmaps[0].fill_rect(5, 7, 2, 1, bird_color8)
  2740. @bird_bitmaps[0].fill_rect(7, 7, 1, 2, bird_color2)
  2741. @bird_bitmaps[0].fill_rect(8, 7, 1, 2, bird_color8)
  2742. @bird_bitmaps[0].fill_rect(9, 7, 1, 2, bird_color1)
  2743. @bird_bitmaps[0].set_pixel(4, 8, bird_color6)
  2744. @bird_bitmaps[0].fill_rect(5, 8, 2, 1, bird_color2)
  2745. @bird_bitmaps[0].set_pixel(6, 9, bird_color6)
  2746. @bird_bitmaps[0].fill_rect(8, 9, 2, 1, bird_color6)
  2747.  
  2748. # Bird left 2
  2749. @bird_bitmaps[1] = Bitmap.new(10, 13)
  2750. @bird_bitmaps[1].set_pixel(5, 0, bird_color1)
  2751. @bird_bitmaps[1].set_pixel(7, 0, bird_color4)
  2752. @bird_bitmaps[1].set_pixel(8, 0, bird_color1)
  2753. @bird_bitmaps[1].fill_rect(5, 1, 1, 4, bird_color2)
  2754. @bird_bitmaps[1].set_pixel(6, 1, bird_color1)
  2755. @bird_bitmaps[1].fill_rect(7, 1, 1, 2, bird_color8)
  2756. @bird_bitmaps[1].set_pixel(8, 1, bird_color4)
  2757. @bird_bitmaps[1].set_pixel(6, 2, bird_color3)
  2758. @bird_bitmaps[1].set_pixel(8, 2, bird_color5)
  2759. @bird_bitmaps[1].fill_rect(9, 2, 1, 4, bird_color1)
  2760. @bird_bitmaps[1].fill_rect(6, 3, 3, 1, bird_color4)
  2761. @bird_bitmaps[1].set_pixel(4, 4, bird_color1)
  2762. @bird_bitmaps[1].set_pixel(6, 4, bird_color8)
  2763. @bird_bitmaps[1].fill_rect(7, 4, 1, 3, bird_color4)
  2764. @bird_bitmaps[1].set_pixel(8, 4, bird_color8)
  2765. @bird_bitmaps[1].set_pixel(4, 5, bird_color2)
  2766. @bird_bitmaps[1].set_pixel(5, 5, bird_color8)
  2767. @bird_bitmaps[1].set_pixel(6, 5, bird_color2)
  2768. @bird_bitmaps[1].set_pixel(8, 5, bird_color5)
  2769. @bird_bitmaps[1].set_pixel(4, 6, bird_color8)
  2770. @bird_bitmaps[1].set_pixel(5, 6, bird_color1)
  2771. @bird_bitmaps[1].fill_rect(6, 6, 1, 2, bird_color4)
  2772. @bird_bitmaps[1].set_pixel(8, 6, bird_color3)
  2773. @bird_bitmaps[1].fill_rect(2, 7, 1, 2, bird_color3)
  2774. @bird_bitmaps[1].set_pixel(3, 7, bird_color1)
  2775. @bird_bitmaps[1].set_pixel(4, 7, bird_color2)
  2776. @bird_bitmaps[1].set_pixel(5, 7, bird_color3)
  2777. @bird_bitmaps[1].set_pixel(7, 7, bird_color3)
  2778. @bird_bitmaps[1].set_pixel(8, 7, bird_color1)
  2779. @bird_bitmaps[1].set_pixel(1, 8, bird_color7)
  2780. @bird_bitmaps[1].fill_rect(3, 8, 1, 2, bird_color8)
  2781. @bird_bitmaps[1].set_pixel(4, 8, bird_color4)
  2782. @bird_bitmaps[1].set_pixel(5, 8, bird_color2)
  2783. @bird_bitmaps[1].fill_rect(6, 8, 1, 2, bird_color3)
  2784. @bird_bitmaps[1].fill_rect(7, 8, 1, 2, bird_color1)
  2785. @bird_bitmaps[1].set_pixel(1, 9, bird_color6)
  2786. @bird_bitmaps[1].set_pixel(2, 9, bird_color2)
  2787. @bird_bitmaps[1].fill_rect(4, 9, 1, 2, bird_color8)
  2788. @bird_bitmaps[1].set_pixel(5, 9, bird_color4)
  2789. @bird_bitmaps[1].set_pixel(3, 10, bird_color2)
  2790. @bird_bitmaps[1].fill_rect(5, 10, 2, 1, bird_color8)
  2791. @bird_bitmaps[1].set_pixel(7, 10, bird_color4)
  2792. @bird_bitmaps[1].set_pixel(8, 10, bird_color8)
  2793. @bird_bitmaps[1].set_pixel(9, 10, bird_color2)
  2794. @bird_bitmaps[1].set_pixel(4, 11, bird_color3)
  2795. @bird_bitmaps[1].set_pixel(5, 11, bird_color2)
  2796. @bird_bitmaps[1].set_pixel(6, 11, bird_color4)
  2797. @bird_bitmaps[1].set_pixel(7, 11, bird_color1)
  2798. @bird_bitmaps[1].set_pixel(8, 11, bird_color2)
  2799. @bird_bitmaps[1].set_pixel(9, 11, bird_color4)
  2800. @bird_bitmaps[1].set_pixel(6, 12, bird_color6)
  2801. @bird_bitmaps[1].set_pixel(7, 12, bird_color7)
  2802. @bird_bitmaps[1].set_pixel(9, 12, bird_color6)
  2803.  
  2804. # Bird left 3
  2805. @bird_bitmaps[2] = Bitmap.new(12, 7)
  2806. @bird_bitmaps[2].set_pixel(4, 0, bird_color3)
  2807. @bird_bitmaps[2].fill_rect(5, 0, 3, 1, bird_color1)
  2808. @bird_bitmaps[2].set_pixel(3, 1, bird_color3)
  2809. @bird_bitmaps[2].fill_rect(4, 1, 1, 4, bird_color8)
  2810. @bird_bitmaps[2].set_pixel(5, 1, bird_color4)
  2811. @bird_bitmaps[2].set_pixel(6, 1, bird_color2)
  2812. @bird_bitmaps[2].set_pixel(7, 1, bird_color4)
  2813. @bird_bitmaps[2].set_pixel(3, 2, bird_color7)
  2814. @bird_bitmaps[2].fill_rect(5, 2, 2, 2, bird_color8)
  2815. @bird_bitmaps[2].set_pixel(7, 2, bird_color2)
  2816. @bird_bitmaps[2].set_pixel(8, 2, bird_color1)
  2817. @bird_bitmaps[2].set_pixel(2, 3, bird_color3)
  2818. @bird_bitmaps[2].fill_rect(3, 3, 1, 2, bird_color2)
  2819. @bird_bitmaps[2].set_pixel(7, 3, bird_color8)
  2820. @bird_bitmaps[2].set_pixel(8, 3, bird_color2)
  2821. @bird_bitmaps[2].set_pixel(0, 4, bird_color1)
  2822. @bird_bitmaps[2].set_pixel(1, 4, bird_color4)
  2823. @bird_bitmaps[2].set_pixel(2, 4, bird_color8)
  2824. @bird_bitmaps[2].set_pixel(5, 4, bird_color8)
  2825. @bird_bitmaps[2].fill_rect(6, 4, 1, 2, bird_color3)
  2826. @bird_bitmaps[2].set_pixel(7, 4, bird_color2)
  2827. @bird_bitmaps[2].set_pixel(8, 4, bird_color4)
  2828. @bird_bitmaps[2].fill_rect(9, 4, 2, 1, bird_color8)
  2829. @bird_bitmaps[2].set_pixel(11, 4, bird_color2)
  2830. @bird_bitmaps[2].set_pixel(1, 5, bird_color6)
  2831. @bird_bitmaps[2].set_pixel(2, 5, bird_color3)
  2832. @bird_bitmaps[2].set_pixel(3, 5, bird_color8)
  2833. @bird_bitmaps[2].set_pixel(4, 5, bird_color3)
  2834. @bird_bitmaps[2].set_pixel(5, 5, bird_color2)
  2835. @bird_bitmaps[2].set_pixel(7, 5, bird_color4)
  2836. @bird_bitmaps[2].fill_rect(8, 5, 2, 1, bird_color2)
  2837. @bird_bitmaps[2].set_pixel(10, 5, bird_color8)
  2838. @bird_bitmaps[2].set_pixel(11, 5, bird_color1)
  2839. @bird_bitmaps[2].fill_rect(2, 6, 2, 1, bird_color6)
  2840. @bird_bitmaps[2].set_pixel(4, 6, bird_color2)
  2841. @bird_bitmaps[2].fill_rect(5, 6, 4, 1, bird_color6)
  2842. @bird_bitmaps[2].fill_rect(10, 6, 2, 1, bird_color6)
  2843.  
  2844. # Bird left 4
  2845. @bird_bitmaps[3] = Bitmap.new(12, 9)
  2846. @bird_bitmaps[3].fill_rect(3, 0, 2, 1, bird_color3)
  2847. @bird_bitmaps[3].set_pixel(3, 1, bird_color4)
  2848. @bird_bitmaps[3].fill_rect(4, 1, 1, 2, bird_color8)
  2849. @bird_bitmaps[3].set_pixel(5, 1, bird_color2)
  2850. @bird_bitmaps[3].set_pixel(6, 1, bird_color1)
  2851. @bird_bitmaps[3].set_pixel(2, 2, bird_color9)
  2852. @bird_bitmaps[3].set_pixel(3, 2, bird_color2)
  2853. @bird_bitmaps[3].fill_rect(5, 2, 3, 1, bird_color8)
  2854. @bird_bitmaps[3].set_pixel(8, 2, bird_color1)
  2855. @bird_bitmaps[3].fill_rect(3, 3, 1, 2, bird_color3)
  2856. @bird_bitmaps[3].set_pixel(4, 3, bird_color2)
  2857. @bird_bitmaps[3].fill_rect(5, 3, 2, 2, bird_color8)
  2858. @bird_bitmaps[3].set_pixel(7, 3, bird_color4)
  2859. @bird_bitmaps[3].fill_rect(8, 3, 2, 1, bird_color8)
  2860. @bird_bitmaps[3].fill_rect(10, 3, 2, 1, bird_color2)
  2861. @bird_bitmaps[3].fill_rect(2, 4, 1, 2, bird_color3)
  2862. @bird_bitmaps[3].fill_rect(4, 4, 1, 2, bird_color8)
  2863. @bird_bitmaps[3].fill_rect(7, 4, 1, 2, bird_color8)
  2864. @bird_bitmaps[3].set_pixel(8, 4, bird_color2)
  2865. @bird_bitmaps[3].set_pixel(9, 4, bird_color1)
  2866. @bird_bitmaps[3].set_pixel(10, 4, bird_color8)
  2867. @bird_bitmaps[3].set_pixel(11, 4, bird_color4)
  2868. @bird_bitmaps[3].set_pixel(0, 5, bird_color1)
  2869. @bird_bitmaps[3].set_pixel(1, 5, bird_color2)
  2870. @bird_bitmaps[3].fill_rect(3, 5, 1, 3, bird_color8)
  2871. @bird_bitmaps[3].set_pixel(5, 5, bird_color5)
  2872. @bird_bitmaps[3].fill_rect(6, 5, 1, 2, bird_color2)
  2873. @bird_bitmaps[3].set_pixel(8, 5, bird_color6)
  2874. @bird_bitmaps[3].set_pixel(9, 5, bird_color7)
  2875. @bird_bitmaps[3].set_pixel(10, 5, bird_color2)
  2876. @bird_bitmaps[3].set_pixel(11, 5, bird_color6)
  2877. @bird_bitmaps[3].set_pixel(2, 6, bird_color8)
  2878. @bird_bitmaps[3].fill_rect(4, 6, 2, 1, bird_color4)
  2879. @bird_bitmaps[3].set_pixel(7, 6, bird_color1)
  2880. @bird_bitmaps[3].set_pixel(1, 7, bird_color3)
  2881. @bird_bitmaps[3].set_pixel(2, 7, bird_color5)
  2882. @bird_bitmaps[3].set_pixel(4, 7, bird_color2)
  2883. @bird_bitmaps[3].fill_rect(5, 7, 2, 1, bird_color1)
  2884. @bird_bitmaps[3].set_pixel(0, 8, bird_color3)
  2885. @bird_bitmaps[3].set_pixel(1, 8, bird_color8)
  2886. @bird_bitmaps[3].fill_rect(2, 8, 2, 1, bird_color1)
  2887. #-------------------------------------------------------------------------------
  2888. # Bat bitmaps
  2889.  
  2890. @bat_bitmaps = []
  2891. bat_color1 = Color.new(80, 62, 92)
  2892. bat_color2 = Color.new(80, 80, 104)
  2893. bat_color3 = Color.new(137, 137, 160)
  2894. bat_color4 = Color.new(57, 57, 57)
  2895. bat_color5 = Color.new(42, 42, 66)
  2896. bat_color6 = Color.new(76, 67, 68)
  2897. bat_color7 = Color.new(24, 24, 48)
  2898. bat_color8 = Color.new(181, 156, 85)
  2899. bat_color9 = Color.new(99, 99, 122)
  2900. bat_color10 = Color.new(118, 118, 141)
  2901. bat_color11 = Color.new(90, 90, 90)
  2902. bat_color12 = Color.new(61, 61, 85)
  2903. bat_color13 = Color.new(109, 91, 38)
  2904. bat_color14 = Color.new(156, 156, 156)
  2905. bat_color15 = Color.new(203, 179, 74)
  2906. bat_color16 = Color.new(24, 24, 24)
  2907. bat_color17 = Color.new(222, 222, 222)
  2908. bat_color18 = Color.new(249, 226, 145)
  2909.  
  2910. # Bat left 1
  2911. @bat_bitmaps[0] = Bitmap.new(10, 8)
  2912. @bat_bitmaps[0].fill_rect(1, 0, 3, 2, bat_color1)
  2913. @bat_bitmaps[0].fill_rect(6, 0, 1, 4, bat_color2)
  2914. @bat_bitmaps[0].set_pixel(7, 0, bat_color3)
  2915. @bat_bitmaps[0].set_pixel(8, 0, bat_color4)
  2916. @bat_bitmaps[0].set_pixel(9, 0, bat_color5)
  2917. @bat_bitmaps[0].fill_rect(5, 1, 1, 3, bat_color2)
  2918. @bat_bitmaps[0].fill_rect(7, 1, 2, 1, bat_color6)
  2919. @bat_bitmaps[0].set_pixel(1, 2, bat_color3)
  2920. @bat_bitmaps[0].set_pixel(2, 2, bat_color7)
  2921. @bat_bitmaps[0].set_pixel(3, 2, bat_color5)
  2922. @bat_bitmaps[0].set_pixel(4, 2, bat_color2)
  2923. @bat_bitmaps[0].set_pixel(7, 2, bat_color6)
  2924. @bat_bitmaps[0].set_pixel(0, 3, bat_color8)
  2925. @bat_bitmaps[0].fill_rect(1, 3, 2, 1, bat_color9)
  2926. @bat_bitmaps[0].set_pixel(3, 3, bat_color10)
  2927. @bat_bitmaps[0].set_pixel(4, 3, bat_color1)
  2928. @bat_bitmaps[0].set_pixel(7, 3, bat_color11)
  2929. @bat_bitmaps[0].set_pixel(0, 4, bat_color12)
  2930. @bat_bitmaps[0].fill_rect(1, 4, 2, 1, bat_color13)
  2931. @bat_bitmaps[0].set_pixel(3, 4, bat_color9)
  2932. @bat_bitmaps[0].fill_rect(4, 4, 2, 1, bat_color5)
  2933. @bat_bitmaps[0].fill_rect(6, 4, 2, 1, bat_color4)
  2934. @bat_bitmaps[0].set_pixel(0, 5, bat_color5)
  2935. @bat_bitmaps[0].fill_rect(1, 5, 1, 2, bat_color12)
  2936. @bat_bitmaps[0].fill_rect(2, 5, 1, 2, bat_color2)
  2937. @bat_bitmaps[0].set_pixel(3, 5, bat_color12)
  2938. @bat_bitmaps[0].fill_rect(4, 5, 1, 2, bat_color5)
  2939. @bat_bitmaps[0].set_pixel(5, 5, bat_color4)
  2940. @bat_bitmaps[0].set_pixel(6, 5, bat_color11)
  2941. @bat_bitmaps[0].set_pixel(3, 6, bat_color9)
  2942. @bat_bitmaps[0].set_pixel(5, 6, bat_color7)
  2943. @bat_bitmaps[0].set_pixel(2, 7, bat_color5)
  2944. @bat_bitmaps[0].fill_rect(3, 7, 2, 1, bat_color12)
  2945. @bat_bitmaps[0].set_pixel(5, 7, bat_color5)
  2946.  
  2947. # Bat left 2
  2948. @bat_bitmaps[1] = Bitmap.new(9, 7)
  2949. @bat_bitmaps[1].set_pixel(1, 0, bat_color10)
  2950. @bat_bitmaps[1].fill_rect(2, 0, 2, 1, bat_color5)
  2951. @bat_bitmaps[1].set_pixel(0, 1, bat_color13)
  2952. @bat_bitmaps[1].set_pixel(1, 1, bat_color9)
  2953. @bat_bitmaps[1].set_pixel(2, 1, bat_color2)
  2954. @bat_bitmaps[1].set_pixel(3, 1, bat_color9)
  2955. @bat_bitmaps[1].set_pixel(0, 2, bat_color14)
  2956. @bat_bitmaps[1].set_pixel(1, 2, bat_color8)
  2957. @bat_bitmaps[1].set_pixel(2, 2, bat_color15)
  2958. @bat_bitmaps[1].fill_rect(3, 2, 2, 1, bat_color12)
  2959. @bat_bitmaps[1].set_pixel(0, 3, bat_color5)
  2960. @bat_bitmaps[1].set_pixel(1, 3, bat_color12)
  2961. @bat_bitmaps[1].set_pixel(2, 3, bat_color9)
  2962. @bat_bitmaps[1].fill_rect(3, 3, 1, 2, bat_color2)
  2963. @bat_bitmaps[1].fill_rect(4, 3, 1, 2, bat_color5)
  2964. @bat_bitmaps[1].set_pixel(5, 3, bat_color10)
  2965. @bat_bitmaps[1].set_pixel(6, 3, bat_color2)
  2966. @bat_bitmaps[1].set_pixel(1, 4, bat_color5)
  2967. @bat_bitmaps[1].set_pixel(2, 4, bat_color2)
  2968. @bat_bitmaps[1].fill_rect(5, 4, 1, 2, bat_color7)
  2969. @bat_bitmaps[1].set_pixel(6, 4, bat_color9)
  2970. @bat_bitmaps[1].set_pixel(7, 4, bat_color2)
  2971. @bat_bitmaps[1].set_pixel(3, 5, bat_color5)
  2972. @bat_bitmaps[1].set_pixel(4, 5, bat_color12)
  2973. @bat_bitmaps[1].set_pixel(6, 5, bat_color10)
  2974. @bat_bitmaps[1].set_pixel(7, 5, bat_color9)
  2975. @bat_bitmaps[1].set_pixel(8, 5, bat_color2)
  2976. @bat_bitmaps[1].set_pixel(8, 6, bat_color7)
  2977.  
  2978. # Bat left 3
  2979. @bat_bitmaps[2] = Bitmap.new(6, 11)
  2980. @bat_bitmaps[2].set_pixel(1, 0, bat_color5)
  2981. @bat_bitmaps[2].set_pixel(0, 1, bat_color13)
  2982. @bat_bitmaps[2].set_pixel(1, 1, bat_color9)
  2983. @bat_bitmaps[2].fill_rect(2, 1, 2, 1, bat_color10)
  2984. @bat_bitmaps[2].set_pixel(0, 2, bat_color12)
  2985. @bat_bitmaps[2].fill_rect(1, 2, 2, 2, bat_color13)
  2986. @bat_bitmaps[2].set_pixel(3, 2, bat_color9)
  2987. @bat_bitmaps[2].set_pixel(0, 3, bat_color7)
  2988. @bat_bitmaps[2].fill_rect(3, 3, 2, 1, bat_color5)
  2989. @bat_bitmaps[2].fill_rect(0, 4, 1, 4, bat_color1)
  2990. @bat_bitmaps[2].set_pixel(1, 4, bat_color2)
  2991. @bat_bitmaps[2].set_pixel(2, 4, bat_color9)
  2992. @bat_bitmaps[2].set_pixel(3, 4, bat_color12)
  2993. @bat_bitmaps[2].set_pixel(4, 4, bat_color2)
  2994. @bat_bitmaps[2].set_pixel(5, 4, bat_color5)
  2995. @bat_bitmaps[2].fill_rect(1, 5, 1, 2, bat_color1)
  2996. @bat_bitmaps[2].set_pixel(2, 5, bat_color12)
  2997. @bat_bitmaps[2].set_pixel(3, 5, bat_color5)
  2998. @bat_bitmaps[2].fill_rect(4, 5, 1, 4, bat_color9)
  2999. @bat_bitmaps[2].fill_rect(5, 5, 1, 2, bat_color2)
  3000. @bat_bitmaps[2].set_pixel(3, 6, bat_color12)
  3001. @bat_bitmaps[2].set_pixel(2, 7, bat_color12)
  3002. @bat_bitmaps[2].set_pixel(3, 7, bat_color10)
  3003. @bat_bitmaps[2].set_pixel(5, 7, bat_color9)
  3004. @bat_bitmaps[2].set_pixel(3, 8, bat_color12)
  3005. @bat_bitmaps[2].set_pixel(5, 8, bat_color12)
  3006. @bat_bitmaps[2].fill_rect(4, 9, 2, 1, bat_color2)
  3007. @bat_bitmaps[2].set_pixel(5, 10, bat_color12)
  3008.  
  3009. # Bat left 4
  3010. @bat_bitmaps[3] = Bitmap.new(9, 7)
  3011. @bat_bitmaps[3].set_pixel(1, 0, bat_color10)
  3012. @bat_bitmaps[3].fill_rect(2, 0, 2, 1, bat_color5)
  3013. @bat_bitmaps[3].set_pixel(0, 1, bat_color13)
  3014. @bat_bitmaps[3].set_pixel(1, 1, bat_color9)
  3015. @bat_bitmaps[3].set_pixel(2, 1, bat_color2)
  3016. @bat_bitmaps[3].set_pixel(3, 1, bat_color9)
  3017. @bat_bitmaps[3].set_pixel(0, 2, bat_color14)
  3018. @bat_bitmaps[3].set_pixel(1, 2, bat_color8)
  3019. @bat_bitmaps[3].set_pixel(2, 2, bat_color15)
  3020. @bat_bitmaps[3].fill_rect(3, 2, 2, 1, bat_color12)
  3021. @bat_bitmaps[3].set_pixel(0, 3, bat_color5)
  3022. @bat_bitmaps[3].set_pixel(1, 3, bat_color12)
  3023. @bat_bitmaps[3].set_pixel(2, 3, bat_color9)
  3024. @bat_bitmaps[3].fill_rect(3, 3, 1, 2, bat_color2)
  3025. @bat_bitmaps[3].fill_rect(4, 3, 1, 2, bat_color5)
  3026. @bat_bitmaps[3].set_pixel(5, 3, bat_color10)
  3027. @bat_bitmaps[3].set_pixel(6, 3, bat_color2)
  3028. @bat_bitmaps[3].set_pixel(1, 4, bat_color5)
  3029. @bat_bitmaps[3].set_pixel(2, 4, bat_color2)
  3030. @bat_bitmaps[3].fill_rect(5, 4, 1, 2, bat_color7)
  3031. @bat_bitmaps[3].set_pixel(6, 4, bat_color9)
  3032. @bat_bitmaps[3].set_pixel(7, 4, bat_color2)
  3033. @bat_bitmaps[3].set_pixel(3, 5, bat_color5)
  3034. @bat_bitmaps[3].set_pixel(4, 5, bat_color12)
  3035. @bat_bitmaps[3].set_pixel(6, 5, bat_color10)
  3036. @bat_bitmaps[3].set_pixel(7, 5, bat_color9)
  3037. @bat_bitmaps[3].set_pixel(8, 5, bat_color2)
  3038. @bat_bitmaps[3].set_pixel(8, 6, bat_color7)
  3039.  
  3040. # Bat up 1
  3041. @bat_bitmaps[4] = Bitmap.new(11, 9)
  3042. @bat_bitmaps[4].set_pixel(0, 0, bat_color9)
  3043. @bat_bitmaps[4].set_pixel(1, 0, bat_color3)
  3044. @bat_bitmaps[4].set_pixel(8, 0, bat_color2)
  3045. @bat_bitmaps[4].set_pixel(9, 0, bat_color10)
  3046. @bat_bitmaps[4].set_pixel(10, 0, bat_color4)
  3047. @bat_bitmaps[4].set_pixel(0, 1, bat_color4)
  3048. @bat_bitmaps[4].fill_rect(1, 1, 1, 2, bat_color9)
  3049. @bat_bitmaps[4].set_pixel(2, 1, bat_color2)
  3050. @bat_bitmaps[4].set_pixel(3, 1, bat_color9)
  3051. @bat_bitmaps[4].set_pixel(7, 1, bat_color2)
  3052. @bat_bitmaps[4].fill_rect(8, 1, 2, 1, bat_color9)
  3053. @bat_bitmaps[4].fill_rect(2, 2, 1, 2, bat_color9)
  3054. @bat_bitmaps[4].fill_rect(4, 2, 1, 2, bat_color10)
  3055. @bat_bitmaps[4].fill_rect(5, 2, 1, 6, bat_color9)
  3056. @bat_bitmaps[4].set_pixel(6, 2, bat_color10)
  3057. @bat_bitmaps[4].set_pixel(7, 2, bat_color7)
  3058. @bat_bitmaps[4].set_pixel(8, 2, bat_color9)
  3059. @bat_bitmaps[4].set_pixel(9, 2, bat_color2)
  3060. @bat_bitmaps[4].set_pixel(1, 3, bat_color2)
  3061. @bat_bitmaps[4].set_pixel(3, 3, bat_color7)
  3062. @bat_bitmaps[4].fill_rect(6, 3, 1, 2, bat_color9)
  3063. @bat_bitmaps[4].set_pixel(7, 3, bat_color12)
  3064. @bat_bitmaps[4].set_pixel(8, 3, bat_color2)
  3065. @bat_bitmaps[4].set_pixel(9, 3, bat_color12)
  3066. @bat_bitmaps[4].set_pixel(1, 4, bat_color12)
  3067. @bat_bitmaps[4].fill_rect(2, 4, 1, 2, bat_color2)
  3068. @bat_bitmaps[4].set_pixel(3, 4, bat_color12)
  3069. @bat_bitmaps[4].fill_rect(4, 4, 1, 3, bat_color9)
  3070. @bat_bitmaps[4].fill_rect(7, 4, 2, 1, bat_color9)
  3071. @bat_bitmaps[4].set_pixel(9, 4, bat_color16)
  3072. @bat_bitmaps[4].set_pixel(3, 5, bat_color2)
  3073. @bat_bitmaps[4].fill_rect(6, 5, 2, 1, bat_color2)
  3074. @bat_bitmaps[4].set_pixel(8, 5, bat_color16)
  3075. @bat_bitmaps[4].set_pixel(2, 6, bat_color16)
  3076. @bat_bitmaps[4].fill_rect(3, 6, 1, 2, bat_color12)
  3077. @bat_bitmaps[4].fill_rect(6, 6, 1, 2, bat_color9)
  3078. @bat_bitmaps[4].set_pixel(7, 6, bat_color12)
  3079. @bat_bitmaps[4].set_pixel(4, 7, bat_color2)
  3080. @bat_bitmaps[4].set_pixel(7, 7, bat_color7)
  3081. @bat_bitmaps[4].set_pixel(3, 8, bat_color7)
  3082. @bat_bitmaps[4].set_pixel(4, 8, bat_color16)
  3083. @bat_bitmaps[4].fill_rect(5, 8, 2, 1, bat_color12)
  3084.  
  3085. # Bat up 2
  3086. @bat_bitmaps[5] = Bitmap.new(12, 9)
  3087. @bat_bitmaps[5].fill_rect(5, 0, 1, 5, bat_color9)
  3088. @bat_bitmaps[5].set_pixel(6, 0, bat_color12)
  3089. @bat_bitmaps[5].set_pixel(7, 0, bat_color10)
  3090. @bat_bitmaps[5].set_pixel(6, 1, bat_color10)
  3091. @bat_bitmaps[5].fill_rect(7, 1, 1, 5, bat_color9)
  3092. @bat_bitmaps[5].set_pixel(4, 2, bat_color7)
  3093. @bat_bitmaps[5].fill_rect(6, 2, 1, 4, bat_color9)
  3094. @bat_bitmaps[5].set_pixel(4, 3, bat_color12)
  3095. @bat_bitmaps[5].fill_rect(8, 3, 2, 1, bat_color12)
  3096. @bat_bitmaps[5].set_pixel(2, 4, bat_color2)
  3097. @bat_bitmaps[5].fill_rect(3, 4, 2, 1, bat_color9)
  3098. @bat_bitmaps[5].set_pixel(8, 4, bat_color9)
  3099. @bat_bitmaps[5].set_pixel(9, 4, bat_color2)
  3100. @bat_bitmaps[5].set_pixel(10, 4, bat_color12)
  3101. @bat_bitmaps[5].set_pixel(1, 5, bat_color12)
  3102. @bat_bitmaps[5].fill_rect(2, 5, 1, 2, bat_color9)
  3103. @bat_bitmaps[5].fill_rect(3, 5, 1, 2, bat_color2)
  3104. @bat_bitmaps[5].set_pixel(4, 5, bat_color9)
  3105. @bat_bitmaps[5].set_pixel(5, 5, bat_color2)
  3106. @bat_bitmaps[5].set_pixel(8, 5, bat_color2)
  3107. @bat_bitmaps[5].fill_rect(9, 5, 1, 2, bat_color9)
  3108. @bat_bitmaps[5].set_pixel(10, 5, bat_color2)
  3109. @bat_bitmaps[5].fill_rect(1, 6, 1, 2, bat_color2)
  3110. @bat_bitmaps[5].set_pixel(4, 6, bat_color7)
  3111. @bat_bitmaps[5].set_pixel(5, 6, bat_color16)
  3112. @bat_bitmaps[5].set_pixel(6, 6, bat_color2)
  3113. @bat_bitmaps[5].fill_rect(7, 6, 2, 1, bat_color12)
  3114. @bat_bitmaps[5].set_pixel(10, 6, bat_color9)
  3115. @bat_bitmaps[5].set_pixel(11, 6, bat_color7)
  3116. @bat_bitmaps[5].fill_rect(0, 7, 1, 2, bat_color7)
  3117. @bat_bitmaps[5].set_pixel(10, 7, bat_color7)
  3118. @bat_bitmaps[5].set_pixel(11, 7, bat_color2)
  3119.  
  3120. # Bat up 3
  3121. @bat_bitmaps[6] = Bitmap.new(9, 11)
  3122. @bat_bitmaps[6].set_pixel(3, 0, bat_color12)
  3123. @bat_bitmaps[6].set_pixel(5, 0, bat_color12)
  3124. @bat_bitmaps[6].fill_rect(3, 1, 1, 2, bat_color10)
  3125. @bat_bitmaps[6].fill_rect(4, 1, 1, 5, bat_color9)
  3126. @bat_bitmaps[6].set_pixel(5, 1, bat_color10)
  3127. @bat_bitmaps[6].set_pixel(2, 2, bat_color7)
  3128. @bat_bitmaps[6].fill_rect(5, 2, 1, 3, bat_color9)
  3129. @bat_bitmaps[6].set_pixel(2, 3, bat_color2)
  3130. @bat_bitmaps[6].fill_rect(3, 3, 1, 3, bat_color9)
  3131. @bat_bitmaps[6].set_pixel(6, 3, bat_color12)
  3132. @bat_bitmaps[6].set_pixel(1, 4, bat_color12)
  3133. @bat_bitmaps[6].fill_rect(2, 4, 1, 2, bat_color9)
  3134. @bat_bitmaps[6].set_pixel(6, 4, bat_color2)
  3135. @bat_bitmaps[6].set_pixel(1, 5, bat_color2)
  3136. @bat_bitmaps[6].fill_rect(5, 5, 1, 2, bat_color2)
  3137. @bat_bitmaps[6].set_pixel(6, 5, bat_color9)
  3138. @bat_bitmaps[6].set_pixel(7, 5, bat_color2)
  3139. @bat_bitmaps[6].set_pixel(0, 6, bat_color12)
  3140. @bat_bitmaps[6].fill_rect(1, 6, 1, 2, bat_color9)
  3141. @bat_bitmaps[6].fill_rect(2, 6, 1, 2, bat_color7)
  3142. @bat_bitmaps[6].set_pixel(3, 6, bat_color12)
  3143. @bat_bitmaps[6].set_pixel(4, 6, bat_color2)
  3144. @bat_bitmaps[6].set_pixel(6, 6, bat_color2)
  3145. @bat_bitmaps[6].fill_rect(7, 6, 1, 2, bat_color9)
  3146. @bat_bitmaps[6].set_pixel(0, 7, bat_color2)
  3147. @bat_bitmaps[6].set_pixel(3, 7, bat_color16)
  3148. @bat_bitmaps[6].fill_rect(4, 7, 3, 1, bat_color12)
  3149. @bat_bitmaps[6].set_pixel(8, 7, bat_color7)
  3150. @bat_bitmaps[6].set_pixel(0, 8, bat_color9)
  3151. @bat_bitmaps[6].set_pixel(7, 8, bat_color2)
  3152. @bat_bitmaps[6].fill_rect(8, 8, 1, 3, bat_color12)
  3153. @bat_bitmaps[6].set_pixel(0, 9, bat_color12)
  3154. @bat_bitmaps[6].set_pixel(7, 9, bat_color7)
  3155. @bat_bitmaps[6].set_pixel(0, 10, bat_color7)
  3156.  
  3157. # Bat up 4
  3158. @bat_bitmaps[7] = Bitmap.new(12, 8)
  3159. @bat_bitmaps[7].fill_rect(5, 0, 1, 5, bat_color9)
  3160. @bat_bitmaps[7].set_pixel(6, 0, bat_color12)
  3161. @bat_bitmaps[7].set_pixel(7, 0, bat_color10)
  3162. @bat_bitmaps[7].set_pixel(6, 1, bat_color10)
  3163. @bat_bitmaps[7].fill_rect(7, 1, 1, 4, bat_color9)
  3164. @bat_bitmaps[7].set_pixel(2, 2, bat_color12)
  3165. @bat_bitmaps[7].set_pixel(4, 2, bat_color7)
  3166. @bat_bitmaps[7].fill_rect(6, 2, 1, 4, bat_color9)
  3167. @bat_bitmaps[7].fill_rect(9, 2, 1, 2, bat_color2)
  3168. @bat_bitmaps[7].fill_rect(2, 3, 1, 2, bat_color9)
  3169. @bat_bitmaps[7].set_pixel(3, 3, bat_color7)
  3170. @bat_bitmaps[7].set_pixel(4, 3, bat_color12)
  3171. @bat_bitmaps[7].set_pixel(8, 3, bat_color12)
  3172. @bat_bitmaps[7].fill_rect(10, 3, 1, 3, bat_color2)
  3173. @bat_bitmaps[7].set_pixel(1, 4, bat_color12)
  3174. @bat_bitmaps[7].fill_rect(3, 4, 2, 1, bat_color9)
  3175. @bat_bitmaps[7].fill_rect(8, 4, 2, 1, bat_color9)
  3176. @bat_bitmaps[7].set_pixel(1, 5, bat_color9)
  3177. @bat_bitmaps[7].fill_rect(2, 5, 3, 1, bat_color12)
  3178. @bat_bitmaps[7].set_pixel(5, 5, bat_color2)
  3179. @bat_bitmaps[7].fill_rect(7, 5, 2, 1, bat_color2)
  3180. @bat_bitmaps[7].set_pixel(9, 5, bat_color12)
  3181. @bat_bitmaps[7].set_pixel(11, 5, bat_color12)
  3182. @bat_bitmaps[7].set_pixel(0, 6, bat_color12)
  3183. @bat_bitmaps[7].set_pixel(1, 6, bat_color2)
  3184. @bat_bitmaps[7].set_pixel(4, 6, bat_color7)
  3185. @bat_bitmaps[7].set_pixel(5, 6, bat_color16)
  3186. @bat_bitmaps[7].set_pixel(6, 6, bat_color2)
  3187. @bat_bitmaps[7].set_pixel(7, 6, bat_color12)
  3188. @bat_bitmaps[7].set_pixel(8, 6, bat_color7)
  3189. @bat_bitmaps[7].set_pixel(10, 6, bat_color7)
  3190. @bat_bitmaps[7].set_pixel(11, 6, bat_color2)
  3191. @bat_bitmaps[7].set_pixel(0, 7, bat_color7)
  3192.  
  3193. # Bat right 1
  3194. @bat_bitmaps[8] = Bitmap.new(10, 8)
  3195. @bat_bitmaps[8].set_pixel(0, 0, bat_color5)
  3196. @bat_bitmaps[8].set_pixel(1, 0, bat_color4)
  3197. @bat_bitmaps[8].set_pixel(2, 0, bat_color3)
  3198. @bat_bitmaps[8].fill_rect(3, 0, 1, 4, bat_color2)
  3199. @bat_bitmaps[8].fill_rect(6, 0, 3, 2, bat_color1)
  3200. @bat_bitmaps[8].set_pixel(1, 1, bat_color6)
  3201. @bat_bitmaps[8].set_pixel(2, 1, bat_color4)
  3202. @bat_bitmaps[8].fill_rect(4, 1, 1, 3, bat_color2)
  3203. @bat_bitmaps[8].set_pixel(5, 1, bat_color1)
  3204. @bat_bitmaps[8].set_pixel(2, 2, bat_color6)
  3205. @bat_bitmaps[8].set_pixel(5, 2, bat_color10)
  3206. @bat_bitmaps[8].set_pixel(6, 2, bat_color5)
  3207. @bat_bitmaps[8].set_pixel(7, 2, bat_color7)
  3208. @bat_bitmaps[8].set_pixel(8, 2, bat_color12)
  3209. @bat_bitmaps[8].set_pixel(2, 3, bat_color11)
  3210. @bat_bitmaps[8].set_pixel(5, 3, bat_color1)
  3211. @bat_bitmaps[8].set_pixel(6, 3, bat_color10)
  3212. @bat_bitmaps[8].fill_rect(7, 3, 2, 1, bat_color9)
  3213. @bat_bitmaps[8].set_pixel(9, 3, bat_color8)
  3214. @bat_bitmaps[8].set_pixel(2, 4, bat_color2)
  3215. @bat_bitmaps[8].set_pixel(3, 4, bat_color4)
  3216. @bat_bitmaps[8].set_pixel(4, 4, bat_color5)
  3217. @bat_bitmaps[8].set_pixel(5, 4, bat_color7)
  3218. @bat_bitmaps[8].set_pixel(6, 4, bat_color9)
  3219. @bat_bitmaps[8].set_pixel(7, 4, bat_color13)
  3220. @bat_bitmaps[8].fill_rect(8, 4, 2, 1, bat_color12)
  3221. @bat_bitmaps[8].set_pixel(2, 5, bat_color4)
  3222. @bat_bitmaps[8].set_pixel(3, 5, bat_color11)
  3223. @bat_bitmaps[8].set_pixel(4, 5, bat_color4)
  3224. @bat_bitmaps[8].fill_rect(5, 5, 2, 1, bat_color12)
  3225. @bat_bitmaps[8].fill_rect(7, 5, 1, 2, bat_color2)
  3226. @bat_bitmaps[8].set_pixel(8, 5, bat_color7)
  3227. @bat_bitmaps[8].set_pixel(9, 5, bat_color5)
  3228. @bat_bitmaps[8].set_pixel(4, 6, bat_color7)
  3229. @bat_bitmaps[8].fill_rect(5, 6, 1, 2, bat_color5)
  3230. @bat_bitmaps[8].set_pixel(6, 6, bat_color9)
  3231. @bat_bitmaps[8].set_pixel(8, 6, bat_color5)
  3232. @bat_bitmaps[8].set_pixel(4, 7, bat_color5)
  3233. @bat_bitmaps[8].set_pixel(6, 7, bat_color12)
  3234. @bat_bitmaps[8].set_pixel(7, 7, bat_color5)
  3235.  
  3236. # Bat right 2
  3237. @bat_bitmaps[9] = Bitmap.new(9, 7)
  3238. @bat_bitmaps[9].fill_rect(5, 0, 3, 1, bat_color5)
  3239. @bat_bitmaps[9].set_pixel(4, 1, bat_color5)
  3240. @bat_bitmaps[9].set_pixel(5, 1, bat_color9)
  3241. @bat_bitmaps[9].fill_rect(6, 1, 2, 1, bat_color2)
  3242. @bat_bitmaps[9].set_pixel(8, 1, bat_color13)
  3243. @bat_bitmaps[9].set_pixel(4, 2, bat_color7)
  3244. @bat_bitmaps[9].set_pixel(5, 2, bat_color12)
  3245. @bat_bitmaps[9].set_pixel(6, 2, bat_color15)
  3246. @bat_bitmaps[9].fill_rect(7, 2, 1, 2, bat_color12)
  3247. @bat_bitmaps[9].set_pixel(8, 2, bat_color14)
  3248. @bat_bitmaps[9].set_pixel(2, 3, bat_color2)
  3249. @bat_bitmaps[9].set_pixel(3, 3, bat_color10)
  3250. @bat_bitmaps[9].set_pixel(4, 3, bat_color5)
  3251. @bat_bitmaps[9].fill_rect(5, 3, 1, 2, bat_color2)
  3252. @bat_bitmaps[9].set_pixel(6, 3, bat_color9)
  3253. @bat_bitmaps[9].set_pixel(8, 3, bat_color5)
  3254. @bat_bitmaps[9].set_pixel(1, 4, bat_color2)
  3255. @bat_bitmaps[9].set_pixel(2, 4, bat_color9)
  3256. @bat_bitmaps[9].fill_rect(3, 4, 1, 2, bat_color7)
  3257. @bat_bitmaps[9].set_pixel(4, 4, bat_color12)
  3258. @bat_bitmaps[9].set_pixel(6, 4, bat_color2)
  3259. @bat_bitmaps[9].set_pixel(0, 5, bat_color2)
  3260. @bat_bitmaps[9].fill_rect(1, 5, 2, 1, bat_color10)
  3261. @bat_bitmaps[9].set_pixel(4, 5, bat_color7)
  3262. @bat_bitmaps[9].set_pixel(5, 5, bat_color5)
  3263. @bat_bitmaps[9].set_pixel(0, 6, bat_color7)
  3264.  
  3265. # Bat right 3
  3266. @bat_bitmaps[10] = Bitmap.new(6, 11)
  3267. @bat_bitmaps[10].set_pixel(4, 0, bat_color10)
  3268. @bat_bitmaps[10].fill_rect(2, 1, 2, 1, bat_color10)
  3269. @bat_bitmaps[10].set_pixel(4, 1, bat_color9)
  3270. @bat_bitmaps[10].set_pixel(5, 1, bat_color13)
  3271. @bat_bitmaps[10].set_pixel(1, 2, bat_color5)
  3272. @bat_bitmaps[10].set_pixel(2, 2, bat_color9)
  3273. @bat_bitmaps[10].fill_rect(3, 2, 1, 2, bat_color13)
  3274. @bat_bitmaps[10].fill_rect(4, 2, 2, 1, bat_color12)
  3275. @bat_bitmaps[10].set_pixel(1, 3, bat_color2)
  3276. @bat_bitmaps[10].set_pixel(2, 3, bat_color5)
  3277. @bat_bitmaps[10].set_pixel(4, 3, bat_color17)
  3278. @bat_bitmaps[10].set_pixel(5, 3, bat_color7)
  3279. @bat_bitmaps[10].set_pixel(0, 4, bat_color5)
  3280. @bat_bitmaps[10].set_pixel(1, 4, bat_color9)
  3281. @bat_bitmaps[10].set_pixel(2, 4, bat_color12)
  3282. @bat_bitmaps[10].set_pixel(3, 4, bat_color9)
  3283. @bat_bitmaps[10].set_pixel(4, 4, bat_color5)
  3284. @bat_bitmaps[10].fill_rect(5, 4, 1, 4, bat_color1)
  3285. @bat_bitmaps[10].fill_rect(0, 5, 1, 2, bat_color2)
  3286. @bat_bitmaps[10].fill_rect(1, 5, 1, 2, bat_color10)
  3287. @bat_bitmaps[10].set_pixel(2, 5, bat_color5)
  3288. @bat_bitmaps[10].set_pixel(3, 5, bat_color12)
  3289. @bat_bitmaps[10].fill_rect(4, 5, 1, 3, bat_color1)
  3290. @bat_bitmaps[10].set_pixel(2, 6, bat_color12)
  3291. @bat_bitmaps[10].fill_rect(0, 7, 2, 1, bat_color9)
  3292. @bat_bitmaps[10].set_pixel(2, 7, bat_color10)
  3293. @bat_bitmaps[10].set_pixel(3, 7, bat_color12)
  3294. @bat_bitmaps[10].set_pixel(0, 8, bat_color12)
  3295. @bat_bitmaps[10].set_pixel(1, 8, bat_color10)
  3296. @bat_bitmaps[10].set_pixel(2, 8, bat_color12)
  3297. @bat_bitmaps[10].set_pixel(0, 9, bat_color2)
  3298. @bat_bitmaps[10].set_pixel(1, 9, bat_color12)
  3299. @bat_bitmaps[10].set_pixel(0, 10, bat_color12)
  3300.  
  3301. # Bat right 4
  3302. @bat_bitmaps[11] = Bitmap.new(9, 7)
  3303. @bat_bitmaps[11].fill_rect(5, 0, 3, 1, bat_color5)
  3304. @bat_bitmaps[11].set_pixel(4, 1, bat_color5)
  3305. @bat_bitmaps[11].set_pixel(5, 1, bat_color9)
  3306. @bat_bitmaps[11].fill_rect(6, 1, 2, 1, bat_color2)
  3307. @bat_bitmaps[11].set_pixel(8, 1, bat_color13)
  3308. @bat_bitmaps[11].set_pixel(4, 2, bat_color7)
  3309. @bat_bitmaps[11].set_pixel(5, 2, bat_color12)
  3310. @bat_bitmaps[11].set_pixel(6, 2, bat_color15)
  3311. @bat_bitmaps[11].fill_rect(7, 2, 1, 2, bat_color12)
  3312. @bat_bitmaps[11].set_pixel(8, 2, bat_color14)
  3313. @bat_bitmaps[11].set_pixel(2, 3, bat_color2)
  3314. @bat_bitmaps[11].set_pixel(3, 3, bat_color10)
  3315. @bat_bitmaps[11].set_pixel(4, 3, bat_color5)
  3316. @bat_bitmaps[11].fill_rect(5, 3, 1, 2, bat_color2)
  3317. @bat_bitmaps[11].set_pixel(6, 3, bat_color9)
  3318. @bat_bitmaps[11].set_pixel(8, 3, bat_color5)
  3319. @bat_bitmaps[11].set_pixel(1, 4, bat_color2)
  3320. @bat_bitmaps[11].set_pixel(2, 4, bat_color9)
  3321. @bat_bitmaps[11].fill_rect(3, 4, 1, 2, bat_color7)
  3322. @bat_bitmaps[11].set_pixel(4, 4, bat_color12)
  3323. @bat_bitmaps[11].set_pixel(6, 4, bat_color2)
  3324. @bat_bitmaps[11].set_pixel(0, 5, bat_color2)
  3325. @bat_bitmaps[11].fill_rect(1, 5, 2, 1, bat_color10)
  3326. @bat_bitmaps[11].set_pixel(4, 5, bat_color7)
  3327. @bat_bitmaps[11].set_pixel(5, 5, bat_color5)
  3328. @bat_bitmaps[11].set_pixel(0, 6, bat_color7)
  3329.  
  3330. # Bat down 1
  3331. @bat_bitmaps[12] = Bitmap.new(11, 9)
  3332. @bat_bitmaps[12].set_pixel(0, 0, bat_color12)
  3333. @bat_bitmaps[12].set_pixel(1, 0, bat_color3)
  3334. @bat_bitmaps[12].set_pixel(8, 0, bat_color9)
  3335. @bat_bitmaps[12].set_pixel(9, 0, bat_color10)
  3336. @bat_bitmaps[12].set_pixel(10, 0, bat_color4)
  3337. @bat_bitmaps[12].fill_rect(0, 1, 2, 1, bat_color4)
  3338. @bat_bitmaps[12].fill_rect(2, 1, 2, 1, bat_color9)
  3339. @bat_bitmaps[12].set_pixel(7, 1, bat_color2)
  3340. @bat_bitmaps[12].set_pixel(8, 1, bat_color12)
  3341. @bat_bitmaps[12].set_pixel(9, 1, bat_color6)
  3342. @bat_bitmaps[12].set_pixel(1, 2, bat_color5)
  3343. @bat_bitmaps[12].set_pixel(2, 2, bat_color9)
  3344. @bat_bitmaps[12].set_pixel(4, 2, bat_color2)
  3345. @bat_bitmaps[12].set_pixel(5, 2, bat_color10)
  3346. @bat_bitmaps[12].set_pixel(6, 2, bat_color5)
  3347. @bat_bitmaps[12].set_pixel(7, 2, bat_color7)
  3348. @bat_bitmaps[12].set_pixel(8, 2, bat_color5)
  3349. @bat_bitmaps[12].set_pixel(9, 2, bat_color2)
  3350. @bat_bitmaps[12].set_pixel(1, 3, bat_color11)
  3351. @bat_bitmaps[12].fill_rect(2, 3, 2, 1, bat_color7)
  3352. @bat_bitmaps[12].set_pixel(4, 3, bat_color13)
  3353. @bat_bitmaps[12].set_pixel(5, 3, bat_color9)
  3354. @bat_bitmaps[12].set_pixel(6, 3, bat_color13)
  3355. @bat_bitmaps[12].set_pixel(7, 3, bat_color2)
  3356. @bat_bitmaps[12].set_pixel(8, 3, bat_color6)
  3357. @bat_bitmaps[12].set_pixel(9, 3, bat_color4)
  3358. @bat_bitmaps[12].set_pixel(1, 4, bat_color2)
  3359. @bat_bitmaps[12].set_pixel(2, 4, bat_color4)
  3360. @bat_bitmaps[12].set_pixel(3, 4, bat_color12)
  3361. @bat_bitmaps[12].set_pixel(4, 4, bat_color15)
  3362. @bat_bitmaps[12].fill_rect(5, 4, 1, 2, bat_color12)
  3363. @bat_bitmaps[12].set_pixel(6, 4, bat_color8)
  3364. @bat_bitmaps[12].fill_rect(7, 4, 2, 1, bat_color5)
  3365. @bat_bitmaps[12].set_pixel(9, 4, bat_color16)
  3366. @bat_bitmaps[12].set_pixel(2, 5, bat_color6)
  3367. @bat_bitmaps[12].fill_rect(3, 5, 1, 2, bat_color7)
  3368. @bat_bitmaps[12].set_pixel(4, 5, bat_color2)
  3369. @bat_bitmaps[12].fill_rect(6, 5, 1, 2, bat_color12)
  3370. @bat_bitmaps[12].set_pixel(7, 5, bat_color4)
  3371. @bat_bitmaps[12].set_pixel(8, 5, bat_color16)
  3372. @bat_bitmaps[12].set_pixel(2, 6, bat_color16)
  3373. @bat_bitmaps[12].set_pixel(4, 6, bat_color9)
  3374. @bat_bitmaps[12].set_pixel(5, 6, bat_color2)
  3375. @bat_bitmaps[12].fill_rect(7, 6, 1, 2, bat_color7)
  3376. @bat_bitmaps[12].set_pixel(3, 7, bat_color12)
  3377. @bat_bitmaps[12].set_pixel(4, 7, bat_color7)
  3378. @bat_bitmaps[12].fill_rect(5, 7, 2, 1, bat_color5)
  3379. @bat_bitmaps[12].set_pixel(5, 8, bat_color4)
  3380.  
  3381. # Bat down 2
  3382. @bat_bitmaps[13] = Bitmap.new(12, 7)
  3383. @bat_bitmaps[13].set_pixel(5, 0, bat_color10)
  3384. @bat_bitmaps[13].set_pixel(6, 0, bat_color12)
  3385. @bat_bitmaps[13].set_pixel(7, 0, bat_color10)
  3386. @bat_bitmaps[13].set_pixel(4, 1, bat_color7)
  3387. @bat_bitmaps[13].set_pixel(5, 1, bat_color9)
  3388. @bat_bitmaps[13].set_pixel(6, 1, bat_color10)
  3389. @bat_bitmaps[13].set_pixel(7, 1, bat_color2)
  3390. @bat_bitmaps[13].fill_rect(3, 2, 2, 1, bat_color12)
  3391. @bat_bitmaps[13].set_pixel(5, 2, bat_color15)
  3392. @bat_bitmaps[13].set_pixel(6, 2, bat_color12)
  3393. @bat_bitmaps[13].set_pixel(7, 2, bat_color8)
  3394. @bat_bitmaps[13].set_pixel(8, 2, bat_color12)
  3395. @bat_bitmaps[13].set_pixel(2, 3, bat_color2)
  3396. @bat_bitmaps[13].set_pixel(3, 3, bat_color9)
  3397. @bat_bitmaps[13].set_pixel(4, 3, bat_color5)
  3398. @bat_bitmaps[13].set_pixel(5, 3, bat_color7)
  3399. @bat_bitmaps[13].set_pixel(6, 3, bat_color17)
  3400. @bat_bitmaps[13].set_pixel(7, 3, bat_color12)
  3401. @bat_bitmaps[13].fill_rect(8, 3, 2, 1, bat_color2)
  3402. @bat_bitmaps[13].set_pixel(1, 4, bat_color9)
  3403. @bat_bitmaps[13].fill_rect(2, 4, 2, 1, bat_color4)
  3404. @bat_bitmaps[13].set_pixel(4, 4, bat_color7)
  3405. @bat_bitmaps[13].fill_rect(5, 4, 2, 1, bat_color9)
  3406. @bat_bitmaps[13].set_pixel(7, 4, bat_color2)
  3407. @bat_bitmaps[13].set_pixel(8, 4, bat_color4)
  3408. @bat_bitmaps[13].fill_rect(9, 4, 2, 1, bat_color7)
  3409. @bat_bitmaps[13].set_pixel(11, 4, bat_color2)
  3410. @bat_bitmaps[13].set_pixel(0, 5, bat_color12)
  3411. @bat_bitmaps[13].set_pixel(2, 5, bat_color7)
  3412. @bat_bitmaps[13].set_pixel(4, 5, bat_color12)
  3413. @bat_bitmaps[13].set_pixel(5, 5, bat_color7)
  3414. @bat_bitmaps[13].fill_rect(6, 5, 2, 1, bat_color5)
  3415. @bat_bitmaps[13].fill_rect(8, 5, 2, 1, bat_color7)
  3416. @bat_bitmaps[13].set_pixel(11, 5, bat_color5)
  3417. @bat_bitmaps[13].set_pixel(5, 6, bat_color4)
  3418. @bat_bitmaps[13].fill_rect(6, 6, 2, 1, bat_color7)
  3419.  
  3420. # Bat down 3
  3421. @bat_bitmaps[14] = Bitmap.new(9, 9)
  3422. @bat_bitmaps[14].set_pixel(3, 0, bat_color10)
  3423. @bat_bitmaps[14].set_pixel(4, 0, bat_color12)
  3424. @bat_bitmaps[14].set_pixel(5, 0, bat_color10)
  3425. @bat_bitmaps[14].set_pixel(3, 1, bat_color2)
  3426. @bat_bitmaps[14].set_pixel(4, 1, bat_color9)
  3427. @bat_bitmaps[14].set_pixel(5, 1, bat_color5)
  3428. @bat_bitmaps[14].fill_rect(2, 2, 1, 2, bat_color12)
  3429. @bat_bitmaps[14].set_pixel(3, 2, bat_color18)
  3430. @bat_bitmaps[14].set_pixel(4, 2, bat_color13)
  3431. @bat_bitmaps[14].set_pixel(5, 2, bat_color18)
  3432. @bat_bitmaps[14].fill_rect(1, 3, 1, 2, bat_color2)
  3433. @bat_bitmaps[14].set_pixel(3, 3, bat_color7)
  3434. @bat_bitmaps[14].set_pixel(4, 3, bat_color17)
  3435. @bat_bitmaps[14].set_pixel(5, 3, bat_color12)
  3436. @bat_bitmaps[14].set_pixel(6, 3, bat_color2)
  3437. @bat_bitmaps[14].set_pixel(2, 4, bat_color5)
  3438. @bat_bitmaps[14].set_pixel(3, 4, bat_color9)
  3439. @bat_bitmaps[14].fill_rect(4, 4, 2, 1, bat_color2)
  3440. @bat_bitmaps[14].set_pixel(6, 4, bat_color9)
  3441. @bat_bitmaps[14].set_pixel(7, 4, bat_color5)
  3442. @bat_bitmaps[14].set_pixel(0, 5, bat_color2)
  3443. @bat_bitmaps[14].fill_rect(1, 5, 1, 2, bat_color9)
  3444. @bat_bitmaps[14].set_pixel(2, 5, bat_color7)
  3445. @bat_bitmaps[14].set_pixel(3, 5, bat_color5)
  3446. @bat_bitmaps[14].fill_rect(4, 5, 2, 1, bat_color12)
  3447. @bat_bitmaps[14].set_pixel(6, 5, bat_color5)
  3448. @bat_bitmaps[14].set_pixel(7, 5, bat_color2)
  3449. @bat_bitmaps[14].set_pixel(8, 5, bat_color12)
  3450. @bat_bitmaps[14].set_pixel(0, 6, bat_color12)
  3451. @bat_bitmaps[14].set_pixel(2, 6, bat_color12)
  3452. @bat_bitmaps[14].set_pixel(3, 6, bat_color4)
  3453. @bat_bitmaps[14].fill_rect(4, 6, 2, 1, bat_color7)
  3454. @bat_bitmaps[14].set_pixel(6, 6, bat_color9)
  3455. @bat_bitmaps[14].set_pixel(7, 6, bat_color12)
  3456. @bat_bitmaps[14].set_pixel(8, 6, bat_color5)
  3457. @bat_bitmaps[14].set_pixel(0, 7, bat_color2)
  3458. @bat_bitmaps[14].set_pixel(1, 7, bat_color5)
  3459. @bat_bitmaps[14].set_pixel(7, 7, bat_color2)
  3460. @bat_bitmaps[14].set_pixel(8, 7, bat_color12)
  3461. @bat_bitmaps[14].set_pixel(0, 8, bat_color5)
  3462. @bat_bitmaps[14].set_pixel(8, 8, bat_color9)
  3463.  
  3464. # Bat down 4
  3465. @bat_bitmaps[15] = Bitmap.new(12, 7)
  3466. @bat_bitmaps[15].set_pixel(5, 0, bat_color12)
  3467. @bat_bitmaps[15].set_pixel(7, 0, bat_color12)
  3468. @bat_bitmaps[15].set_pixel(5, 1, bat_color2)
  3469. @bat_bitmaps[15].set_pixel(6, 1, bat_color9)
  3470. @bat_bitmaps[15].set_pixel(7, 1, bat_color5)
  3471. @bat_bitmaps[15].set_pixel(2, 2, bat_color9)
  3472. @bat_bitmaps[15].set_pixel(4, 2, bat_color7)
  3473. @bat_bitmaps[15].set_pixel(5, 2, bat_color18)
  3474. @bat_bitmaps[15].set_pixel(6, 2, bat_color13)
  3475. @bat_bitmaps[15].set_pixel(7, 2, bat_color18)
  3476. @bat_bitmaps[15].fill_rect(9, 2, 2, 1, bat_color12)
  3477. @bat_bitmaps[15].fill_rect(1, 3, 3, 1, bat_color12)
  3478. @bat_bitmaps[15].set_pixel(4, 3, bat_color2)
  3479. @bat_bitmaps[15].set_pixel(5, 3, bat_color5)
  3480. @bat_bitmaps[15].set_pixel(6, 3, bat_color7)
  3481. @bat_bitmaps[15].set_pixel(7, 3, bat_color5)
  3482. @bat_bitmaps[15].set_pixel(8, 3, bat_color12)
  3483. @bat_bitmaps[15].fill_rect(9, 3, 2, 1, bat_color2)
  3484. @bat_bitmaps[15].fill_rect(0, 4, 3, 1, bat_color12)
  3485. @bat_bitmaps[15].set_pixel(3, 4, bat_color4)
  3486. @bat_bitmaps[15].set_pixel(4, 4, bat_color7)
  3487. @bat_bitmaps[15].set_pixel(5, 4, bat_color9)
  3488. @bat_bitmaps[15].fill_rect(6, 4, 2, 1, bat_color2)
  3489. @bat_bitmaps[15].fill_rect(8, 4, 3, 1, bat_color4)
  3490. @bat_bitmaps[15].set_pixel(11, 4, bat_color9)
  3491. @bat_bitmaps[15].set_pixel(0, 5, bat_color2)
  3492. @bat_bitmaps[15].set_pixel(1, 5, bat_color7)
  3493. @bat_bitmaps[15].set_pixel(3, 5, bat_color7)
  3494. @bat_bitmaps[15].fill_rect(4, 5, 2, 1, bat_color5)
  3495. @bat_bitmaps[15].fill_rect(6, 5, 2, 1, bat_color12)
  3496. @bat_bitmaps[15].set_pixel(8, 5, bat_color7)
  3497. @bat_bitmaps[15].set_pixel(11, 5, bat_color4)
  3498. @bat_bitmaps[15].set_pixel(0, 6, bat_color7)
  3499. @bat_bitmaps[15].set_pixel(4, 6, bat_color7)
  3500. @bat_bitmaps[15].set_pixel(5, 6, bat_color4)
  3501. @bat_bitmaps[15].set_pixel(6, 6, bat_color5)
  3502. @bat_bitmaps[15].set_pixel(7, 6, bat_color7)
  3503. #-------------------------------------------------------------------------------
  3504. # Bee bitmaps
  3505.  
  3506. # Bee left 1
  3507. @bee_bitmaps = []
  3508. @bee_bitmaps[0] = Bitmap.new(6, 7)
  3509. @bee_bitmaps[0].fill_rect(2, 0, 1, 2, Color.new(128, 100, 138))
  3510. @bee_bitmaps[0].fill_rect(4, 0, 1, 2, Color.new(201, 201, 201))
  3511. @bee_bitmaps[0].set_pixel(5, 0, Color.new(100, 100, 100))
  3512. @bee_bitmaps[0].set_pixel(0, 1, Color.new(57, 57, 57))
  3513. @bee_bitmaps[0].set_pixel(3, 1, Color.new(136, 136, 136))
  3514. @bee_bitmaps[0].set_pixel(0, 2, Color.new(124, 81, 63))
  3515. @bee_bitmaps[0].set_pixel(1, 2, Color.new(83, 46, 41))
  3516. @bee_bitmaps[0].fill_rect(2, 2, 1, 2, Color.new(151, 83, 25))
  3517. @bee_bitmaps[0].set_pixel(3, 2, Color.new(100, 100, 100))
  3518. @bee_bitmaps[0].set_pixel(5, 2, Color.new(170, 170, 170))
  3519. @bee_bitmaps[0].set_pixel(0, 3, Color.new(83, 46, 41))
  3520. @bee_bitmaps[0].set_pixel(1, 3, Color.new(151, 83, 25))
  3521. @bee_bitmaps[0].set_pixel(3, 3, Color.new(83, 46, 41))
  3522. @bee_bitmaps[0].fill_rect(4, 3, 1, 2, Color.new(124, 81, 63))
  3523. @bee_bitmaps[0].set_pixel(1, 4, Color.new(83, 46, 41))
  3524. @bee_bitmaps[0].set_pixel(2, 4, Color.new(30, 30, 30))
  3525. @bee_bitmaps[0].set_pixel(3, 4, Color.new(193, 119, 50))
  3526. @bee_bitmaps[0].fill_rect(3, 5, 2, 1, Color.new(30, 30, 30))
  3527. @bee_bitmaps[0].set_pixel(4, 6, Color.new(100, 72, 20))
  3528.  
  3529. # Bee left 2
  3530. @bee_bitmaps[1] = Bitmap.new(6, 6)
  3531. @bee_bitmaps[1].set_pixel(1, 0, Color.new(128, 100, 138))
  3532. @bee_bitmaps[1].fill_rect(0, 1, 2, 1, Color.new(57, 57, 57))
  3533. @bee_bitmaps[1].set_pixel(3, 1, Color.new(201, 201, 201))
  3534. @bee_bitmaps[1].set_pixel(5, 1, Color.new(255, 255, 255))
  3535. @bee_bitmaps[1].fill_rect(0, 2, 3, 1, Color.new(83, 46, 41))
  3536. @bee_bitmaps[1].set_pixel(3, 2, Color.new(151, 83, 25))
  3537. @bee_bitmaps[1].set_pixel(1, 3, Color.new(83, 46, 41))
  3538. @bee_bitmaps[1].set_pixel(2, 3, Color.new(211, 118, 36))
  3539. @bee_bitmaps[1].set_pixel(3, 3, Color.new(193, 119, 50))
  3540. @bee_bitmaps[1].set_pixel(4, 3, Color.new(255, 255, 255))
  3541. @bee_bitmaps[1].set_pixel(1, 4, Color.new(124, 81, 63))
  3542. @bee_bitmaps[1].fill_rect(2, 4, 2, 1, Color.new(83, 46, 41))
  3543. @bee_bitmaps[1].set_pixel(4, 4, Color.new(124, 81, 63))
  3544. @bee_bitmaps[1].set_pixel(4, 5, Color.new(100, 72, 20))
  3545.  
  3546. # Bee left 3
  3547. @bee_bitmaps[2] = Bitmap.new(5, 7)
  3548. @bee_bitmaps[2].fill_rect(2, 0, 1, 2, Color.new(128, 100, 138))
  3549. @bee_bitmaps[2].set_pixel(3, 0, Color.new(255, 255, 255))
  3550. @bee_bitmaps[2].set_pixel(3, 1, Color.new(170, 170, 170))
  3551. @bee_bitmaps[2].set_pixel(1, 2, Color.new(57, 57, 57))
  3552. @bee_bitmaps[2].set_pixel(2, 2, Color.new(211, 118, 36))
  3553. @bee_bitmaps[2].set_pixel(0, 3, Color.new(255, 216, 89))
  3554. @bee_bitmaps[2].fill_rect(1, 3, 1, 2, Color.new(151, 83, 25))
  3555. @bee_bitmaps[2].set_pixel(2, 3, Color.new(83, 46, 41))
  3556. @bee_bitmaps[2].set_pixel(3, 3, Color.new(151, 83, 25))
  3557. @bee_bitmaps[2].set_pixel(2, 4, Color.new(151, 83, 25))
  3558. @bee_bitmaps[2].set_pixel(3, 4, Color.new(193, 119, 50))
  3559. @bee_bitmaps[2].set_pixel(4, 4, Color.new(201, 201, 201))
  3560. @bee_bitmaps[2].set_pixel(2, 5, Color.new(83, 46, 41))
  3561. @bee_bitmaps[2].set_pixel(3, 5, Color.new(124, 81, 63))
  3562. @bee_bitmaps[2].set_pixel(4, 5, Color.new(193, 119, 50))
  3563. @bee_bitmaps[2].set_pixel(4, 6, Color.new(219, 204, 120))
  3564.  
  3565. # Bee left 4
  3566. @bee_bitmaps[3] = Bitmap.new(6, 6)
  3567. @bee_bitmaps[3].set_pixel(1, 0, Color.new(128, 100, 138))
  3568. @bee_bitmaps[3].fill_rect(0, 1, 2, 1, Color.new(57, 57, 57))
  3569. @bee_bitmaps[3].set_pixel(3, 1, Color.new(201, 201, 201))
  3570. @bee_bitmaps[3].set_pixel(5, 1, Color.new(255, 255, 255))
  3571. @bee_bitmaps[3].fill_rect(0, 2, 3, 1, Color.new(83, 46, 41))
  3572. @bee_bitmaps[3].set_pixel(3, 2, Color.new(151, 83, 25))
  3573. @bee_bitmaps[3].set_pixel(1, 3, Color.new(83, 46, 41))
  3574. @bee_bitmaps[3].set_pixel(2, 3, Color.new(211, 118, 36))
  3575. @bee_bitmaps[3].set_pixel(3, 3, Color.new(193, 119, 50))
  3576. @bee_bitmaps[3].set_pixel(4, 3, Color.new(255, 255, 255))
  3577. @bee_bitmaps[3].set_pixel(1, 4, Color.new(124, 81, 63))
  3578. @bee_bitmaps[3].fill_rect(2, 4, 2, 1, Color.new(83, 46, 41))
  3579. @bee_bitmaps[3].set_pixel(4, 4, Color.new(124, 81, 63))
  3580. @bee_bitmaps[3].set_pixel(4, 5, Color.new(100, 72, 20))
  3581.  
  3582. # Bee up 1
  3583. @bee_bitmaps[4] = Bitmap.new(7, 6)
  3584. @bee_bitmaps[4].set_pixel(2, 0, Color.new(57, 57, 57))
  3585. @bee_bitmaps[4].set_pixel(4, 0, Color.new(57, 57, 57))
  3586. @bee_bitmaps[4].fill_rect(0, 1, 2, 1, Color.new(201, 201, 201))
  3587. @bee_bitmaps[4].set_pixel(2, 1, Color.new(71, 71, 71))
  3588. @bee_bitmaps[4].fill_rect(3, 1, 1, 2, Color.new(252, 133, 37))
  3589. @bee_bitmaps[4].set_pixel(4, 1, Color.new(71, 71, 71))
  3590. @bee_bitmaps[4].fill_rect(5, 1, 2, 1, Color.new(201, 201, 201))
  3591. @bee_bitmaps[4].set_pixel(2, 2, Color.new(170, 170, 170))
  3592. @bee_bitmaps[4].set_pixel(4, 2, Color.new(170, 170, 170))
  3593. @bee_bitmaps[4].set_pixel(0, 3, Color.new(136, 136, 136))
  3594. @bee_bitmaps[4].set_pixel(1, 3, Color.new(240, 240, 240))
  3595. @bee_bitmaps[4].set_pixel(2, 3, Color.new(83, 46, 41))
  3596. @bee_bitmaps[4].set_pixel(3, 3, Color.new(244, 192, 79))
  3597. @bee_bitmaps[4].set_pixel(4, 3, Color.new(83, 46, 41))
  3598. @bee_bitmaps[4].set_pixel(5, 3, Color.new(240, 240, 240))
  3599. @bee_bitmaps[4].set_pixel(6, 3, Color.new(136, 136, 136))
  3600. @bee_bitmaps[4].set_pixel(2, 4, Color.new(124, 81, 63))
  3601. @bee_bitmaps[4].set_pixel(3, 4, Color.new(193, 119, 50))
  3602. @bee_bitmaps[4].set_pixel(4, 4, Color.new(124, 81, 63))
  3603. @bee_bitmaps[4].set_pixel(3, 5, Color.new(83, 46, 41))
  3604.  
  3605. # Bee up 2
  3606. @bee_bitmaps[5] = Bitmap.new(7, 6)
  3607. @bee_bitmaps[5].set_pixel(0, 0, Color.new(206, 215, 221))
  3608. @bee_bitmaps[5].set_pixel(1, 0, Color.new(170, 170, 170))
  3609. @bee_bitmaps[5].set_pixel(3, 0, Color.new(188, 107, 30))
  3610. @bee_bitmaps[5].set_pixel(5, 0, Color.new(170, 170, 170))
  3611. @bee_bitmaps[5].set_pixel(6, 0, Color.new(206, 215, 221))
  3612. @bee_bitmaps[5].set_pixel(0, 1, Color.new(102, 163, 192))
  3613. @bee_bitmaps[5].set_pixel(2, 1, Color.new(170, 170, 170))
  3614. @bee_bitmaps[5].set_pixel(3, 1, Color.new(252, 133, 37))
  3615. @bee_bitmaps[5].set_pixel(4, 1, Color.new(170, 170, 170))
  3616. @bee_bitmaps[5].set_pixel(6, 1, Color.new(102, 163, 192))
  3617. @bee_bitmaps[5].set_pixel(0, 2, Color.new(206, 215, 221))
  3618. @bee_bitmaps[5].fill_rect(2, 2, 3, 1, Color.new(211, 118, 36))
  3619. @bee_bitmaps[5].set_pixel(6, 2, Color.new(206, 215, 221))
  3620. @bee_bitmaps[5].fill_rect(2, 3, 1, 2, Color.new(124, 81, 63))
  3621. @bee_bitmaps[5].set_pixel(3, 3, Color.new(255, 216, 89))
  3622. @bee_bitmaps[5].fill_rect(4, 3, 1, 2, Color.new(124, 81, 63))
  3623. @bee_bitmaps[5].set_pixel(3, 4, Color.new(83, 46, 41))
  3624. @bee_bitmaps[5].set_pixel(3, 5, Color.new(100, 72, 20))
  3625.  
  3626. # Bee up 3
  3627. @bee_bitmaps[6] = Bitmap.new(3, 7)
  3628. @bee_bitmaps[6].set_pixel(0, 0, Color.new(240, 240, 240))
  3629. @bee_bitmaps[6].set_pixel(2, 0, Color.new(240, 240, 240))
  3630. @bee_bitmaps[6].set_pixel(0, 1, Color.new(201, 201, 201))
  3631. @bee_bitmaps[6].set_pixel(1, 1, Color.new(255, 216, 89))
  3632. @bee_bitmaps[6].set_pixel(2, 1, Color.new(201, 201, 201))
  3633. @bee_bitmaps[6].fill_rect(0, 2, 3, 1, Color.new(252, 133, 37))
  3634. @bee_bitmaps[6].set_pixel(0, 3, Color.new(100, 100, 100))
  3635. @bee_bitmaps[6].set_pixel(1, 3, Color.new(151, 83, 25))
  3636. @bee_bitmaps[6].set_pixel(2, 3, Color.new(100, 100, 100))
  3637. @bee_bitmaps[6].set_pixel(0, 4, Color.new(240, 240, 240))
  3638. @bee_bitmaps[6].set_pixel(1, 4, Color.new(83, 46, 41))
  3639. @bee_bitmaps[6].set_pixel(2, 4, Color.new(240, 240, 240))
  3640. @bee_bitmaps[6].set_pixel(0, 5, Color.new(83, 46, 41))
  3641. @bee_bitmaps[6].set_pixel(1, 5, Color.new(226, 163, 69))
  3642. @bee_bitmaps[6].set_pixel(2, 5, Color.new(83, 46, 41))
  3643. @bee_bitmaps[6].set_pixel(1, 6, Color.new(219, 204, 120))
  3644.  
  3645. # Bee up 4
  3646. @bee_bitmaps[7] = Bitmap.new(7, 6)
  3647. @bee_bitmaps[7].set_pixel(0, 0, Color.new(206, 215, 221))
  3648. @bee_bitmaps[7].set_pixel(1, 0, Color.new(170, 170, 170))
  3649. @bee_bitmaps[7].set_pixel(3, 0, Color.new(188, 107, 30))
  3650. @bee_bitmaps[7].set_pixel(5, 0, Color.new(170, 170, 170))
  3651. @bee_bitmaps[7].set_pixel(6, 0, Color.new(206, 215, 221))
  3652. @bee_bitmaps[7].set_pixel(0, 1, Color.new(102, 163, 192))
  3653. @bee_bitmaps[7].set_pixel(2, 1, Color.new(170, 170, 170))
  3654. @bee_bitmaps[7].set_pixel(3, 1, Color.new(252, 133, 37))
  3655. @bee_bitmaps[7].set_pixel(4, 1, Color.new(170, 170, 170))
  3656. @bee_bitmaps[7].set_pixel(6, 1, Color.new(102, 163, 192))
  3657. @bee_bitmaps[7].set_pixel(0, 2, Color.new(206, 215, 221))
  3658. @bee_bitmaps[7].fill_rect(2, 2, 3, 1, Color.new(211, 118, 36))
  3659. @bee_bitmaps[7].set_pixel(6, 2, Color.new(206, 215, 221))
  3660. @bee_bitmaps[7].fill_rect(2, 3, 1, 2, Color.new(124, 81, 63))
  3661. @bee_bitmaps[7].set_pixel(3, 3, Color.new(255, 216, 89))
  3662. @bee_bitmaps[7].fill_rect(4, 3, 1, 2, Color.new(124, 81, 63))
  3663. @bee_bitmaps[7].set_pixel(3, 4, Color.new(83, 46, 41))
  3664. @bee_bitmaps[7].set_pixel(3, 5, Color.new(100, 72, 20))
  3665.  
  3666. # Bee right 1
  3667. @bee_bitmaps[8] = Bitmap.new(6, 6)
  3668. @bee_bitmaps[8].set_pixel(0, 0, Color.new(201, 201, 201))
  3669. @bee_bitmaps[8].set_pixel(1, 0, Color.new(170, 170, 170))
  3670. @bee_bitmaps[8].fill_rect(3, 0, 1, 2, Color.new(128, 100, 138))
  3671. @bee_bitmaps[8].set_pixel(1, 1, Color.new(255, 255, 255))
  3672. @bee_bitmaps[8].fill_rect(4, 1, 2, 1, Color.new(57, 57, 57))
  3673. @bee_bitmaps[8].set_pixel(0, 2, Color.new(136, 136, 136))
  3674. @bee_bitmaps[8].set_pixel(2, 2, Color.new(100, 100, 100))
  3675. @bee_bitmaps[8].set_pixel(3, 2, Color.new(193, 119, 50))
  3676. @bee_bitmaps[8].set_pixel(4, 2, Color.new(226, 163, 69))
  3677. @bee_bitmaps[8].set_pixel(0, 3, Color.new(71, 71, 71))
  3678. @bee_bitmaps[8].fill_rect(1, 3, 1, 2, Color.new(226, 163, 69))
  3679. @bee_bitmaps[8].set_pixel(2, 3, Color.new(151, 83, 25))
  3680. @bee_bitmaps[8].fill_rect(3, 3, 1, 2, Color.new(83, 46, 41))
  3681. @bee_bitmaps[8].set_pixel(4, 3, Color.new(151, 83, 25))
  3682. @bee_bitmaps[8].fill_rect(2, 4, 1, 2, Color.new(83, 46, 41))
  3683. @bee_bitmaps[8].set_pixel(4, 4, Color.new(30, 30, 30))
  3684. @bee_bitmaps[8].set_pixel(1, 5, Color.new(83, 46, 41))
  3685. @bee_bitmaps[8].set_pixel(3, 5, Color.new(30, 30, 30))
  3686.  
  3687. # Bee right 2
  3688. @bee_bitmaps[9] = Bitmap.new(6, 6)
  3689. @bee_bitmaps[9].set_pixel(0, 0, Color.new(102, 163, 192))
  3690. @bee_bitmaps[9].set_pixel(1, 0, Color.new(255, 255, 255))
  3691. @bee_bitmaps[9].fill_rect(3, 0, 2, 1, Color.new(128, 100, 138))
  3692. @bee_bitmaps[9].set_pixel(0, 1, Color.new(255, 255, 255))
  3693. @bee_bitmaps[9].set_pixel(2, 1, Color.new(201, 201, 201))
  3694. @bee_bitmaps[9].set_pixel(3, 1, Color.new(128, 100, 138))
  3695. @bee_bitmaps[9].fill_rect(4, 1, 2, 1, Color.new(57, 57, 57))
  3696. @bee_bitmaps[9].set_pixel(2, 2, Color.new(151, 83, 25))
  3697. @bee_bitmaps[9].fill_rect(3, 2, 2, 1, Color.new(193, 119, 50))
  3698. @bee_bitmaps[9].set_pixel(1, 3, Color.new(170, 170, 170))
  3699. @bee_bitmaps[9].set_pixel(2, 3, Color.new(252, 133, 37))
  3700. @bee_bitmaps[9].set_pixel(3, 3, Color.new(151, 83, 25))
  3701. @bee_bitmaps[9].set_pixel(4, 3, Color.new(83, 46, 41))
  3702. @bee_bitmaps[9].set_pixel(1, 4, Color.new(193, 119, 50))
  3703. @bee_bitmaps[9].fill_rect(2, 4, 1, 2, Color.new(83, 46, 41))
  3704. @bee_bitmaps[9].set_pixel(3, 4, Color.new(30, 30, 30))
  3705. @bee_bitmaps[9].set_pixel(1, 5, Color.new(30, 30, 30))
  3706.  
  3707. # Bee right 3
  3708. @bee_bitmaps[10] = Bitmap.new(5, 7)
  3709. @bee_bitmaps[10].set_pixel(1, 0, Color.new(255, 255, 255))
  3710. @bee_bitmaps[10].fill_rect(2, 0, 1, 2, Color.new(128, 100, 138))
  3711. @bee_bitmaps[10].set_pixel(1, 1, Color.new(201, 201, 201))
  3712. @bee_bitmaps[10].set_pixel(1, 2, Color.new(100, 100, 100))
  3713. @bee_bitmaps[10].fill_rect(2, 2, 1, 2, Color.new(151, 83, 25))
  3714. @bee_bitmaps[10].set_pixel(3, 2, Color.new(255, 216, 89))
  3715. @bee_bitmaps[10].set_pixel(1, 3, Color.new(252, 133, 37))
  3716. @bee_bitmaps[10].fill_rect(3, 3, 1, 2, Color.new(151, 83, 25))
  3717. @bee_bitmaps[10].set_pixel(4, 3, Color.new(83, 46, 41))
  3718. @bee_bitmaps[10].set_pixel(0, 4, Color.new(255, 255, 255))
  3719. @bee_bitmaps[10].fill_rect(1, 4, 1, 2, Color.new(83, 46, 41))
  3720. @bee_bitmaps[10].set_pixel(2, 4, Color.new(211, 118, 36))
  3721. @bee_bitmaps[10].set_pixel(0, 5, Color.new(124, 81, 63))
  3722. @bee_bitmaps[10].set_pixel(0, 6, Color.new(100, 72, 20))
  3723.  
  3724. # Bee right 4
  3725. @bee_bitmaps[11] = Bitmap.new(6, 6)
  3726. @bee_bitmaps[11].set_pixel(0, 0, Color.new(102, 163, 192))
  3727. @bee_bitmaps[11].set_pixel(1, 0, Color.new(255, 255, 255))
  3728. @bee_bitmaps[11].fill_rect(3, 0, 2, 1, Color.new(128, 100, 138))
  3729. @bee_bitmaps[11].set_pixel(0, 1, Color.new(255, 255, 255))
  3730. @bee_bitmaps[11].set_pixel(2, 1, Color.new(201, 201, 201))
  3731. @bee_bitmaps[11].set_pixel(3, 1, Color.new(128, 100, 138))
  3732. @bee_bitmaps[11].fill_rect(4, 1, 2, 1, Color.new(57, 57, 57))
  3733. @bee_bitmaps[11].set_pixel(2, 2, Color.new(151, 83, 25))
  3734. @bee_bitmaps[11].fill_rect(3, 2, 2, 1, Color.new(193, 119, 50))
  3735. @bee_bitmaps[11].set_pixel(1, 3, Color.new(170, 170, 170))
  3736. @bee_bitmaps[11].set_pixel(2, 3, Color.new(252, 133, 37))
  3737. @bee_bitmaps[11].set_pixel(3, 3, Color.new(151, 83, 25))
  3738. @bee_bitmaps[11].set_pixel(4, 3, Color.new(83, 46, 41))
  3739. @bee_bitmaps[11].set_pixel(1, 4, Color.new(193, 119, 50))
  3740. @bee_bitmaps[11].fill_rect(2, 4, 1, 2, Color.new(83, 46, 41))
  3741. @bee_bitmaps[11].set_pixel(3, 4, Color.new(30, 30, 30))
  3742. @bee_bitmaps[11].set_pixel(1, 5, Color.new(30, 30, 30))
  3743.  
  3744. # Bee down 1
  3745. @bee_bitmaps[12] = Bitmap.new(7, 6)
  3746. @bee_bitmaps[12].set_pixel(2, 0, Color.new(57, 57, 57))
  3747. @bee_bitmaps[12].set_pixel(4, 0, Color.new(57, 57, 57))
  3748. @bee_bitmaps[12].set_pixel(0, 1, Color.new(255, 255, 255))
  3749. @bee_bitmaps[12].set_pixel(1, 1, Color.new(170, 170, 170))
  3750. @bee_bitmaps[12].set_pixel(2, 1, Color.new(83, 46, 41))
  3751. @bee_bitmaps[12].set_pixel(3, 1, Color.new(226, 163, 69))
  3752. @bee_bitmaps[12].set_pixel(4, 1, Color.new(83, 46, 41))
  3753. @bee_bitmaps[12].set_pixel(5, 1, Color.new(170, 170, 170))
  3754. @bee_bitmaps[12].set_pixel(6, 1, Color.new(255, 255, 255))
  3755. @bee_bitmaps[12].set_pixel(1, 2, Color.new(100, 100, 100))
  3756. @bee_bitmaps[12].set_pixel(2, 2, Color.new(252, 133, 37))
  3757. @bee_bitmaps[12].set_pixel(3, 2, Color.new(83, 46, 41))
  3758. @bee_bitmaps[12].set_pixel(4, 2, Color.new(252, 133, 37))
  3759. @bee_bitmaps[12].set_pixel(5, 2, Color.new(100, 100, 100))
  3760. @bee_bitmaps[12].set_pixel(0, 3, Color.new(255, 255, 255))
  3761. @bee_bitmaps[12].set_pixel(1, 3, Color.new(71, 71, 71))
  3762. @bee_bitmaps[12].set_pixel(2, 3, Color.new(255, 216, 89))
  3763. @bee_bitmaps[12].set_pixel(3, 3, Color.new(30, 30, 30))
  3764. @bee_bitmaps[12].set_pixel(4, 3, Color.new(255, 216, 89))
  3765. @bee_bitmaps[12].set_pixel(5, 3, Color.new(71, 71, 71))
  3766. @bee_bitmaps[12].set_pixel(6, 3, Color.new(255, 255, 255))
  3767. @bee_bitmaps[12].set_pixel(2, 4, Color.new(30, 30, 30))
  3768. @bee_bitmaps[12].set_pixel(3, 4, Color.new(124, 81, 63))
  3769. @bee_bitmaps[12].set_pixel(4, 4, Color.new(30, 30, 30))
  3770. @bee_bitmaps[12].set_pixel(3, 5, Color.new(100, 72, 20))
  3771.  
  3772. # Bee down 2
  3773. @bee_bitmaps[13] = Bitmap.new(7, 6)
  3774. @bee_bitmaps[13].set_pixel(0, 0, Color.new(206, 215, 221))
  3775. @bee_bitmaps[13].set_pixel(1, 0, Color.new(170, 170, 170))
  3776. @bee_bitmaps[13].fill_rect(3, 0, 1, 2, Color.new(209, 136, 57))
  3777. @bee_bitmaps[13].set_pixel(5, 0, Color.new(170, 170, 170))
  3778. @bee_bitmaps[13].set_pixel(6, 0, Color.new(206, 215, 221))
  3779. @bee_bitmaps[13].set_pixel(0, 1, Color.new(102, 163, 192))
  3780. @bee_bitmaps[13].set_pixel(2, 1, Color.new(112, 61, 20))
  3781. @bee_bitmaps[13].set_pixel(4, 1, Color.new(112, 61, 20))
  3782. @bee_bitmaps[13].set_pixel(6, 1, Color.new(102, 163, 192))
  3783. @bee_bitmaps[13].set_pixel(0, 2, Color.new(206, 215, 221))
  3784. @bee_bitmaps[13].set_pixel(2, 2, Color.new(211, 118, 36))
  3785. @bee_bitmaps[13].set_pixel(3, 2, Color.new(188, 107, 30))
  3786. @bee_bitmaps[13].set_pixel(4, 2, Color.new(211, 118, 36))
  3787. @bee_bitmaps[13].set_pixel(6, 2, Color.new(206, 215, 221))
  3788. @bee_bitmaps[13].fill_rect(2, 3, 1, 2, Color.new(30, 30, 30))
  3789. @bee_bitmaps[13].set_pixel(3, 3, Color.new(83, 46, 41))
  3790. @bee_bitmaps[13].fill_rect(4, 3, 1, 2, Color.new(30, 30, 30))
  3791. @bee_bitmaps[13].set_pixel(3, 4, Color.new(193, 119, 50))
  3792. @bee_bitmaps[13].set_pixel(3, 5, Color.new(219, 204, 120))
  3793.  
  3794. # Bee down 3
  3795. @bee_bitmaps[14] = Bitmap.new(5, 7)
  3796. @bee_bitmaps[14].set_pixel(0, 0, Color.new(255, 255, 255))
  3797. @bee_bitmaps[14].set_pixel(4, 0, Color.new(255, 255, 255))
  3798. @bee_bitmaps[14].set_pixel(0, 1, Color.new(170, 170, 170))
  3799. @bee_bitmaps[14].set_pixel(2, 1, Color.new(255, 216, 89))
  3800. @bee_bitmaps[14].set_pixel(4, 1, Color.new(170, 170, 170))
  3801. @bee_bitmaps[14].fill_rect(1, 2, 1, 2, Color.new(151, 83, 25))
  3802. @bee_bitmaps[14].set_pixel(2, 2, Color.new(83, 46, 41))
  3803. @bee_bitmaps[14].fill_rect(3, 2, 1, 2, Color.new(151, 83, 25))
  3804. @bee_bitmaps[14].set_pixel(2, 3, Color.new(252, 133, 37))
  3805. @bee_bitmaps[14].set_pixel(0, 4, Color.new(206, 215, 221))
  3806. @bee_bitmaps[14].fill_rect(1, 4, 3, 1, Color.new(124, 81, 63))
  3807. @bee_bitmaps[14].set_pixel(4, 4, Color.new(206, 215, 221))
  3808. @bee_bitmaps[14].set_pixel(0, 5, Color.new(170, 170, 170))
  3809. @bee_bitmaps[14].set_pixel(2, 5, Color.new(193, 119, 50))
  3810. @bee_bitmaps[14].set_pixel(4, 5, Color.new(170, 170, 170))
  3811. @bee_bitmaps[14].set_pixel(2, 6, Color.new(100, 72, 20))
  3812.  
  3813. # Bee down 4
  3814. @bee_bitmaps[15] = Bitmap.new(7, 6)
  3815. @bee_bitmaps[15].set_pixel(0, 0, Color.new(206, 215, 221))
  3816. @bee_bitmaps[15].set_pixel(1, 0, Color.new(170, 170, 170))
  3817. @bee_bitmaps[15].fill_rect(3, 0, 1, 2, Color.new(209, 136, 57))
  3818. @bee_bitmaps[15].set_pixel(5, 0, Color.new(170, 170, 170))
  3819. @bee_bitmaps[15].set_pixel(6, 0, Color.new(206, 215, 221))
  3820. @bee_bitmaps[15].set_pixel(0, 1, Color.new(102, 163, 192))
  3821. @bee_bitmaps[15].set_pixel(2, 1, Color.new(112, 61, 20))
  3822. @bee_bitmaps[15].set_pixel(4, 1, Color.new(112, 61, 20))
  3823. @bee_bitmaps[15].set_pixel(6, 1, Color.new(102, 163, 192))
  3824. @bee_bitmaps[15].set_pixel(0, 2, Color.new(206, 215, 221))
  3825. @bee_bitmaps[15].set_pixel(2, 2, Color.new(211, 118, 36))
  3826. @bee_bitmaps[15].set_pixel(3, 2, Color.new(188, 107, 30))
  3827. @bee_bitmaps[15].set_pixel(4, 2, Color.new(211, 118, 36))
  3828. @bee_bitmaps[15].set_pixel(6, 2, Color.new(206, 215, 221))
  3829. @bee_bitmaps[15].fill_rect(2, 3, 1, 2, Color.new(30, 30, 30))
  3830. @bee_bitmaps[15].set_pixel(3, 3, Color.new(83, 46, 41))
  3831. @bee_bitmaps[15].fill_rect(4, 3, 1, 2, Color.new(30, 30, 30))
  3832. @bee_bitmaps[15].set_pixel(3, 4, Color.new(193, 119, 50))
  3833. @bee_bitmaps[15].set_pixel(3, 5, Color.new(219, 204, 120))
  3834. #-------------------------------------------------------------------------------
  3835. # Fish bitmap
  3836.  
  3837. fish_color1 = Color.new(114, 114, 114)
  3838. fish_color2 = Color.new(86, 86, 86)
  3839. fish_color3 = Color.new(177, 170, 170)
  3840. fish_color4 = Color.new(113, 154, 170)
  3841. fish_color5 = Color.new(143, 166, 191)
  3842. fish_color6 = Color.new(149, 175, 202)
  3843. fish_color7 = Color.new(133, 138, 132)
  3844. fish_color8 = Color.new(207, 208, 206)
  3845. fish_color9 = Color.new(160, 166, 160)
  3846. fish_color10 = Color.new(229, 229, 231)
  3847. fish_color11 = Color.new(176, 173, 184)
  3848.  
  3849. # Small fish bitmap
  3850. @fish_bitmap = Bitmap.new(19, 6)
  3851. @fish_bitmap.fill_rect(3, 0, 9, 1, fish_color1)
  3852. @fish_bitmap.set_pixel(1, 1, fish_color2)
  3853. @fish_bitmap.set_pixel(2, 1, fish_color1)
  3854. @fish_bitmap.set_pixel(3, 1, fish_color3)
  3855. @fish_bitmap.fill_rect(4, 1, 2, 1, fish_color4)
  3856. @fish_bitmap.set_pixel(6, 1, fish_color5)
  3857. @fish_bitmap.fill_rect(7, 1, 2, 1, fish_color6)
  3858. @fish_bitmap.fill_rect(9, 1, 2, 1, fish_color5)
  3859. @fish_bitmap.set_pixel(11, 1, fish_color7)
  3860. @fish_bitmap.fill_rect(12, 1, 2, 1, fish_color1)
  3861. @fish_bitmap.fill_rect(14, 1, 2, 1, fish_color2)
  3862. @fish_bitmap.set_pixel(16, 1, fish_color7)
  3863. @fish_bitmap.set_pixel(17, 1, fish_color3)
  3864. @fish_bitmap.set_pixel(18, 1, fish_color1)
  3865. @fish_bitmap.fill_rect(0, 2, 1, 2, fish_color2)
  3866. @fish_bitmap.set_pixel(1, 2, fish_color7)
  3867. @fish_bitmap.set_pixel(2, 2, fish_color3)
  3868. @fish_bitmap.fill_rect(3, 2, 1, 2, fish_color8)
  3869. @fish_bitmap.fill_rect(4, 2, 1, 2, fish_color1)
  3870. @fish_bitmap.set_pixel(5, 2, fish_color9)
  3871. @fish_bitmap.fill_rect(6, 2, 2, 1, fish_color3)
  3872. @fish_bitmap.fill_rect(8, 2, 4, 1, fish_color8)
  3873. @fish_bitmap.fill_rect(12, 2, 3, 1, fish_color3)
  3874. @fish_bitmap.set_pixel(15, 2, fish_color7)
  3875. @fish_bitmap.set_pixel(16, 2, fish_color1)
  3876. @fish_bitmap.set_pixel(17, 2, fish_color2)
  3877. @fish_bitmap.set_pixel(1, 3, fish_color3)
  3878. @fish_bitmap.set_pixel(2, 3, fish_color8)
  3879. @fish_bitmap.set_pixel(5, 3, fish_color7)
  3880. @fish_bitmap.fill_rect(6, 3, 4, 1, fish_color8)
  3881. @fish_bitmap.fill_rect(10, 3, 3, 1, fish_color10)
  3882. @fish_bitmap.fill_rect(13, 3, 2, 1, fish_color8)
  3883. @fish_bitmap.set_pixel(15, 3, fish_color3)
  3884. @fish_bitmap.set_pixel(16, 3, fish_color7)
  3885. @fish_bitmap.set_pixel(17, 3, fish_color1)
  3886. @fish_bitmap.fill_rect(1, 4, 3, 1, fish_color2)
  3887. @fish_bitmap.set_pixel(4, 4, fish_color3)
  3888. @fish_bitmap.set_pixel(5, 4, fish_color1)
  3889. @fish_bitmap.fill_rect(6, 4, 3, 1, fish_color3)
  3890. @fish_bitmap.set_pixel(9, 4, fish_color9)
  3891. @fish_bitmap.fill_rect(10, 4, 2, 1, fish_color7)
  3892. @fish_bitmap.fill_rect(12, 4, 2, 1, fish_color1)
  3893. @fish_bitmap.fill_rect(14, 4, 2, 1, fish_color2)
  3894. @fish_bitmap.set_pixel(16, 4, fish_color1)
  3895. @fish_bitmap.set_pixel(17, 4, fish_color3)
  3896. @fish_bitmap.set_pixel(18, 4, fish_color7)
  3897. @fish_bitmap.set_pixel(3, 5, fish_color11)
  3898. @fish_bitmap.fill_rect(4, 5, 2, 1, fish_color2)
  3899. @fish_bitmap.fill_rect(6, 5, 6, 1, fish_color1)
  3900. #-------------------------------------------------------------------------------
  3901. # Raven bitmaps
  3902.  
  3903. @raven_bitmaps = []
  3904. raven_color1 = Color.new(57, 57, 57)
  3905. raven_color2 = Color.new(71, 71, 71)
  3906. raven_color3 = Color.new(30, 30, 30)
  3907. raven_color4 = Color.new(84, 83, 80)
  3908. raven_color5 = Color.new(100, 100, 100)
  3909. raven_color6 = Color.new(136, 136, 136)
  3910. raven_color7 = Color.new(76, 80, 80)
  3911.  
  3912. # Raven left 1
  3913. @raven_bitmaps[0] = Bitmap.new(14, 11)
  3914. @raven_bitmaps[0].fill_rect(7, 0, 3, 1, raven_color1)
  3915. @raven_bitmaps[0].fill_rect(5, 1, 1, 3, raven_color1)
  3916. @raven_bitmaps[0].fill_rect(6, 1, 2, 2, raven_color2)
  3917. @raven_bitmaps[0].set_pixel(8, 1, raven_color1)
  3918. @raven_bitmaps[0].fill_rect(9, 1, 1, 2, raven_color2)
  3919. @raven_bitmaps[0].fill_rect(10, 1, 1, 2, raven_color3)
  3920. @raven_bitmaps[0].fill_rect(8, 2, 1, 2, raven_color2)
  3921. @raven_bitmaps[0].fill_rect(1, 3, 1, 2, raven_color1)
  3922. @raven_bitmaps[0].fill_rect(2, 3, 2, 2, raven_color4)
  3923. @raven_bitmaps[0].set_pixel(4, 3, raven_color2)
  3924. @raven_bitmaps[0].set_pixel(6, 3, raven_color1)
  3925. @raven_bitmaps[0].set_pixel(7, 3, raven_color2)
  3926. @raven_bitmaps[0].set_pixel(9, 3, raven_color1)
  3927. @raven_bitmaps[0].set_pixel(0, 4, raven_color5)
  3928. @raven_bitmaps[0].fill_rect(4, 4, 2, 1, raven_color4)
  3929. @raven_bitmaps[0].set_pixel(6, 4, raven_color2)
  3930. @raven_bitmaps[0].fill_rect(7, 4, 3, 2, raven_color4)
  3931. @raven_bitmaps[0].fill_rect(10, 4, 1, 2, raven_color1)
  3932. @raven_bitmaps[0].fill_rect(11, 4, 2, 1, raven_color3)
  3933. @raven_bitmaps[0].set_pixel(0, 5, raven_color1)
  3934. @raven_bitmaps[0].fill_rect(1, 5, 2, 1, raven_color3)
  3935. @raven_bitmaps[0].set_pixel(3, 5, raven_color1)
  3936. @raven_bitmaps[0].fill_rect(4, 5, 2, 1, raven_color2)
  3937. @raven_bitmaps[0].set_pixel(6, 5, raven_color1)
  3938. @raven_bitmaps[0].fill_rect(11, 5, 1, 2, raven_color4)
  3939. @raven_bitmaps[0].fill_rect(12, 5, 1, 2, raven_color1)
  3940. @raven_bitmaps[0].set_pixel(13, 5, raven_color3)
  3941. @raven_bitmaps[0].set_pixel(4, 6, raven_color1)
  3942. @raven_bitmaps[0].set_pixel(5, 6, raven_color2)
  3943. @raven_bitmaps[0].fill_rect(6, 6, 3, 1, raven_color4)
  3944. @raven_bitmaps[0].set_pixel(9, 6, raven_color1)
  3945. @raven_bitmaps[0].fill_rect(10, 6, 1, 2, raven_color3)
  3946. @raven_bitmaps[0].set_pixel(13, 6, raven_color1)
  3947. @raven_bitmaps[0].set_pixel(4, 7, raven_color3)
  3948. @raven_bitmaps[0].fill_rect(5, 7, 3, 1, raven_color4)
  3949. @raven_bitmaps[0].set_pixel(8, 7, raven_color3)
  3950. @raven_bitmaps[0].set_pixel(9, 7, raven_color2)
  3951. @raven_bitmaps[0].set_pixel(11, 7, raven_color3)
  3952. @raven_bitmaps[0].set_pixel(12, 7, raven_color2)
  3953. @raven_bitmaps[0].set_pixel(13, 7, raven_color3)
  3954. @raven_bitmaps[0].set_pixel(5, 8, raven_color3)
  3955. @raven_bitmaps[0].set_pixel(6, 8, raven_color4)
  3956. @raven_bitmaps[0].set_pixel(7, 8, raven_color3)
  3957. @raven_bitmaps[0].set_pixel(8, 8, raven_color2)
  3958. @raven_bitmaps[0].set_pixel(9, 8, raven_color3)
  3959. @raven_bitmaps[0].set_pixel(11, 8, raven_color1)
  3960. @raven_bitmaps[0].set_pixel(6, 9, raven_color3)
  3961. @raven_bitmaps[0].set_pixel(7, 9, raven_color1)
  3962. @raven_bitmaps[0].fill_rect(8, 9, 1, 2, raven_color3)
  3963. @raven_bitmaps[0].set_pixel(7, 10, raven_color3)
  3964.  
  3965. # Raven left 2
  3966. @raven_bitmaps[1] = Bitmap.new(15, 12)
  3967. @raven_bitmaps[1].fill_rect(5, 0, 2, 1, raven_color2)
  3968. @raven_bitmaps[1].set_pixel(7, 0, raven_color1)
  3969. @raven_bitmaps[1].fill_rect(2, 1, 3, 1, raven_color1)
  3970. @raven_bitmaps[1].set_pixel(5, 1, raven_color3)
  3971. @raven_bitmaps[1].fill_rect(6, 1, 3, 1, raven_color2)
  3972. @raven_bitmaps[1].fill_rect(1, 2, 5, 1, raven_color4)
  3973. @raven_bitmaps[1].fill_rect(6, 2, 2, 1, raven_color2)
  3974. @raven_bitmaps[1].fill_rect(8, 2, 2, 1, raven_color1)
  3975. @raven_bitmaps[1].set_pixel(0, 3, raven_color6)
  3976. @raven_bitmaps[1].set_pixel(1, 3, raven_color1)
  3977. @raven_bitmaps[1].set_pixel(2, 3, raven_color4)
  3978. @raven_bitmaps[1].set_pixel(3, 3, raven_color1)
  3979. @raven_bitmaps[1].fill_rect(4, 3, 2, 1, raven_color4)
  3980. @raven_bitmaps[1].set_pixel(6, 3, raven_color1)
  3981. @raven_bitmaps[1].fill_rect(7, 3, 3, 1, raven_color4)
  3982. @raven_bitmaps[1].fill_rect(10, 3, 2, 1, raven_color1)
  3983. @raven_bitmaps[1].fill_rect(12, 3, 2, 1, raven_color3)
  3984. @raven_bitmaps[1].set_pixel(3, 4, raven_color3)
  3985. @raven_bitmaps[1].set_pixel(4, 4, raven_color1)
  3986. @raven_bitmaps[1].set_pixel(5, 4, raven_color3)
  3987. @raven_bitmaps[1].set_pixel(6, 4, raven_color2)
  3988. @raven_bitmaps[1].fill_rect(7, 4, 2, 1, raven_color4)
  3989. @raven_bitmaps[1].fill_rect(9, 4, 2, 1, raven_color2)
  3990. @raven_bitmaps[1].set_pixel(11, 4, raven_color1)
  3991. @raven_bitmaps[1].fill_rect(12, 4, 2, 1, raven_color4)
  3992. @raven_bitmaps[1].set_pixel(14, 4, raven_color3)
  3993. @raven_bitmaps[1].set_pixel(5, 5, raven_color1)
  3994. @raven_bitmaps[1].fill_rect(6, 5, 2, 1, raven_color4)
  3995. @raven_bitmaps[1].set_pixel(8, 5, raven_color3)
  3996. @raven_bitmaps[1].set_pixel(9, 5, raven_color2)
  3997. @raven_bitmaps[1].fill_rect(10, 5, 1, 2, raven_color1)
  3998. @raven_bitmaps[1].set_pixel(11, 5, raven_color3)
  3999. @raven_bitmaps[1].set_pixel(12, 5, raven_color4)
  4000. @raven_bitmaps[1].set_pixel(13, 5, raven_color3)
  4001. @raven_bitmaps[1].set_pixel(4, 6, raven_color2)
  4002. @raven_bitmaps[1].fill_rect(5, 6, 2, 2, raven_color4)
  4003. @raven_bitmaps[1].set_pixel(7, 6, raven_color1)
  4004. @raven_bitmaps[1].set_pixel(8, 6, raven_color2)
  4005. @raven_bitmaps[1].set_pixel(9, 6, raven_color1)
  4006. @raven_bitmaps[1].set_pixel(12, 6, raven_color3)
  4007. @raven_bitmaps[1].set_pixel(13, 6, raven_color1)
  4008. @raven_bitmaps[1].set_pixel(4, 7, raven_color3)
  4009. @raven_bitmaps[1].set_pixel(7, 7, raven_color3)
  4010. @raven_bitmaps[1].set_pixel(8, 7, raven_color1)
  4011. @raven_bitmaps[1].set_pixel(11, 7, raven_color1)
  4012. @raven_bitmaps[1].set_pixel(5, 8, raven_color4)
  4013. @raven_bitmaps[1].set_pixel(6, 8, raven_color1)
  4014. @raven_bitmaps[1].set_pixel(7, 8, raven_color4)
  4015. @raven_bitmaps[1].fill_rect(8, 8, 1, 2, raven_color3)
  4016. @raven_bitmaps[1].set_pixel(5, 9, raven_color3)
  4017. @raven_bitmaps[1].set_pixel(6, 9, raven_color4)
  4018. @raven_bitmaps[1].set_pixel(7, 9, raven_color3)
  4019. @raven_bitmaps[1].set_pixel(6, 10, raven_color2)
  4020. @raven_bitmaps[1].set_pixel(7, 10, raven_color1)
  4021. @raven_bitmaps[1].fill_rect(6, 11, 2, 1, raven_color3)
  4022.  
  4023. # Raven left 3
  4024. @raven_bitmaps[2] = Bitmap.new(14, 13)
  4025. @raven_bitmaps[2].set_pixel(3, 0, raven_color2)
  4026. @raven_bitmaps[2].set_pixel(4, 0, raven_color1)
  4027. @raven_bitmaps[2].fill_rect(6, 0, 3, 1, raven_color1)
  4028. @raven_bitmaps[2].set_pixel(1, 1, raven_color1)
  4029. @raven_bitmaps[2].fill_rect(2, 1, 4, 1, raven_color4)
  4030. @raven_bitmaps[2].set_pixel(6, 1, raven_color2)
  4031. @raven_bitmaps[2].fill_rect(7, 1, 3, 1, raven_color1)
  4032. @raven_bitmaps[2].set_pixel(10, 1, raven_color3)
  4033. @raven_bitmaps[2].fill_rect(0, 2, 2, 1, raven_color5)
  4034. @raven_bitmaps[2].set_pixel(2, 2, raven_color2)
  4035. @raven_bitmaps[2].fill_rect(3, 2, 8, 1, raven_color4)
  4036. @raven_bitmaps[2].set_pixel(11, 2, raven_color3)
  4037. @raven_bitmaps[2].set_pixel(4, 3, raven_color1)
  4038. @raven_bitmaps[2].fill_rect(5, 3, 1, 2, raven_color3)
  4039. @raven_bitmaps[2].fill_rect(6, 3, 3, 1, raven_color4)
  4040. @raven_bitmaps[2].fill_rect(9, 3, 3, 1, raven_color2)
  4041. @raven_bitmaps[2].set_pixel(12, 3, raven_color3)
  4042. @raven_bitmaps[2].fill_rect(6, 4, 2, 3, raven_color4)
  4043. @raven_bitmaps[2].fill_rect(8, 4, 1, 4, raven_color1)
  4044. @raven_bitmaps[2].fill_rect(9, 4, 1, 3, raven_color3)
  4045. @raven_bitmaps[2].fill_rect(10, 4, 1, 2, raven_color1)
  4046. @raven_bitmaps[2].set_pixel(11, 4, raven_color2)
  4047. @raven_bitmaps[2].fill_rect(12, 4, 2, 1, raven_color1)
  4048. @raven_bitmaps[2].fill_rect(5, 5, 1, 3, raven_color4)
  4049. @raven_bitmaps[2].set_pixel(11, 5, raven_color3)
  4050. @raven_bitmaps[2].set_pixel(12, 5, raven_color2)
  4051. @raven_bitmaps[2].set_pixel(13, 5, raven_color3)
  4052. @raven_bitmaps[2].set_pixel(4, 6, raven_color1)
  4053. @raven_bitmaps[2].set_pixel(11, 6, raven_color1)
  4054. @raven_bitmaps[2].set_pixel(12, 6, raven_color3)
  4055. @raven_bitmaps[2].set_pixel(3, 7, raven_color3)
  4056. @raven_bitmaps[2].set_pixel(4, 7, raven_color4)
  4057. @raven_bitmaps[2].fill_rect(6, 7, 1, 2, raven_color4)
  4058. @raven_bitmaps[2].fill_rect(7, 7, 1, 2, raven_color2)
  4059. @raven_bitmaps[2].fill_rect(4, 8, 1, 3, raven_color2)
  4060. @raven_bitmaps[2].fill_rect(5, 8, 1, 2, raven_color1)
  4061. @raven_bitmaps[2].set_pixel(6, 9, raven_color2)
  4062. @raven_bitmaps[2].set_pixel(7, 9, raven_color1)
  4063. @raven_bitmaps[2].set_pixel(3, 10, raven_color3)
  4064. @raven_bitmaps[2].set_pixel(5, 10, raven_color3)
  4065. @raven_bitmaps[2].set_pixel(6, 10, raven_color1)
  4066. @raven_bitmaps[2].fill_rect(3, 11, 2, 1, raven_color1)
  4067. @raven_bitmaps[2].set_pixel(6, 11, raven_color3)
  4068. @raven_bitmaps[2].set_pixel(3, 12, raven_color3)
  4069.  
  4070. # Raven left 4
  4071. @raven_bitmaps[3] = Bitmap.new(14, 13)
  4072. @raven_bitmaps[3].fill_rect(10, 0, 1, 2, raven_color1)
  4073. @raven_bitmaps[3].fill_rect(7, 1, 2, 1, raven_color1)
  4074. @raven_bitmaps[3].fill_rect(9, 1, 1, 3, raven_color2)
  4075. @raven_bitmaps[3].set_pixel(11, 1, raven_color1)
  4076. @raven_bitmaps[3].fill_rect(5, 2, 1, 2, raven_color1)
  4077. @raven_bitmaps[3].fill_rect(6, 2, 3, 2, raven_color2)
  4078. @raven_bitmaps[3].fill_rect(10, 2, 1, 2, raven_color2)
  4079. @raven_bitmaps[3].set_pixel(11, 2, raven_color3)
  4080. @raven_bitmaps[3].set_pixel(4, 3, raven_color3)
  4081. @raven_bitmaps[3].set_pixel(5, 4, raven_color3)
  4082. @raven_bitmaps[3].fill_rect(6, 4, 4, 1, raven_color1)
  4083. @raven_bitmaps[3].set_pixel(10, 4, raven_color3)
  4084. @raven_bitmaps[3].set_pixel(2, 5, raven_color2)
  4085. @raven_bitmaps[3].set_pixel(3, 5, raven_color1)
  4086. @raven_bitmaps[3].set_pixel(4, 5, raven_color3)
  4087. @raven_bitmaps[3].fill_rect(5, 5, 3, 1, raven_color2)
  4088. @raven_bitmaps[3].set_pixel(8, 5, raven_color1)
  4089. @raven_bitmaps[3].set_pixel(9, 5, raven_color3)
  4090. @raven_bitmaps[3].fill_rect(1, 6, 4, 1, raven_color4)
  4091. @raven_bitmaps[3].set_pixel(5, 6, raven_color3)
  4092. @raven_bitmaps[3].fill_rect(6, 6, 4, 1, raven_color2)
  4093. @raven_bitmaps[3].set_pixel(10, 6, raven_color3)
  4094. @raven_bitmaps[3].set_pixel(0, 7, raven_color6)
  4095. @raven_bitmaps[3].set_pixel(1, 7, raven_color1)
  4096. @raven_bitmaps[3].set_pixel(2, 7, raven_color2)
  4097. @raven_bitmaps[3].fill_rect(3, 7, 2, 1, raven_color4)
  4098. @raven_bitmaps[3].set_pixel(5, 7, raven_color1)
  4099. @raven_bitmaps[3].fill_rect(6, 7, 1, 3, raven_color3)
  4100. @raven_bitmaps[3].fill_rect(7, 7, 2, 1, raven_color2)
  4101. @raven_bitmaps[3].set_pixel(9, 7, raven_color3)
  4102. @raven_bitmaps[3].set_pixel(10, 7, raven_color1)
  4103. @raven_bitmaps[3].set_pixel(11, 7, raven_color2)
  4104. @raven_bitmaps[3].set_pixel(12, 7, raven_color3)
  4105. @raven_bitmaps[3].set_pixel(3, 8, raven_color3)
  4106. @raven_bitmaps[3].set_pixel(4, 8, raven_color1)
  4107. @raven_bitmaps[3].fill_rect(5, 8, 1, 2, raven_color3)
  4108. @raven_bitmaps[3].set_pixel(7, 8, raven_color2)
  4109. @raven_bitmaps[3].set_pixel(8, 8, raven_color3)
  4110. @raven_bitmaps[3].set_pixel(9, 8, raven_color2)
  4111. @raven_bitmaps[3].fill_rect(10, 8, 1, 3, raven_color3)
  4112. @raven_bitmaps[3].fill_rect(11, 8, 1, 2, raven_color1)
  4113. @raven_bitmaps[3].fill_rect(12, 8, 1, 2, raven_color2)
  4114. @raven_bitmaps[3].set_pixel(13, 8, raven_color3)
  4115. @raven_bitmaps[3].set_pixel(7, 9, raven_color1)
  4116. @raven_bitmaps[3].fill_rect(8, 9, 1, 3, raven_color2)
  4117. @raven_bitmaps[3].fill_rect(9, 9, 1, 2, raven_color1)
  4118. @raven_bitmaps[3].fill_rect(7, 10, 1, 2, raven_color3)
  4119. @raven_bitmaps[3].set_pixel(9, 11, raven_color3)
  4120. @raven_bitmaps[3].set_pixel(8, 12, raven_color3)
  4121.  
  4122. # Raven up 1
  4123. @raven_bitmaps[4] = Bitmap.new(20, 10)
  4124. @raven_bitmaps[4].fill_rect(9, 0, 2, 1, raven_color3)
  4125. @raven_bitmaps[4].fill_rect(9, 1, 2, 1, raven_color4)
  4126. @raven_bitmaps[4].fill_rect(1, 2, 2, 1, raven_color3)
  4127. @raven_bitmaps[4].set_pixel(3, 2, raven_color1)
  4128. @raven_bitmaps[4].set_pixel(8, 2, raven_color3)
  4129. @raven_bitmaps[4].fill_rect(9, 2, 2, 1, raven_color1)
  4130. @raven_bitmaps[4].set_pixel(11, 2, raven_color3)
  4131. @raven_bitmaps[4].set_pixel(16, 2, raven_color1)
  4132. @raven_bitmaps[4].fill_rect(17, 2, 2, 1, raven_color3)
  4133. @raven_bitmaps[4].fill_rect(0, 3, 1, 2, raven_color3)
  4134. @raven_bitmaps[4].set_pixel(1, 3, raven_color1)
  4135. @raven_bitmaps[4].fill_rect(2, 3, 3, 1, raven_color4)
  4136. @raven_bitmaps[4].set_pixel(5, 3, raven_color1)
  4137. @raven_bitmaps[4].fill_rect(6, 3, 2, 1, raven_color3)
  4138. @raven_bitmaps[4].set_pixel(8, 3, raven_color1)
  4139. @raven_bitmaps[4].fill_rect(9, 3, 2, 3, raven_color4)
  4140. @raven_bitmaps[4].set_pixel(11, 3, raven_color1)
  4141. @raven_bitmaps[4].fill_rect(12, 3, 2, 1, raven_color3)
  4142. @raven_bitmaps[4].set_pixel(14, 3, raven_color1)
  4143. @raven_bitmaps[4].fill_rect(15, 3, 3, 1, raven_color4)
  4144. @raven_bitmaps[4].set_pixel(18, 3, raven_color1)
  4145. @raven_bitmaps[4].fill_rect(19, 3, 1, 2, raven_color3)
  4146. @raven_bitmaps[4].set_pixel(1, 4, raven_color2)
  4147. @raven_bitmaps[4].set_pixel(2, 4, raven_color3)
  4148. @raven_bitmaps[4].set_pixel(3, 4, raven_color4)
  4149. @raven_bitmaps[4].set_pixel(4, 4, raven_color1)
  4150. @raven_bitmaps[4].fill_rect(5, 4, 2, 1, raven_color4)
  4151. @raven_bitmaps[4].fill_rect(7, 4, 2, 1, raven_color2)
  4152. @raven_bitmaps[4].fill_rect(11, 4, 2, 1, raven_color2)
  4153. @raven_bitmaps[4].fill_rect(13, 4, 2, 1, raven_color4)
  4154. @raven_bitmaps[4].set_pixel(15, 4, raven_color1)
  4155. @raven_bitmaps[4].set_pixel(16, 4, raven_color4)
  4156. @raven_bitmaps[4].set_pixel(17, 4, raven_color3)
  4157. @raven_bitmaps[4].set_pixel(18, 4, raven_color2)
  4158. @raven_bitmaps[4].set_pixel(2, 5, raven_color2)
  4159. @raven_bitmaps[4].set_pixel(3, 5, raven_color3)
  4160. @raven_bitmaps[4].set_pixel(4, 5, raven_color4)
  4161. @raven_bitmaps[4].fill_rect(5, 5, 2, 1, raven_color1)
  4162. @raven_bitmaps[4].set_pixel(7, 5, raven_color2)
  4163. @raven_bitmaps[4].set_pixel(8, 5, raven_color1)
  4164. @raven_bitmaps[4].set_pixel(11, 5, raven_color1)
  4165. @raven_bitmaps[4].set_pixel(12, 5, raven_color2)
  4166. @raven_bitmaps[4].fill_rect(13, 5, 2, 1, raven_color1)
  4167. @raven_bitmaps[4].set_pixel(15, 5, raven_color4)
  4168. @raven_bitmaps[4].set_pixel(16, 5, raven_color3)
  4169. @raven_bitmaps[4].set_pixel(17, 5, raven_color2)
  4170. @raven_bitmaps[4].set_pixel(4, 6, raven_color3)
  4171. @raven_bitmaps[4].set_pixel(5, 6, raven_color1)
  4172. @raven_bitmaps[4].fill_rect(6, 6, 3, 1, raven_color3)
  4173. @raven_bitmaps[4].fill_rect(9, 6, 2, 2, raven_color2)
  4174. @raven_bitmaps[4].fill_rect(11, 6, 3, 1, raven_color3)
  4175. @raven_bitmaps[4].set_pixel(14, 6, raven_color1)
  4176. @raven_bitmaps[4].set_pixel(15, 6, raven_color3)
  4177. @raven_bitmaps[4].set_pixel(8, 7, raven_color3)
  4178. @raven_bitmaps[4].set_pixel(11, 7, raven_color3)
  4179. @raven_bitmaps[4].set_pixel(8, 8, raven_color2)
  4180. @raven_bitmaps[4].fill_rect(9, 8, 2, 1, raven_color4)
  4181. @raven_bitmaps[4].set_pixel(11, 8, raven_color2)
  4182. @raven_bitmaps[4].set_pixel(8, 9, raven_color3)
  4183. @raven_bitmaps[4].fill_rect(9, 9, 2, 1, raven_color2)
  4184. @raven_bitmaps[4].set_pixel(11, 9, raven_color3)
  4185.  
  4186. # Raven up 2
  4187. @raven_bitmaps[5] = Bitmap.new(16, 10)
  4188. @raven_bitmaps[5].fill_rect(7, 0, 2, 3, raven_color2)
  4189. @raven_bitmaps[5].fill_rect(6, 1, 1, 2, raven_color3)
  4190. @raven_bitmaps[5].fill_rect(9, 1, 1, 2, raven_color3)
  4191. @raven_bitmaps[5].set_pixel(5, 3, raven_color1)
  4192. @raven_bitmaps[5].set_pixel(6, 3, raven_color2)
  4193. @raven_bitmaps[5].fill_rect(7, 3, 2, 3, raven_color4)
  4194. @raven_bitmaps[5].set_pixel(9, 3, raven_color2)
  4195. @raven_bitmaps[5].set_pixel(10, 3, raven_color1)
  4196. @raven_bitmaps[5].set_pixel(3, 4, raven_color3)
  4197. @raven_bitmaps[5].set_pixel(4, 4, raven_color1)
  4198. @raven_bitmaps[5].fill_rect(5, 4, 1, 2, raven_color2)
  4199. @raven_bitmaps[5].set_pixel(6, 4, raven_color1)
  4200. @raven_bitmaps[5].set_pixel(9, 4, raven_color1)
  4201. @raven_bitmaps[5].fill_rect(10, 4, 1, 2, raven_color2)
  4202. @raven_bitmaps[5].set_pixel(11, 4, raven_color1)
  4203. @raven_bitmaps[5].set_pixel(12, 4, raven_color3)
  4204. @raven_bitmaps[5].set_pixel(2, 5, raven_color3)
  4205. @raven_bitmaps[5].fill_rect(3, 5, 2, 1, raven_color2)
  4206. @raven_bitmaps[5].fill_rect(6, 5, 1, 2, raven_color3)
  4207. @raven_bitmaps[5].fill_rect(9, 5, 1, 2, raven_color3)
  4208. @raven_bitmaps[5].fill_rect(11, 5, 2, 1, raven_color2)
  4209. @raven_bitmaps[5].set_pixel(13, 5, raven_color3)
  4210. @raven_bitmaps[5].set_pixel(1, 6, raven_color3)
  4211. @raven_bitmaps[5].fill_rect(2, 6, 1, 2, raven_color2)
  4212. @raven_bitmaps[5].set_pixel(3, 6, raven_color1)
  4213. @raven_bitmaps[5].set_pixel(4, 6, raven_color2)
  4214. @raven_bitmaps[5].set_pixel(5, 6, raven_color1)
  4215. @raven_bitmaps[5].fill_rect(7, 6, 2, 1, raven_color1)
  4216. @raven_bitmaps[5].set_pixel(10, 6, raven_color1)
  4217. @raven_bitmaps[5].set_pixel(11, 6, raven_color2)
  4218. @raven_bitmaps[5].set_pixel(12, 6, raven_color1)
  4219. @raven_bitmaps[5].fill_rect(13, 6, 1, 2, raven_color2)
  4220. @raven_bitmaps[5].set_pixel(14, 6, raven_color3)
  4221. @raven_bitmaps[5].fill_rect(0, 7, 1, 2, raven_color3)
  4222. @raven_bitmaps[5].set_pixel(1, 7, raven_color2)
  4223. @raven_bitmaps[5].set_pixel(3, 7, raven_color2)
  4224. @raven_bitmaps[5].fill_rect(4, 7, 2, 1, raven_color3)
  4225. @raven_bitmaps[5].fill_rect(6, 7, 1, 2, raven_color1)
  4226. @raven_bitmaps[5].fill_rect(7, 7, 2, 2, raven_color2)
  4227. @raven_bitmaps[5].fill_rect(9, 7, 1, 2, raven_color1)
  4228. @raven_bitmaps[5].fill_rect(10, 7, 2, 2, raven_color3)
  4229. @raven_bitmaps[5].set_pixel(12, 7, raven_color2)
  4230. @raven_bitmaps[5].set_pixel(14, 7, raven_color2)
  4231. @raven_bitmaps[5].fill_rect(15, 7, 1, 2, raven_color3)
  4232. @raven_bitmaps[5].fill_rect(1, 8, 2, 1, raven_color3)
  4233. @raven_bitmaps[5].set_pixel(3, 8, raven_color1)
  4234. @raven_bitmaps[5].set_pixel(4, 8, raven_color3)
  4235. @raven_bitmaps[5].set_pixel(12, 8, raven_color1)
  4236. @raven_bitmaps[5].fill_rect(13, 8, 2, 1, raven_color3)
  4237. @raven_bitmaps[5].set_pixel(2, 9, raven_color3)
  4238. @raven_bitmaps[5].fill_rect(7, 9, 2, 1, raven_color3)
  4239. @raven_bitmaps[5].set_pixel(13, 9, raven_color3)
  4240.  
  4241. # Raven up 3
  4242. @raven_bitmaps[6] = Bitmap.new(16, 9)
  4243. @raven_bitmaps[6].fill_rect(7, 0, 2, 1, raven_color1)
  4244. @raven_bitmaps[6].set_pixel(3, 1, raven_color3)
  4245. @raven_bitmaps[6].fill_rect(7, 1, 2, 5, raven_color4)
  4246. @raven_bitmaps[6].set_pixel(12, 1, raven_color3)
  4247. @raven_bitmaps[6].fill_rect(2, 2, 1, 2, raven_color3)
  4248. @raven_bitmaps[6].fill_rect(3, 2, 2, 3, raven_color2)
  4249. @raven_bitmaps[6].fill_rect(5, 2, 2, 1, raven_color3)
  4250. @raven_bitmaps[6].fill_rect(9, 2, 2, 1, raven_color3)
  4251. @raven_bitmaps[6].fill_rect(11, 2, 2, 3, raven_color2)
  4252. @raven_bitmaps[6].fill_rect(13, 2, 1, 2, raven_color3)
  4253. @raven_bitmaps[6].set_pixel(5, 3, raven_color1)
  4254. @raven_bitmaps[6].set_pixel(6, 3, raven_color2)
  4255. @raven_bitmaps[6].set_pixel(9, 3, raven_color2)
  4256. @raven_bitmaps[6].set_pixel(10, 3, raven_color1)
  4257. @raven_bitmaps[6].set_pixel(2, 4, raven_color1)
  4258. @raven_bitmaps[6].set_pixel(5, 4, raven_color3)
  4259. @raven_bitmaps[6].set_pixel(6, 4, raven_color1)
  4260. @raven_bitmaps[6].set_pixel(9, 4, raven_color1)
  4261. @raven_bitmaps[6].set_pixel(10, 4, raven_color3)
  4262. @raven_bitmaps[6].set_pixel(13, 4, raven_color1)
  4263. @raven_bitmaps[6].fill_rect(1, 5, 2, 1, raven_color3)
  4264. @raven_bitmaps[6].fill_rect(3, 5, 2, 1, raven_color1)
  4265. @raven_bitmaps[6].fill_rect(6, 5, 1, 2, raven_color3)
  4266. @raven_bitmaps[6].fill_rect(9, 5, 1, 2, raven_color3)
  4267. @raven_bitmaps[6].fill_rect(11, 5, 2, 1, raven_color1)
  4268. @raven_bitmaps[6].fill_rect(13, 5, 2, 1, raven_color3)
  4269. @raven_bitmaps[6].fill_rect(0, 6, 1, 2, raven_color3)
  4270. @raven_bitmaps[6].set_pixel(1, 6, raven_color1)
  4271. @raven_bitmaps[6].fill_rect(2, 6, 2, 1, raven_color3)
  4272. @raven_bitmaps[6].fill_rect(7, 6, 2, 1, raven_color2)
  4273. @raven_bitmaps[6].fill_rect(12, 6, 2, 1, raven_color3)
  4274. @raven_bitmaps[6].set_pixel(14, 6, raven_color1)
  4275. @raven_bitmaps[6].fill_rect(15, 6, 1, 2, raven_color3)
  4276. @raven_bitmaps[6].set_pixel(6, 7, raven_color2)
  4277. @raven_bitmaps[6].fill_rect(7, 7, 2, 1, raven_color4)
  4278. @raven_bitmaps[6].set_pixel(9, 7, raven_color2)
  4279. @raven_bitmaps[6].set_pixel(6, 8, raven_color3)
  4280. @raven_bitmaps[6].fill_rect(7, 8, 2, 1, raven_color2)
  4281. @raven_bitmaps[6].set_pixel(9, 8, raven_color3)
  4282.  
  4283. # Raven up 4
  4284. @raven_bitmaps[7] = Bitmap.new(16, 14)
  4285. @raven_bitmaps[7].set_pixel(0, 0, raven_color1)
  4286. @raven_bitmaps[7].set_pixel(1, 0, raven_color3)
  4287. @raven_bitmaps[7].set_pixel(0, 1, raven_color3)
  4288. @raven_bitmaps[7].set_pixel(1, 1, raven_color2)
  4289. @raven_bitmaps[7].set_pixel(2, 1, raven_color3)
  4290. @raven_bitmaps[7].fill_rect(14, 1, 1, 2, raven_color2)
  4291. @raven_bitmaps[7].set_pixel(15, 1, raven_color1)
  4292. @raven_bitmaps[7].set_pixel(1, 2, raven_color3)
  4293. @raven_bitmaps[7].set_pixel(2, 2, raven_color2)
  4294. @raven_bitmaps[7].fill_rect(3, 2, 1, 2, raven_color1)
  4295. @raven_bitmaps[7].set_pixel(4, 2, raven_color3)
  4296. @raven_bitmaps[7].set_pixel(12, 2, raven_color3)
  4297. @raven_bitmaps[7].fill_rect(13, 2, 1, 2, raven_color1)
  4298. @raven_bitmaps[7].set_pixel(0, 3, raven_color3)
  4299. @raven_bitmaps[7].set_pixel(1, 3, raven_color1)
  4300. @raven_bitmaps[7].set_pixel(2, 3, raven_color3)
  4301. @raven_bitmaps[7].fill_rect(4, 3, 1, 2, raven_color2)
  4302. @raven_bitmaps[7].fill_rect(5, 3, 1, 2, raven_color3)
  4303. @raven_bitmaps[7].set_pixel(11, 3, raven_color1)
  4304. @raven_bitmaps[7].fill_rect(12, 3, 1, 2, raven_color2)
  4305. @raven_bitmaps[7].fill_rect(14, 3, 2, 1, raven_color3)
  4306. @raven_bitmaps[7].set_pixel(1, 4, raven_color3)
  4307. @raven_bitmaps[7].fill_rect(2, 4, 2, 2, raven_color2)
  4308. @raven_bitmaps[7].fill_rect(7, 4, 2, 1, raven_color3)
  4309. @raven_bitmaps[7].set_pixel(10, 4, raven_color3)
  4310. @raven_bitmaps[7].fill_rect(11, 4, 1, 2, raven_color2)
  4311. @raven_bitmaps[7].fill_rect(13, 4, 2, 1, raven_color2)
  4312. @raven_bitmaps[7].set_pixel(15, 4, raven_color3)
  4313. @raven_bitmaps[7].set_pixel(1, 5, raven_color1)
  4314. @raven_bitmaps[7].fill_rect(4, 5, 1, 3, raven_color1)
  4315. @raven_bitmaps[7].fill_rect(6, 5, 1, 2, raven_color3)
  4316. @raven_bitmaps[7].fill_rect(7, 5, 2, 2, raven_color2)
  4317. @raven_bitmaps[7].fill_rect(9, 5, 1, 2, raven_color3)
  4318. @raven_bitmaps[7].fill_rect(12, 5, 1, 4, raven_color1)
  4319. @raven_bitmaps[7].fill_rect(13, 5, 2, 1, raven_color3)
  4320. @raven_bitmaps[7].fill_rect(1, 6, 2, 1, raven_color3)
  4321. @raven_bitmaps[7].fill_rect(3, 6, 1, 2, raven_color1)
  4322. @raven_bitmaps[7].fill_rect(5, 6, 1, 3, raven_color1)
  4323. @raven_bitmaps[7].set_pixel(10, 6, raven_color3)
  4324. @raven_bitmaps[7].fill_rect(11, 6, 1, 3, raven_color1)
  4325. @raven_bitmaps[7].set_pixel(13, 6, raven_color2)
  4326. @raven_bitmaps[7].set_pixel(14, 6, raven_color1)
  4327. @raven_bitmaps[7].set_pixel(2, 7, raven_color3)
  4328. @raven_bitmaps[7].set_pixel(6, 7, raven_color2)
  4329. @raven_bitmaps[7].fill_rect(7, 7, 2, 3, raven_color4)
  4330. @raven_bitmaps[7].set_pixel(9, 7, raven_color2)
  4331. @raven_bitmaps[7].fill_rect(10, 7, 1, 2, raven_color1)
  4332. @raven_bitmaps[7].set_pixel(13, 7, raven_color1)
  4333. @raven_bitmaps[7].set_pixel(14, 7, raven_color3)
  4334. @raven_bitmaps[7].fill_rect(3, 8, 2, 1, raven_color3)
  4335. @raven_bitmaps[7].set_pixel(6, 8, raven_color1)
  4336. @raven_bitmaps[7].set_pixel(9, 8, raven_color1)
  4337. @raven_bitmaps[7].fill_rect(6, 9, 1, 2, raven_color3)
  4338. @raven_bitmaps[7].fill_rect(9, 9, 2, 1, raven_color3)
  4339. @raven_bitmaps[7].fill_rect(7, 10, 2, 1, raven_color1)
  4340. @raven_bitmaps[7].set_pixel(9, 10, raven_color3)
  4341. @raven_bitmaps[7].fill_rect(6, 11, 1, 2, raven_color1)
  4342. @raven_bitmaps[7].fill_rect(7, 11, 2, 2, raven_color2)
  4343. @raven_bitmaps[7].fill_rect(9, 11, 1, 2, raven_color1)
  4344. @raven_bitmaps[7].set_pixel(5, 12, raven_color3)
  4345. @raven_bitmaps[7].set_pixel(10, 12, raven_color3)
  4346. @raven_bitmaps[7].fill_rect(7, 13, 2, 1, raven_color3)
  4347.  
  4348. # Raven right 1
  4349. @raven_bitmaps[8] = Bitmap.new(15, 11)
  4350. @raven_bitmaps[8].fill_rect(5, 0, 2, 1, raven_color1)
  4351. @raven_bitmaps[8].fill_rect(4, 1, 2, 1, raven_color2)
  4352. @raven_bitmaps[8].set_pixel(6, 1, raven_color1)
  4353. @raven_bitmaps[8].fill_rect(7, 1, 1, 3, raven_color2)
  4354. @raven_bitmaps[8].set_pixel(8, 1, raven_color1)
  4355. @raven_bitmaps[8].set_pixel(4, 2, raven_color1)
  4356. @raven_bitmaps[8].fill_rect(5, 2, 2, 1, raven_color2)
  4357. @raven_bitmaps[8].set_pixel(8, 2, raven_color2)
  4358. @raven_bitmaps[8].set_pixel(4, 3, raven_color3)
  4359. @raven_bitmaps[8].set_pixel(5, 3, raven_color1)
  4360. @raven_bitmaps[8].set_pixel(6, 3, raven_color2)
  4361. @raven_bitmaps[8].set_pixel(8, 3, raven_color1)
  4362. @raven_bitmaps[8].fill_rect(9, 3, 2, 1, raven_color2)
  4363. @raven_bitmaps[8].fill_rect(11, 3, 1, 2, raven_color4)
  4364. @raven_bitmaps[8].set_pixel(12, 3, raven_color2)
  4365. @raven_bitmaps[8].fill_rect(1, 4, 2, 1, raven_color3)
  4366. @raven_bitmaps[8].set_pixel(3, 4, raven_color1)
  4367. @raven_bitmaps[8].fill_rect(4, 4, 4, 1, raven_color4)
  4368. @raven_bitmaps[8].set_pixel(8, 4, raven_color2)
  4369. @raven_bitmaps[8].fill_rect(9, 4, 2, 1, raven_color4)
  4370. @raven_bitmaps[8].fill_rect(12, 4, 1, 2, raven_color3)
  4371. @raven_bitmaps[8].set_pixel(13, 4, raven_color1)
  4372. @raven_bitmaps[8].set_pixel(1, 5, raven_color1)
  4373. @raven_bitmaps[8].set_pixel(2, 5, raven_color2)
  4374. @raven_bitmaps[8].set_pixel(3, 5, raven_color3)
  4375. @raven_bitmaps[8].fill_rect(4, 5, 3, 1, raven_color4)
  4376. @raven_bitmaps[8].set_pixel(7, 5, raven_color2)
  4377. @raven_bitmaps[8].set_pixel(8, 5, raven_color1)
  4378. @raven_bitmaps[8].fill_rect(9, 5, 1, 3, raven_color2)
  4379. @raven_bitmaps[8].set_pixel(10, 5, raven_color1)
  4380. @raven_bitmaps[8].set_pixel(11, 5, raven_color3)
  4381. @raven_bitmaps[8].set_pixel(13, 5, raven_color3)
  4382. @raven_bitmaps[8].set_pixel(14, 5, raven_color5)
  4383. @raven_bitmaps[8].set_pixel(0, 6, raven_color3)
  4384. @raven_bitmaps[8].fill_rect(1, 6, 1, 2, raven_color2)
  4385. @raven_bitmaps[8].fill_rect(2, 6, 2, 1, raven_color1)
  4386. @raven_bitmaps[8].fill_rect(4, 6, 1, 3, raven_color3)
  4387. @raven_bitmaps[8].fill_rect(5, 6, 3, 1, raven_color4)
  4388. @raven_bitmaps[8].set_pixel(8, 6, raven_color2)
  4389. @raven_bitmaps[8].set_pixel(10, 6, raven_color3)
  4390. @raven_bitmaps[8].set_pixel(2, 7, raven_color1)
  4391. @raven_bitmaps[8].fill_rect(3, 7, 1, 2, raven_color3)
  4392. @raven_bitmaps[8].fill_rect(5, 7, 1, 2, raven_color1)
  4393. @raven_bitmaps[8].fill_rect(6, 7, 3, 1, raven_color4)
  4394. @raven_bitmaps[8].fill_rect(6, 8, 3, 1, raven_color2)
  4395. @raven_bitmaps[8].set_pixel(5, 9, raven_color3)
  4396. @raven_bitmaps[8].fill_rect(6, 9, 2, 1, raven_color1)
  4397. @raven_bitmaps[8].set_pixel(6, 10, raven_color3)
  4398.  
  4399. # Raven right 2
  4400. @raven_bitmaps[9] = Bitmap.new(15, 12)
  4401. @raven_bitmaps[9].fill_rect(6, 0, 2, 1, raven_color1)
  4402. @raven_bitmaps[9].fill_rect(8, 0, 1, 3, raven_color2)
  4403. @raven_bitmaps[9].set_pixel(9, 0, raven_color1)
  4404. @raven_bitmaps[9].fill_rect(5, 1, 1, 2, raven_color1)
  4405. @raven_bitmaps[9].fill_rect(6, 1, 2, 2, raven_color2)
  4406. @raven_bitmaps[9].set_pixel(9, 1, raven_color3)
  4407. @raven_bitmaps[9].set_pixel(10, 1, raven_color1)
  4408. @raven_bitmaps[9].set_pixel(11, 1, raven_color2)
  4409. @raven_bitmaps[9].set_pixel(9, 2, raven_color2)
  4410. @raven_bitmaps[9].fill_rect(10, 2, 3, 1, raven_color4)
  4411. @raven_bitmaps[9].set_pixel(13, 2, raven_color1)
  4412. @raven_bitmaps[9].fill_rect(1, 3, 2, 1, raven_color3)
  4413. @raven_bitmaps[9].set_pixel(3, 3, raven_color1)
  4414. @raven_bitmaps[9].fill_rect(4, 3, 6, 1, raven_color4)
  4415. @raven_bitmaps[9].set_pixel(10, 3, raven_color2)
  4416. @raven_bitmaps[9].set_pixel(11, 3, raven_color4)
  4417. @raven_bitmaps[9].set_pixel(12, 3, raven_color2)
  4418. @raven_bitmaps[9].fill_rect(13, 3, 2, 1, raven_color5)
  4419. @raven_bitmaps[9].set_pixel(0, 4, raven_color1)
  4420. @raven_bitmaps[9].fill_rect(1, 4, 1, 2, raven_color4)
  4421. @raven_bitmaps[9].fill_rect(2, 4, 3, 1, raven_color2)
  4422. @raven_bitmaps[9].fill_rect(5, 4, 3, 1, raven_color4)
  4423. @raven_bitmaps[9].fill_rect(8, 4, 2, 1, raven_color1)
  4424. @raven_bitmaps[9].set_pixel(10, 4, raven_color3)
  4425. @raven_bitmaps[9].fill_rect(0, 5, 1, 2, raven_color3)
  4426. @raven_bitmaps[9].fill_rect(2, 5, 2, 1, raven_color1)
  4427. @raven_bitmaps[9].set_pixel(4, 5, raven_color2)
  4428. @raven_bitmaps[9].set_pixel(5, 5, raven_color3)
  4429. @raven_bitmaps[9].fill_rect(6, 5, 1, 3, raven_color1)
  4430. @raven_bitmaps[9].set_pixel(7, 5, raven_color4)
  4431. @raven_bitmaps[9].set_pixel(8, 5, raven_color2)
  4432. @raven_bitmaps[9].set_pixel(9, 5, raven_color3)
  4433. @raven_bitmaps[9].set_pixel(1, 6, raven_color1)
  4434. @raven_bitmaps[9].set_pixel(4, 6, raven_color3)
  4435. @raven_bitmaps[9].set_pixel(5, 6, raven_color1)
  4436. @raven_bitmaps[9].set_pixel(7, 6, raven_color2)
  4437. @raven_bitmaps[9].fill_rect(8, 6, 2, 1, raven_color4)
  4438. @raven_bitmaps[9].set_pixel(10, 6, raven_color3)
  4439. @raven_bitmaps[9].set_pixel(3, 7, raven_color3)
  4440. @raven_bitmaps[9].set_pixel(5, 7, raven_color3)
  4441. @raven_bitmaps[9].fill_rect(7, 7, 2, 1, raven_color4)
  4442. @raven_bitmaps[9].set_pixel(9, 7, raven_color2)
  4443. @raven_bitmaps[9].fill_rect(6, 8, 2, 1, raven_color2)
  4444. @raven_bitmaps[9].set_pixel(8, 8, raven_color4)
  4445. @raven_bitmaps[9].set_pixel(9, 8, raven_color3)
  4446. @raven_bitmaps[9].fill_rect(6, 9, 2, 1, raven_color1)
  4447. @raven_bitmaps[9].set_pixel(8, 9, raven_color2)
  4448. @raven_bitmaps[9].set_pixel(6, 10, raven_color3)
  4449. @raven_bitmaps[9].set_pixel(7, 10, raven_color2)
  4450. @raven_bitmaps[9].set_pixel(8, 10, raven_color3)
  4451. @raven_bitmaps[9].set_pixel(7, 11, raven_color3)
  4452.  
  4453. # Raven right 3
  4454. @raven_bitmaps[10] = Bitmap.new(13, 13)
  4455. @raven_bitmaps[10].fill_rect(5, 0, 6, 1, raven_color1)
  4456. @raven_bitmaps[10].set_pixel(3, 1, raven_color3)
  4457. @raven_bitmaps[10].fill_rect(4, 1, 3, 1, raven_color1)
  4458. @raven_bitmaps[10].fill_rect(7, 1, 2, 1, raven_color2)
  4459. @raven_bitmaps[10].fill_rect(9, 1, 3, 1, raven_color4)
  4460. @raven_bitmaps[10].fill_rect(2, 2, 1, 2, raven_color2)
  4461. @raven_bitmaps[10].fill_rect(3, 2, 6, 1, raven_color4)
  4462. @raven_bitmaps[10].set_pixel(9, 2, raven_color1)
  4463. @raven_bitmaps[10].set_pixel(10, 2, raven_color4)
  4464. @raven_bitmaps[10].set_pixel(11, 2, raven_color1)
  4465. @raven_bitmaps[10].set_pixel(12, 2, raven_color6)
  4466. @raven_bitmaps[10].set_pixel(0, 3, raven_color3)
  4467. @raven_bitmaps[10].set_pixel(1, 3, raven_color4)
  4468. @raven_bitmaps[10].set_pixel(3, 3, raven_color2)
  4469. @raven_bitmaps[10].fill_rect(4, 3, 3, 1, raven_color4)
  4470. @raven_bitmaps[10].fill_rect(7, 3, 2, 1, raven_color1)
  4471. @raven_bitmaps[10].set_pixel(9, 3, raven_color3)
  4472. @raven_bitmaps[10].fill_rect(0, 4, 1, 2, raven_color2)
  4473. @raven_bitmaps[10].fill_rect(1, 4, 3, 1, raven_color1)
  4474. @raven_bitmaps[10].set_pixel(4, 4, raven_color3)
  4475. @raven_bitmaps[10].fill_rect(5, 4, 1, 3, raven_color2)
  4476. @raven_bitmaps[10].fill_rect(6, 4, 1, 5, raven_color4)
  4477. @raven_bitmaps[10].set_pixel(7, 4, raven_color2)
  4478. @raven_bitmaps[10].fill_rect(8, 4, 1, 2, raven_color3)
  4479. @raven_bitmaps[10].set_pixel(1, 5, raven_color1)
  4480. @raven_bitmaps[10].set_pixel(3, 5, raven_color3)
  4481. @raven_bitmaps[10].set_pixel(4, 5, raven_color1)
  4482. @raven_bitmaps[10].fill_rect(7, 5, 1, 4, raven_color4)
  4483. @raven_bitmaps[10].set_pixel(0, 6, raven_color3)
  4484. @raven_bitmaps[10].set_pixel(2, 6, raven_color3)
  4485. @raven_bitmaps[10].fill_rect(4, 6, 1, 2, raven_color3)
  4486. @raven_bitmaps[10].fill_rect(8, 6, 1, 3, raven_color4)
  4487. @raven_bitmaps[10].set_pixel(9, 6, raven_color3)
  4488. @raven_bitmaps[10].set_pixel(5, 7, raven_color1)
  4489. @raven_bitmaps[10].set_pixel(9, 7, raven_color2)
  4490. @raven_bitmaps[10].fill_rect(5, 8, 1, 2, raven_color3)
  4491. @raven_bitmaps[10].fill_rect(9, 8, 1, 2, raven_color3)
  4492. @raven_bitmaps[10].set_pixel(6, 9, raven_color1)
  4493. @raven_bitmaps[10].fill_rect(7, 9, 2, 1, raven_color2)
  4494. @raven_bitmaps[10].set_pixel(6, 10, raven_color3)
  4495. @raven_bitmaps[10].set_pixel(7, 10, raven_color2)
  4496. @raven_bitmaps[10].fill_rect(8, 10, 1, 2, raven_color3)
  4497. @raven_bitmaps[10].set_pixel(9, 10, raven_color2)
  4498. @raven_bitmaps[10].set_pixel(7, 11, raven_color3)
  4499. @raven_bitmaps[10].fill_rect(9, 11, 1, 2, raven_color1)
  4500. @raven_bitmaps[10].set_pixel(10, 11, raven_color3)
  4501.  
  4502. # Raven right 4
  4503. @raven_bitmaps[11] = Bitmap.new(14, 12)
  4504. @raven_bitmaps[11].fill_rect(2, 0, 2, 1, raven_color1)
  4505. @raven_bitmaps[11].fill_rect(2, 1, 1, 2, raven_color1)
  4506. @raven_bitmaps[11].fill_rect(3, 1, 2, 3, raven_color2)
  4507. @raven_bitmaps[11].set_pixel(5, 1, raven_color1)
  4508. @raven_bitmaps[11].fill_rect(5, 2, 3, 2, raven_color2)
  4509. @raven_bitmaps[11].fill_rect(8, 2, 1, 2, raven_color1)
  4510. @raven_bitmaps[11].set_pixel(2, 3, raven_color3)
  4511. @raven_bitmaps[11].set_pixel(3, 4, raven_color3)
  4512. @raven_bitmaps[11].fill_rect(4, 4, 4, 1, raven_color1)
  4513. @raven_bitmaps[11].set_pixel(8, 4, raven_color3)
  4514. @raven_bitmaps[11].set_pixel(4, 5, raven_color3)
  4515. @raven_bitmaps[11].fill_rect(5, 5, 4, 1, raven_color2)
  4516. @raven_bitmaps[11].set_pixel(9, 5, raven_color1)
  4517. @raven_bitmaps[11].set_pixel(10, 5, raven_color2)
  4518. @raven_bitmaps[11].set_pixel(2, 6, raven_color3)
  4519. @raven_bitmaps[11].set_pixel(3, 6, raven_color1)
  4520. @raven_bitmaps[11].fill_rect(4, 6, 3, 2, raven_color2)
  4521. @raven_bitmaps[11].fill_rect(7, 6, 1, 4, raven_color3)
  4522. @raven_bitmaps[11].set_pixel(8, 6, raven_color1)
  4523. @raven_bitmaps[11].fill_rect(9, 6, 3, 1, raven_color4)
  4524. @raven_bitmaps[11].set_pixel(12, 6, raven_color1)
  4525. @raven_bitmaps[11].set_pixel(0, 7, raven_color3)
  4526. @raven_bitmaps[11].fill_rect(1, 7, 1, 2, raven_color1)
  4527. @raven_bitmaps[11].fill_rect(2, 7, 1, 2, raven_color4)
  4528. @raven_bitmaps[11].set_pixel(3, 7, raven_color2)
  4529. @raven_bitmaps[11].set_pixel(8, 7, raven_color3)
  4530. @raven_bitmaps[11].set_pixel(9, 7, raven_color4)
  4531. @raven_bitmaps[11].set_pixel(10, 7, raven_color1)
  4532. @raven_bitmaps[11].set_pixel(11, 7, raven_color2)
  4533. @raven_bitmaps[11].set_pixel(12, 7, raven_color5)
  4534. @raven_bitmaps[11].set_pixel(13, 7, raven_color1)
  4535. @raven_bitmaps[11].set_pixel(0, 8, raven_color1)
  4536. @raven_bitmaps[11].fill_rect(3, 8, 2, 1, raven_color1)
  4537. @raven_bitmaps[11].fill_rect(5, 8, 1, 3, raven_color2)
  4538. @raven_bitmaps[11].fill_rect(6, 8, 1, 2, raven_color3)
  4539. @raven_bitmaps[11].fill_rect(8, 8, 2, 1, raven_color1)
  4540. @raven_bitmaps[11].set_pixel(0, 9, raven_color3)
  4541. @raven_bitmaps[11].set_pixel(1, 9, raven_color2)
  4542. @raven_bitmaps[11].set_pixel(2, 9, raven_color3)
  4543. @raven_bitmaps[11].set_pixel(3, 9, raven_color2)
  4544. @raven_bitmaps[11].fill_rect(4, 9, 1, 2, raven_color3)
  4545. @raven_bitmaps[11].set_pixel(8, 9, raven_color3)
  4546. @raven_bitmaps[11].set_pixel(3, 10, raven_color1)
  4547. @raven_bitmaps[11].fill_rect(4, 11, 2, 1, raven_color1)
  4548.  
  4549. # Raven down 1
  4550. @raven_bitmaps[12] = Bitmap.new(20, 10)
  4551. @raven_bitmaps[12].set_pixel(7, 0, raven_color3)
  4552. @raven_bitmaps[12].fill_rect(8, 0, 1, 2, raven_color1)
  4553. @raven_bitmaps[12].fill_rect(9, 0, 2, 1, raven_color2)
  4554. @raven_bitmaps[12].fill_rect(11, 0, 1, 2, raven_color1)
  4555. @raven_bitmaps[12].set_pixel(12, 0, raven_color3)
  4556. @raven_bitmaps[12].fill_rect(9, 1, 2, 1, raven_color4)
  4557. @raven_bitmaps[12].fill_rect(6, 2, 1, 2, raven_color3)
  4558. @raven_bitmaps[12].set_pixel(8, 2, raven_color3)
  4559. @raven_bitmaps[12].fill_rect(9, 2, 2, 1, raven_color2)
  4560. @raven_bitmaps[12].set_pixel(11, 2, raven_color3)
  4561. @raven_bitmaps[12].fill_rect(13, 2, 1, 2, raven_color3)
  4562. @raven_bitmaps[12].set_pixel(4, 3, raven_color1)
  4563. @raven_bitmaps[12].set_pixel(5, 3, raven_color2)
  4564. @raven_bitmaps[12].fill_rect(7, 3, 1, 2, raven_color2)
  4565. @raven_bitmaps[12].fill_rect(8, 3, 1, 3, raven_color1)
  4566. @raven_bitmaps[12].fill_rect(9, 3, 2, 2, raven_color4)
  4567. @raven_bitmaps[12].fill_rect(11, 3, 1, 3, raven_color1)
  4568. @raven_bitmaps[12].fill_rect(12, 3, 1, 2, raven_color2)
  4569. @raven_bitmaps[12].set_pixel(14, 3, raven_color2)
  4570. @raven_bitmaps[12].set_pixel(15, 3, raven_color1)
  4571. @raven_bitmaps[12].set_pixel(2, 4, raven_color3)
  4572. @raven_bitmaps[12].fill_rect(3, 4, 4, 2, raven_color4)
  4573. @raven_bitmaps[12].fill_rect(13, 4, 4, 2, raven_color4)
  4574. @raven_bitmaps[12].set_pixel(17, 4, raven_color3)
  4575. @raven_bitmaps[12].set_pixel(1, 5, raven_color1)
  4576. @raven_bitmaps[12].set_pixel(2, 5, raven_color2)
  4577. @raven_bitmaps[12].set_pixel(7, 5, raven_color1)
  4578. @raven_bitmaps[12].fill_rect(9, 5, 2, 1, raven_color2)
  4579. @raven_bitmaps[12].set_pixel(12, 5, raven_color1)
  4580. @raven_bitmaps[12].set_pixel(17, 5, raven_color2)
  4581. @raven_bitmaps[12].set_pixel(18, 5, raven_color1)
  4582. @raven_bitmaps[12].set_pixel(1, 6, raven_color3)
  4583. @raven_bitmaps[12].set_pixel(2, 6, raven_color4)
  4584. @raven_bitmaps[12].set_pixel(3, 6, raven_color2)
  4585. @raven_bitmaps[12].set_pixel(4, 6, raven_color3)
  4586. @raven_bitmaps[12].fill_rect(8, 6, 1, 2, raven_color3)
  4587. @raven_bitmaps[12].fill_rect(9, 6, 2, 1, raven_color4)
  4588. @raven_bitmaps[12].fill_rect(11, 6, 1, 2, raven_color3)
  4589. @raven_bitmaps[12].set_pixel(15, 6, raven_color3)
  4590. @raven_bitmaps[12].set_pixel(16, 6, raven_color2)
  4591. @raven_bitmaps[12].set_pixel(17, 6, raven_color4)
  4592. @raven_bitmaps[12].set_pixel(18, 6, raven_color3)
  4593. @raven_bitmaps[12].set_pixel(0, 7, raven_color1)
  4594. @raven_bitmaps[12].set_pixel(1, 7, raven_color2)
  4595. @raven_bitmaps[12].set_pixel(2, 7, raven_color3)
  4596. @raven_bitmaps[12].fill_rect(9, 7, 2, 1, raven_color1)
  4597. @raven_bitmaps[12].set_pixel(17, 7, raven_color3)
  4598. @raven_bitmaps[12].set_pixel(18, 7, raven_color2)
  4599. @raven_bitmaps[12].set_pixel(19, 7, raven_color1)
  4600. @raven_bitmaps[12].set_pixel(0, 8, raven_color3)
  4601. @raven_bitmaps[12].fill_rect(9, 8, 2, 2, raven_color3)
  4602. @raven_bitmaps[12].set_pixel(19, 8, raven_color3)
  4603.  
  4604. # Raven down 2
  4605. @raven_bitmaps[13] = Bitmap.new(14, 12)
  4606. @raven_bitmaps[13].fill_rect(6, 0, 2, 1, raven_color2)
  4607. @raven_bitmaps[13].set_pixel(5, 1, raven_color2)
  4608. @raven_bitmaps[13].fill_rect(6, 1, 2, 1, raven_color4)
  4609. @raven_bitmaps[13].set_pixel(8, 1, raven_color2)
  4610. @raven_bitmaps[13].fill_rect(5, 2, 1, 2, raven_color3)
  4611. @raven_bitmaps[13].fill_rect(6, 2, 2, 1, raven_color2)
  4612. @raven_bitmaps[13].fill_rect(8, 2, 1, 2, raven_color3)
  4613. @raven_bitmaps[13].fill_rect(6, 3, 2, 1, raven_color4)
  4614. @raven_bitmaps[13].set_pixel(3, 4, raven_color3)
  4615. @raven_bitmaps[13].fill_rect(4, 4, 1, 2, raven_color2)
  4616. @raven_bitmaps[13].fill_rect(5, 4, 4, 1, raven_color1)
  4617. @raven_bitmaps[13].fill_rect(9, 4, 1, 2, raven_color2)
  4618. @raven_bitmaps[13].set_pixel(10, 4, raven_color3)
  4619. @raven_bitmaps[13].set_pixel(2, 5, raven_color3)
  4620. @raven_bitmaps[13].fill_rect(3, 5, 1, 2, raven_color2)
  4621. @raven_bitmaps[13].fill_rect(5, 5, 1, 2, raven_color3)
  4622. @raven_bitmaps[13].fill_rect(6, 5, 2, 1, raven_color4)
  4623. @raven_bitmaps[13].fill_rect(8, 5, 1, 2, raven_color3)
  4624. @raven_bitmaps[13].fill_rect(10, 5, 1, 2, raven_color2)
  4625. @raven_bitmaps[13].set_pixel(11, 5, raven_color3)
  4626. @raven_bitmaps[13].set_pixel(2, 6, raven_color1)
  4627. @raven_bitmaps[13].set_pixel(4, 6, raven_color1)
  4628. @raven_bitmaps[13].fill_rect(6, 6, 2, 1, raven_color1)
  4629. @raven_bitmaps[13].set_pixel(9, 6, raven_color1)
  4630. @raven_bitmaps[13].set_pixel(11, 6, raven_color1)
  4631. @raven_bitmaps[13].fill_rect(1, 7, 1, 2, raven_color3)
  4632. @raven_bitmaps[13].fill_rect(2, 7, 1, 2, raven_color2)
  4633. @raven_bitmaps[13].set_pixel(3, 7, raven_color1)
  4634. @raven_bitmaps[13].set_pixel(4, 7, raven_color3)
  4635. @raven_bitmaps[13].fill_rect(6, 7, 2, 1, raven_color7)
  4636. @raven_bitmaps[13].set_pixel(9, 7, raven_color3)
  4637. @raven_bitmaps[13].set_pixel(10, 7, raven_color1)
  4638. @raven_bitmaps[13].fill_rect(11, 7, 1, 2, raven_color2)
  4639. @raven_bitmaps[13].fill_rect(12, 7, 1, 2, raven_color3)
  4640. @raven_bitmaps[13].fill_rect(3, 8, 1, 2, raven_color3)
  4641. @raven_bitmaps[13].fill_rect(6, 8, 2, 1, raven_color3)
  4642. @raven_bitmaps[13].fill_rect(10, 8, 1, 2, raven_color3)
  4643. @raven_bitmaps[13].fill_rect(1, 9, 2, 1, raven_color1)
  4644. @raven_bitmaps[13].fill_rect(11, 9, 2, 1, raven_color1)
  4645. @raven_bitmaps[13].fill_rect(0, 10, 2, 1, raven_color1)
  4646. @raven_bitmaps[13].set_pixel(2, 10, raven_color3)
  4647. @raven_bitmaps[13].set_pixel(11, 10, raven_color3)
  4648. @raven_bitmaps[13].fill_rect(12, 10, 2, 1, raven_color1)
  4649. @raven_bitmaps[13].set_pixel(0, 11, raven_color3)
  4650. @raven_bitmaps[13].set_pixel(13, 11, raven_color3)
  4651.  
  4652. # Raven down 3
  4653. @raven_bitmaps[14] = Bitmap.new(16, 10)
  4654. @raven_bitmaps[14].fill_rect(6, 0, 1, 2, raven_color1)
  4655. @raven_bitmaps[14].fill_rect(7, 0, 2, 1, raven_color2)
  4656. @raven_bitmaps[14].fill_rect(9, 0, 1, 2, raven_color1)
  4657. @raven_bitmaps[14].fill_rect(7, 1, 2, 1, raven_color4)
  4658. @raven_bitmaps[14].fill_rect(3, 2, 2, 1, raven_color3)
  4659. @raven_bitmaps[14].fill_rect(6, 2, 1, 2, raven_color3)
  4660. @raven_bitmaps[14].set_pixel(7, 2, raven_color2)
  4661. @raven_bitmaps[14].set_pixel(8, 2, raven_color1)
  4662. @raven_bitmaps[14].fill_rect(9, 2, 1, 2, raven_color3)
  4663. @raven_bitmaps[14].set_pixel(1, 3, raven_color3)
  4664. @raven_bitmaps[14].fill_rect(2, 3, 4, 2, raven_color2)
  4665. @raven_bitmaps[14].fill_rect(7, 3, 2, 1, raven_color4)
  4666. @raven_bitmaps[14].fill_rect(10, 3, 2, 2, raven_color2)
  4667. @raven_bitmaps[14].set_pixel(12, 3, raven_color1)
  4668. @raven_bitmaps[14].fill_rect(13, 3, 1, 2, raven_color3)
  4669. @raven_bitmaps[14].set_pixel(1, 4, raven_color1)
  4670. @raven_bitmaps[14].set_pixel(6, 4, raven_color1)
  4671. @raven_bitmaps[14].fill_rect(7, 4, 3, 1, raven_color2)
  4672. @raven_bitmaps[14].fill_rect(12, 4, 1, 2, raven_color2)
  4673. @raven_bitmaps[14].fill_rect(0, 5, 2, 1, raven_color3)
  4674. @raven_bitmaps[14].set_pixel(2, 5, raven_color2)
  4675. @raven_bitmaps[14].set_pixel(3, 5, raven_color1)
  4676. @raven_bitmaps[14].fill_rect(4, 5, 3, 1, raven_color3)
  4677. @raven_bitmaps[14].fill_rect(7, 5, 2, 2, raven_color4)
  4678. @raven_bitmaps[14].fill_rect(9, 5, 2, 1, raven_color3)
  4679. @raven_bitmaps[14].set_pixel(11, 5, raven_color1)
  4680. @raven_bitmaps[14].fill_rect(13, 5, 2, 1, raven_color1)
  4681. @raven_bitmaps[14].set_pixel(1, 6, raven_color2)
  4682. @raven_bitmaps[14].set_pixel(2, 6, raven_color1)
  4683. @raven_bitmaps[14].set_pixel(6, 6, raven_color3)
  4684. @raven_bitmaps[14].set_pixel(9, 6, raven_color3)
  4685. @raven_bitmaps[14].set_pixel(12, 6, raven_color1)
  4686. @raven_bitmaps[14].set_pixel(13, 6, raven_color2)
  4687. @raven_bitmaps[14].set_pixel(14, 6, raven_color3)
  4688. @raven_bitmaps[14].set_pixel(0, 7, raven_color3)
  4689. @raven_bitmaps[14].set_pixel(1, 7, raven_color1)
  4690. @raven_bitmaps[14].fill_rect(7, 7, 2, 1, raven_color5)
  4691. @raven_bitmaps[14].fill_rect(13, 7, 2, 1, raven_color1)
  4692. @raven_bitmaps[14].set_pixel(0, 8, raven_color1)
  4693. @raven_bitmaps[14].fill_rect(7, 8, 2, 1, raven_color1)
  4694. @raven_bitmaps[14].set_pixel(14, 8, raven_color1)
  4695. @raven_bitmaps[14].fill_rect(15, 8, 1, 2, raven_color3)
  4696.  
  4697. # Raven down 4
  4698. @raven_bitmaps[15] = Bitmap.new(18, 10)
  4699. @raven_bitmaps[15].set_pixel(3, 0, raven_color3)
  4700. @raven_bitmaps[15].fill_rect(8, 0, 2, 1, raven_color2)
  4701. @raven_bitmaps[15].set_pixel(14, 0, raven_color3)
  4702. @raven_bitmaps[15].set_pixel(0, 1, raven_color1)
  4703. @raven_bitmaps[15].set_pixel(1, 1, raven_color2)
  4704. @raven_bitmaps[15].fill_rect(2, 1, 3, 1, raven_color1)
  4705. @raven_bitmaps[15].fill_rect(5, 1, 2, 1, raven_color3)
  4706. @raven_bitmaps[15].set_pixel(7, 1, raven_color2)
  4707. @raven_bitmaps[15].fill_rect(8, 1, 2, 1, raven_color4)
  4708. @raven_bitmaps[15].set_pixel(10, 1, raven_color2)
  4709. @raven_bitmaps[15].fill_rect(11, 1, 2, 1, raven_color3)
  4710. @raven_bitmaps[15].fill_rect(13, 1, 3, 1, raven_color1)
  4711. @raven_bitmaps[15].set_pixel(16, 1, raven_color2)
  4712. @raven_bitmaps[15].set_pixel(17, 1, raven_color1)
  4713. @raven_bitmaps[15].set_pixel(1, 2, raven_color3)
  4714. @raven_bitmaps[15].set_pixel(2, 2, raven_color4)
  4715. @raven_bitmaps[15].set_pixel(3, 2, raven_color2)
  4716. @raven_bitmaps[15].fill_rect(4, 2, 1, 3, raven_color4)
  4717. @raven_bitmaps[15].set_pixel(5, 2, raven_color1)
  4718. @raven_bitmaps[15].fill_rect(6, 2, 2, 1, raven_color3)
  4719. @raven_bitmaps[15].fill_rect(8, 2, 2, 1, raven_color2)
  4720. @raven_bitmaps[15].fill_rect(10, 2, 2, 1, raven_color3)
  4721. @raven_bitmaps[15].set_pixel(12, 2, raven_color1)
  4722. @raven_bitmaps[15].fill_rect(13, 2, 1, 3, raven_color4)
  4723. @raven_bitmaps[15].set_pixel(14, 2, raven_color2)
  4724. @raven_bitmaps[15].set_pixel(15, 2, raven_color4)
  4725. @raven_bitmaps[15].set_pixel(16, 2, raven_color3)
  4726. @raven_bitmaps[15].set_pixel(2, 3, raven_color3)
  4727. @raven_bitmaps[15].fill_rect(3, 3, 1, 2, raven_color4)
  4728. @raven_bitmaps[15].fill_rect(5, 3, 1, 2, raven_color2)
  4729. @raven_bitmaps[15].fill_rect(6, 3, 1, 2, raven_color4)
  4730. @raven_bitmaps[15].set_pixel(7, 3, raven_color3)
  4731. @raven_bitmaps[15].fill_rect(8, 3, 2, 2, raven_color4)
  4732. @raven_bitmaps[15].set_pixel(10, 3, raven_color3)
  4733. @raven_bitmaps[15].fill_rect(11, 3, 1, 2, raven_color4)
  4734. @raven_bitmaps[15].fill_rect(12, 3, 1, 2, raven_color2)
  4735. @raven_bitmaps[15].fill_rect(14, 3, 1, 2, raven_color4)
  4736. @raven_bitmaps[15].set_pixel(15, 3, raven_color3)
  4737. @raven_bitmaps[15].set_pixel(7, 4, raven_color1)
  4738. @raven_bitmaps[15].set_pixel(10, 4, raven_color1)
  4739. @raven_bitmaps[15].fill_rect(3, 5, 3, 1, raven_color3)
  4740. @raven_bitmaps[15].set_pixel(6, 5, raven_color1)
  4741. @raven_bitmaps[15].fill_rect(7, 5, 4, 1, raven_color2)
  4742. @raven_bitmaps[15].set_pixel(11, 5, raven_color1)
  4743. @raven_bitmaps[15].fill_rect(12, 5, 3, 1, raven_color3)
  4744. @raven_bitmaps[15].fill_rect(7, 6, 1, 2, raven_color3)
  4745. @raven_bitmaps[15].fill_rect(8, 6, 2, 2, raven_color4)
  4746. @raven_bitmaps[15].fill_rect(10, 6, 1, 2, raven_color3)
  4747. @raven_bitmaps[15].fill_rect(8, 8, 2, 1, raven_color7)
  4748. @raven_bitmaps[15].fill_rect(8, 9, 2, 1, raven_color3)
  4749. #-------------------------------------------------------------------------------
  4750. @user_bitmaps = []
  4751. update_user_defined
  4752. end
  4753. #-------------------------------------------------------------------------------
  4754. def update_user_defined
  4755. @user_bitmaps.each {|image| image.dispose}
  4756. $WEATHER_IMAGES.each {|name| @user_bitmaps.push(RPG::Cache.picture(name))}
  4757. @sprites.each {|sprite| sprite.bitmap = @user_bitmaps[rand(@user_bitmaps.size)]}
  4758. end
  4759. attr_reader :type
  4760. attr_reader :max
  4761. attr_reader :ox
  4762. attr_reader :oy
  4763. end
  4764. end
  4765. #-------------------------------------------------------------------------------
  4766. # Game_Screen
  4767. #-------------------------------------------------------------------------------
  4768. class Game_Screen
  4769.  
  4770. attr_accessor :weather_variation
  4771. attr_accessor :variation_update
  4772.  
  4773. alias zer0_weather_color_init initialize
  4774. def initialize
  4775. zer0_weather_color_init
  4776. @weather_variation = 0
  4777. @variation_update = false
  4778. end
  4779.  
  4780. def weather(type, power, duration, variation=0)
  4781. @variation_update = true if variation != @weather_variation
  4782. @weather_variation = variation
  4783. @weather_type_target = type
  4784. @weather_duration = duration
  4785. if @weather_type_target != 0
  4786. @weather_type = @weather_type_target
  4787. end
  4788. @weather_max_target = @weather_type_target == 0 ? 0.0 : (power + 1) * 4.0
  4789. if @weather_duration == 0
  4790. @weather_type = @weather_type_target
  4791. @weather_max = @weather_max_target
  4792. end
  4793. end
  4794. end
  4795. #-------------------------------------------------------------------------------
  4796. # Spriteset_Map
  4797. #-------------------------------------------------------------------------------
  4798. class Spriteset_Map
  4799. # This will re-cache the weather bitmaps when a new variation is chosen
  4800. alias zer0_weather_variation_upd update
  4801. def update
  4802. if $game_screen.variation_update
  4803. @weather.dispose if @weather != nil
  4804. @weather = RPG::Weather.new(@viewport1)
  4805. $game_screen.variation_update = false
  4806. end
  4807. zer0_weather_variation_upd
  4808. end
  4809. end
Advertisement
Add Comment
Please, Sign In to add comment