Advertisement
Guest User

Untitled

a guest
Feb 11th, 2013
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 170.93 KB | None | 0 0
  1. #-------------------------------------------------------------------------------
  2. # MAWS - Modified Advanced Weather System
  3. # Base Script: Ccoa, ForeverZer0
  4. # Effects: Ccoa, ForeverZer0, Agckuu Coceg
  5. # Color Schemes: Ccoa, Agckuu Coceg, ForeverZer0
  6. # Version: 1.2
  7. #-------------------------------------------------------------------------------
  8. # About this script:
  9. #
  10. # What is the MAWS?
  11. #
  12. # MAWS - MAWS is the improved weather system, created specially for the use
  13. # in the projects of RPG Maker XP. First script (AWS) has maded by Ccoa, but
  14. # it contained a few of effects, therefore I decided to create on it's
  15. # base for a addon, MAWS 1.0. After two versions I find a project of a
  16. # ForeverZer0, Advanced Weather, based on my MAWS and
  17. # which fully reorganized it. It pleased me, and I decided to use it as a new
  18. # base for MAWS, which you see on this version of script.
  19. #
  20. # Instructions of using script:
  21. #
  22. # 1) Place anywhere below Spriteset_Map.
  23. # 2) Weather can be still be changed with the script call:
  24. # $game_screen.weather(type, power, transition)
  25. # or:
  26. # $game_screen.weather(type, power, transition, variation) (if this weather
  27. # effects has a variations of color schemes)
  28. # If you omit the variation, it will be assumed to be 0 and the normal
  29. # default weather pattern will be used.
  30. #
  31. # Examples:
  32. #
  33. # To make a rain effect, you can use either of these script calls:
  34. #
  35. # $game_screen.weather(1, 25, 40)
  36. # $game_screen.weather(1, 25, 40, 0)
  37. #
  38. # ...If you would like to use the Ccoa's Blood Rain, use this script call:
  39. #
  40. # $game_screen.weather(1, 25, 40, 1)
  41. #
  42. # ...If you would like to use the my Oil Rain, use this script call:
  43. #
  44. # $game_screen.weather(1, 25, 40, 2)
  45. #
  46. # ...etc.
  47. #
  48. # Additiions:
  49. #
  50. # Realistic Storm and Realistic Rain used random volume and pitch for
  51. # the thunder, and also incorporates a quick screen shake. Also this system
  52. # is utillized in the effects of Rain with Thunder and Lightning (Agckuu
  53. # Coceg and ForeverZer0)
  54. #
  55. # Credits:
  56. #
  57. # 1. Ccoa (base script, most default weather effects)
  58. # 2. ForeverZer0 (editions of base script, color schemes and weather effects)
  59. # 3. Agckuu Coceg (weather effects, color schemes)
  60. #-------------------------------------------------------------------------------
  61. # Weather Types (277 types):
  62. #-------------------------------------------------------------------------------
  63. # Number after dot is a possible variation for the respective weather type.
  64. # The first item is the default, or 0, and the following are 1, 2, etc. in
  65. # order.
  66. #
  67. # Weather Types:
  68. # 1) Rain (Ccoa, Agckuu Coceg):
  69. # 1.0 Normal rain
  70. # 1.1 Chemical - Ferrum - Crimson blood rain
  71. # 1.2 Chemical - Oil rain
  72. # 1.3 Chemical - Acid rain
  73. # 1.4 Chemical - Golden rain
  74. # 1.5 Photo Effects - Sepia dark rain
  75. # 1.6 Photo Effects - Old T'vision rain
  76. # 1.7 Photo Effects - Sepia light rain
  77. # 1.8 Silver rain
  78. # 1.9 Chemical - Solution of muriatic and sulphuric acid - Milky white rain
  79. # 1.10 Chemical - Solution of muriatic and sulphuric acid - Light cyan rain
  80. # 1.11 Chemical - Ferrum - Light red rain
  81. # 1.12 Chemical - Blackened rain
  82. # 1.13 Biot - Microorganisms - Cyanobacterias - Cyan-Green rain
  83. # 1.14 Biot - Microorganisms - Green evglena - Light green rain
  84. # 1.15 Biot - Microorganisms - Raspberry crawfishes - Raspberry rain
  85. # 1.16 Lakes - Goksha - Color of centered water - Dark Blue rain
  86. # 1.17 Lakes - Goksha - Color of coast water - Light Yellow rain
  87. # 1.18 Lakes - Titikaka - Green-violet rain
  88. # 1.19 Special Effects - Ultra-Violet rain
  89. # 1.20 Special Effects - Ultra-Purple rain
  90. # 1.21 Special Effects - Ultra-Lavender rain
  91. # 1.22 Special Effects - Ultra-Flame rain
  92. # 2) Storm (Ccoa, Agckuu Coceg):
  93. # 2.0 Normal storm
  94. # 2.1 Chemical - Ferrum - Crimson blood storm
  95. # 2.2 Chemical - Oil storm
  96. # 2.3 Chemical - Acid storm
  97. # 2.4 Chemical - Golden storm
  98. # 2.5 Photo Effects - Sepia dark storm
  99. # 2.6 Photo Effects - Old T'vision storm
  100. # 2.7 Photo Effects - Sepia light storm
  101. # 2.8 Silver storm
  102. # 2.9 Chemical - Solution of muriatic and sulphuric acid - Milky white storm
  103. # 2.10 Chemical - Solution of muriatic and sulphuric acid - Light cyan storm
  104. # 2.11 Chemical - Ferrum - Light red storm
  105. # 2.12 Chemical - Blackened storm
  106. # 2.13 Biot - Microorganisms - Cyanobacterias - Cyan-Green storm
  107. # 2.14 Biot - Microorganisms - Green evglena - Light green storm
  108. # 2.15 Biot - Microorganisms - Raspberry crawfishes - Raspberry storm
  109. # 2.16 Lakes - Goksha - Color of centered water - Dark Blue storm
  110. # 2.17 Lakes - Goksha - Color of coast water - Light Yellow storm
  111. # 2.18 Lakes - Titikaka - Green-violet storm
  112. # 2.19 Special Effects - Ultra-Violet storm
  113. # 2.20 Special Effects - Ultra-Purple storm
  114. # 2.21 Special Effects - Ultra-Lavender storm
  115. # 2.22 Special Effects - Ultra-Flame storm
  116. # 3) Snow (Ccoa, Agckuu Coceg, ForeverZer0):
  117. # 3.1 Normal Snow
  118. # 3.2 Crimson Snow
  119. # 4) Hail (Ccoa, Agckuu Coceg):
  120. # 4.0 Normal hail
  121. # 4.1 Chemical - Ferrum - Crimson blood hail
  122. # 4.2 Chemical - Oil hail
  123. # 4.3 Chemical - Acid hail
  124. # 4.4 Chemical - Golden hail
  125. # 4.5 Photo Effects - Sepia dark hail
  126. # 4.6 Photo Effects - Old T'vision hail
  127. # 4.7 Photo Effects - Sepia light hail
  128. # 4.8 Silver hail
  129. # 4.9 Chemical - Solution of muriatic and sulphuric acid - Milky white hail
  130. # 4.10 Chemical - Solution of muriatic and sulphuric acid - Light cyan hail
  131. # 4.11 Chemical - Ferrum - Light red hail
  132. # 4.12 Chemical - Blackened hail
  133. # 4.13 Biot - Microorganisms - Cyanobacterias - Cyan-Green hail
  134. # 4.14 Biot - Microorganisms - Green evglena - Light green hail
  135. # 4.15 Biot - Microorganisms - Raspberry crawfishes - Raspberry hail
  136. # 4.16 Lakes - Goksha - Color of centered water - Dark Blue hail
  137. # 4.17 Lakes - Goksha - Color of coast water - Light Yellow hail
  138. # 4.18 Lakes - Titikaka - Green-violet hail
  139. # 4.19 Special Effects - Ultra-Violet hail
  140. # 4.20 Special Effects - Ultra-Purple hail
  141. # 4.21 Special Effects - Ultra-Lavender hail
  142. # 4.22 Special Effects - Ultra-Flame hail
  143. # 5) Rain with thunder & lightnings collection (Ccoa, Agckuu Coceg, ForeverZer0):
  144. # 5.0 Normal rain
  145. # 5.1 Chemical - Ferrum - Crimson blood rain
  146. # 5.2 Chemical - Oil rain
  147. # 5.3 Chemical - Acid rain
  148. # 5.4 Chemical - Golden rain
  149. # 5.5 Photo Effects - Sepia dark rain
  150. # 5.6 Photo Effects - Old T'vision rain
  151. # 5.7 Photo Effects - Sepia light rain
  152. # 5.8 Silver rain
  153. # 5.9 Chemical - Solution of muriatic and sulphuric acid - Milky white rain
  154. # 5.10 Chemical - Solution of muriatic and sulphuric acid - Light cyan rain
  155. # 5.11 Chemical - Ferrum - Light red rain
  156. # 5.12 Chemical - Blackened rain
  157. # 5.13 Biot - Microorganisms - Cyanobacterias - Cyan-Green rain
  158. # 5.14 Biot - Microorganisms - Green evglena - Light green rain
  159. # 5.15 Biot - Microorganisms - Raspberry crawfishes - Raspberry rain
  160. # 5.16 Lakes - Goksha - Color of centered water - Dark Blue rain
  161. # 5.17 Lakes - Goksha - Color of coast water - Light Yellow rain
  162. # 5.18 Lakes - Titikaka - Green-violet rain
  163. # 5.19 Special Effects - Ultra-Violet rain
  164. # 5.20 Special Effects - Ultra-Purple rain
  165. # 5.21 Special Effects - Ultra-Lavender rain
  166. # 5.22 Special Effects - Ultra-Flame rain
  167. # 6) Falling Simple Leaves (Ccoa, Agckuu Coceg):
  168. # 6.0 Green leaves
  169. # 6.1 Yellow leaves
  170. # 6.2 Red leaves
  171. # 6.3 Autumn brown leaves
  172. # 7) Blowing Simple Leaves (Ccoa, Agckuu Coceg):
  173. # 7.0 Green leaves
  174. # 7.1 Yellow leaves
  175. # 7.2 Red leaves
  176. # 7.3 Autumn Brown leaves
  177. # 8) Swirling Simple Leaves (Ccoa, Agckuu Coceg):
  178. # 8.0 Green leaves
  179. # 8.1 Yellow leaves
  180. # 8.2 Red leaves
  181. # 8.3 Autumn brown leaves
  182. # 9) Realistic Storm (Agckuu Coceg, ForeverZer0)
  183. # 9.0 Realistic Storm
  184. # 9.1 Chemical - Ferrum - Crimson Realistic Storm
  185. # 9.2 Chemical - Oil Realistic Storm
  186. # 9.3 Chemical - Acid Realistic Storm
  187. # 9.4 Chemical - Golden Realisitic Storm
  188. # 9.5 Photo Effects - Sepia dark Realistic storm
  189. # 9.6 Photo Effects - Old T'vision Realstic Storm
  190. # 9.7 Photo Effects - Sepia light Realistic Storm
  191. # 9.8 Chemical - Silver Realistic Storm
  192. # 9.9 Chemical - Solution of muriatic and sulphuric acid - Milky white
  193. # Realistic Storm
  194. # 9.10 Chemical - Solution of muriatic and sulphuric acid - Light cyan
  195. # Realistic Storm
  196. # 9.11 Chemical - Ferrum - Light red Realistic Storm
  197. # 9.12 Chemical - Blackened Realistic Storm
  198. # 9.13 Biot - Microorganisms - Cyanobacterias - Cyan-Green Realistic Storm
  199. # 9.14 Biot - Microorganisms - Green evglena - Light green Realistic Storm
  200. # 9.15 Biot - Microorganisms - Raspberry crawfishes - Raspberry Realistic Storm
  201. # 9.16 Lakes - Goksha - Color of centered water - Dark Blue Realistic Storm
  202. # 9.17 Lakes - Goksha - Color of coast water - Light Yellow Realistic Storm
  203. # 9.18 Lakes - Titikaka - Green-violet Realistic Storm
  204. # 9.19 Special Effects - Ultra-Violet Realistic Storm
  205. # 9.20 Special Effects - Ultra-Purple Realistic Storm
  206. # 9.21 Special Effects - Ultra-Lavender Realistic Storm
  207. # 9.22 Special Effects - Ultra-Flame Realistic Storm
  208. # 10) Sakura Petals (Ccoa)
  209. # 11) Petals (Ccoa, Agckuu Coceg, ForeverZer0):
  210. # 11.0 Rose petals
  211. # 11.1 Lavender petals
  212. # 11.2 Tiger Lily petals
  213. # 11.3 Pink petals
  214. # 11.4 Blue petals
  215. # 11.5 Green petals
  216. # 11.6 Blue-Purple petals
  217. # 11.7 Cherry petals
  218. # 11.8 Tea rose Petals
  219. # 11.9 Yellow rose Petals
  220. # 11.10 Raspberry Petals
  221. # 11.11 Dark Blue Petals
  222. # 11.12 Violet Petals
  223. # 11.13 Light Sepia Petals
  224. # 11.14 Dark Sepia Petals
  225. # 11.15 Old T'Vision Petals
  226. # 12) Feathers (Ccoa)
  227. # 13) Butterflies collection(ForeverZer0, Agckuu Coceg)
  228. # 13.0 Violet
  229. # 13.1 Red
  230. # 13.2 Yellow
  231. # 13.3 Aqua-blue
  232. # 13.4 Green
  233. # 13.5 White
  234. # 13.6 Light cyan
  235. # 13.7 Light green
  236. # 13.8 Purple
  237. # 13.9 Light Yellow
  238. # 13.10 Lavender
  239. # 13.11 Brown
  240. # 13.12 Dark grey
  241. # 13.13 Light Sepia
  242. # 13.14 Dark Sepia
  243. # 13.15 Old T'Vision
  244. # 14) Sparkles (Ccoa, ForeverZer0, Agckuu Coceg)
  245. # 14.0 Blue
  246. # 14.1 Lavender
  247. # 14.2 Pink
  248. # 14.3 Green
  249. # 14.4 White
  250. # 14.5 Oil Brown
  251. # 14.6 Raspberry
  252. # 14.7 Flame Orange
  253. # 14.8 Light Cyan
  254. # 14.9 Green-Violet
  255. # 14.10 Light red
  256. # 15) User Defined types
  257. # 16) Blowing Snow (Ccoa, Agckuu Coceg)
  258. # 16.1 Normal blizzard
  259. # 16.2 Crimson blizzard
  260. # 17) Meteors (Ccoa, Agckuu Coceg, ForeverZer0)
  261. # 17.0 Normal
  262. # 17.1 Flame
  263. # 17.2 Rock
  264. # 18) Falling Ash (Ccoa)
  265. # 19) Bubbles (Ccoa)
  266. # 20) Bubbles 2 (Ccoa)
  267. # 21) Uprising Sparkles (Ccoa, ForeverZer0, Agckuu Coceg)
  268. # 21.0 Blue
  269. # 21.1 Lavender
  270. # 21.2 Pink
  271. # 21.3 Green
  272. # 21.4 White
  273. # 21.5 Oil Brown
  274. # 21.6 Raspberry
  275. # 21.7 Flame Orange
  276. # 21.8 Light Cyan
  277. # 21.9 Green-Violet
  278. # 21.10 Light red
  279. # 22) Falling Rocks (ForeverZer0)
  280. # 23) Arrows (ForeverZer0, Agckuu Coceg)
  281. # 23.0 Arrows
  282. # 23.1 Fired Arrows
  283. # 24) Starburst-Burst (Agckuu Coceg)
  284. # 25) Starburst-Up (Agckuu Coceg)
  285. # 26) Starburst-Rain (Agckuu Coceg)
  286. # 27) Monochromatic Starburst-Burst (Agckuu Coceg, ForeverZer0)
  287. # 27.0 Yellow
  288. # 27.1 Green
  289. # 27.2 Aqua-blue
  290. # 27.3 Blue
  291. # 27.4 Violet
  292. # 27.5 Red
  293. # 27.6 Lavender
  294. # 27.7 Grey
  295. # 27.8 White
  296. # 27.9 Dark Sepia
  297. # 27.10 Light Sepia
  298. # 28) Monochromatic Starburst-Up (Agckuu Coceg, ForeverZer0)
  299. # 28.0 Yellow
  300. # 28.1 Green
  301. # 28.2 Aqua-blue
  302. # 28.3 Blue
  303. # 28.4 Violet
  304. # 28.5 Red
  305. # 28.6 Lavender
  306. # 28.7 Grey
  307. # 28.8 White
  308. # 28.9 Dark Sepia
  309. # 28.10 Light Sepia
  310. # 29) Monochromatic Starburst-Down (Agckuu Coceg, ForeverZer0)
  311. # 29.0 Yellow
  312. # 29.1 Green
  313. # 29.2 Aqua-blue
  314. # 29.3 Blue
  315. # 29.4 Violet
  316. # 29.5 Red
  317. # 29.6 Lavender
  318. # 29.7 Grey
  319. # 29.8 White
  320. # 29.9 Dark Sepia
  321. # 29.10 Light Sepia
  322. # 30) Bombs (Agckuu Coceg)
  323. # 30.0 Water
  324. # 30.1 Ice
  325. # 30.2 Flare
  326. # 31) Birds (ForeverZer0, Agckuu Coceg)
  327. # 31.0 White pigeons
  328. # 31.1 Grey pigeons
  329. # 31.2 Crows
  330. # 31.3 Pink pigeons
  331. # 31.4 Green Birds
  332. # 31.5 Yellow Birds
  333. # 32) Falling Maple Leaves (Agckuu Coceg)
  334. # 32.0 Green maple leaves
  335. # 32.1 Yellow maple leaves
  336. # 32.2 Red maple leaves
  337. # 32.3 Autumn brown maple leaves
  338. # 33) Falling Maple Leaves (Agckuu Coceg)
  339. # 33.0 Green maple leaves
  340. # 33.1 Yellow maple leaves
  341. # 33.2 Red maple leaves
  342. # 33.3 Autumn brown maple leaves
  343. # 34) Falling Maple Leaves (Agckuu Coceg)
  344. # 34.0 Green maple leaves
  345. # 34.1 Yellow maple leaves
  346. # 34.2 Red maple leaves
  347. # 34.3 Autumn brown maple leaves
  348. # 35) Realistic rain (Agckuu Coceg):
  349. # 35.0 Normal rain
  350. # 35.1 Chemical - Ferrum - Crimson blood rain
  351. # 35.2 Chemical - Oil rain
  352. # 35.3 Chemical - Acid rain
  353. # 35.4 Chemical - Golden rain
  354. # 35.5 Photo Effects - Sepia dark rain
  355. # 35.6 Photo Effects - Old T'vision rain
  356. # 35.7 Photo Effects - Sepia light rain
  357. # 35.8 Silver rain
  358. # 35.9 Chemical - Solution of muriatic and sulphuric acid - Milky white rain
  359. # 35.10 Chemical - Solution of muriatic and sulphuric acid - Light cyan rain
  360. # 35.11 Chemical - Ferrum - Light red rain
  361. # 35.12 Chemical - Blackened rain
  362. # 35.13 Biot - Microorganisms - Cyanobacterias - Cyan-Green rain
  363. # 35.14 Biot - Microorganisms - Green evglena - Light green rain
  364. # 35.15 Biot - Microorganisms - Raspberry crawfishes - Raspberry rain
  365. # 35.16 Lakes - Goksha - Color of centered water - Dark Blue rain
  366. # 35.17 Lakes - Goksha - Color of coast water - Light Yellow rain
  367. # 35.18 Lakes - Titikaka - Green-violet rain
  368. # 35.19 Special Effects - Ultra-Violet rain
  369. # 35.20 Special Effects - Ultra-Purple rain
  370. # 35.21 Special Effects - Ultra-Lavender rain
  371. # 35.22 Special Effects - Ultra-Flame rain
  372. #-------------------------------------------------------------------------------
  373. # CONFIGURATIONS
  374. #-------------------------------------------------------------------------------
  375.  
  376. WEATHER_TYPE_VARIABLE = 13
  377. # ID of game variable. Will be equal to the "type" of weather.
  378.  
  379. ADVERSE_WEATHER_SWITCH = 16
  380. # ID of the game switch. Will be true during bad weather. (see below)
  381.  
  382. ADVERSE_WEATHER = [1, 2, 4, 5, 9, 16]
  383. # Include any effects you wish. Adverse weather switch will be true when
  384. # any of these weather patterns are occuring.
  385.  
  386. THUNDER_RATE = 5
  387. # Adjust how constant the thunder is. Higher values will increase the delay
  388. # between thunder strikes. Weather power will still effect the rate, but this
  389. # will change the overall rate. 0 will result in constant, unending screen
  390. # flashes.
  391.  
  392. #-------------------------------------------------------------------------------
  393. # END CONFIGURATIONS
  394. #-------------------------------------------------------------------------------
  395.  
  396. #-------------------------------------------------------------------------------
  397. # Weather Power:
  398. # An integer from 0-50. 0 = no weather, 50 = 500 sprites
  399. #-------------------------------------------------------------------------------
  400. # Transition:
  401. # The number of frames to "transition" the weather in
  402. #-------------------------------------------------------------------------------
  403. # Usage of user-defined weather:
  404. # Look at the following globals:
  405. #-------------------------------------------------------------------------------
  406. $WEATHER_UPDATE = false # the $WEATHER_IMAGES array has changed, please update
  407. $WEATHER_IMAGES = [] # the array of picture names to use
  408. $WEATHER_X = 0 # the number of pixels the image should move horizontally (positive = right, negative = left)
  409. $WEATHER_Y = 0 # the number of pizels the image should move vertically (positive = down, negative = up)
  410. $WEATHER_FADE = 0 # how much the image should fade each update (0 = no fade, 255 = fade instantly)
  411. $WEATHER_ANIMATED = false # whether or not the image should cycle through all the images
  412. #-------------------------------------------------------------------------------
  413.  
  414. $modified_aws = 1.2
  415.  
  416. module RPG
  417. class Weather
  418. def initialize(viewport = nil)
  419. $game_screen = Game_Screen.new if $game_screen == nil
  420. @type = @max = @ox = @oy = @count = 0
  421. @current_pose, @info, @countarray = [], [], []
  422. make_bitmaps
  423.  
  424. (1..500).each {|i|
  425. sprite = Sprite.new(viewport)
  426. sprite.z = 1000
  427. sprite.visible = false
  428. sprite.opacity = 0
  429. @sprites.push(sprite)
  430. @current_pose.push(0)
  431. @info.push(rand(50))
  432. @countarray.push(rand(15))
  433. }
  434. end
  435.  
  436. def dispose
  437.  
  438. @sprites.each {|sprite| sprite.dispose}
  439.  
  440. [@rain_bitmap, @storm_bitmap, @impact_bitmap, @meteor_bitmap,
  441. @sakura_bitmap, @hail_bitmap, @snow_bitmap, @bomb_bitmap,
  442. @arrow_bitmap].each {|bitmap| bitmap.dispose}
  443.  
  444. @leaf_bitmaps.each {|image| image.dispose}
  445. @autumn_leaf_bitmaps.each {|image| image.dispose}
  446. @petal_bitmaps.each {|image| image.dispose}
  447. @feather_bitmaps.each {|image| image.dispose}
  448. @sparkle_bitmaps.each {|image| image.dispose}
  449. @starburst_bitmaps.each {|image| image.dispose}
  450. @monostarburst_bitmaps.each {|image| image.dispose}
  451. @fallingrocks_bitmaps.each {|image| image.dispose}
  452. @butterfly_bitmaps.each {|image| image.dispose}
  453. @bird_bitmaps.each {|image| image.dispose}
  454. @user_bitmaps.each {|image| image.dispose}
  455.  
  456. $WEATHER_UPDATE = true
  457.  
  458. end
  459. #-------------------------------------------------------------------------------
  460. def type=(type)
  461. return if @type == type
  462. @type = type
  463. case @type
  464. when 1 # Rain
  465. bitmap = @rain_bitmap
  466. when 2 # Storm
  467. bitmap = @storm_bitmap
  468. when 3, 16 # Snow
  469. bitmap = @snow_bitmap
  470. when 4 # Hail
  471. bitmap = @hail_bitmap
  472. when 5 # Rain w/ thunder and lightning
  473. bitmap = @rain_bitmap
  474. @thunder = true
  475. when 6, 7, 8 # Leaves
  476. bitmap = @leaf_bitmaps[0]
  477. when 9 # Realistic storm
  478. bitmap = @storm_bitmap
  479. @realistic_thunder = true
  480. when 10 # Sakura petals
  481. bitmap = @sakura_bitmap
  482. when 11 # Flower petals
  483. bitmap = @petal_bitmaps[0]
  484. when 12 # Feathers
  485. bitmap = @feather_bitmaps[0]
  486. when 13 # Butterflies
  487. bitmap = @butterfly_bitmaps
  488. when 14 # Sparkles
  489. bitmap = @sparkle_bitmaps[0]
  490. when 15 # User-defined
  491. bitmap = @user_bitmaps[rand(@user_bitmaps.size)]
  492. when 17 # Meteors
  493. bitmap = @meteor_bitmap
  494. when 18 # Falling ash
  495. bitmap = @ash_bitmaps[rand(2)]
  496. when 19 # Bubbles
  497. bitmap = @bubble_bitmaps[rand(2)]
  498. when 20 # Bubbles 2
  499. bitmap = @bubble2_bitmaps[rand(4)]
  500. when 21 # Sparkles up
  501. bitmap = @sparkle_bitmaps[0]
  502. when 22 # Falling rocks
  503. bitmap = @fallingrocks_bitmaps
  504. when 23 # Arrows
  505. bitmap = @arrow_bitmap
  506. when 24, 25, 26 # Starburst
  507. bitmap = @starburst_bitmaps[0]
  508. when 27, 28, 29 # Mono-starburst
  509. bitmap = @monostarburst_bitmaps[0]
  510. when 30 # Bombs
  511. bitmap = @bomb_bitmap
  512. when 31 # Birds
  513. bitmap = @bird_bitmaps
  514. when 32, 33, 34 # Autumn leaves
  515. bitmap = @autumn_leaf_bitmaps[0]
  516. when 35 # Realistic rain
  517. bitmap = @rain_bitmap
  518. @realistic_rain_thunder = true
  519. else # No weather
  520. bitmap = nil
  521. end
  522.  
  523. @thunder = false if @type != 5
  524. @realistic_thunder = false if @type != 9
  525. @realistic_rain_thunder = false if @type != 35
  526. # Operates the Adverse Weather Switch and Weather Type Variable
  527. if $game_switches != nil && $game_variables != nil
  528. $game_variables[WEATHER_TYPE_VARIABLE] = $game_screen.weather_type
  529. if ADVERSE_WEATHER.include?($game_screen.weather_type)
  530. $game_switches[ADVERSE_WEATHER_SWITCH] = true
  531. else
  532. $game_switches[ADVERSE_WEATHER_SWITCH] = false
  533. end
  534. end
  535.  
  536. (1..500).each {|i|
  537. sprite = @sprites[i]
  538. if sprite != nil
  539. sprite.visible = (i <= @max)
  540. if @type == 19
  541. sprite.bitmap = @bubble_bitmaps[rand(@bubble_bitmaps.size)]
  542. elsif @type == 20
  543. sprite.bitmap = @bubble2_bitmaps[rand(@bubble2_bitmaps.size)]
  544. elsif @type == 3
  545. r = rand(@snow_bitmaps.size)
  546. @info[i] = r
  547. sprite.bitmap = @snow_bitmaps[r]
  548. elsif @type == 22
  549. r = rand(3)
  550. @info[i] = r
  551. sprite.bitmap = @fallingrocks_bitmaps[r]
  552. elsif @type == 13
  553. @current_pose[i] = rand(16)
  554. sprite.bitmap = @butterfly_bitmaps[@current_pose[i]]
  555. elsif @type == 31
  556. @current_pose[i] = rand(4)
  557. sprite.bitmap = @bird_bitmaps[@current_pose[i]]
  558. else
  559. sprite.bitmap = bitmap
  560. end
  561. end
  562. }
  563. end
  564.  
  565. def ox=(ox)
  566. return if @ox == ox;
  567. @ox = ox
  568. @sprites.each {|sprite| sprite.ox = @ox}
  569. end
  570.  
  571. def oy=(oy)
  572. return if @oy == oy;
  573. @oy = oy
  574. @sprites.each {|sprite| sprite.oy = @oy}
  575. end
  576.  
  577. def max=(max)
  578. return if @max == max;
  579. @max = [[max, 0].max, 500].min
  580. (1..500).each {|i|
  581. sprite = @sprites[i]
  582. sprite.visible = (i <= @max) if sprite != nil
  583. }
  584. end
  585.  
  586. #-------------------------------------------------------------------------------
  587. def update
  588. return if @type == 0
  589. (1..@max).each {|i|
  590. sprite = @sprites[i]
  591. break if sprite == nil
  592. #----------------------------------------------------------------------
  593. if @type == 1 || @type == 5 || @type == 35 # Rain
  594. if sprite.opacity <= 150
  595. if @current_pose[i] == 0
  596. sprite.y += @rain_bitmap.height
  597. sprite.x -= @rain_bitmap.width
  598. if @type == 1 || @type == 5 || @type == 35
  599. sprite.bitmap = @rain_splash
  600. end
  601. @current_pose[i] = 1
  602. end
  603. else
  604. if @current_pose[i] == 1
  605. if @type == 1 || @type == 5 || @type == 35
  606. sprite.bitmap = @rain_bitmap
  607. end
  608. @current_pose[i] = 0
  609. end
  610. sprite.x -= 2
  611. sprite.y += 16
  612. if @thunder && (rand((THUNDER_RATE * 2000) - @max) == 0)
  613. case $game_screen.weather_variation
  614. when 0, 2, 3, 4, 8, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22 # All the rest rain effects
  615. $game_screen.start_flash(Color.new(255, 255, 255, 255), 5)
  616. when 1 # Blood
  617. $game_screen.start_flash(Color.new(141, 9, 9, 255), 5)
  618. when 5 # Dark Sepia
  619. $game_screen.start_flash(Color.new(169, 152, 142, 255), 5)
  620. when 6 # Old T'Vision
  621. $game_screen.start_flash(Color.new(118, 120, 123, 255), 5)
  622. when 7 # Light Sepia
  623. $game_screen.start_flash(Color.new(220, 195, 170, 255), 5)
  624. when 11 # Light Red
  625. $game_screen.start_flash(Color.new(255, 0, 0, 255), 5)
  626. end
  627. thundervolume = rand(50) + 50 # Random number 50-100
  628. thunderpitch = rand(100) + 50 # Random number 50-150
  629. Audio.se_play('Audio/SE/061-Thunderclap01', thundervolume, thunderpitch)
  630. end
  631. end
  632. sprite.opacity -= 8
  633. end
  634. if @realistic_thunder && (rand((THUNDER_RATE * 2000) - @max) == 0)
  635. thundervolume = rand(50) + 50 # Random number 50-100
  636. thunderpitch = rand(100) + 50 # Random number 50-150
  637. Audio.se_play('Audio/SE/061-Thunderclap01', thundervolume, thunderpitch)
  638. # Screen will not flash or shake unless the volume and pitch are high
  639. #===================================================
  640. if thundervolume > 75 && thunderpitch > 100
  641. if game_variables[14] = 0
  642. case $game_screen.weather_variation
  643. when 0, 2, 3, 4, 8, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22 # All the rest storm effects
  644. $game_screen.start_flash(Color.new(255, 255, 255, 255), 7)
  645. $game_screen.start_shake(9, 7, 5)
  646. when 1 # Blood
  647. $game_screen.start_flash(Color.new(141, 9, 9, 255), 5)
  648. $game_screen.start_shake(9, 7, 5)
  649. when 5 # Dark Sepia
  650. $game_screen.start_flash(Color.new(169, 152, 142, 255), 5)
  651. $game_screen.start_shake(9, 7, 5)
  652. when 6 # Old T'Vision
  653. $game_screen.start_flash(Color.new(118, 120, 123, 255), 5)
  654. $game_screen.start_shake(9, 7, 5)
  655. when 7 # Light Sepia
  656. $game_screen.start_flash(Color.new(220, 195, 170, 255), 5)
  657. $game_screen.start_shake(9, 7, 5)
  658. when 11 # Light Red
  659. $game_screen.start_flash(Color.new(255, 0, 0, 255), 5)
  660. $game_screen.start_shake(9, 7, 5)
  661. end
  662. end
  663. #===================================================
  664. end
  665. end
  666. if @realistic_rain_thunder && (rand((THUNDER_RATE * 2000) - @max) == 0)
  667. thundervolume = rand(50) + 50 # Random number 50-100
  668. thunderpitch = rand(100) + 50 # Random number 50-150
  669. Audio.se_play('Audio/SE/061-Thunderclap01', thundervolume, thunderpitch)
  670. # Screen will not flash or shake unless the volume and pitch are high
  671. if thundervolume > 75 && thunderpitch > 100
  672. case $game_screen.weather_variation
  673. when 0, 2, 3, 4, 8, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22 # All the rest storm effects
  674. $game_screen.start_flash(Color.new(255, 255, 255, 255), 7)
  675. $game_screen.start_shake(5, 7, 5)
  676. when 1 # Blood
  677. $game_screen.start_flash(Color.new(141, 9, 9, 255), 5)
  678. $game_screen.start_shake(5, 7, 5)
  679. when 5 # Dark Sepia
  680. $game_screen.start_flash(Color.new(169, 152, 142, 255), 5)
  681. $game_screen.start_shake(5, 7, 5)
  682. when 6 # Old T'Vision
  683. $game_screen.start_flash(Color.new(118, 120, 123, 255), 5)
  684. $game_screen.start_shake(5, 7, 5)
  685. when 7 # Light Sepia
  686. $game_screen.start_flash(Color.new(220, 195, 170, 255), 5)
  687. $game_screen.start_shake(5, 7, 5)
  688. when 11 # Light Red
  689. $game_screen.start_flash(Color.new(255, 0, 0, 255), 5)
  690. $game_screen.start_shake(5, 7, 5)
  691. end
  692. end
  693. end
  694. #----------------------------------------------------------------------
  695. if @type == 2 || @type == 9 # Storm
  696. sprite.x -= 8
  697. sprite.y += 16
  698. sprite.opacity -= 12
  699. end
  700. #----------------------------------------------------------------------
  701. if @type == 3 # Snow
  702. case @info[i]
  703. when 0
  704. sprite.y += 1
  705. when 1
  706. sprite.y += 3
  707. when 2
  708. sprite.y += 5
  709. when 3
  710. sprite.y += 7
  711. end
  712. sprite.opacity -= 3
  713. end
  714. #----------------------------------------------------------------------
  715. if @type == 4 # Hail
  716. sprite.x -= 1
  717. sprite.y += 18
  718. sprite.opacity -= 15
  719. end
  720. #----------------------------------------------------------------------
  721. if @type == 6 # Falling Leaves
  722. @count = rand(20)
  723. if @count == 0
  724. sprite.bitmap = @leaf_bitmaps[@current_pose[i]]
  725. @current_pose[i] = (@current_pose[i] + 1) % @leaf_bitmaps.size
  726. end
  727. sprite.y += 1
  728. end
  729. #----------------------------------------------------------------------
  730. if @type == 7 # Blowing Leaves
  731. @count = rand(20)
  732. if @count == 0
  733. sprite.bitmap = @leaf_bitmaps[@current_pose[i]]
  734. @current_pose[i] = (@current_pose[i] + 1) % @leaf_bitmaps.size
  735. end
  736. sprite.x -= 10
  737. sprite.y += (rand(4) - 2)
  738. end
  739. #----------------------------------------------------------------------
  740. if @type == 8 # Swirling Leaves
  741. @count = rand(20)
  742. if @count == 0
  743. sprite.bitmap = @leaf_bitmaps[@current_pose[i]]
  744. @current_pose[i] = (@current_pose[i] + 1) % @leaf_bitmaps.size
  745. end
  746. if @info[i] != 0
  747. if @info[i] >= 1 && @info[i] <= 10
  748. sprite.x -= 3
  749. sprite.y -= 1
  750. elsif @info[i] >= 11 && @info[i] <= 16
  751. sprite.x -= 1
  752. sprite.y -= 2
  753. elsif @info[i] >= 17 && @info[i] <= 20
  754. sprite.y -= 3
  755. elsif @info[i] >= 21 && @info[i] <= 30
  756. sprite.y -= 2
  757. sprite.x += 1
  758. elsif @info[i] >= 31 && @info[i] <= 36
  759. sprite.y -= 1
  760. sprite.x += 3
  761. elsif @info[i] >= 37 && @info[i] <= 40
  762. sprite.x += 5
  763. elsif @info[i] >= 41 && @info[i] <= 46
  764. sprite.y += 1
  765. sprite.x += 3
  766. elsif @info[i] >= 47 && @info[i] <= 58
  767. sprite.y += 2
  768. sprite.x += 1
  769. elsif @info[i] >= 59 && @info[i] <= 64
  770. sprite.y += 3
  771. elsif @info[i] >= 65 && @info[i] <= 70
  772. sprite.x -= 1
  773. sprite.y += 2
  774. elsif @info[i] >= 71 && @info[i] <= 81
  775. sprite.x -= 3
  776. sprite.y += 1
  777. elsif @info[i] >= 82 && @info[i] <= 87
  778. sprite.x -= 5
  779. end
  780. @info[i] = (@info[i] + 1) % 88
  781. else
  782. if rand(200) == 0
  783. @info[i] = 1
  784. end
  785. sprite.x -= 5
  786. sprite.y += 1
  787. end
  788. end
  789. #--------------------------------------------------------------------
  790. if @type == 32 # Falling Leaves
  791. @count = rand(20)
  792. if @count == 0
  793. sprite.bitmap = @autumn_leaf_bitmaps[@current_pose[i]]
  794. @current_pose[i] = (@current_pose[i] + 1) % @autumn_leaf_bitmaps.size
  795. end
  796. sprite.y += 1
  797. end
  798. #----------------------------------------------------------------------
  799. if @type == 33 # Blowing Leaves
  800. @count = rand(20)
  801. if @count == 0
  802. sprite.bitmap = @autumn_leaf_bitmaps[@current_pose[i]]
  803. @current_pose[i] = (@current_pose[i] + 1) % @autumn_leaf_bitmaps.size
  804. end
  805. sprite.x -= 10
  806. sprite.y += (rand(4) - 2)
  807. end
  808. #----------------------------------------------------------------------
  809. if @type == 34 # Swirling Leaves
  810. @count = rand(20)
  811. if @count == 0
  812. sprite.bitmap = @autumn_leaf_bitmaps[@current_pose[i]]
  813. @current_pose[i] = (@current_pose[i] + 1) % @autumn_leaf_bitmaps.size
  814. end
  815. if @info[i] != 0
  816. if @info[i] >= 1 && @info[i] <= 10
  817. sprite.x -= 3
  818. sprite.y -= 1
  819. elsif @info[i] >= 11 && @info[i] <= 16
  820. sprite.x -= 1
  821. sprite.y -= 2
  822. elsif @info[i] >= 17 && @info[i] <= 20
  823. sprite.y -= 3
  824. elsif @info[i] >= 21 && @info[i] <= 30
  825. sprite.y -= 2
  826. sprite.x += 1
  827. elsif @info[i] >= 31 && @info[i] <= 36
  828. sprite.y -= 1
  829. sprite.x += 3
  830. elsif @info[i] >= 37 && @info[i] <= 40
  831. sprite.x += 5
  832. elsif @info[i] >= 41 && @info[i] <= 46
  833. sprite.y += 1
  834. sprite.x += 3
  835. elsif @info[i] >= 47 && @info[i] <= 58
  836. sprite.y += 2
  837. sprite.x += 1
  838. elsif @info[i] >= 59 && @info[i] <= 64
  839. sprite.y += 3
  840. elsif @info[i] >= 65 && @info[i] <= 70
  841. sprite.x -= 1
  842. sprite.y += 2
  843. elsif @info[i] >= 71 && @info[i] <= 81
  844. sprite.x -= 3
  845. sprite.y += 1
  846. elsif @info[i] >= 82 && @info[i] <= 87
  847. sprite.x -= 5
  848. end
  849. @info[i] = (@info[i] + 1) % 88
  850. else
  851. if rand(200) == 0
  852. @info[i] = 1
  853. end
  854. sprite.x -= 5
  855. sprite.y += 1
  856. end
  857. end
  858. #----------------------------------------------------------------------
  859. if @type == 10 # Sakura Petals
  860. if @info[i] < 25
  861. sprite.x -= 1
  862. else
  863. sprite.x += 1
  864. end
  865. @info[i] = (@info[i] + 1) % 50
  866. sprite.y += 1
  867. end
  868. #----------------------------------------------------------------------
  869. if @type == 11 # Flower Petals
  870. @count = rand(20)
  871. if @count == 0
  872. sprite.bitmap = @petal_bitmaps[@current_pose[i]]
  873. @current_pose[i] = (@current_pose[i] + 1) % @petal_bitmaps.size
  874. end
  875. if @info[i] % 2 == 0
  876. if @info[i] < 10
  877. sprite.x -= 1
  878. elsif
  879. sprite.x += 1
  880. end
  881. end
  882. sprite.y += 1
  883. end
  884. #----------------------------------------------------------------------
  885. if @type == 12 # Feathers
  886. if @countarray[i] == 0
  887. @current_pose[i] = (@current_pose[i] + 1) % @feather_bitmaps.size
  888. sprite.bitmap = @feather_bitmaps[@current_pose[i]]
  889. end
  890. @countarray[i] = (@countarray[i] + 1) % 15
  891. if rand(100) == 0
  892. sprite.x -= 1
  893. end
  894. if rand(100) == 0
  895. sprite.y -= 1
  896. end
  897. if @info[i] < 50
  898. if rand(2) == 0
  899. sprite.x -= 1
  900. else
  901. sprite.y -= 1
  902. end
  903. else
  904. if rand(2) == 0
  905. sprite.x += 1
  906. else
  907. sprite.y += 1
  908. end
  909. end
  910. @info[i] = (@info[i] + 1) % 100
  911. end
  912. #----------------------------------------------------------------------
  913. if @type == 13 # Butterflies
  914. @count = (@count += 1) % 5
  915. sprite.bitmap = @butterfly_bitmaps[@current_pose[i]]
  916. if @count == 0 || 3
  917. if @count == 0
  918. case @current_pose[i]
  919. when 0, 1, 2, 3
  920. @current_pose[i] = (@current_pose[i] += 1) % 4
  921. when 4, 5, 6, 7
  922. @current_pose[i] = ((@current_pose[i] += 1) % 4) + 4
  923. when 8, 9, 10, 11
  924. @current_pose[i] = ((@current_pose[i] += 1) % 4) + 8
  925. when 12, 13, 14, 15
  926. @current_pose[i] = ((@current_pose[i] += 1) % 4) + 12
  927. end
  928. end
  929. case @current_pose[i]
  930. when 0, 1, 2, 3
  931. sprite.y -= 1
  932. sprite.x -= 1 if @current_pose[i] == 0
  933. sprite.x += 1 if @current_pose[i] == 2
  934. when 4, 5, 6, 7
  935. sprite.y += 1
  936. sprite.x += 1 if @current_pose[i] == 4
  937. sprite.x -= 1 if @current_pose[i] == 6
  938. when 8, 9, 10, 11
  939. sprite.x -= 1
  940. sprite.y -= 1 if @current_pose[i] == 8
  941. sprite.y += 1 if @current_pose[i] == 10
  942. when 12, 13, 14, 15
  943. sprite.x += 1
  944. sprite.y -= 1 if @current_pose[i] == 12
  945. sprite.y += 1 if @current_pose[i] == 14
  946. end
  947. end
  948. end
  949. #----------------------------------------------------------------------
  950. if @type == 14 # Sparkles
  951. if @countarray[i] == 0
  952. @current_pose[i] = (@current_pose[i] + 1) % @sparkle_bitmaps.size
  953. sprite.bitmap = @sparkle_bitmaps[@current_pose[i]]
  954. end
  955. @countarray[i] = (@countarray[i] + 1) % 15
  956. sprite.y += 1
  957. sprite.opacity -= 1
  958. end
  959. #----------------------------------------------------------------------
  960. if @type == 15 # User-Defined
  961. if $WEATHER_UPDATE
  962. update_user_defined
  963. $WEATHER_UPDATE = false
  964. end
  965. if $WEATHER_ANIMATED && @countarray[i] == 0
  966. @current_pose[i] = (@current_pose[i] + 1) % @user_bitmaps.size
  967. sprite.bitmap = @user_bitmaps[@current_pose[i]]
  968. end
  969. sprite.x += $WEATHER_X
  970. sprite.y += $WEATHER_Y
  971. sprite.opacity -= $WEATHER_FADE
  972. end
  973. #----------------------------------------------------------------------
  974. if @type == 16 # Blowing Snow
  975. sprite.x -= 10
  976. sprite.y += 6
  977. sprite.opacity -= 4
  978. end
  979. #----------------------------------------------------------------------
  980. if @type == 17 # Meteors
  981. if @countarray[i] > 0
  982. if rand(20) == 0
  983. sprite.bitmap = @impact_bitmap
  984. @countarray[i] = -5
  985. else
  986. sprite.x -= 6
  987. sprite.y += 10
  988. end
  989. else
  990. @countarray[i] += 1
  991. if @countarray[i] == 0
  992. sprite.bitmap = @meteor_bitmap
  993. sprite.opacity = 0
  994. @count_array = 1
  995. end
  996. end
  997. end
  998. #----------------------------------------------------------------------
  999. if @type == 18 # Ash
  1000. sprite.y += 2
  1001. case @countarray[i] % 3
  1002. when 0
  1003. sprite.x -= 1
  1004. when 1
  1005. sprite.x += 1
  1006. end
  1007. end
  1008. #----------------------------------------------------------------------
  1009. if @type == 19 || @type == 20 # Bubbles
  1010. switch = rand(75) + rand(75) + 1
  1011. if @info[i] < switch / 2
  1012. sprite.x -= 1
  1013. else
  1014. sprite.x += 1
  1015. end
  1016. @info[i] = (@info[i] + 1) % switch
  1017. sprite.y -= 1
  1018. if switch % 2 == 0
  1019. sprite.opacity -= 1
  1020. end
  1021. end
  1022. #----------------------------------------------------------------------
  1023. if @type == 21 # Sparkles Up
  1024. if @countarray[i] == 0
  1025. @current_pose[i] = (@current_pose[i] + 1) % @sparkle_bitmaps.size
  1026. sprite.bitmap = @sparkle_bitmaps[@current_pose[i]]
  1027. end
  1028. @countarray[i] = (@countarray[i] + 1) % 15
  1029. sprite.y -= 1
  1030. sprite.opacity -= 1
  1031. end
  1032. #----------------------------------------------------------------------
  1033. if @type == 22 # Falling Rocks
  1034. case @info[i]
  1035. when 0 # large
  1036. sprite.y += 10
  1037. when 1 # small
  1038. sprite.y += 5
  1039. when 2 # mid-size
  1040. sprite.y += 7
  1041. end
  1042. sprite.opacity -= 1
  1043. end
  1044. #----------------------------------------------------------------------
  1045. if @type == 23 # Arrows
  1046. sprite.y += 10
  1047. sprite.x -= 7
  1048. end
  1049. #----------------------------------------------------------------------
  1050. if @type == 24 # Starburst
  1051. if @countarray[i] == 0
  1052. @current_pose[i] = (@current_pose[i] + 1) % @starburst_bitmaps.size
  1053. sprite.bitmap = @starburst_bitmaps[@current_pose[i]]
  1054. end
  1055. @countarray[i] = (@countarray[i] + 1) % 15
  1056. sprite.y += 1
  1057. sprite.opacity -= 1
  1058. end
  1059. #----------------------------------------------------------------------
  1060. if @type == 25 # Starburst up
  1061. if @countarray[i] == 0
  1062. @current_pose[i] = (@current_pose[i] + 1) % @starburst_bitmaps.size
  1063. sprite.bitmap = @starburst_bitmaps[@current_pose[i]]
  1064. end
  1065. @countarray[i] = (@countarray[i] + 1) % 15
  1066. sprite.y -= 1
  1067. sprite.opacity -= 1
  1068. end
  1069. #----------------------------------------------------------------------
  1070. if @type == 26 # Starburst Rain
  1071. if @countarray[i] == 0
  1072. @current_pose[i] = (@current_pose[i] + 1) % @starburst_bitmaps.size
  1073. sprite.bitmap = @starburst_bitmaps[@current_pose[i]]
  1074. end
  1075. @countarray[i] = (@countarray[i] + 1) % 15
  1076. sprite.x -= 2
  1077. sprite.y += 8
  1078. sprite.opacity -= 1
  1079. end
  1080. #----------------------------------------------------------------------
  1081. if @type == 27 # Monochromatic Starburst
  1082. if @countarray[i] == 0
  1083. @current_pose[i] = (@current_pose[i] + 1) % @monostarburst_bitmaps.size
  1084. sprite.bitmap = @monostarburst_bitmaps[@current_pose[i]]
  1085. end
  1086. @countarray[i] = (@countarray[i] + 1) % 15
  1087. sprite.y += 1
  1088. sprite.opacity -= 1
  1089. end
  1090. #----------------------------------------------------------------------
  1091. if @type == 28 # Monochromatic Starburst Up
  1092. if @countarray[i] == 0
  1093. @current_pose[i] = (@current_pose[i] + 1) % @monostarburst_bitmaps.size
  1094. sprite.bitmap = @monostarburst_bitmaps[@current_pose[i]]
  1095. end
  1096. @countarray[i] = (@countarray[i] + 1) % 15
  1097. sprite.y -= 1
  1098. sprite.opacity -= 1
  1099. end
  1100. #----------------------------------------------------------------------
  1101. if @type == 29 # Monochromatic Starburst Rain
  1102. if @countarray[i] == 0
  1103. @current_pose[i] = (@current_pose[i] + 1) % @monostarburst_bitmaps.size
  1104. sprite.bitmap = @monostarburst_bitmaps[@current_pose[i]]
  1105. end
  1106. @countarray[i] = (@countarray[i] + 1) % 15
  1107. sprite.x -= 2
  1108. sprite.y += 8
  1109. sprite.opacity -= 1
  1110. end
  1111. #----------------------------------------------------------------------
  1112. if @type == 30 # Bombs
  1113. if @countarray[i] > 0
  1114. if rand(20) == 0
  1115. sprite.bitmap = @bomb_impact_bitmap
  1116. @countarray[i] = -5
  1117. else
  1118. sprite.x -= 3
  1119. sprite.y += 5
  1120. end
  1121. else
  1122. @countarray[i] += 1
  1123. if @countarray[i] == 0
  1124. sprite.bitmap = @bomb_bitmap
  1125. sprite.opacity = 0
  1126. @count_array = 1
  1127. end
  1128. end
  1129. end
  1130. x = sprite.x - @ox
  1131. y = sprite.y - @oy
  1132. if sprite.opacity < 64 || x < -50 || x > 750 || y < -300 || y > 500
  1133. sprite.x = rand(800) - 50 + @ox
  1134. sprite.y = rand(800) - 200 + @oy
  1135. sprite.opacity = 255
  1136. end
  1137. #----------------------------------------------------------------------
  1138. if @type == 31 # Birds
  1139. @count = (@count += 1) % 5
  1140. if @count == 0
  1141. @current_pose[i] = (@current_pose[i] += 1) % 4
  1142. end
  1143. sprite.bitmap = @bird_bitmaps[@current_pose[i]]
  1144. sprite.x -= rand(2) + 3
  1145. if @info[i] != 0 # Adds a little variation in the flight pattern
  1146. sprite.y -= 1 if @info[i] < 20
  1147. sprite.y += 1 if @info[i] < 40 && @info[i] >= 20
  1148. sprite.y -= 1 if @info[i] < 70 && @info[i] >= 40
  1149. sprite.y += 1 if @info[i] < 120 && @info[i] >= 70
  1150. end
  1151. @info[i] = (@info[i] += 1) % 120
  1152. end
  1153. #-------------------------------------------------------------------------------
  1154. }
  1155. end
  1156. #-------------------------------------------------------------------------------
  1157. def make_bitmaps
  1158.  
  1159. # All the colors for each type are used only for their respective bitmaps
  1160. # now, therefore the colors can be changed for one type without worrying
  1161. # about messing up another that shares that color.
  1162.  
  1163. #-------------------------------------------------------------------------------
  1164. # Rain Bitmap
  1165.  
  1166. @rain_bitmap = Bitmap.new(7, 56)
  1167. rain_color = case $game_screen.weather_variation
  1168. when 1 then Color.new(141, 9, 9) # Blood Rain
  1169. when 2 then Color.new(33, 15, 3) # Oil Rain
  1170. when 3 then Color.new(76, 91, 43) # Acid Rain
  1171. when 4 then Color.new(218, 207, 36) # Golden Rain
  1172. when 5 then Color.new(100, 75, 63) # Sepia Dark Rain
  1173. when 6 then Color.new(143, 143, 143) # Old T'Vision Rain
  1174. when 7 then Color.new(230, 220, 209) # Sepia Light Rain
  1175. when 8 then Color.new(219, 219, 219) # Silver Rain
  1176. when 9 then Color.new(249, 249, 249) # Milky White Rain
  1177. when 10 then Color.new(83, 232, 232) # Light Cyan Rain
  1178. when 11 then Color.new(255, 9, 7) # Light Red Rain
  1179. when 12 then Color.new(3, 3, 3) # Blackened Rain
  1180. when 13 then Color.new(0, 216, 102) # Cyan-Green Rain
  1181. when 14 then Color.new(112, 238, 110) # Light Green Rain
  1182. when 15 then Color.new(177, 19, 20) # Raspberry Rain
  1183. when 16 then Color.new(5, 54, 253) # Dark Blue Rain
  1184. when 17 then Color.new(240, 235, 139) # Light Yellow Rain
  1185. when 18 then Color.new(56, 73, 227) # Green-Violet Rain
  1186. when 19 then Color.new(129, 22, 204) # Ultra Violet Rain
  1187. when 20 then Color.new(204, 23, 125) # Ultra Purple Rain
  1188. when 21 then Color.new(193, 180, 217) # Ultra Lavender Rain
  1189. when 22 then Color.new(245, 128, 43) # Ultra Flame Rain
  1190. else
  1191. Color.new(198, 233, 240, 128) # Normal
  1192. end
  1193.  
  1194. (0..6).each {|i| @rain_bitmap.fill_rect(6-i, i*8, 1, 8, rain_color)}
  1195. #-------------------------------------------------------------------------------
  1196. # Storm Bitmap
  1197.  
  1198. @storm_bitmap = Bitmap.new(34, 64)
  1199. case $game_screen.weather_variation
  1200. when 1 # Blood
  1201. storm_color1 = Color.new(141, 9, 9)
  1202. storm_color2 = Color.new(141, 9, 9, 128)
  1203. when 2 # Oil
  1204. storm_color1 = Color.new(33, 15, 3)
  1205. storm_color2 = Color.new(101, 67, 44, 128)
  1206. when 3 # Acid
  1207. storm_color1 = Color.new(105, 114, 66)
  1208. storm_color2 = Color.new(76, 91, 43, 128)
  1209. when 4 # Golden
  1210. storm_color1 = Color.new(218, 207, 36)
  1211. storm_color2 = Color.new(227, 217, 56, 128)
  1212. when 5 # Sepia Dark
  1213. storm_color1 = Color.new(167, 149, 139)
  1214. storm_color2 = Color.new(100, 75, 63, 128)
  1215. when 6 # Old T'Vision
  1216. storm_color1 = Color.new(143, 143, 143)
  1217. storm_color2 = Color.new(118, 120, 123, 128)
  1218. when 7 # Sepia Light
  1219. storm_color1 = Color.new(230, 220, 209)
  1220. storm_color2 = Color.new(220, 195, 170, 128)
  1221. when 8 # Silver
  1222. storm_color1 = Color.new(219, 219, 219)
  1223. storm_color2 = Color.new(225, 225, 226, 128)
  1224. when 9 # Milky White
  1225. storm_color1 = Color.new(249, 249, 249)
  1226. storm_color2 = Color.new(255, 255, 255, 128)
  1227. when 10 # Light Cyan
  1228. storm_color1 = Color.new(83, 232, 232)
  1229. storm_color2 = Color.new(40, 232, 232, 128)
  1230. when 11 # Light Red
  1231. storm_color1 = Color.new(255, 9, 7)
  1232. storm_color2 = Color.new(255, 0, 0, 128)
  1233. when 12 # Blackened
  1234. storm_color1 = Color.new(3, 3, 3)
  1235. storm_color2 = Color.new(0, 0, 0, 128)
  1236. when 13 # Cyan-Green
  1237. storm_color1 = Color.new(0, 216, 102)
  1238. storm_color2 = Color.new(0, 230, 128, 128)
  1239. when 14 # Light Green
  1240. storm_color1 = Color.new(112, 238, 110)
  1241. storm_color2 = Color.new(60, 255, 90, 128)
  1242. when 15 # Raspberry
  1243. storm_color1 = Color.new(177, 19, 20)
  1244. storm_color2 = Color.new(215, 19, 20, 128)
  1245. when 16 # Dark Blue
  1246. storm_color1 = Color.new(5, 54, 253)
  1247. storm_color2 = Color.new(0, 0, 255, 128)
  1248. when 17 # Light Yellow
  1249. storm_color1 = Color.new(240, 235, 139)
  1250. storm_color2 = Color.new(240, 235, 105, 128)
  1251. when 18 # Green-Violet
  1252. storm_color1 = Color.new(56, 73, 227)
  1253. storm_color2 = Color.new(45, 90, 145, 128)
  1254. when 19 # Ultra Violet
  1255. storm_color1 = Color.new(129, 22, 204)
  1256. storm_color2 = Color.new(185, 20, 245, 128)
  1257. when 20 # Ultra Purple
  1258. storm_color1 = Color.new(204, 23, 125)
  1259. storm_color2 = Color.new(235, 0, 190, 128)
  1260. when 21 # Ultra Lavender
  1261. storm_color1 = Color.new(193, 180, 217)
  1262. storm_color2 = Color.new(193, 155, 255, 128)
  1263. when 22 # Ultra Flame
  1264. storm_color1 = Color.new(245, 128, 43)
  1265. storm_color2 = Color.new(240, 235, 139, 128)
  1266. else # Normal, Realistic (Default)
  1267. storm_color1 = Color.new(198, 243, 240)
  1268. storm_color2 = Color.new(198, 243, 240, 128)
  1269. end
  1270.  
  1271. (0..31).each {|i|
  1272. @storm_bitmap.fill_rect(33-i, i*2, 1, 2, storm_color2)
  1273. @storm_bitmap.fill_rect(32-i, i*2, 1, 2, storm_color1)
  1274. @storm_bitmap.fill_rect(31-i, i*2, 1, 2, storm_color2)
  1275. }
  1276. #-------------------------------------------------------------------------------
  1277. # Splash Bitmap
  1278.  
  1279. @rain_splash = Bitmap.new(8, 5)
  1280. case $game_screen.weather_variation
  1281. when 1 # Blood
  1282. splash_color1 = Color.new(141, 9, 9)
  1283. splash_color2 = Color.new(141, 9, 9, 128)
  1284. when 2 # Oil
  1285. splash_color1 = Color.new(33, 15, 3)
  1286. splash_color2 = Color.new(101, 67, 44, 128)
  1287. when 3 # Acid
  1288. splash_color1 = Color.new(105, 114, 66)
  1289. splash_color2 = Color.new(76, 91, 43, 128)
  1290. when 4 # Golden
  1291. splash_color1 = Color.new(218, 207, 36)
  1292. splash_color2 = Color.new(227, 217, 56, 128)
  1293. when 5 # Sepia Dark
  1294. splash_color1 = Color.new(167, 149, 139)
  1295. splash_color2 = Color.new(100, 75, 63, 128)
  1296. when 6 # Old T'Vision
  1297. splash_color1 = Color.new(143, 143, 143)
  1298. splash_color2 = Color.new(118, 120, 123, 128)
  1299. when 7 # Sepia Light
  1300. splash_color1 = Color.new(230, 220, 209)
  1301. splash_color2 = Color.new(220, 195, 170, 128)
  1302. when 8 # Silver
  1303. splash_color1 = Color.new(219, 219, 219)
  1304. splash_color2 = Color.new(225, 225, 226, 128)
  1305. when 9 # Milky White
  1306. splash_color1 = Color.new(249, 249, 249)
  1307. splash_color2 = Color.new(255, 255, 255, 128)
  1308. when 10 # Light Cyan
  1309. splash_color1 = Color.new(83, 232, 232)
  1310. splash_color2 = Color.new(40, 232, 232, 128)
  1311. when 11 # Light Red
  1312. splash_color1 = Color.new(255, 9, 7)
  1313. splash_color2 = Color.new(255, 0, 0, 128)
  1314. when 12 # Blackened
  1315. splash_color1 = Color.new(3, 3, 3)
  1316. splash_color2 = Color.new(0, 0, 0, 128)
  1317. when 13 # Cyan-Green
  1318. splash_color1 = Color.new(0, 216, 102)
  1319. splash_color2 = Color.new(0, 230, 128, 128)
  1320. when 14 # Light Green
  1321. splash_color1 = Color.new(112, 238, 110)
  1322. splash_color2 = Color.new(60, 255, 90, 128)
  1323. when 15 # Raspberry
  1324. splash_color1 = Color.new(177, 19, 20)
  1325. splash_color2 = Color.new(215, 19, 20, 128)
  1326. when 16 # Dark Blue
  1327. splash_color1 = Color.new(5, 54, 253)
  1328. splash_color2 = Color.new(0, 0, 255, 128)
  1329. when 17 # Light Yellow
  1330. splash_color1 = Color.new(240, 235, 139)
  1331. splash_color2 = Color.new(240, 235, 105, 128)
  1332. when 18 # Green-Violet
  1333. splash_color1 = Color.new(56, 73, 227)
  1334. splash_color2 = Color.new(45, 90, 145, 128)
  1335. when 19 # Ultra Violet
  1336. splash_color1 = Color.new(129, 22, 204)
  1337. splash_color2 = Color.new(185, 20, 245, 128)
  1338. when 20 # Ultra Purple
  1339. splash_color1 = Color.new(204, 23, 125)
  1340. splash_color2 = Color.new(235, 0, 190, 128)
  1341. when 21 # Ultra Lavender
  1342. splash_color1 = Color.new(193, 180, 217)
  1343. splash_color2 = Color.new(193, 155, 255, 128)
  1344. when 22 # Ultra Flame
  1345. splash_color1 = Color.new(245, 128, 43)
  1346. splash_color2 = Color.new(240, 235, 139, 128)
  1347. else # Normal (Default)
  1348. splash_color1 = Color.new(198, 243, 240)
  1349. splash_color2 = Color.new(198, 243, 240, 128)
  1350. end
  1351.  
  1352. @rain_splash.fill_rect(1, 0, 6, 1, splash_color2)
  1353. @rain_splash.fill_rect(1, 4, 6, 1, splash_color2)
  1354. @rain_splash.fill_rect(0, 1, 1, 3, splash_color2)
  1355. @rain_splash.fill_rect(7, 1, 1, 3, splash_color2)
  1356. @rain_splash.set_pixel(1, 0, splash_color1)
  1357. @rain_splash.set_pixel(0, 1, splash_color1)
  1358. #-------------------------------------------------------------------------------
  1359. # Snow Bitmaps
  1360.  
  1361. case $game_screen.weather_variation
  1362. when 1 # Crimson
  1363. snow_color1 = Color.new(141, 9, 9)
  1364. snow_color2 = Color.new(141, 9, 9, 128)
  1365. snow_color3 = Color.new(141, 9, 9, 204)
  1366. else # Normal (Default)
  1367. snow_color1 = Color.new(255, 255, 255)
  1368. snow_color2 = Color.new(255, 255, 255, 128)
  1369. snow_color3 = Color.new(255, 255, 255, 204)
  1370. end
  1371.  
  1372. # Used for Blowing Snow
  1373. @snow_bitmap = Bitmap.new(6, 6)
  1374. @snow_bitmap.fill_rect(0, 1, 6, 4, snow_color2)
  1375. @snow_bitmap.fill_rect(1, 0, 4, 6, snow_color2)
  1376. @snow_bitmap.fill_rect(1, 2, 4, 2, snow_color1)
  1377. @snow_bitmap.fill_rect(2, 1, 2, 4, snow_color1)
  1378.  
  1379. # Used for Falling Snow
  1380. @sprites = []
  1381. @snow_bitmaps = []
  1382. @snow_bitmaps[0] = Bitmap.new(3, 3)
  1383. @snow_bitmaps[0].fill_rect(0, 0, 3, 3, snow_color2)
  1384. @snow_bitmaps[0].fill_rect(0, 1, 3, 1, snow_color3)
  1385. @snow_bitmaps[0].fill_rect(1, 0, 1, 3, snow_color3)
  1386. @snow_bitmaps[0].set_pixel(1, 1, snow_color1)
  1387.  
  1388. @snow_bitmaps[1] = Bitmap.new(4, 4)
  1389. @snow_bitmaps[1].fill_rect(0, 1, 4, 2, snow_color2)
  1390. @snow_bitmaps[1].fill_rect(1, 0, 2, 4, snow_color2)
  1391. @snow_bitmaps[1].fill_rect(1, 1, 2, 2, snow_color1)
  1392.  
  1393. @snow_bitmaps[2] = Bitmap.new(5, 5)
  1394. @snow_bitmaps[2].fill_rect(0, 1, 5, 3, snow_color3)
  1395. @snow_bitmaps[2].fill_rect(1, 0, 3, 5, snow_color3)
  1396. @snow_bitmaps[2].fill_rect(1, 1, 3, 3, snow_color2)
  1397. @snow_bitmaps[2].fill_rect(2, 1, 3, 1, snow_color1)
  1398. @snow_bitmaps[2].fill_rect(1, 2, 1, 3, snow_color1)
  1399.  
  1400. @snow_bitmaps[3] = Bitmap.new(7, 7)
  1401. @snow_bitmaps[3].fill_rect(1, 1, 5, 5, snow_color3)
  1402. @snow_bitmaps[3].fill_rect(2, 0, 7, 3, snow_color3)
  1403. @snow_bitmaps[3].fill_rect(0, 2, 3, 7, snow_color3)
  1404. @snow_bitmaps[3].fill_rect(2, 1, 5, 3, snow_color2)
  1405. @snow_bitmaps[3].fill_rect(1, 2, 3, 5, snow_color2)
  1406. @snow_bitmaps[3].fill_rect(2, 2, 3, 3, snow_color1)
  1407. @snow_bitmaps[3].fill_rect(3, 1, 5, 1, snow_color1)
  1408. @snow_bitmaps[3].fill_rect(1, 3, 1, 5, snow_color1)
  1409. #-------------------------------------------------------------------------------
  1410. #Hail
  1411.  
  1412. case $game_screen.weather_variation
  1413. when 1 # Blood Hail
  1414. hail_color1 = Color.new(141, 9, 9, 150)
  1415. hail_color2 = Color.new(180, 9, 9, 150)
  1416. hail_color3 = Color.new(165, 9, 9, 150)
  1417. hail_color4 = Color.new(190, 9, 9, 150)
  1418. when 2 # Oil Hail
  1419. hail_color1 = Color.new(33, 15, 3, 150)
  1420. hail_color2 = Color.new(65, 15, 15, 150)
  1421. hail_color3 = Color.new(38, 36, 15, 150)
  1422. hail_color4 = Color.new(101, 67, 44, 150)
  1423. when 3 # Acid Hail
  1424. hail_color1 = Color.new(76, 91, 43, 150)
  1425. hail_color2 = Color.new(76, 112, 43, 150)
  1426. hail_color3 = Color.new(40, 90, 40, 150)
  1427. hail_color4 = Color.new(76, 91, 43, 150)
  1428. when 4 # Golden Hail
  1429. hail_color1 = Color.new(218, 207, 36, 150)
  1430. hail_color2 = Color.new(220, 230, 25, 150)
  1431. hail_color3 = Color.new(255, 220, 0, 150)
  1432. hail_color4 = Color.new(227, 217, 56, 150)
  1433. when 5 # Sepia Dark Hail
  1434. hail_color1 = Color.new(100, 75, 63, 150)
  1435. hail_color2 = Color.new(102, 89, 74, 150)
  1436. hail_color3 = Color.new(133, 105, 40, 150)
  1437. hail_color4 = Color.new(100, 75, 63, 150)
  1438. when 6 # Old T'Vision Hail
  1439. hail_color1 = Color.new(143, 143, 143, 150)
  1440. hail_color2 = Color.new(104, 104, 104, 150)
  1441. hail_color3 = Color.new(89, 89, 89, 150)
  1442. hail_color4 = Color.new(118, 120, 123, 150)
  1443. when 7 # Sepia Light Hail
  1444. hail_color1 = Color.new(230, 220, 209, 150)
  1445. hail_color2 = Color.new(240, 220, 209, 150)
  1446. hail_color3 = Color.new(196, 181, 166, 150)
  1447. hail_color4 = Color.new(220, 195, 170, 150)
  1448. when 8 # Silver Hail
  1449. hail_color1 = Color.new(219, 219, 219, 150)
  1450. hail_color2 = Color.new(165, 179, 189, 150)
  1451. hail_color3 = Color.new(166, 168, 171, 150)
  1452. hail_color4 = Color.new(225, 225, 226, 150)
  1453. when 9 # Milky White Hail
  1454. hail_color1 = Color.new(249, 249, 249, 150)
  1455. hail_color2 = Color.new(236, 236, 236, 150)
  1456. hail_color3 = Color.new(252, 252, 252, 150)
  1457. hail_color4 = Color.new(255, 255, 255, 150)
  1458. when 10 # Light Cyan Hail
  1459. hail_color1 = Color.new(83, 232, 232, 150)
  1460. hail_color2 = Color.new(64, 245, 245, 150)
  1461. hail_color3 = Color.new(41, 219, 209, 150)
  1462. hail_color4 = Color.new(40, 232, 232, 150)
  1463. when 11 # Light Red Hail
  1464. hail_color1 = Color.new(255, 9, 7, 150)
  1465. hail_color2 = Color.new(232, 4, 9, 150)
  1466. hail_color3 = Color.new(255, 0, 9, 150)
  1467. hail_color4 = Color.new(255, 0, 0, 150)
  1468. when 12 # Blackened Hail
  1469. hail_color1 = Color.new(3, 3, 3, 150)
  1470. hail_color2 = Color.new(5, 5, 5, 150)
  1471. hail_color3 = Color.new(2, 2, 2, 150)
  1472. hail_color4 = Color.new(0, 0, 0, 150)
  1473. when 13 # Cyan-green Hail
  1474. hail_color1 = Color.new(0, 216, 102, 150)
  1475. hail_color2 = Color.new(0, 227, 77, 150)
  1476. hail_color3 = Color.new(0, 255, 77, 150)
  1477. hail_color4 = Color.new(0, 230, 128, 150)
  1478. when 14 # Light Green Hail
  1479. hail_color1 = Color.new(112, 238, 110, 150)
  1480. hail_color2 = Color.new(84, 234, 83, 150)
  1481. hail_color3 = Color.new(37, 218, 36, 150)
  1482. hail_color4 = Color.new(60, 255, 90, 150)
  1483. when 15 # Raspberry Hail
  1484. hail_color1 = Color.new(177, 19, 20, 150)
  1485. hail_color2 = Color.new(189, 19, 10, 150)
  1486. hail_color3 = Color.new(214, 5, 10, 150)
  1487. hail_color4 = Color.new(215, 19, 20, 150)
  1488. when 16 # Dark Blue Hail
  1489. hail_color1 = Color.new(5, 54, 253, 150)
  1490. hail_color2 = Color.new(5, 31, 207, 150)
  1491. hail_color3 = Color.new(5, 0, 200, 150)
  1492. hail_color4 = Color.new(0, 0, 255, 150)
  1493. when 17 # Light Yellow Hail
  1494. hail_color1 = Color.new(240, 235, 139, 150)
  1495. hail_color2 = Color.new(240, 245, 78, 150)
  1496. hail_color3 = Color.new(240, 255, 48, 150)
  1497. hail_color4 = Color.new(240, 235, 105, 150)
  1498. when 18 # Green-Violet Hail
  1499. hail_color1 = Color.new(56, 73, 227, 150)
  1500. hail_color2 = Color.new(71, 135, 214, 150)
  1501. hail_color3 = Color.new(56, 181, 171, 150)
  1502. hail_color4 = Color.new(45, 90, 145, 150)
  1503. when 19 # Ultra-Violet Hail
  1504. hail_color1 = Color.new(129, 22, 204, 150)
  1505. hail_color2 = Color.new(74, 59, 232, 150)
  1506. hail_color3 = Color.new(51, 59, 199, 150)
  1507. hail_color4 = Color.new(85, 20, 245, 150)
  1508. when 20 # Ultra-Purple Hail
  1509. hail_color1 = Color.new(204, 23, 125, 150)
  1510. hail_color2 = Color.new(224, 23, 186, 150)
  1511. hail_color3 = Color.new(204, 15, 179, 150)
  1512. hail_color4 = Color.new(235, 0, 190, 150)
  1513. when 21 # Ultra Lavender Hail
  1514. hail_color1 = Color.new(193, 180, 217, 150)
  1515. hail_color2 = Color.new(201, 184, 230, 150)
  1516. hail_color3 = Color.new(201, 168, 230, 150)
  1517. hail_color4 = Color.new(193, 155, 255, 150)
  1518. when 22 # Ultra Flame Hail
  1519. hail_color1 = Color.new(245, 128, 43, 150)
  1520. hail_color2 = Color.new(238, 206, 67, 150)
  1521. hail_color3 = Color.new(233, 225, 82, 150)
  1522. hail_color4 = Color.new(240, 235, 139, 150)
  1523. else # Normal hail
  1524. hail_color1 = Color.new(215, 227, 227, 150)
  1525. hail_color2 = Color.new(214, 217, 217, 150)
  1526. hail_color3 = Color.new(233, 233, 233, 250)
  1527. hail_color4 = Color.new(222, 239, 243, 250)
  1528. end
  1529.  
  1530. @hail_bitmap = Bitmap.new(4, 4)
  1531. @hail_bitmap.fill_rect(1, 0, 2, 1, hail_color1)
  1532. @hail_bitmap.fill_rect(0, 1, 1, 2, hail_color1)
  1533. @hail_bitmap.fill_rect(3, 1, 1, 2, hail_color2)
  1534. @hail_bitmap.fill_rect(1, 3, 2, 1, hail_color2)
  1535. @hail_bitmap.fill_rect(1, 1, 2, 2, hail_color3)
  1536. @hail_bitmap.set_pixel(1, 1, hail_color4)
  1537. #-------------------------------------------------------------------------------
  1538. #Sakura Petals
  1539.  
  1540. sakura_color1 = Color.new(255, 167, 192, 255)
  1541. sakura_color2 = Color.new(213, 106, 136, 255)
  1542.  
  1543. @sakura_bitmap = Bitmap.new(4, 4)
  1544. @sakura_bitmap.fill_rect(0, 3, 1, 1, sakura_color1)
  1545. @sakura_bitmap.fill_rect(1, 2, 1, 1, sakura_color1)
  1546. @sakura_bitmap.fill_rect(2, 1, 1, 1, sakura_color1)
  1547. @sakura_bitmap.fill_rect(3, 0, 1, 1, sakura_color1)
  1548. @sakura_bitmap.fill_rect(1, 3, 1, 1, sakura_color2)
  1549. @sakura_bitmap.fill_rect(2, 2, 1, 1, sakura_color2)
  1550. @sakura_bitmap.fill_rect(3, 1, 1, 1, sakura_color2)
  1551. #-------------------------------------------------------------------------------
  1552. # Leaf Bitmaps
  1553.  
  1554. @leaf_bitmaps = []
  1555. case $game_screen.weather_variation
  1556. when 1 # Yellow leaves
  1557. leaf_color1 = Color.new(110, 104, 3)
  1558. leaf_color2 = Color.new(205, 194, 23)
  1559. leaf_color3 = Color.new(186, 176, 14)
  1560. leaf_color4 = Color.new(218, 207, 36)
  1561. leaf_color5 = Color.new(227, 217, 56)
  1562. when 2 # Red leaves
  1563. leaf_color1 = Color.new(255, 0, 0)
  1564. leaf_color2 = Color.new(179, 17, 17)
  1565. leaf_color3 = Color.new(141, 9, 9)
  1566. leaf_color4 = Color.new(179, 17, 17)
  1567. leaf_color5 = Color.new(141, 9, 9)
  1568. when 3 # Brown leaves
  1569. leaf_color1 = Color.new(248, 88, 0)
  1570. leaf_color2 = Color.new(144, 80, 56)
  1571. leaf_color3 = Color.new(152, 0, 0)
  1572. leaf_color4 = Color.new(232, 160, 128)
  1573. leaf_color5 = Color.new(72, 40, 0)
  1574. else # Green (Default)
  1575. leaf_color1 = Color.new(62, 76, 31)
  1576. leaf_color2 = Color.new(76, 91, 43)
  1577. leaf_color3 = Color.new(105, 114, 66)
  1578. leaf_color4 = Color.new(128, 136, 88)
  1579. leaf_color5 = Color.new(146, 154, 106)
  1580. end
  1581.  
  1582. # 1st leaf bitmap
  1583. @leaf_bitmaps[0] = Bitmap.new(8, 8)
  1584. @leaf_bitmaps[0].set_pixel(1, 0, leaf_color1)
  1585. @leaf_bitmaps[0].set_pixel(1, 1, leaf_color2)
  1586. @leaf_bitmaps[0].set_pixel(2, 1, leaf_color1)
  1587. @leaf_bitmaps[0].set_pixel(2, 2, leaf_color3)
  1588. @leaf_bitmaps[0].set_pixel(3, 2, leaf_color1)
  1589. @leaf_bitmaps[0].set_pixel(4, 2, leaf_color3)
  1590. @leaf_bitmaps[0].fill_rect(2, 3, 3, 1, leaf_color2)
  1591. @leaf_bitmaps[0].set_pixel(5, 3, leaf_color3)
  1592. @leaf_bitmaps[0].fill_rect(2, 4, 2, 1, leaf_color2)
  1593. @leaf_bitmaps[0].set_pixel(4, 4, leaf_color1)
  1594. @leaf_bitmaps[0].set_pixel(5, 4, leaf_color4)
  1595. @leaf_bitmaps[0].set_pixel(6, 4, leaf_color3)
  1596. @leaf_bitmaps[0].set_pixel(3, 5, leaf_color2)
  1597. @leaf_bitmaps[0].set_pixel(4, 5, leaf_color1)
  1598. @leaf_bitmaps[0].set_pixel(5, 5, leaf_color3)
  1599. @leaf_bitmaps[0].set_pixel(6, 5, leaf_color4)
  1600. @leaf_bitmaps[0].set_pixel(4, 6, leaf_color2)
  1601. @leaf_bitmaps[0].set_pixel(5, 6, leaf_color1)
  1602. @leaf_bitmaps[0].set_pixel(6, 6, leaf_color4)
  1603. @leaf_bitmaps[0].set_pixel(6, 7, leaf_color3)
  1604.  
  1605. # 2nd leaf bitmap
  1606. @leaf_bitmaps[1] = Bitmap.new(8, 8)
  1607. @leaf_bitmaps[1].fill_rect(1, 1, 1, 2, leaf_color2)
  1608. @leaf_bitmaps[1].fill_rect(2, 2, 2, 1, leaf_color3)
  1609. @leaf_bitmaps[1].set_pixel(4, 2, leaf_color4)
  1610. @leaf_bitmaps[1].fill_rect(2, 3, 2, 1, leaf_color1)
  1611. @leaf_bitmaps[1].fill_rect(4, 3, 2, 1, leaf_color4)
  1612. @leaf_bitmaps[1].set_pixel(2, 4, leaf_color2)
  1613. @leaf_bitmaps[1].set_pixel(3, 4, leaf_color1)
  1614. @leaf_bitmaps[1].set_pixel(4, 4, leaf_color3)
  1615. @leaf_bitmaps[1].fill_rect(5, 4, 2, 1, leaf_color4)
  1616. @leaf_bitmaps[1].set_pixel(3, 5, leaf_color2)
  1617. @leaf_bitmaps[1].set_pixel(4, 5, leaf_color1)
  1618. @leaf_bitmaps[1].set_pixel(5, 5, leaf_color3)
  1619. @leaf_bitmaps[1].set_pixel(6, 5, leaf_color4)
  1620. @leaf_bitmaps[1].set_pixel(5, 6, leaf_color1)
  1621. @leaf_bitmaps[1].fill_rect(6, 6, 2, 1, leaf_color3)
  1622.  
  1623. # 3rd leaf bitmap
  1624. @leaf_bitmaps[2] = Bitmap.new(8, 8)
  1625. @leaf_bitmaps[2].set_pixel(1, 1, leaf_color1)
  1626. @leaf_bitmaps[2].fill_rect(1, 2, 2, 1, leaf_color2)
  1627. @leaf_bitmaps[2].set_pixel(2, 3, leaf_color2)
  1628. @leaf_bitmaps[2].set_pixel(3, 3, leaf_color1)
  1629. @leaf_bitmaps[2].set_pixel(4, 3, leaf_color2)
  1630. @leaf_bitmaps[2].fill_rect(2, 4, 2, 1, leaf_color2)
  1631. @leaf_bitmaps[2].set_pixel(4, 4, leaf_color1)
  1632. @leaf_bitmaps[2].set_pixel(5, 4, leaf_color4)
  1633. @leaf_bitmaps[2].set_pixel(3, 5, leaf_color2)
  1634. @leaf_bitmaps[2].set_pixel(4, 5, leaf_color1)
  1635. @leaf_bitmaps[2].fill_rect(5, 5, 2, 1, leaf_color3)
  1636. @leaf_bitmaps[2].fill_rect(4, 6, 2, 1, leaf_color2)
  1637. @leaf_bitmaps[2].set_pixel(6, 6, leaf_color4)
  1638. @leaf_bitmaps[2].set_pixel(6, 7, leaf_color3)
  1639.  
  1640. # 4th leaf bitmap
  1641. @leaf_bitmaps[3] = Bitmap.new(8, 8)
  1642. @leaf_bitmaps[3].fill_rect(0, 3, 1, 2, leaf_color1)
  1643. @leaf_bitmaps[3].set_pixel(1, 4, leaf_color2)
  1644. @leaf_bitmaps[3].set_pixel(2, 4, leaf_color3)
  1645. @leaf_bitmaps[3].set_pixel(3, 4, leaf_color4)
  1646. @leaf_bitmaps[3].set_pixel(4, 4, leaf_color1)
  1647. @leaf_bitmaps[3].set_pixel(7, 4, leaf_color2)
  1648. @leaf_bitmaps[3].set_pixel(1, 5, leaf_color1)
  1649. @leaf_bitmaps[3].set_pixel(2, 5, leaf_color2)
  1650. @leaf_bitmaps[3].set_pixel(3, 5, leaf_color4)
  1651. @leaf_bitmaps[3].set_pixel(4, 5, leaf_color5)
  1652. @leaf_bitmaps[3].set_pixel(5, 5, leaf_color4)
  1653. @leaf_bitmaps[3].set_pixel(6, 5, leaf_color3)
  1654. @leaf_bitmaps[3].set_pixel(7, 5, leaf_color2)
  1655. @leaf_bitmaps[3].fill_rect(2, 6, 2, 1, leaf_color2)
  1656. @leaf_bitmaps[3].set_pixel(4, 6, leaf_color4)
  1657. @leaf_bitmaps[3].set_pixel(5, 6, leaf_color3)
  1658. @leaf_bitmaps[3].set_pixel(6, 6, leaf_color2)
  1659.  
  1660. # 5th leaf bitmap
  1661. @leaf_bitmaps[4] = Bitmap.new(8, 8)
  1662. @leaf_bitmaps[4].set_pixel(6, 2, leaf_color2)
  1663. @leaf_bitmaps[4].set_pixel(7, 2, leaf_color1)
  1664. @leaf_bitmaps[4].fill_rect(4, 3, 2, 1, leaf_color2)
  1665. @leaf_bitmaps[4].set_pixel(6, 3, leaf_color3)
  1666. @leaf_bitmaps[4].set_pixel(2, 4, leaf_color1)
  1667. @leaf_bitmaps[4].fill_rect(3, 4, 2, 1, leaf_color3)
  1668. @leaf_bitmaps[4].set_pixel(5, 4, leaf_color4)
  1669. @leaf_bitmaps[4].set_pixel(6, 4, leaf_color3)
  1670. @leaf_bitmaps[4].set_pixel(1, 5, leaf_color2)
  1671. @leaf_bitmaps[4].set_pixel(2, 5, leaf_color3)
  1672. @leaf_bitmaps[4].set_pixel(3, 5, leaf_color4)
  1673. @leaf_bitmaps[4].set_pixel(4, 5, leaf_color5)
  1674. @leaf_bitmaps[4].set_pixel(5, 5, leaf_color2)
  1675. @leaf_bitmaps[4].set_pixel(2, 6, leaf_color1)
  1676. @leaf_bitmaps[4].fill_rect(3, 6, 2, 1, leaf_color2)
  1677.  
  1678. # 6th leaf bitmap
  1679. @leaf_bitmaps[5] = Bitmap.new(8, 8)
  1680. @leaf_bitmaps[5].fill_rect(6, 2, 2, 1, leaf_color2)
  1681. @leaf_bitmaps[5].fill_rect(4, 3, 2, 1, leaf_color2)
  1682. @leaf_bitmaps[5].set_pixel(6, 3, leaf_color3)
  1683. @leaf_bitmaps[5].set_pixel(3, 4, leaf_color2)
  1684. @leaf_bitmaps[5].set_pixel(4, 4, leaf_color3)
  1685. @leaf_bitmaps[5].set_pixel(5, 4, leaf_color4)
  1686. @leaf_bitmaps[5].set_pixel(6, 4, leaf_color5)
  1687. @leaf_bitmaps[5].set_pixel(1, 5, leaf_color2)
  1688. @leaf_bitmaps[5].set_pixel(2, 5, leaf_color3)
  1689. @leaf_bitmaps[5].fill_rect(3, 5, 2, 1, leaf_color5)
  1690. @leaf_bitmaps[5].set_pixel(5, 5, leaf_color4)
  1691. @leaf_bitmaps[5].set_pixel(2, 6, leaf_color2)
  1692. @leaf_bitmaps[5].set_pixel(3, 6, leaf_color3)
  1693. @leaf_bitmaps[5].set_pixel(4, 6, leaf_color4)
  1694.  
  1695. # 7th leaf bitmap
  1696. @leaf_bitmaps[6] = Bitmap.new(8, 8)
  1697. @leaf_bitmaps[6].fill_rect(6, 1, 1, 2, leaf_color2)
  1698. @leaf_bitmaps[6].fill_rect(4, 2, 2, 1, leaf_color2)
  1699. @leaf_bitmaps[6].fill_rect(6, 2, 1, 2, leaf_color1)
  1700. @leaf_bitmaps[6].fill_rect(3, 3, 2, 1, leaf_color2)
  1701. @leaf_bitmaps[6].set_pixel(5, 3, leaf_color3)
  1702. @leaf_bitmaps[6].set_pixel(2, 4, leaf_color2)
  1703. @leaf_bitmaps[6].set_pixel(3, 4, leaf_color3)
  1704. @leaf_bitmaps[6].set_pixel(4, 4, leaf_color4)
  1705. @leaf_bitmaps[6].set_pixel(5, 4, leaf_color2)
  1706. @leaf_bitmaps[6].set_pixel(1, 5, leaf_color2)
  1707. @leaf_bitmaps[6].set_pixel(2, 5, leaf_color3)
  1708. @leaf_bitmaps[6].fill_rect(3, 5, 2, 1, leaf_color2)
  1709. @leaf_bitmaps[6].set_pixel(1, 6, leaf_color1)
  1710. @leaf_bitmaps[6].set_pixel(2, 6, leaf_color2)
  1711.  
  1712. # 8th leaf bitmap
  1713. @leaf_bitmaps[7] = Bitmap.new(8, 8)
  1714. @leaf_bitmaps[7].set_pixel(6, 1, leaf_color2)
  1715. @leaf_bitmaps[7].fill_rect(4, 2, 3, 2, leaf_color2)
  1716. @leaf_bitmaps[7].set_pixel(3, 3, leaf_color1)
  1717. @leaf_bitmaps[7].set_pixel(2, 4, leaf_color1)
  1718. @leaf_bitmaps[7].set_pixel(3, 4, leaf_color2)
  1719. @leaf_bitmaps[7].fill_rect(4, 4, 2, 1, leaf_color3)
  1720. @leaf_bitmaps[7].set_pixel(1, 5, leaf_color1)
  1721. @leaf_bitmaps[7].set_pixel(2, 5, leaf_color2)
  1722. @leaf_bitmaps[7].fill_rect(3, 5, 2, 1, leaf_color4)
  1723. @leaf_bitmaps[7].set_pixel(2, 6, leaf_color2)
  1724. @leaf_bitmaps[7].set_pixel(3, 6, leaf_color4)
  1725.  
  1726. # 9th leaf bitmap
  1727. @leaf_bitmaps[8] = Bitmap.new(8, 8)
  1728. @leaf_bitmaps[8].fill_rect(6, 1, 1, 2, leaf_color2)
  1729. @leaf_bitmaps[8].fill_rect(4, 2, 2, 1, leaf_color2)
  1730. @leaf_bitmaps[8].fill_rect(6, 2, 1, 2, leaf_color1)
  1731. @leaf_bitmaps[8].fill_rect(3, 3, 2, 1, leaf_color2)
  1732. @leaf_bitmaps[8].set_pixel(5, 3, leaf_color3)
  1733. @leaf_bitmaps[8].set_pixel(2, 4, leaf_color2)
  1734. @leaf_bitmaps[8].set_pixel(3, 4, leaf_color3)
  1735. @leaf_bitmaps[8].set_pixel(4, 4, leaf_color4)
  1736. @leaf_bitmaps[8].set_pixel(5, 4, leaf_color2)
  1737. @leaf_bitmaps[8].set_pixel(1, 5, leaf_color2)
  1738. @leaf_bitmaps[8].set_pixel(2, 5, leaf_color3)
  1739. @leaf_bitmaps[8].fill_rect(3, 5, 2, 1, leaf_color2)
  1740. @leaf_bitmaps[8].set_pixel(1, 6, leaf_color1)
  1741. @leaf_bitmaps[8].set_pixel(2, 6, leaf_color2)
  1742.  
  1743. # 10th leaf bitmap
  1744. @leaf_bitmaps[9] = Bitmap.new(8, 8)
  1745. @leaf_bitmaps[9].fill_rect(6, 2, 2, 1, leaf_color2)
  1746. @leaf_bitmaps[9].fill_rect(4, 3, 2, 1, leaf_color2)
  1747. @leaf_bitmaps[9].set_pixel(6, 3, leaf_color3)
  1748. @leaf_bitmaps[9].set_pixel(3, 4, leaf_color2)
  1749. @leaf_bitmaps[9].set_pixel(4, 4, leaf_color3)
  1750. @leaf_bitmaps[9].set_pixel(5, 4, leaf_color4)
  1751. @leaf_bitmaps[9].set_pixel(6, 4, leaf_color5)
  1752. @leaf_bitmaps[9].set_pixel(1, 5, leaf_color2)
  1753. @leaf_bitmaps[9].set_pixel(2, 5, leaf_color3)
  1754. @leaf_bitmaps[9].fill_rect(3, 5, 2, 1, leaf_color5)
  1755. @leaf_bitmaps[9].set_pixel(5, 5, leaf_color4)
  1756. @leaf_bitmaps[9].set_pixel(2, 6, leaf_color2)
  1757. @leaf_bitmaps[9].set_pixel(3, 6, leaf_color3)
  1758. @leaf_bitmaps[9].set_pixel(4, 6, leaf_color4)
  1759.  
  1760. # 11th leaf bitmap
  1761. @leaf_bitmaps[10] = Bitmap.new(8, 8)
  1762. @leaf_bitmaps[10].set_pixel(6, 2, leaf_color2)
  1763. @leaf_bitmaps[10].set_pixel(7, 2, leaf_color1)
  1764. @leaf_bitmaps[10].fill_rect(4, 3, 2, 1, leaf_color2)
  1765. @leaf_bitmaps[10].set_pixel(6, 3, leaf_color3)
  1766. @leaf_bitmaps[10].set_pixel(2, 4, leaf_color1)
  1767. @leaf_bitmaps[10].fill_rect(3, 4, 2, 1, leaf_color3)
  1768. @leaf_bitmaps[10].set_pixel(5, 4, leaf_color4)
  1769. @leaf_bitmaps[10].set_pixel(6, 4, leaf_color3)
  1770. @leaf_bitmaps[10].set_pixel(1, 5, leaf_color2)
  1771. @leaf_bitmaps[10].set_pixel(2, 5, leaf_color3)
  1772. @leaf_bitmaps[10].set_pixel(3, 5, leaf_color4)
  1773. @leaf_bitmaps[10].set_pixel(4, 5, leaf_color5)
  1774. @leaf_bitmaps[10].set_pixel(5, 5, leaf_color2)
  1775. @leaf_bitmaps[10].set_pixel(2, 6, leaf_color1)
  1776. @leaf_bitmaps[10].fill_rect(3, 6, 2, 1, leaf_color2)
  1777.  
  1778. # 12th leaf bitmap
  1779. @leaf_bitmaps[11] = Bitmap.new(8, 8)
  1780. @leaf_bitmaps[11].fill_rect(0, 3, 1, 2, leaf_color1)
  1781. @leaf_bitmaps[11].set_pixel(1, 4, leaf_color2)
  1782. @leaf_bitmaps[11].set_pixel(2, 4, leaf_color3)
  1783. @leaf_bitmaps[11].set_pixel(3, 4, leaf_color4)
  1784. @leaf_bitmaps[11].set_pixel(4, 4, leaf_color1)
  1785. @leaf_bitmaps[11].set_pixel(7, 4, leaf_color2)
  1786. @leaf_bitmaps[11].set_pixel(1, 5, leaf_color1)
  1787. @leaf_bitmaps[11].set_pixel(2, 5, leaf_color2)
  1788. @leaf_bitmaps[11].set_pixel(3, 5, leaf_color4)
  1789. @leaf_bitmaps[11].set_pixel(4, 5, leaf_color5)
  1790. @leaf_bitmaps[11].set_pixel(5, 5, leaf_color4)
  1791. @leaf_bitmaps[11].set_pixel(6, 5, leaf_color3)
  1792. @leaf_bitmaps[11].set_pixel(7, 5, leaf_color2)
  1793. @leaf_bitmaps[11].fill_rect(2, 6, 2, 1, leaf_color2)
  1794. @leaf_bitmaps[11].set_pixel(4, 6, leaf_color4)
  1795. @leaf_bitmaps[11].set_pixel(5, 6, leaf_color3)
  1796. @leaf_bitmaps[11].set_pixel(6, 6, leaf_color2)
  1797.  
  1798. # 13th leaf bitmap
  1799. @leaf_bitmaps[12] = Bitmap.new(8, 8)
  1800. @leaf_bitmaps[12].set_pixel(1, 1, leaf_color1)
  1801. @leaf_bitmaps[12].fill_rect(1, 2, 2, 1, leaf_color2)
  1802. @leaf_bitmaps[12].set_pixel(2, 3, leaf_color2)
  1803. @leaf_bitmaps[12].set_pixel(3, 3, leaf_color1)
  1804. @leaf_bitmaps[12].set_pixel(4, 3, leaf_color2)
  1805. @leaf_bitmaps[12].fill_rect(2, 4, 2, 1, leaf_color2)
  1806. @leaf_bitmaps[12].set_pixel(4, 4, leaf_color1)
  1807. @leaf_bitmaps[12].set_pixel(5, 4, leaf_color4)
  1808. @leaf_bitmaps[12].set_pixel(3, 5, leaf_color2)
  1809. @leaf_bitmaps[12].set_pixel(4, 5, leaf_color1)
  1810. @leaf_bitmaps[12].fill_rect(5, 5, 2, 1, leaf_color3)
  1811. @leaf_bitmaps[12].fill_rect(4, 6, 2, 1, leaf_color2)
  1812. @leaf_bitmaps[12].set_pixel(6, 6, leaf_color4)
  1813. @leaf_bitmaps[12].set_pixel(6, 7, leaf_color3)
  1814. #-------------------------------------------------------------------------------
  1815. #Autumn leaves
  1816.  
  1817. @autumn_leaf_bitmaps = []
  1818. case $game_screen.weather_variation
  1819. when 1 # Yellow autumn
  1820. autumn_leaf_color1 = Color.new(110, 104, 3)
  1821. autumn_leaf_color2 = Color.new(205, 194, 23)
  1822. autumn_leaf_color3 = Color.new(186, 176, 14)
  1823. autumn_leaf_color4 = Color.new(218, 207, 36)
  1824. autumn_leaf_color5 = Color.new(227, 217, 56)
  1825. when 2 # Red Maple leaves
  1826. autumn_leaf_color1 = Color.new(255, 0, 0)
  1827. autumn_leaf_color2 = Color.new(179, 17, 17)
  1828. autumn_leaf_color3 = Color.new(141, 9, 9)
  1829. autumn_leaf_color4 = Color.new(179, 17, 17)
  1830. autumn_leaf_color5 = Color.new(141, 9, 9)
  1831. when 3 # Brown autumn leaves
  1832. autumn_leaf_color1 = Color.new(248, 88, 0)
  1833. autumn_leaf_color2 = Color.new(144, 80, 56)
  1834. autumn_leaf_color3 = Color.new(152, 0, 0)
  1835. autumn_leaf_color4 = Color.new(232, 160, 128)
  1836. autumn_leaf_color5 = Color.new(72, 40, 0)
  1837. else # Autumn leaves
  1838. autumn_leaf_color1 = Color.new(62, 76, 31)
  1839. autumn_leaf_color2 = Color.new(76, 91, 43)
  1840. autumn_leaf_color3 = Color.new(105, 114, 66)
  1841. autumn_leaf_color4 = Color.new(128, 136, 88)
  1842. autumn_leaf_color5 = Color.new(146, 154, 106)
  1843. end
  1844.  
  1845. @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  1846. # 1st of the autumn leaves bitmaps
  1847. @autumn_leaf_bitmaps[0].set_pixel(5, 1, autumn_leaf_color2)
  1848. @autumn_leaf_bitmaps[0].set_pixel(6, 1, autumn_leaf_color1)
  1849. @autumn_leaf_bitmaps[0].set_pixel(7, 1, autumn_leaf_color4)
  1850. @autumn_leaf_bitmaps[0].set_pixel(3, 2, autumn_leaf_color2)
  1851. @autumn_leaf_bitmaps[0].fill_rect(4, 2, 2, 1, autumn_leaf_color1)
  1852. @autumn_leaf_bitmaps[0].set_pixel(6, 2, autumn_leaf_color1)
  1853. @autumn_leaf_bitmaps[0].set_pixel(2, 3, autumn_leaf_color2)
  1854. @autumn_leaf_bitmaps[0].set_pixel(3, 3, autumn_leaf_color1)
  1855. @autumn_leaf_bitmaps[0].fill_rect(4, 3, 2, 1, autumn_leaf_color4)
  1856. @autumn_leaf_bitmaps[0].set_pixel(1, 4, autumn_leaf_color2)
  1857. @autumn_leaf_bitmaps[0].set_pixel(2, 4, autumn_leaf_color1)
  1858. @autumn_leaf_bitmaps[0].set_pixel(3, 4, autumn_leaf_color4)
  1859. @autumn_leaf_bitmaps[0].set_pixel(1, 5, autumn_leaf_color1)
  1860. @autumn_leaf_bitmaps[0].set_pixel(2, 5, autumn_leaf_color4)
  1861. @autumn_leaf_bitmaps[0].set_pixel(0, 6, autumn_leaf_color2)
  1862. @autumn_leaf_bitmaps[0].set_pixel(1, 6, autumn_leaf_color4)
  1863. @autumn_leaf_bitmaps[0].set_pixel(0, 7, autumn_leaf_color4)
  1864.  
  1865. # 2nd of the autumn leaves bitmaps
  1866. @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  1867. @autumn_leaf_bitmaps[1].set_pixel(3, 0, autumn_leaf_color1)
  1868. @autumn_leaf_bitmaps[1].set_pixel(7, 0, autumn_leaf_color1)
  1869. @autumn_leaf_bitmaps[1].set_pixel(3, 1, autumn_leaf_color2)
  1870. @autumn_leaf_bitmaps[1].set_pixel(4, 1, autumn_leaf_color3)
  1871. @autumn_leaf_bitmaps[1].set_pixel(6, 1, autumn_leaf_color1)
  1872. @autumn_leaf_bitmaps[1].set_pixel(0, 2, autumn_leaf_color4)
  1873. @autumn_leaf_bitmaps[1].set_pixel(1, 2, autumn_leaf_color1)
  1874. @autumn_leaf_bitmaps[1].set_pixel(2, 2, autumn_leaf_color2)
  1875. @autumn_leaf_bitmaps[1].set_pixel(3, 2, autumn_leaf_color3)
  1876. @autumn_leaf_bitmaps[1].set_pixel(4, 2, autumn_leaf_color2)
  1877. @autumn_leaf_bitmaps[1].set_pixel(5, 2, autumn_leaf_color1)
  1878. @autumn_leaf_bitmaps[1].fill_rect(1, 3, 3, 1, autumn_leaf_color2)
  1879. @autumn_leaf_bitmaps[1].fill_rect(4, 3, 2, 1, autumn_leaf_color1)
  1880. @autumn_leaf_bitmaps[1].set_pixel(6, 3, autumn_leaf_color2)
  1881. @autumn_leaf_bitmaps[1].set_pixel(2, 4, autumn_leaf_color3)
  1882. @autumn_leaf_bitmaps[1].fill_rect(3, 4, 3, 1, autumn_leaf_color1)
  1883. @autumn_leaf_bitmaps[1].set_pixel(6, 4, autumn_leaf_color3)
  1884. @autumn_leaf_bitmaps[1].set_pixel(7, 4, autumn_leaf_color5)
  1885. @autumn_leaf_bitmaps[1].set_pixel(1, 5, autumn_leaf_color2)
  1886. @autumn_leaf_bitmaps[1].fill_rect(2, 5, 2, 1, autumn_leaf_color1)
  1887. @autumn_leaf_bitmaps[1].set_pixel(4, 5, autumn_leaf_color2)
  1888. @autumn_leaf_bitmaps[1].set_pixel(5, 5, autumn_leaf_color3)
  1889. @autumn_leaf_bitmaps[1].fill_rect(1, 6, 2, 1, autumn_leaf_color1)
  1890. @autumn_leaf_bitmaps[1].fill_rect(4, 6, 2, 1, autumn_leaf_color3)
  1891. @autumn_leaf_bitmaps[1].set_pixel(0, 7, autumn_leaf_color1)
  1892. @autumn_leaf_bitmaps[1].set_pixel(5, 7, autumn_leaf_color5)
  1893.  
  1894. # 3rd of the autumn leaves bitmaps
  1895. @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  1896. @autumn_leaf_bitmaps[2].set_pixel(7, 1, autumn_leaf_color4)
  1897. @autumn_leaf_bitmaps[2].set_pixel(6, 2, autumn_leaf_color4)
  1898. @autumn_leaf_bitmaps[2].set_pixel(7, 2, autumn_leaf_color2)
  1899. @autumn_leaf_bitmaps[2].set_pixel(5, 3, autumn_leaf_color4)
  1900. @autumn_leaf_bitmaps[2].set_pixel(6, 3, autumn_leaf_color1)
  1901. @autumn_leaf_bitmaps[2].set_pixel(4, 4, autumn_leaf_color4)
  1902. @autumn_leaf_bitmaps[2].set_pixel(5, 4, autumn_leaf_color1)
  1903. @autumn_leaf_bitmaps[2].set_pixel(6, 4, autumn_leaf_color2)
  1904. @autumn_leaf_bitmaps[2].fill_rect(2, 5, 2, 1, autumn_leaf_color4)
  1905. @autumn_leaf_bitmaps[2].set_pixel(4, 5, autumn_leaf_color1)
  1906. @autumn_leaf_bitmaps[2].set_pixel(5, 5, autumn_leaf_color2)
  1907. @autumn_leaf_bitmaps[2].set_pixel(1, 6, autumn_leaf_color4)
  1908. @autumn_leaf_bitmaps[2].fill_rect(2, 6, 2, 1, autumn_leaf_color1)
  1909. @autumn_leaf_bitmaps[2].set_pixel(4, 6, autumn_leaf_color2)
  1910. @autumn_leaf_bitmaps[2].set_pixel(0, 7, autumn_leaf_color4)
  1911. @autumn_leaf_bitmaps[2].set_pixel(1, 7, autumn_leaf_color1)
  1912. @autumn_leaf_bitmaps[2].set_pixel(2, 7, autumn_leaf_color2)
  1913.  
  1914. # 4th of the autumn leaves bitmaps
  1915. @autumn_leaf_bitmaps.push(Bitmap.new(8, 8))
  1916. @autumn_leaf_bitmaps[3].set_pixel(3, 0, autumn_leaf_color1)
  1917. @autumn_leaf_bitmaps[3].set_pixel(7, 0, autumn_leaf_color1)
  1918. @autumn_leaf_bitmaps[3].set_pixel(3, 1, autumn_leaf_color2)
  1919. @autumn_leaf_bitmaps[3].set_pixel(4, 1, autumn_leaf_color3)
  1920. @autumn_leaf_bitmaps[3].set_pixel(6, 1, autumn_leaf_color1)
  1921. @autumn_leaf_bitmaps[3].set_pixel(0, 2, autumn_leaf_color4)
  1922. @autumn_leaf_bitmaps[3].set_pixel(1, 2, autumn_leaf_color1)
  1923. @autumn_leaf_bitmaps[3].set_pixel(2, 2, autumn_leaf_color2)
  1924. @autumn_leaf_bitmaps[3].set_pixel(3, 2, autumn_leaf_color3)
  1925. @autumn_leaf_bitmaps[3].set_pixel(4, 2, autumn_leaf_color2)
  1926. @autumn_leaf_bitmaps[3].set_pixel(5, 2, autumn_leaf_color1)
  1927. @autumn_leaf_bitmaps[3].fill_rect(1, 3, 3, 1, autumn_leaf_color2)
  1928. @autumn_leaf_bitmaps[3].fill_rect(4, 3, 2, 1, autumn_leaf_color1)
  1929. @autumn_leaf_bitmaps[3].set_pixel(6, 3, autumn_leaf_color2)
  1930. @autumn_leaf_bitmaps[3].set_pixel(2, 4, autumn_leaf_color3)
  1931. @autumn_leaf_bitmaps[3].fill_rect(3, 4, 3, 1, autumn_leaf_color1)
  1932. @autumn_leaf_bitmaps[3].set_pixel(6, 4, autumn_leaf_color3)
  1933. @autumn_leaf_bitmaps[3].set_pixel(7, 4, autumn_leaf_color5)
  1934. @autumn_leaf_bitmaps[3].set_pixel(1, 5, autumn_leaf_color2)
  1935. @autumn_leaf_bitmaps[3].fill_rect(2, 5, 2, 1, autumn_leaf_color1)
  1936. @autumn_leaf_bitmaps[3].set_pixel(4, 5, autumn_leaf_color2)
  1937. @autumn_leaf_bitmaps[3].set_pixel(5, 5, autumn_leaf_color3)
  1938. @autumn_leaf_bitmaps[3].fill_rect(1, 6, 2, 1, autumn_leaf_color1)
  1939. @autumn_leaf_bitmaps[3].fill_rect(4, 6, 2, 1, autumn_leaf_color3)
  1940. @autumn_leaf_bitmaps[3].set_pixel(0, 7, autumn_leaf_color1)
  1941. @autumn_leaf_bitmaps[3].set_pixel(5, 7, autumn_leaf_color5)
  1942. #-------------------------------------------------------------------------------
  1943. # Petals
  1944.  
  1945. @petal_bitmaps = []
  1946. case $game_screen.weather_variation
  1947. when 1 # Lavender
  1948. petal_color1 = Color.new(213, 80, 254)
  1949. petal_color2 = Color.new(176, 92, 201)
  1950. petal_color3 = Color.new(154, 86, 175)
  1951. when 2 # Tiger Lily
  1952. petal_color1 = Color.new(254, 154, 40)
  1953. petal_color2 = Color.new(254, 162, 65)
  1954. petal_color3 = Color.new(254, 135, 71)
  1955. when 3 # Pink
  1956. petal_color1 = Color.new(247, 80, 119)
  1957. petal_color2 = Color.new(247, 101, 138)
  1958. petal_color3 = Color.new(244, 105, 165)
  1959. when 4 # Blue
  1960. petal_color1 = Color.new(109, 126, 238)
  1961. petal_color2 = Color.new(128, 143, 240)
  1962. petal_color3 = Color.new(129, 165, 236)
  1963. when 5 # Green
  1964. petal_color1 = Color.new(136, 217, 135)
  1965. petal_color2 = Color.new(153, 221, 152)
  1966. petal_color3 = Color.new(170, 221, 154)
  1967. when 6 # Blue-Purple
  1968. petal_color1 = Color.new(94, 44, 170)
  1969. petal_color2 = Color.new(105, 62, 170)
  1970. petal_color3 = Color.new(78, 60, 168)
  1971. when 7 # Cherry Petals
  1972. petal_color1 = Color.new(250, 250, 250)
  1973. petal_color2 = Color.new(243, 243, 243)
  1974. petal_color3 = Color.new(253, 253, 253)
  1975. when 8 # Tea Rose Petals
  1976. petal_color1 = Color.new(238, 231, 109)
  1977. petal_color2 = Color.new(233, 225, 82)
  1978. petal_color3 = Color.new(242, 238, 168)
  1979. when 9 # Yellow Rose Petals
  1980. petal_color1 = Color.new(253, 253, 5)
  1981. petal_color2 = Color.new(255, 245, 110)
  1982. petal_color3 = Color.new(255, 242, 0)
  1983. when 10 # Raspberry Petals
  1984. petal_color1 = Color.new(211, 45, 45)
  1985. petal_color2 = Color.new(187, 25, 23)
  1986. petal_color3 = Color.new(206, 37, 32)
  1987. when 11 # Dark Blue Petals
  1988. petal_color1 = Color.new(23, 40, 204)
  1989. petal_color2 = Color.new(4, 17, 137)
  1990. petal_color3 = Color.new(36, 53, 217)
  1991. when 12 # Violet Petals
  1992. petal_color1 = Color.new(129, 22, 204)
  1993. petal_color2 = Color.new(99, 8, 163)
  1994. petal_color3 = Color.new(156, 56, 227)
  1995. when 13 # Light Sepia Petals
  1996. petal_color1 = Color.new(160, 148, 135)
  1997. petal_color2 = Color.new(163, 152, 140)
  1998. petal_color3 = Color.new(187, 183, 178)
  1999. when 14 # Dark Sepia Petals
  2000. petal_color1 = Color.new(150, 133, 115)
  2001. petal_color2 = Color.new(137, 108, 78)
  2002. petal_color3 = Color.new(160, 148, 135)
  2003. when 15 # Old T'Vision Petals
  2004. petal_color1 = Color.new(130, 130, 130)
  2005. petal_color2 = Color.new(94, 94, 94)
  2006. petal_color3 = Color.new(110, 110, 110)
  2007. else # Rose
  2008. petal_color1 = Color.new(255, 0, 0)
  2009. petal_color2 = Color.new(179, 17, 17)
  2010. petal_color3 = Color.new(141, 9, 9)
  2011. end
  2012.  
  2013. # 1st petal bitmap
  2014. @petal_bitmaps[0] = Bitmap.new(3, 3)
  2015. @petal_bitmaps[0].fill_rect(1, 0, 2, 1, petal_color1)
  2016. @petal_bitmaps[0].fill_rect(0, 1, 1, 2, petal_color1)
  2017. @petal_bitmaps[0].fill_rect(1, 1, 2, 2, petal_color2)
  2018. @petal_bitmaps[0].set_pixel(2, 2, petal_color3)
  2019.  
  2020. # 2nd petal bitmap
  2021. @petal_bitmaps[1] = Bitmap.new(3, 3)
  2022. @petal_bitmaps[1].set_pixel(0, 1, petal_color2)
  2023. @petal_bitmaps[1].set_pixel(1, 1, petal_color1)
  2024. @petal_bitmaps[1].fill_rect(1, 2, 1, 2, petal_color2)
  2025. #-------------------------------------------------------------------------------
  2026. #Feathers
  2027.  
  2028. @feather_bitmaps = []
  2029. feather_color1 = Color.new(255, 255, 255)
  2030. feather_color2 = Color.new(214, 217, 217, 150)
  2031.  
  2032. # 1st feather bitmap
  2033. @feather_bitmaps[0] = Bitmap.new(3, 3)
  2034. @feather_bitmaps[0].set_pixel(0, 2, feather_color1)
  2035. @feather_bitmaps[0].set_pixel(1, 2, feather_color2)
  2036. @feather_bitmaps[0].set_pixel(2, 1, feather_color2)
  2037.  
  2038. # 2nd feather bitmap
  2039. @feather_bitmaps[0] = Bitmap.new(3, 3)
  2040. @feather_bitmaps[0].set_pixel(0, 0, feather_color1)
  2041. @feather_bitmaps[0].set_pixel(0, 1, feather_color2)
  2042. @feather_bitmaps[0].set_pixel(1, 2, feather_color2)
  2043.  
  2044. # 3rd feather bitmap
  2045. @feather_bitmaps[0] = Bitmap.new(3, 3)
  2046. @feather_bitmaps[0].set_pixel(2, 0, feather_color1)
  2047. @feather_bitmaps[0].set_pixel(1, 0, feather_color2)
  2048. @feather_bitmaps[0].set_pixel(0, 1, feather_color2)
  2049.  
  2050. # 4th feather bitmap
  2051. @feather_bitmaps[0] = Bitmap.new(3, 3)
  2052. @feather_bitmaps[0].set_pixel(2, 2, feather_color1)
  2053. @feather_bitmaps[0].set_pixel(2, 1, feather_color2)
  2054. @feather_bitmaps[0].set_pixel(1, 0, feather_color2)
  2055. #-------------------------------------------------------------------------------
  2056. # Sparkle bitmaps
  2057.  
  2058. @sparkle_bitmaps = []
  2059. case $game_screen.weather_variation
  2060. when 1 # Lavender
  2061. sparkle_color1 = Color.new(197, 181, 255)
  2062. sparkle_color2 = Color.new(171, 126, 234)
  2063. sparkle_color3 = Color.new(187 , 77, 234)
  2064. sparkle_color4 = Color.new(255, 255, 255)
  2065. when 2 # Pink
  2066. sparkle_color1 = Color.new(255, 181, 234)
  2067. sparkle_color2 = Color.new(232, 125, 178)
  2068. sparkle_color3 = Color.new(232, 76, 110)
  2069. sparkle_color4 = Color.new(255, 255, 255)
  2070. when 3 # Green
  2071. sparkle_color1 = Color.new(222, 255, 181)
  2072. sparkle_color2 = Color.new(157, 226, 122)
  2073. sparkle_color3 = Color.new(85, 226, 74)
  2074. sparkle_color4 = Color.new(255, 255, 255)
  2075. when 4 # White
  2076. sparkle_color1 = Color.new(236, 236, 236)
  2077. sparkle_color2 = Color.new(218, 218, 218)
  2078. sparkle_color3 = Color.new(210, 210, 210)
  2079. sparkle_color4 = Color.new(255, 255, 255)
  2080. when 5 # Oil Brown
  2081. sparkle_color1 = Color.new(25, 10, 3)
  2082. sparkle_color2 = Color.new(25, 5, 3)
  2083. sparkle_color3 = Color.new(15, 15, 3)
  2084. sparkle_color4 = Color.new(33, 15, 3)
  2085. when 6 # Raspberry
  2086. sparkle_color1 = Color.new(201, 15, 20)
  2087. sparkle_color2 = Color.new(191, 0, 0)
  2088. sparkle_color3 = Color.new(148, 0, 5)
  2089. sparkle_color4 = Color.new(177, 19, 20)
  2090. when 7 # Orange Flame
  2091. sparkle_color1 = Color.new(255, 242, 0)
  2092. sparkle_color2 = Color.new(245, 128, 43)
  2093. sparkle_color3 = Color.new(235, 130, 0)
  2094. sparkle_color4 = Color.new(253, 184, 39)
  2095. when 8 # Light Cyan
  2096. sparkle_color1 = Color.new(92, 224, 232)
  2097. sparkle_color2 = Color.new(90, 201, 255)
  2098. sparkle_color3 = Color.new(51, 189, 232)
  2099. sparkle_color4 = Color.new(83, 232, 232)
  2100. when 9 # Green-Violet
  2101. sparkle_color1 = Color.new(92, 97, 212)
  2102. sparkle_color2 = Color.new(84, 64, 181)
  2103. sparkle_color3 = Color.new(46, 46, 207)
  2104. sparkle_color4 = Color.new(129, 22, 204)
  2105. when 10 # Light red
  2106. sparkle_color1 = Color.new(230, 0, 0)
  2107. sparkle_color2 = Color.new(205, 0, 0)
  2108. sparkle_color3 = Color.new(165, 0, 0)
  2109. sparkle_color4 = Color.new(255, 0, 0)
  2110. else # Blue
  2111. sparkle_color1 = Color.new(181, 244, 255)
  2112. sparkle_color2 = Color.new(126, 197, 235)
  2113. sparkle_color3 = Color.new(77, 136, 225)
  2114. sparkle_color4 = Color.new(255, 255, 255)
  2115. end
  2116.  
  2117. # 1st sparkle bitmap
  2118. @sparkle_bitmaps[0] = Bitmap.new(7, 7)
  2119. @sparkle_bitmaps[0].set_pixel(3, 3, sparkle_color3)
  2120.  
  2121. # 2nd sparkle bitmap
  2122. @sparkle_bitmaps[1] = Bitmap.new(7, 7)
  2123. @sparkle_bitmaps[1].fill_rect(3, 2, 1, 3, sparkle_color3)
  2124. @sparkle_bitmaps[1].fill_rect(2, 3, 3, 1, sparkle_color3)
  2125. @sparkle_bitmaps[1].set_pixel(3, 3, sparkle_color2)
  2126.  
  2127. # 3rd sparkle bitmap
  2128. @sparkle_bitmaps[2] = Bitmap.new(7, 7)
  2129. @sparkle_bitmaps[2].set_pixel(1, 1, sparkle_color3)
  2130. @sparkle_bitmaps[2].set_pixel(5, 1, sparkle_color3)
  2131. @sparkle_bitmaps[2].set_pixel(2, 2, sparkle_color2)
  2132. @sparkle_bitmaps[2].set_pixel(4, 2, sparkle_color2)
  2133. @sparkle_bitmaps[2].set_pixel(3, 3, sparkle_color1)
  2134. @sparkle_bitmaps[2].set_pixel(2, 4, sparkle_color2)
  2135. @sparkle_bitmaps[2].set_pixel(4, 4, sparkle_color2)
  2136. @sparkle_bitmaps[2].set_pixel(1, 5, sparkle_color3)
  2137. @sparkle_bitmaps[2].set_pixel(5, 5, sparkle_color3)
  2138.  
  2139. # 4th sparkle bitmap
  2140. @sparkle_bitmaps[3] = Bitmap.new(7, 7)
  2141. @sparkle_bitmaps[3].fill_rect(3, 1, 1, 5, sparkle_color3)
  2142. @sparkle_bitmaps[3].fill_rect(1, 3, 5, 1, sparkle_color3)
  2143. @sparkle_bitmaps[3].fill_rect(3, 2, 1, 3, sparkle_color2)
  2144. @sparkle_bitmaps[3].fill_rect(2, 3, 3, 1, sparkle_color2)
  2145. @sparkle_bitmaps[3].set_pixel(3, 3, sparkle_color1)
  2146.  
  2147. # 5th sparkle bitmap
  2148. @sparkle_bitmaps[4] = Bitmap.new(7, 7)
  2149. @sparkle_bitmaps[4].fill_rect(2, 2, 3, 3, sparkle_color2)
  2150. @sparkle_bitmaps[4].fill_rect(3, 2, 1, 3, sparkle_color3)
  2151. @sparkle_bitmaps[4].fill_rect(2, 3, 3, 1, sparkle_color3)
  2152. @sparkle_bitmaps[4].set_pixel(3, 3, sparkle_color1)
  2153. @sparkle_bitmaps[4].set_pixel(1, 1, sparkle_color3)
  2154. @sparkle_bitmaps[4].set_pixel(5, 1, sparkle_color3)
  2155. @sparkle_bitmaps[4].set_pixel(1, 5, sparkle_color3)
  2156. @sparkle_bitmaps[4].set_pixel(5, 1, sparkle_color3)
  2157.  
  2158. # 6th sparkle bitmap
  2159. @sparkle_bitmaps[5] = Bitmap.new(7, 7)
  2160. @sparkle_bitmaps[5].fill_rect(2, 1, 3, 5, sparkle_color3)
  2161. @sparkle_bitmaps[5].fill_rect(1, 2, 5, 3, sparkle_color3)
  2162. @sparkle_bitmaps[5].fill_rect(2, 2, 3, 3, sparkle_color2)
  2163. @sparkle_bitmaps[5].fill_rect(3, 1, 1, 5, sparkle_color2)
  2164. @sparkle_bitmaps[5].fill_rect(1, 3, 5, 1, sparkle_color2)
  2165. @sparkle_bitmaps[5].fill_rect(3, 2, 1, 3, sparkle_color1)
  2166. @sparkle_bitmaps[5].fill_rect(2, 3, 3, 1, sparkle_color1)
  2167. @sparkle_bitmaps[5].set_pixel(3, 3, sparkle_color4)
  2168.  
  2169. # 7th sparkle bitmap
  2170. @sparkle_bitmaps[6] = Bitmap.new(7, 7)
  2171. @sparkle_bitmaps[6].fill_rect(2, 1, 3, 5, sparkle_color2)
  2172. @sparkle_bitmaps[6].fill_rect(1, 2, 5, 3, sparkle_color2)
  2173. @sparkle_bitmaps[6].fill_rect(3, 0, 1, 7, sparkle_color3)
  2174. @sparkle_bitmaps[6].fill_rect(0, 3, 7, 1, sparkle_color3)
  2175. @sparkle_bitmaps[6].fill_rect(2, 2, 3, 3, sparkle_color1)
  2176. @sparkle_bitmaps[6].fill_rect(3, 2, 1, 3, sparkle_color2)
  2177. @sparkle_bitmaps[6].fill_rect(2, 3, 3, 1, sparkle_color2)
  2178. @sparkle_bitmaps[6].set_pixel(3, 3, sparkle_color4)
  2179. #-------------------------------------------------------------------------------
  2180. # Meteor bitmap
  2181.  
  2182. case $game_screen.weather_variation
  2183. when 1 # Flame Meteor
  2184. meteor_color1 = Color.new(248, 88, 0)
  2185. meteor_color2 = Color.new(205, 194, 23)
  2186. meteor_color3 = Color.new(218, 207, 36)
  2187. when 2 # Rock Meteor
  2188. meteor_color1 = Color.new(60, 60, 60)
  2189. meteor_color2 = Color.new(248, 88, 0)
  2190. meteor_color3 = Color.new(218, 207, 36)
  2191. else # Normal Meteor
  2192. meteor_color1 = Color.new(232, 160, 128)
  2193. meteor_color2 = Color.new(248, 88, 0)
  2194. meteor_color3 = Color.new(179, 17, 17)
  2195. end
  2196.  
  2197. @meteor_bitmap = Bitmap.new(14, 12)
  2198. @meteor_bitmap.fill_rect(0, 8, 5, 4, meteor_color1)
  2199. @meteor_bitmap.fill_rect(1, 7, 6, 4, meteor_color1)
  2200. @meteor_bitmap.set_pixel(7, 8, meteor_color1)
  2201. @meteor_bitmap.fill_rect(1, 8, 2, 2, meteor_color2)
  2202. @meteor_bitmap.set_pixel(2, 7, meteor_color2)
  2203. @meteor_bitmap.fill_rect(3, 6, 2, 1, meteor_color2)
  2204. @meteor_bitmap.set_pixel(3, 8, meteor_color2)
  2205. @meteor_bitmap.set_pixel(3, 10, meteor_color2)
  2206. @meteor_bitmap.set_pixel(4, 9, meteor_color2)
  2207. @meteor_bitmap.fill_rect(5, 5, 1, 5, meteor_color2)
  2208. @meteor_bitmap.fill_rect(6, 4, 1, 5, meteor_color2)
  2209. @meteor_bitmap.fill_rect(7, 3, 1, 5, meteor_color2)
  2210. @meteor_bitmap.fill_rect(8, 6, 1, 2, meteor_color2)
  2211. @meteor_bitmap.set_pixel(9, 5, meteor_color2)
  2212. @meteor_bitmap.set_pixel(3, 8, meteor_color3)
  2213. @meteor_bitmap.fill_rect(4, 7, 1, 2, meteor_color3)
  2214. @meteor_bitmap.set_pixel(4, 5, meteor_color3)
  2215. @meteor_bitmap.set_pixel(5, 4, meteor_color3)
  2216. @meteor_bitmap.set_pixel(5, 6, meteor_color3)
  2217. @meteor_bitmap.set_pixel(6, 5, meteor_color3)
  2218. @meteor_bitmap.set_pixel(6, 7, meteor_color3)
  2219. @meteor_bitmap.fill_rect(7, 4, 1, 3, meteor_color3)
  2220. @meteor_bitmap.fill_rect(8, 3, 1, 3, meteor_color3)
  2221. @meteor_bitmap.fill_rect(9, 2, 1, 3, meteor_color3)
  2222. @meteor_bitmap.fill_rect(10, 1, 1, 3, meteor_color3)
  2223. @meteor_bitmap.fill_rect(11, 0, 1, 3, meteor_color3)
  2224. @meteor_bitmap.fill_rect(12, 0, 1, 2, meteor_color3)
  2225. @meteor_bitmap.set_pixel(13, 0, meteor_color3)
  2226.  
  2227. # Impact bitmap
  2228. @impact_bitmap = Bitmap.new(22, 11)
  2229. @impact_bitmap.fill_rect(0, 5, 1, 2, meteor_color2)
  2230. @impact_bitmap.set_pixel(1, 4, meteor_color2)
  2231. @impact_bitmap.set_pixel(1, 6, meteor_color2)
  2232. @impact_bitmap.set_pixel(2, 3, meteor_color2)
  2233. @impact_bitmap.set_pixel(2, 7, meteor_color2)
  2234. @impact_bitmap.set_pixel(3, 2, meteor_color3)
  2235. @impact_bitmap.set_pixel(3, 7, meteor_color3)
  2236. @impact_bitmap.set_pixel(4, 2, meteor_color2)
  2237. @impact_bitmap.set_pixel(4, 8, meteor_color2)
  2238. @impact_bitmap.set_pixel(5, 2, meteor_color3)
  2239. @impact_bitmap.fill_rect(5, 8, 3, 1, meteor_color2)
  2240. @impact_bitmap.set_pixel(6, 1, meteor_color3)
  2241. @impact_bitmap.fill_rect(7, 1, 8, 1, meteor_color2)
  2242. @impact_bitmap.fill_rect(7, 9, 8, 1, meteor_color3)
  2243. #-------------------------------------------------------------------------------
  2244. # Ash bitmaps
  2245.  
  2246. ash_color1 = Color.new(210, 210, 210, 250)
  2247. ash_color2 = Color.new(255, 255, 255)
  2248. ash_color3 = Color.new(214, 217, 217, 150)
  2249.  
  2250. @ash_bitmaps = []
  2251. @ash_bitmaps[0] = Bitmap.new(3, 3)
  2252. @ash_bitmaps[0].fill_rect(0, 1, 1, 3, ash_color1)
  2253. @ash_bitmaps[0].fill_rect(1, 0, 3, 1, ash_color1)
  2254. @ash_bitmaps[0].set_pixel(1, 1, ash_color2)
  2255. @ash_bitmaps[1] = Bitmap.new(3, 3)
  2256. @ash_bitmaps[1].fill_rect(0, 1, 1, 3, ash_color3)
  2257. @ash_bitmaps[1].fill_rect(1, 0, 3, 1, ash_color3)
  2258. @ash_bitmaps[1].set_pixel(1, 1, ash_color1)
  2259. #-------------------------------------------------------------------------------
  2260. # Bubble bitmaps
  2261.  
  2262. @bubble_bitmaps = []
  2263. bubble_color1 = Color.new(77, 136, 225, 160)
  2264. bubble_color2 = Color.new(197, 253, 254, 160)
  2265. bubble_color3 = Color.new(225, 190, 244, 160)
  2266. bubble_color4 = Color.new(255, 255, 255)
  2267.  
  2268. # first bubble bitmap
  2269. @bubble_bitmaps[0] = Bitmap.new(24, 24)
  2270. @bubble_bitmaps[0].fill_rect(0, 9, 24, 5, bubble_color1)
  2271. @bubble_bitmaps[0].fill_rect(1, 6, 22, 11, bubble_color1)
  2272. @bubble_bitmaps[0].fill_rect(2, 5, 20, 13, bubble_color1)
  2273. @bubble_bitmaps[0].fill_rect(3, 4, 18, 15, bubble_color1)
  2274. @bubble_bitmaps[0].fill_rect(4, 3, 16, 17, bubble_color1)
  2275. @bubble_bitmaps[0].fill_rect(5, 2, 14, 19, bubble_color1)
  2276. @bubble_bitmaps[0].fill_rect(6, 1, 12, 21, bubble_color1)
  2277. @bubble_bitmaps[0].fill_rect(9, 0, 5, 24, bubble_color1)
  2278. @bubble_bitmaps[0].fill_rect(2, 11, 20, 4, bubble_color2)
  2279. @bubble_bitmaps[0].fill_rect(3, 7, 18, 10, bubble_color2)
  2280. @bubble_bitmaps[0].fill_rect(4, 6, 16, 12, bubble_color2)
  2281. @bubble_bitmaps[0].fill_rect(5, 5, 14, 14, bubble_color2)
  2282. @bubble_bitmaps[0].fill_rect(6, 4, 12, 16, bubble_color2)
  2283. @bubble_bitmaps[0].fill_rect(9, 2, 4, 20, bubble_color2)
  2284. @bubble_bitmaps[0].fill_rect(5, 10, 1, 7, bubble_color3)
  2285. @bubble_bitmaps[0].fill_rect(6, 14, 1, 5, bubble_color3)
  2286. @bubble_bitmaps[0].fill_rect(7, 15, 1, 4, bubble_color3)
  2287. @bubble_bitmaps[0].fill_rect(8, 16, 1, 4, bubble_color3)
  2288. @bubble_bitmaps[0].fill_rect(9, 17, 1, 3, bubble_color3)
  2289. @bubble_bitmaps[0].fill_rect(10, 18, 4, 3, bubble_color3)
  2290. @bubble_bitmaps[0].fill_rect(14, 18, 1, 2, bubble_color3)
  2291. @bubble_bitmaps[0].fill_rect(13, 5, 4, 4, bubble_color4)
  2292. @bubble_bitmaps[0].fill_rect(14, 4, 2, 1, bubble_color4)
  2293. @bubble_bitmaps[0].set_pixel(17, 6, bubble_color4)
  2294.  
  2295. # second bubble bitmap
  2296. @bubble_bitmaps[1] = Bitmap.new(14, 15)
  2297. @bubble_bitmaps[1].fill_rect(0, 4, 14, 7, bubble_color1)
  2298. @bubble_bitmaps[1].fill_rect(1, 3, 12, 9, bubble_color1)
  2299. @bubble_bitmaps[1].fill_rect(2, 2, 10, 11, bubble_color1)
  2300. @bubble_bitmaps[1].fill_rect(3, 1, 8, 13, bubble_color1)
  2301. @bubble_bitmaps[1].fill_rect(5, 0, 4, 15, bubble_color1)
  2302. @bubble_bitmaps[1].fill_rect(1, 5, 12, 4, bubble_color2)
  2303. @bubble_bitmaps[1].fill_rect(2, 4, 10, 6, bubble_color2)
  2304. @bubble_bitmaps[1].fill_rect(3, 3, 8, 8, bubble_color2)
  2305. @bubble_bitmaps[1].fill_rect(4, 2, 6, 10, bubble_color2)
  2306. @bubble_bitmaps[1].fill_rect(1, 5, 12, 4, bubble_color2)
  2307. @bubble_bitmaps[1].fill_rect(3, 9, 1, 2, bubble_color3)
  2308. @bubble_bitmaps[1].fill_rect(4, 10, 1, 2, bubble_color3)
  2309. @bubble_bitmaps[1].fill_rect(5, 11, 4, 1, bubble_color3)
  2310. @bubble_bitmaps[1].fill_rect(6, 12, 2, 1, bubble_color4)
  2311. @bubble_bitmaps[1].fill_rect(8, 3, 2, 2, bubble_color4)
  2312. @bubble_bitmaps[1].set_pixel(7, 4, bubble_color4)
  2313. @bubble_bitmaps[1].set_pixel(8, 5, bubble_color4)
  2314.  
  2315. # Other option for bubbles
  2316. @bubble2_bitmaps = Array.new
  2317. bubble2_color1 = Color.new(145, 150, 155, 160)
  2318. bubble2_color2 = Color.new(180, 180, 185, 160)
  2319. bubble2_color3 = Color.new(225, 225, 235, 160)
  2320. bubble2_color4 = Color.new(145, 145, 165, 160)
  2321. bubble2_color5 = Color.new(165, 170, 180, 160)
  2322. bubble2_color6 = Color.new(255, 255, 255, 160)
  2323.  
  2324. # first bubble 2 bitmap
  2325. @bubble2_bitmaps[0] = Bitmap.new(6, 6)
  2326. @bubble2_bitmaps[0].fill_rect(0, 0, 6, 6, bubble2_color1)
  2327. @bubble2_bitmaps[0].fill_rect(0, 2, 6, 2, bubble2_color2)
  2328. @bubble2_bitmaps[0].fill_rect(2, 0, 2, 6, bubble2_color2)
  2329. @bubble2_bitmaps[0].fill_rect(2, 2, 2, 2, bubble2_color3)
  2330.  
  2331. # second bubble 2 bitmap
  2332. @bubble2_bitmaps[1] = Bitmap.new(8, 8)
  2333. @bubble2_bitmaps[1].fill_rect(0, 2, 2, 4, bubble2_color4)
  2334. @bubble2_bitmaps[1].fill_rect(2, 0, 4, 2, bubble2_color1)
  2335. @bubble2_bitmaps[1].fill_rect(6, 2, 2, 2, bubble2_color1)
  2336. @bubble2_bitmaps[1].fill_rect(2, 6, 2, 2, bubble2_color1)
  2337. @bubble2_bitmaps[1].fill_rect(6, 4, 2, 2, bubble2_color2)
  2338. @bubble2_bitmaps[1].fill_rect(4, 6, 2, 2, bubble2_color2)
  2339. @bubble2_bitmaps[1].fill_rect(4, 4, 2, 2, bubble2_color5)
  2340. @bubble2_bitmaps[1].fill_rect(2, 4, 2, 2, bubble2_color3)
  2341. @bubble2_bitmaps[1].fill_rect(4, 2, 2, 2, bubble2_color3)
  2342. @bubble2_bitmaps[1].fill_rect(2, 2, 2, 2, bubble2_color6)
  2343.  
  2344. # third bubble 2 bitmap
  2345. @bubble2_bitmaps[2] = Bitmap.new(8, 10)
  2346. @bubble2_bitmaps[2].fill_rect(8, 2, 2, 4, bubble2_color4)
  2347. @bubble2_bitmaps[2].fill_rect(2, 0, 8, 2, bubble2_color1)
  2348. @bubble2_bitmaps[2].fill_rect(2, 6, 8, 2, bubble2_color1)
  2349. @bubble2_bitmaps[2].fill_rect(4, 0, 2, 2, bubble2_color2)
  2350. @bubble2_bitmaps[2].fill_rect(4, 6, 2, 2, bubble2_color2)
  2351. @bubble2_bitmaps[2].fill_rect(0, 2, 2, 2, bubble2_color2)
  2352. @bubble2_bitmaps[2].fill_rect(0, 4, 2, 2, bubble2_color5)
  2353. @bubble2_bitmaps[2].fill_rect(2, 2, 6, 4, bubble2_color3)
  2354. @bubble2_bitmaps[2].fill_rect(2, 2, 4, 2, bubble2_color6)
  2355. @bubble2_bitmaps[2].fill_rect(4, 4, 2, 2, bubble2_color6)
  2356.  
  2357. # fourth bubble 2 bitmap
  2358. @bubble2_bitmaps[3] = Bitmap.new(14, 14)
  2359. @bubble2_bitmaps[3].fill_rect(4, 0, 4, 2, bubble2_color4)
  2360. @bubble2_bitmaps[3].fill_rect(0, 4, 2, 4, bubble2_color4)
  2361. @bubble2_bitmaps[3].fill_rect(12, 4, 2, 4, bubble2_color4)
  2362. @bubble2_bitmaps[3].fill_rect(8, 0, 2, 2, bubble2_color1)
  2363. @bubble2_bitmaps[3].fill_rect(0, 6, 2, 2, bubble2_color1)
  2364. @bubble2_bitmaps[3].fill_rect(12, 6, 2, 2, bubble2_color1)
  2365. @bubble2_bitmaps[3].fill_rect(4, 12, 6, 2, bubble2_color1)
  2366. @bubble2_bitmaps[3].fill_rect(8, 0, 2, 2, bubble2_color1)
  2367. @bubble2_bitmaps[3].fill_rect(2, 2, 10, 10, bubble2_color2)
  2368. @bubble2_bitmaps[3].fill_rect(6, 12, 2, 2, bubble2_color2)
  2369. @bubble2_bitmaps[3].fill_rect(2, 4, 10, 6, bubble2_color3)
  2370. @bubble2_bitmaps[3].fill_rect(4, 2, 2, 2, bubble2_color3)
  2371. @bubble2_bitmaps[3].fill_rect(6, 10, 4, 2, bubble2_color3)
  2372. @bubble2_bitmaps[3].fill_rect(6, 4, 2, 2, bubble2_color6)
  2373. @bubble2_bitmaps[3].fill_rect(4, 6, 2, 2, bubble2_color6)
  2374. #-------------------------------------------------------------------------------
  2375. # Bomb bitmap
  2376.  
  2377. case $game_screen.weather_variation
  2378. when 1 # Flare
  2379. bomb_color1 = Color.new(205, 194, 23)
  2380. bomb_color2 = Color.new(248, 88, 0)
  2381. when 2 # Ice
  2382. bomb_color1 = Color.new(181, 244, 255)
  2383. bomb_color2 = Color.new(181, 244, 255)
  2384. else # Water
  2385. bomb_color1 = Color.new(197, 253, 254, 160)
  2386. bomb_color2 = Color.new(197, 253, 254, 160)
  2387. end
  2388.  
  2389. @bomb_bitmap = Bitmap.new(8, 8)
  2390. @bomb_bitmap.fill_rect(0, 2, 2, 4, bomb_color1)
  2391. @bomb_bitmap.fill_rect(2, 0, 4, 2, bomb_color1)
  2392. @bomb_bitmap.fill_rect(6, 2, 2, 2, bomb_color1)
  2393. @bomb_bitmap.fill_rect(2, 6, 2, 2, bomb_color2)
  2394. @bomb_bitmap.fill_rect(6, 4, 2, 2, bomb_color2)
  2395. @bomb_bitmap.fill_rect(4, 6, 2, 2, bomb_color1)
  2396. @bomb_bitmap.fill_rect(4, 4, 2, 2, bomb_color2)
  2397. @bomb_bitmap.fill_rect(2, 4, 2, 2, bomb_color1)
  2398. @bomb_bitmap.fill_rect(4, 2, 2, 2, bomb_color1)
  2399. @bomb_bitmap.fill_rect(2, 2, 2, 2, bomb_color1)
  2400.  
  2401. # Bomb impact bitmap
  2402. @bomb_impact_bitmap = Bitmap.new(8, 5)
  2403. @bomb_impact_bitmap.fill_rect(1, 0, 6, 1, bomb_color2)
  2404. @bomb_impact_bitmap.fill_rect(1, 4, 6, 1, bomb_color2)
  2405. @bomb_impact_bitmap.fill_rect(0, 1, 1, 3, bomb_color1)
  2406. @bomb_impact_bitmap.fill_rect(7, 1, 1, 3, bomb_color1)
  2407. @bomb_impact_bitmap.set_pixel(1, 0, bomb_color1)
  2408. @bomb_impact_bitmap.set_pixel(0, 1, bomb_color1)
  2409. #-------------------------------------------------------------------------------
  2410. # Starburst bitmaps (prismatic)
  2411.  
  2412. @starburst_bitmaps = []
  2413. starburst_color1 = Color.new(233, 210, 142)
  2414. starburst_color2 = Color.new(219, 191, 95)
  2415. starburst_color3 = Color.new(242, 229, 190)
  2416. starburst_color4 = Color.new(241, 185, 187)
  2417. starburst_color5 = Color.new(196, 55, 84)
  2418. starburst_color6 = Color.new(178, 15, 56)
  2419. starburst_color7 = Color.new (189, 225, 242)
  2420. starburst_color8 = Color.new (102, 181, 221)
  2421. starburst_color9 = Color.new (5, 88, 168)
  2422. starburst_color10 = Color.new(205, 246, 205)
  2423. starburst_color11 = Color.new(88, 221, 89)
  2424. starburst_color12 = Color.new(44, 166, 0)
  2425. starburst_color13 = Color.new(216, 197, 255)
  2426. starburst_color14 = Color.new(155, 107, 255)
  2427. starburst_color15 = Color.new(71, 0, 222)
  2428. starburst_color16 = Color.new(255, 220, 177)
  2429. starburst_color17 = Color.new(255, 180, 85)
  2430. starburst_color18 = Color.new(222, 124, 0)
  2431.  
  2432. # 1st starburst bitmap
  2433. @starburst_bitmaps[0] = Bitmap.new(8, 8)
  2434. @starburst_bitmaps[0].set_pixel(3, 3, starburst_color3)
  2435.  
  2436. # 2nd starburst bitmap
  2437. @starburst_bitmaps[1] = Bitmap.new(8, 8)
  2438. @starburst_bitmaps[1].fill_rect(3, 2, 1, 3, starburst_color1)
  2439. @starburst_bitmaps[1].fill_rect(2, 3, 3, 1, starburst_color1)
  2440. @starburst_bitmaps[1].set_pixel(3, 3, starburst_color3)
  2441.  
  2442. # 3rd starburst bitmap
  2443. @starburst_bitmaps[2] = Bitmap.new(7, 7)
  2444. @starburst_bitmaps[2].set_pixel(1, 1, starburst_color1)
  2445. @starburst_bitmaps[2].set_pixel(5, 1, starburst_color1)
  2446. @starburst_bitmaps[2].set_pixel(2, 2, starburst_color2)
  2447. @starburst_bitmaps[2].set_pixel(4, 2, starburst_color1)
  2448. @starburst_bitmaps[2].set_pixel(3, 3, starburst_color3)
  2449. @starburst_bitmaps[2].set_pixel(2, 4, starburst_color2)
  2450. @starburst_bitmaps[2].set_pixel(4, 4, starburst_color2)
  2451. @starburst_bitmaps[2].set_pixel(1, 5, starburst_color1)
  2452. @starburst_bitmaps[2].set_pixel(5, 5, starburst_color1)
  2453.  
  2454. # 4th starburst bitmap
  2455. @starburst_bitmaps[3] = Bitmap.new(7, 7)
  2456. @starburst_bitmaps[3].fill_rect(3, 1, 1, 5, starburst_color1)
  2457. @starburst_bitmaps[3].fill_rect(1, 3, 5, 1, starburst_color2)
  2458. @starburst_bitmaps[3].fill_rect(3, 2, 1, 3, starburst_color1)
  2459. @starburst_bitmaps[3].fill_rect(2, 3, 3, 1, starburst_color2)
  2460. @starburst_bitmaps[3].set_pixel(3, 3, starburst_color3)
  2461.  
  2462. # 5th starburst bitmap
  2463. @starburst_bitmaps[4] = Bitmap.new(7, 7)
  2464. @starburst_bitmaps[4].fill_rect(2, 2, 3, 3, starburst_color1)
  2465. @starburst_bitmaps[4].fill_rect(3, 2, 1, 3, starburst_color1)
  2466. @starburst_bitmaps[4].fill_rect(2, 3, 3, 1, starburst_color2)
  2467. @starburst_bitmaps[4].set_pixel(3, 3, starburst_color3)
  2468. @starburst_bitmaps[4].set_pixel(1, 1, starburst_color1)
  2469. @starburst_bitmaps[4].set_pixel(5, 1, starburst_color1)
  2470. @starburst_bitmaps[4].set_pixel(1, 5, starburst_color2)
  2471. @starburst_bitmaps[4].set_pixel(5, 1, starburst_color2)
  2472.  
  2473. # 6th starburst bitmap
  2474. @starburst_bitmaps[5] = Bitmap.new(8, 8)
  2475. @starburst_bitmaps[5].fill_rect(3, 2, 1, 3, starburst_color1)
  2476. @starburst_bitmaps[5].fill_rect(2, 3, 3, 1, starburst_color1)
  2477. @starburst_bitmaps[5].set_pixel(3, 3, starburst_color3)
  2478.  
  2479. # 7th starburst bitmap
  2480. @starburst_bitmaps[6] = Bitmap.new(8, 8)
  2481. @starburst_bitmaps[6].fill_rect(3, 2, 1, 3, starburst_color11)
  2482. @starburst_bitmaps[6].fill_rect(2, 3, 3, 1, starburst_color11)
  2483. @starburst_bitmaps[6].set_pixel(3, 3, starburst_color10)
  2484.  
  2485. # 8th starburst bitmap
  2486. @starburst_bitmaps[7] = Bitmap.new(7, 7)
  2487. @starburst_bitmaps[7].set_pixel(1, 1, starburst_color12)
  2488. @starburst_bitmaps[7].set_pixel(5, 1, starburst_color12)
  2489. @starburst_bitmaps[7].set_pixel(2, 2, starburst_color12)
  2490. @starburst_bitmaps[7].set_pixel(4, 2, starburst_color12)
  2491. @starburst_bitmaps[7].set_pixel(3, 3, starburst_color11)
  2492. @starburst_bitmaps[7].set_pixel(2, 4, starburst_color11)
  2493. @starburst_bitmaps[7].set_pixel(4, 4, starburst_color11)
  2494. @starburst_bitmaps[7].set_pixel(1, 5, starburst_color11)
  2495. @starburst_bitmaps[7].set_pixel(5, 5, starburst_color10)
  2496.  
  2497. # 9th starburst bitmap
  2498. @starburst_bitmaps[8] = Bitmap.new(7, 7)
  2499. @starburst_bitmaps[8].fill_rect(3, 1, 1, 5, starburst_color12)
  2500. @starburst_bitmaps[8].fill_rect(1, 3, 5, 1, starburst_color12)
  2501. @starburst_bitmaps[8].fill_rect(3, 2, 1, 3, starburst_color11)
  2502. @starburst_bitmaps[8].fill_rect(2, 3, 3, 1, starburst_color11)
  2503. @starburst_bitmaps[8].set_pixel(3, 3, starburst_color10)
  2504.  
  2505. # 10th starburst bitmap
  2506. @starburst_bitmaps[9] = Bitmap.new(7, 7)
  2507. @starburst_bitmaps[9].fill_rect(2, 1, 3, 5, starburst_color12)
  2508. @starburst_bitmaps[9].fill_rect(1, 2, 5, 3, starburst_color12)
  2509. @starburst_bitmaps[9].fill_rect(2, 2, 3, 3, starburst_color11)
  2510. @starburst_bitmaps[9].fill_rect(3, 1, 1, 5, starburst_color11)
  2511. @starburst_bitmaps[9].fill_rect(1, 3, 5, 1, starburst_color11)
  2512. @starburst_bitmaps[9].fill_rect(3, 2, 1, 3, starburst_color10)
  2513. @starburst_bitmaps[9].fill_rect(2, 3, 3, 1, starburst_color10)
  2514. @starburst_bitmaps[9].set_pixel(3, 3, starburst_color10)
  2515.  
  2516. # 11th starburst bitmap
  2517. @starburst_bitmaps[10] = Bitmap.new(7, 7)
  2518. @starburst_bitmaps[10].fill_rect(2, 2, 3, 3, starburst_color12)
  2519. @starburst_bitmaps[10].fill_rect(3, 2, 1, 3, starburst_color12)
  2520. @starburst_bitmaps[10].fill_rect(2, 3, 3, 1, starburst_color11)
  2521. @starburst_bitmaps[10].set_pixel(3, 3, starburst_color10)
  2522. @starburst_bitmaps[10].set_pixel(1, 1, starburst_color11)
  2523. @starburst_bitmaps[10].set_pixel(5, 1, starburst_color11)
  2524. @starburst_bitmaps[10].set_pixel(1, 5, starburst_color12)
  2525. @starburst_bitmaps[10].set_pixel(5, 1, starburst_color12)
  2526.  
  2527. # 12th starburst bitmap
  2528. @starburst_bitmaps[11] = Bitmap.new(8, 8)
  2529. @starburst_bitmaps[11].fill_rect(3, 2, 1, 3, starburst_color11)
  2530. @starburst_bitmaps[11].fill_rect(2, 3, 3, 1, starburst_color11)
  2531. @starburst_bitmaps[11].set_pixel(3, 3, starburst_color10)
  2532.  
  2533. # 13th starburst bitmap
  2534. @starburst_bitmaps[12] = Bitmap.new(8, 8)
  2535. @starburst_bitmaps[12].fill_rect(3, 2, 1, 3, starburst_color8)
  2536. @starburst_bitmaps[12].fill_rect(2, 3, 3, 1, starburst_color8)
  2537. @starburst_bitmaps[12].set_pixel(3, 3, starburst_color7)
  2538.  
  2539. # 14th starburst bitmap
  2540. @starburst_bitmaps[13] = Bitmap.new(7, 7)
  2541. @starburst_bitmaps[13].set_pixel(1, 1, starburst_color9)
  2542. @starburst_bitmaps[13].set_pixel(5, 1, starburst_color9)
  2543. @starburst_bitmaps[13].set_pixel(2, 2, starburst_color9)
  2544. @starburst_bitmaps[13].set_pixel(4, 2, starburst_color9)
  2545. @starburst_bitmaps[13].set_pixel(3, 3, starburst_color8)
  2546. @starburst_bitmaps[13].set_pixel(2, 4, starburst_color8)
  2547. @starburst_bitmaps[13].set_pixel(4, 4, starburst_color8)
  2548. @starburst_bitmaps[13].set_pixel(1, 5, starburst_color8)
  2549. @starburst_bitmaps[13].set_pixel(5, 5, starburst_color7)
  2550.  
  2551. # 15th starburst bitmap
  2552. @starburst_bitmaps[14] = Bitmap.new(7, 7)
  2553. @starburst_bitmaps[14].fill_rect(3, 1, 1, 5, starburst_color9)
  2554. @starburst_bitmaps[14].fill_rect(1, 3, 5, 1, starburst_color9)
  2555. @starburst_bitmaps[14].fill_rect(3, 2, 1, 3, starburst_color8)
  2556. @starburst_bitmaps[14].fill_rect(2, 3, 3, 1, starburst_color8)
  2557. @starburst_bitmaps[14].set_pixel(3, 3, starburst_color7)
  2558.  
  2559. # 16th starburst bitmap
  2560. @starburst_bitmaps[15] = Bitmap.new(7, 7)
  2561. @starburst_bitmaps[15].fill_rect(2, 1, 3, 5, starburst_color9)
  2562. @starburst_bitmaps[15].fill_rect(1, 2, 5, 3, starburst_color9)
  2563. @starburst_bitmaps[15].fill_rect(2, 2, 3, 3, starburst_color8)
  2564. @starburst_bitmaps[15].fill_rect(3, 1, 1, 5, starburst_color8)
  2565. @starburst_bitmaps[15].fill_rect(1, 3, 5, 1, starburst_color8)
  2566. @starburst_bitmaps[15].fill_rect(3, 2, 1, 3, starburst_color7)
  2567. @starburst_bitmaps[15].fill_rect(2, 3, 3, 1, starburst_color7)
  2568. @starburst_bitmaps[15].set_pixel(3, 3, starburst_color7)
  2569.  
  2570. # 17th starburst bitmap
  2571. @starburst_bitmaps[16] = Bitmap.new(8, 8)
  2572. @starburst_bitmaps[16].fill_rect(3, 2, 1, 3, starburst_color8)
  2573. @starburst_bitmaps[16].fill_rect(2, 3, 3, 1, starburst_color8)
  2574. @starburst_bitmaps[16].set_pixel(3, 3, starburst_color7)
  2575.  
  2576. # 18th starburst bitmap
  2577. @starburst_bitmaps[17] = Bitmap.new(8, 8)
  2578. @starburst_bitmaps[17].fill_rect(3, 2, 1, 3, starburst_color14)
  2579. @starburst_bitmaps[17].fill_rect(2, 3, 3, 1, starburst_color14)
  2580. @starburst_bitmaps[17].set_pixel(3, 3, starburst_color13)
  2581.  
  2582. # 19th starburst bitmap
  2583. @starburst_bitmaps[18] = Bitmap.new(7, 7)
  2584. @starburst_bitmaps[18].set_pixel(1, 1, starburst_color15)
  2585. @starburst_bitmaps[18].set_pixel(5, 1, starburst_color15)
  2586. @starburst_bitmaps[18].set_pixel(2, 2, starburst_color15)
  2587. @starburst_bitmaps[18].set_pixel(4, 2, starburst_color15)
  2588. @starburst_bitmaps[18].set_pixel(3, 3, starburst_color14)
  2589. @starburst_bitmaps[18].set_pixel(2, 4, starburst_color14)
  2590. @starburst_bitmaps[18].set_pixel(4, 4, starburst_color14)
  2591. @starburst_bitmaps[18].set_pixel(1, 5, starburst_color14)
  2592. @starburst_bitmaps[18].set_pixel(5, 5, starburst_color13)
  2593.  
  2594. # 20th starburst bitmap
  2595. @starburst_bitmaps[19] = Bitmap.new(7, 7)
  2596. @starburst_bitmaps[19].fill_rect(3, 1, 1, 5, starburst_color15)
  2597. @starburst_bitmaps[19].fill_rect(1, 3, 5, 1, starburst_color15)
  2598. @starburst_bitmaps[19].fill_rect(3, 2, 1, 3, starburst_color14)
  2599. @starburst_bitmaps[19].fill_rect(2, 3, 3, 1, starburst_color14)
  2600. @starburst_bitmaps[19].set_pixel(3, 3, starburst_color14)
  2601.  
  2602. # 21st starburst bitmap
  2603. @starburst_bitmaps[20] = Bitmap.new(7, 7)
  2604. @starburst_bitmaps[20].fill_rect(2, 1, 3, 5, starburst_color15)
  2605. @starburst_bitmaps[20].fill_rect(1, 2, 5, 3, starburst_color15)
  2606. @starburst_bitmaps[20].fill_rect(2, 2, 3, 3, starburst_color14)
  2607. @starburst_bitmaps[20].fill_rect(3, 1, 1, 5, starburst_color14)
  2608. @starburst_bitmaps[20].fill_rect(1, 3, 5, 1, starburst_color14)
  2609. @starburst_bitmaps[20].fill_rect(3, 2, 1, 3, starburst_color13)
  2610. @starburst_bitmaps[20].fill_rect(2, 3, 3, 1, starburst_color13)
  2611. @starburst_bitmaps[20].set_pixel(3, 3, starburst_color13)
  2612.  
  2613. # 22nd starburst bitmap
  2614. @starburst_bitmaps[21] = Bitmap.new(7, 7)
  2615. @starburst_bitmaps[21].fill_rect(2, 1, 3, 5, starburst_color14)
  2616. @starburst_bitmaps[21].fill_rect(1, 2, 5, 3, starburst_color14)
  2617. @starburst_bitmaps[21].fill_rect(3, 0, 1, 7, starburst_color15)
  2618. @starburst_bitmaps[21].fill_rect(0, 3, 7, 1, starburst_color15)
  2619. @starburst_bitmaps[21].fill_rect(2, 2, 3, 3, starburst_color13)
  2620. @starburst_bitmaps[21].fill_rect(3, 2, 1, 3, starburst_color14)
  2621. @starburst_bitmaps[21].fill_rect(2, 3, 3, 1, starburst_color14)
  2622. @starburst_bitmaps[21].set_pixel(3, 3, starburst_color13)
  2623.  
  2624. # 23rd starburst bitmap
  2625. @starburst_bitmaps[22] = Bitmap.new(8, 8)
  2626. @starburst_bitmaps[22].fill_rect(3, 2, 1, 3, starburst_color14)
  2627. @starburst_bitmaps[22].fill_rect(2, 3, 3, 1, starburst_color14)
  2628. @starburst_bitmaps[22].set_pixel(3, 3, starburst_color13)
  2629.  
  2630. # 24th starburst bitmap
  2631. @starburst_bitmaps[23] = Bitmap.new(8, 8)
  2632. @starburst_bitmaps[23].fill_rect(3, 2, 1, 3, starburst_color5)
  2633. @starburst_bitmaps[23].fill_rect(2, 3, 3, 1, starburst_color5)
  2634. @starburst_bitmaps[23].set_pixel(3, 3, starburst_color4)
  2635.  
  2636. # 25th starburst bitmap
  2637. @starburst_bitmaps[24] = Bitmap.new(7, 7)
  2638. @starburst_bitmaps[24].set_pixel(1, 1, starburst_color6)
  2639. @starburst_bitmaps[24].set_pixel(5, 1, starburst_color6)
  2640. @starburst_bitmaps[24].set_pixel(2, 2, starburst_color6)
  2641. @starburst_bitmaps[24].set_pixel(4, 2, starburst_color6)
  2642. @starburst_bitmaps[24].set_pixel(3, 3, starburst_color5)
  2643. @starburst_bitmaps[24].set_pixel(2, 4, starburst_color5)
  2644. @starburst_bitmaps[24].set_pixel(4, 4, starburst_color5)
  2645. @starburst_bitmaps[24].set_pixel(1, 5, starburst_color5)
  2646. @starburst_bitmaps[24].set_pixel(5, 5, starburst_color4)
  2647.  
  2648. # 26th starburst bitmap
  2649. @starburst_bitmaps[25] = Bitmap.new(7, 7)
  2650. @starburst_bitmaps[25].fill_rect(3, 1, 1, 5, starburst_color6)
  2651. @starburst_bitmaps[25].fill_rect(1, 3, 5, 1, starburst_color6)
  2652. @starburst_bitmaps[25].fill_rect(3, 2, 1, 3, starburst_color5)
  2653. @starburst_bitmaps[25].fill_rect(2, 3, 3, 1, starburst_color5)
  2654. @starburst_bitmaps[25].set_pixel(3, 3, starburst_color4)
  2655.  
  2656. # 27th starburst bitmap
  2657. @starburst_bitmaps[26] = Bitmap.new(7, 7)
  2658. @starburst_bitmaps[26].fill_rect(2, 1, 3, 5, starburst_color6)
  2659. @starburst_bitmaps[26].fill_rect(1, 2, 5, 3, starburst_color6)
  2660. @starburst_bitmaps[26].fill_rect(2, 2, 3, 3, starburst_color5)
  2661. @starburst_bitmaps[26].fill_rect(3, 1, 1, 5, starburst_color5)
  2662. @starburst_bitmaps[26].fill_rect(1, 3, 5, 1, starburst_color5)
  2663. @starburst_bitmaps[26].fill_rect(3, 2, 1, 3, starburst_color4)
  2664. @starburst_bitmaps[26].fill_rect(2, 3, 3, 1, starburst_color4)
  2665. @starburst_bitmaps[26].set_pixel(3, 3, starburst_color4)
  2666.  
  2667. # 28th starburst bitmap
  2668. @starburst_bitmaps[27] = Bitmap.new(7, 7)
  2669. @starburst_bitmaps[27].fill_rect(2, 1, 3, 5, starburst_color5)
  2670. @starburst_bitmaps[27].fill_rect(1, 2, 5, 3, starburst_color5)
  2671. @starburst_bitmaps[27].fill_rect(3, 0, 1, 7, starburst_color6)
  2672. @starburst_bitmaps[27].fill_rect(0, 3, 7, 1, starburst_color6)
  2673. @starburst_bitmaps[27].fill_rect(2, 2, 3, 3, starburst_color4)
  2674. @starburst_bitmaps[27].fill_rect(3, 2, 1, 3, starburst_color5)
  2675. @starburst_bitmaps[27].fill_rect(2, 3, 3, 1, starburst_color5)
  2676. @starburst_bitmaps[27].set_pixel(3, 3, starburst_color4)
  2677.  
  2678. # 29th starburst bitmap
  2679. @starburst_bitmaps[28] = Bitmap.new(8, 8)
  2680. @starburst_bitmaps[28].fill_rect(3, 2, 1, 3, starburst_color5)
  2681. @starburst_bitmaps[28].fill_rect(2, 3, 3, 1, starburst_color5)
  2682. @starburst_bitmaps[28].set_pixel(3, 3, starburst_color4)
  2683.  
  2684. # 30th starburst bitmap
  2685. @starburst_bitmaps[29] = Bitmap.new(8, 8)
  2686. @starburst_bitmaps[29].fill_rect(3, 2, 1, 3, starburst_color17)
  2687. @starburst_bitmaps[29].fill_rect(2, 3, 3, 1, starburst_color17)
  2688. @starburst_bitmaps[29].set_pixel(3, 3, starburst_color16)
  2689.  
  2690. # 31st starburst bitmap
  2691. @starburst_bitmaps[30] = Bitmap.new(7, 7)
  2692. @starburst_bitmaps[30].set_pixel(1, 1, starburst_color18)
  2693. @starburst_bitmaps[30].set_pixel(5, 1, starburst_color18)
  2694. @starburst_bitmaps[30].set_pixel(2, 2, starburst_color18)
  2695. @starburst_bitmaps[30].set_pixel(4, 2, starburst_color18)
  2696. @starburst_bitmaps[30].set_pixel(3, 3, starburst_color17)
  2697. @starburst_bitmaps[30].set_pixel(2, 4, starburst_color17)
  2698. @starburst_bitmaps[30].set_pixel(4, 4, starburst_color17)
  2699. @starburst_bitmaps[30].set_pixel(1, 5, starburst_color17)
  2700. @starburst_bitmaps[30].set_pixel(5, 5, starburst_color16)
  2701.  
  2702. # 32nd starburst bitmap
  2703. @starburst_bitmaps[31] = Bitmap.new(7, 7)
  2704. @starburst_bitmaps[31].fill_rect(3, 1, 1, 5, starburst_color18)
  2705. @starburst_bitmaps[31].fill_rect(1, 3, 5, 1, starburst_color18)
  2706. @starburst_bitmaps[31].fill_rect(3, 2, 1, 3, starburst_color17)
  2707. @starburst_bitmaps[31].fill_rect(2, 3, 3, 1, starburst_color17)
  2708. @starburst_bitmaps[31].set_pixel(3, 3, starburst_color16)
  2709.  
  2710. # 33rd starburst bitmap
  2711. @starburst_bitmaps[32] = Bitmap.new(7, 7)
  2712. @starburst_bitmaps[32].fill_rect(2, 1, 3, 5, starburst_color18)
  2713. @starburst_bitmaps[32].fill_rect(1, 2, 5, 3, starburst_color18)
  2714. @starburst_bitmaps[32].fill_rect(2, 2, 3, 3, starburst_color17)
  2715. @starburst_bitmaps[32].fill_rect(3, 1, 1, 5, starburst_color17)
  2716. @starburst_bitmaps[32].fill_rect(1, 3, 5, 1, starburst_color17)
  2717. @starburst_bitmaps[32].fill_rect(3, 2, 1, 3, starburst_color16)
  2718. @starburst_bitmaps[32].fill_rect(2, 3, 3, 1, starburst_color16)
  2719. @starburst_bitmaps[32].set_pixel(3, 3, starburst_color16)
  2720.  
  2721. # 34th starburst bitmap
  2722. @starburst_bitmaps[33] = Bitmap.new(7, 7)
  2723. @starburst_bitmaps[33].fill_rect(2, 1, 3, 5, starburst_color17)
  2724. @starburst_bitmaps[33].fill_rect(1, 2, 5, 3, starburst_color17)
  2725. @starburst_bitmaps[33].fill_rect(3, 0, 1, 7, starburst_color18)
  2726. @starburst_bitmaps[33].fill_rect(0, 3, 7, 1, starburst_color18)
  2727. @starburst_bitmaps[33].fill_rect(2, 2, 3, 3, starburst_color16)
  2728. @starburst_bitmaps[33].fill_rect(3, 2, 1, 3, starburst_color17)
  2729. @starburst_bitmaps[33].fill_rect(2, 3, 3, 1, starburst_color17)
  2730. @starburst_bitmaps[33].set_pixel(3, 3, starburst_color16)
  2731.  
  2732. # 35th starburst bitmap
  2733. @starburst_bitmaps[34] = Bitmap.new(8, 8)
  2734. @starburst_bitmaps[34].fill_rect(3, 2, 1, 3, starburst_color17)
  2735. @starburst_bitmaps[34].fill_rect(2, 3, 3, 1, starburst_color17)
  2736. @starburst_bitmaps[34].set_pixel(3, 3, starburst_color16)
  2737.  
  2738. # 36th starburst bitmap
  2739. @starburst_bitmaps[35] = Bitmap.new(8, 8)
  2740. @starburst_bitmaps[35].set_pixel(3, 3, starburst_color16)
  2741. #-------------------------------------------------------------------------------
  2742. # Monochrome starburst bitmaps
  2743.  
  2744. @monostarburst_bitmaps = []
  2745. case $game_screen.weather_variation
  2746. when 1 # Green
  2747. monostarburst_color1 = Color.new(159, 232, 141)
  2748. monostarburst_color2 = Color.new(198, 239, 189)
  2749. monostarburst_color3 = Color.new(115, 216, 95)
  2750. when 2 # Aqua-blue
  2751. monostarburst_color1 = Color.new(139, 229, 217)
  2752. monostarburst_color2 = Color.new(189, 237, 231)
  2753. monostarburst_color3 = Color.new(94, 214, 202)
  2754. when 3 # Blue
  2755. monostarburst_color1 = Color.new(138, 153, 226)
  2756. monostarburst_color2 = Color.new(187, 195, 234)
  2757. monostarburst_color3 = Color.new(93, 108, 211)
  2758. when 4 # Violet
  2759. monostarburst_color1 = Color.new(205, 139, 224)
  2760. monostarburst_color2 = Color.new(221, 185, 232)
  2761. monostarburst_color3 = Color.new(189, 94, 209)
  2762. when 5 # Red
  2763. monostarburst_color1 = Color.new(221, 139, 161)
  2764. monostarburst_color2 = Color.new(229, 183, 196)
  2765. monostarburst_color3 = Color.new(206, 92, 117)
  2766. when 6 # Lavender
  2767. monostarburst_color1 = Color.new(193, 180, 217)
  2768. monostarburst_color2 = Color.new(227, 117, 254)
  2769. monostarburst_color3 = Color.new(152, 88, 163)
  2770. when 7 # Grey
  2771. monostarburst_color1 = Color.new(167, 166, 162)
  2772. monostarburst_color2 = Color.new(217, 225, 231)
  2773. monostarburst_color3 = Color.new(99, 100, 103)
  2774. when 8 # White
  2775. monostarburst_color1 = Color.new(234, 235, 235)
  2776. monostarburst_color2 = Color.new(249, 249, 249)
  2777. monostarburst_color3 = Color.new(229, 230, 230)
  2778. when 9 # Dark Sepia
  2779. monostarburst_color1 = Color.new(167, 149, 139)
  2780. monostarburst_color2 = Color.new(179, 153, 150)
  2781. monostarburst_color3 = Color.new(100, 76, 63)
  2782. when 10 # Light Sepia
  2783. monostarburst_color1 = Color.new(230, 220, 209)
  2784. monostarburst_color2 = Color.new(235, 240, 224)
  2785. monostarburst_color3 = Color.new(220, 195, 170)
  2786. else # Yellow (Default)
  2787. monostarburst_color1 = Color.new(233, 210, 142)
  2788. monostarburst_color2 = Color.new(242, 229, 190)
  2789. monostarburst_color3 = Color.new(219, 191, 95)
  2790. end
  2791.  
  2792. # 1st starburst bitmap
  2793. @monostarburst_bitmaps[0] = Bitmap.new(8, 8)
  2794. @monostarburst_bitmaps[0].set_pixel(3, 3, monostarburst_color2)
  2795.  
  2796. # 2nd starburst bitmap
  2797. @monostarburst_bitmaps[1] = Bitmap.new(8, 8)
  2798. @monostarburst_bitmaps[1].fill_rect(3, 2, 1, 3, monostarburst_color1)
  2799. @monostarburst_bitmaps[1].fill_rect(2, 3, 3, 1, monostarburst_color1)
  2800. @monostarburst_bitmaps[1].set_pixel(3, 3, monostarburst_color2)
  2801.  
  2802. # 3d starburst bitmap
  2803. @monostarburst_bitmaps[2] = Bitmap.new(7, 7)
  2804. @monostarburst_bitmaps[2].set_pixel(1, 1, monostarburst_color3)
  2805. @monostarburst_bitmaps[2].set_pixel(5, 1, monostarburst_color3)
  2806. @monostarburst_bitmaps[2].set_pixel(2, 2, monostarburst_color3)
  2807. @monostarburst_bitmaps[2].set_pixel(4, 2, monostarburst_color3)
  2808. @monostarburst_bitmaps[2].set_pixel(3, 3, monostarburst_color1)
  2809. @monostarburst_bitmaps[2].set_pixel(2, 4, monostarburst_color1)
  2810. @monostarburst_bitmaps[2].set_pixel(4, 4, monostarburst_color1)
  2811. @monostarburst_bitmaps[2].set_pixel(1, 5, monostarburst_color1)
  2812. @monostarburst_bitmaps[2].set_pixel(5, 5, monostarburst_color2)
  2813.  
  2814. # 4th starburst bitmap
  2815. @monostarburst_bitmaps[3] = Bitmap.new(7, 7)
  2816. @monostarburst_bitmaps[3].fill_rect(3, 1, 1, 5, monostarburst_color3)
  2817. @monostarburst_bitmaps[3].fill_rect(1, 3, 5, 1, monostarburst_color3)
  2818. @monostarburst_bitmaps[3].fill_rect(3, 2, 1, 3, monostarburst_color1)
  2819. @monostarburst_bitmaps[3].fill_rect(2, 3, 3, 1, monostarburst_color1)
  2820. @monostarburst_bitmaps[3].set_pixel(3, 3, monostarburst_color2)
  2821.  
  2822. # 5th starburst bitmap
  2823. @monostarburst_bitmaps[4] = Bitmap.new(7, 7)
  2824. @monostarburst_bitmaps[4].fill_rect(2, 1, 3, 5, monostarburst_color3)
  2825. @monostarburst_bitmaps[4].fill_rect(1, 2, 5, 3, monostarburst_color3)
  2826. @monostarburst_bitmaps[4].fill_rect(2, 2, 3, 3, monostarburst_color1)
  2827. @monostarburst_bitmaps[4].fill_rect(3, 1, 1, 5, monostarburst_color1)
  2828. @monostarburst_bitmaps[4].fill_rect(1, 3, 5, 1, monostarburst_color1)
  2829. @monostarburst_bitmaps[4].fill_rect(3, 2, 1, 3, monostarburst_color2)
  2830. @monostarburst_bitmaps[4].fill_rect(2, 3, 3, 1, monostarburst_color2)
  2831. @monostarburst_bitmaps[4].set_pixel(3, 3, monostarburst_color2)
  2832.  
  2833. # 6th starburst bitmap
  2834. @monostarburst_bitmaps[5] = Bitmap.new(7, 7)
  2835. @monostarburst_bitmaps[5].fill_rect(2, 1, 3, 5, monostarburst_color1)
  2836. @monostarburst_bitmaps[5].fill_rect(1, 2, 5, 3, monostarburst_color1)
  2837. @monostarburst_bitmaps[5].fill_rect(3, 0, 1, 7, monostarburst_color3)
  2838. @monostarburst_bitmaps[5].fill_rect(0, 3, 7, 1, monostarburst_color3)
  2839. @monostarburst_bitmaps[5].fill_rect(2, 2, 3, 3, monostarburst_color2)
  2840. @monostarburst_bitmaps[5].fill_rect(3, 2, 1, 3, monostarburst_color1)
  2841. @monostarburst_bitmaps[5].fill_rect(2, 3, 3, 1, monostarburst_color1)
  2842. @monostarburst_bitmaps[5].set_pixel(3, 3, monostarburst_color2)
  2843.  
  2844. # 7th starburst bitmap
  2845. @monostarburst_bitmaps[6] = Bitmap.new(8, 8)
  2846. @monostarburst_bitmaps[6].fill_rect(3, 2, 1, 3, monostarburst_color1)
  2847. @monostarburst_bitmaps[6].fill_rect(2, 3, 3, 1, monostarburst_color1)
  2848. @monostarburst_bitmaps[6].set_pixel(3, 3, monostarburst_color2)
  2849.  
  2850. # 8th starburst bitmap
  2851. @monostarburst_bitmaps[7] = Bitmap.new(8, 8)
  2852. @monostarburst_bitmaps[7].set_pixel(3, 3, monostarburst_color2)
  2853. #-------------------------------------------------------------------------------
  2854. # Falling rock bitmaps
  2855.  
  2856. @fallingrocks_bitmaps = []
  2857. rock_color1 = Color.new(173, 145, 127)
  2858. rock_color2 = Color.new(195, 159, 153)
  2859. rock_color3 = Color.new(128, 120, 112)
  2860. rock_color4 = Color.new(99, 92, 116)
  2861. rock_color5 = Color.new(107, 89, 79)
  2862. rock_color6 = Color.new(130, 110, 97)
  2863. rock_color7 = Color.new(214, 181, 150)
  2864. rock_color8 = Color.new(155, 129, 112)
  2865. rock_color9 = Color.new(193, 177, 180)
  2866. rock_color10 = Color.new(180, 180, 180)
  2867.  
  2868. # 1st falling rock bitmap
  2869. @fallingrocks_bitmaps[0] = Bitmap.new(10, 7)
  2870. @fallingrocks_bitmaps[0].fill_rect(3, 0, 3, 1, rock_color1)
  2871. @fallingrocks_bitmaps[0].fill_rect(1, 1, 2, 1, rock_color1)
  2872. @fallingrocks_bitmaps[0].set_pixel(3, 1, rock_color10)
  2873. @fallingrocks_bitmaps[0].fill_rect(4, 1, 1, 3, rock_color9)
  2874. @fallingrocks_bitmaps[0].set_pixel(5, 1, rock_color2)
  2875. @fallingrocks_bitmaps[0].set_pixel(6, 1, rock_color1)
  2876. @fallingrocks_bitmaps[0].set_pixel(0, 2, rock_color1)
  2877. @fallingrocks_bitmaps[0].fill_rect(1, 2, 3, 1, rock_color7)
  2878. @fallingrocks_bitmaps[0].set_pixel(5, 2, rock_color9)
  2879. @fallingrocks_bitmaps[0].set_pixel(6, 2, rock_color2)
  2880. @fallingrocks_bitmaps[0].set_pixel(7, 2, rock_color3)
  2881. @fallingrocks_bitmaps[0].fill_rect(8, 2, 2, 3, rock_color4)
  2882. @fallingrocks_bitmaps[0].set_pixel(0, 3, rock_color3)
  2883. @fallingrocks_bitmaps[0].set_pixel(1, 3, rock_color10)
  2884. @fallingrocks_bitmaps[0].set_pixel(2, 3, rock_color7)
  2885. @fallingrocks_bitmaps[0].set_pixel(3, 3, rock_color10)
  2886. @fallingrocks_bitmaps[0].set_pixel(5, 3, rock_color2)
  2887. @fallingrocks_bitmaps[0].set_pixel(6, 3, rock_color1)
  2888. @fallingrocks_bitmaps[0].set_pixel(7, 3, rock_color5)
  2889. @fallingrocks_bitmaps[0].fill_rect(0, 4, 2, 1, rock_color5)
  2890. @fallingrocks_bitmaps[0].set_pixel(2, 4, rock_color3)
  2891. @fallingrocks_bitmaps[0].set_pixel(3, 4, rock_color9)
  2892. @fallingrocks_bitmaps[0].set_pixel(4, 4, rock_color2)
  2893. @fallingrocks_bitmaps[0].set_pixel(5, 4, rock_color1)
  2894. @fallingrocks_bitmaps[0].set_pixel(6, 4, rock_color8)
  2895. @fallingrocks_bitmaps[0].set_pixel(7, 4, rock_color3)
  2896. @fallingrocks_bitmaps[0].set_pixel(1, 5, rock_color4)
  2897. @fallingrocks_bitmaps[0].fill_rect(2, 5, 2, 1, rock_color5)
  2898. @fallingrocks_bitmaps[0].fill_rect(4, 5, 2, 1, rock_color3)
  2899. @fallingrocks_bitmaps[0].fill_rect(6, 5, 2, 1, rock_color5)
  2900. @fallingrocks_bitmaps[0].set_pixel(8, 5, rock_color4)
  2901. @fallingrocks_bitmaps[0].fill_rect(3, 6, 5, 1, rock_color4)
  2902.  
  2903. # 2nd falling rock bitmap
  2904. @fallingrocks_bitmaps[1] = Bitmap.new(5, 4)
  2905. @fallingrocks_bitmaps[1].set_pixel(1, 0, rock_color8)
  2906. @fallingrocks_bitmaps[1].set_pixel(2, 0, rock_color1)
  2907. @fallingrocks_bitmaps[1].set_pixel(3, 0, rock_color6)
  2908. @fallingrocks_bitmaps[1].set_pixel(0, 1, rock_color6)
  2909. @fallingrocks_bitmaps[1].set_pixel(1, 1, rock_color1)
  2910. @fallingrocks_bitmaps[1].set_pixel(2, 1, rock_color2)
  2911. @fallingrocks_bitmaps[1].set_pixel(3, 1, rock_color1)
  2912. @fallingrocks_bitmaps[1].set_pixel(4, 1, rock_color5)
  2913. @fallingrocks_bitmaps[1].fill_rect(0, 2, 1, 2, rock_color4)
  2914. @fallingrocks_bitmaps[1].fill_rect(1, 2, 2, 1, rock_color6)
  2915. @fallingrocks_bitmaps[1].set_pixel(3, 2, rock_color5)
  2916. @fallingrocks_bitmaps[1].fill_rect(1, 3, 3, 1, rock_color4)
  2917.  
  2918. # 3rd falling rock bitmap
  2919. @fallingrocks_bitmaps[2] = Bitmap.new(7, 6)
  2920. @fallingrocks_bitmaps[2].set_pixel(2, 0, rock_color4)
  2921. @fallingrocks_bitmaps[2].set_pixel(3, 0, rock_color3)
  2922. @fallingrocks_bitmaps[2].set_pixel(4, 0, rock_color8)
  2923. @fallingrocks_bitmaps[2].set_pixel(5, 0, rock_color6)
  2924. @fallingrocks_bitmaps[2].set_pixel(1, 1, rock_color3)
  2925. @fallingrocks_bitmaps[2].set_pixel(2, 1, rock_color8)
  2926. @fallingrocks_bitmaps[2].set_pixel(3, 1, rock_color2)
  2927. @fallingrocks_bitmaps[2].fill_rect(4, 1, 1, 2, rock_color9)
  2928. @fallingrocks_bitmaps[2].set_pixel(5, 1, rock_color8)
  2929. @fallingrocks_bitmaps[2].fill_rect(6, 1, 1, 3, rock_color4)
  2930. @fallingrocks_bitmaps[2].set_pixel(0, 2, rock_color3)
  2931. @fallingrocks_bitmaps[2].set_pixel(1, 2, rock_color8)
  2932. @fallingrocks_bitmaps[2].set_pixel(2, 2, rock_color2)
  2933. @fallingrocks_bitmaps[2].fill_rect(3, 2, 1, 2, rock_color9)
  2934. @fallingrocks_bitmaps[2].set_pixel(5, 2, rock_color6)
  2935. @fallingrocks_bitmaps[2].set_pixel(0, 3, rock_color6)
  2936. @fallingrocks_bitmaps[2].set_pixel(1, 3, rock_color2)
  2937. @fallingrocks_bitmaps[2].set_pixel(2, 3, rock_color7)
  2938. @fallingrocks_bitmaps[2].set_pixel(4, 3, rock_color6)
  2939. @fallingrocks_bitmaps[2].fill_rect(5, 3, 1, 2, rock_color4)
  2940. @fallingrocks_bitmaps[2].set_pixel(0, 4, rock_color5)
  2941. @fallingrocks_bitmaps[2].set_pixel(1, 4, rock_color6)
  2942. @fallingrocks_bitmaps[2].set_pixel(2, 4, rock_color9)
  2943. @fallingrocks_bitmaps[2].set_pixel(3, 4, rock_color6)
  2944. @fallingrocks_bitmaps[2].fill_rect(4, 4, 1, 2, rock_color4)
  2945. @fallingrocks_bitmaps[2].set_pixel(0, 5, rock_color6)
  2946. @fallingrocks_bitmaps[2].fill_rect(1, 5, 2, 1, rock_color5)
  2947. @fallingrocks_bitmaps[2].set_pixel(3, 5, rock_color4)
  2948. #-------------------------------------------------------------------------------
  2949. # Arrows
  2950.  
  2951. case $game_screen.weather_variation
  2952. when 1 # Fired Arrows
  2953. arrow_color1 = Color.new(255, 128, 43)
  2954. arrow_color2 = Color.new(255, 242, 0)
  2955. arrow_color3 = Color.new(80, 50, 20)
  2956. arrow_color4 = Color.new(255, 255, 255)
  2957. arrow_color5 = Color.new(180, 180, 180)
  2958. else
  2959. arrow_color1 = Color.new(38, 0, 0)
  2960. arrow_color2 = Color.new(73, 10, 42)
  2961. arrow_color3 = Color.new(80, 50, 20)
  2962. arrow_color4 = Color.new(255, 255, 255)
  2963. arrow_color5 = Color.new(180, 180, 180)
  2964. end
  2965.  
  2966. @arrow_bitmap = Bitmap.new(23, 23)
  2967. @arrow_bitmap.fill_rect(19, 0, 1, 3, arrow_color4)
  2968. @arrow_bitmap.fill_rect(20, 0, 1, 2, arrow_color5)
  2969. @arrow_bitmap.set_pixel(22, 0, arrow_color3)
  2970. @arrow_bitmap.fill_rect(18, 1, 1, 3, arrow_color5)
  2971. @arrow_bitmap.set_pixel(21, 1, arrow_color3)
  2972. @arrow_bitmap.fill_rect(17, 2, 1, 3, arrow_color4)
  2973. @arrow_bitmap.set_pixel(20, 2, arrow_color3)
  2974. @arrow_bitmap.fill_rect(21, 2, 2, 1, arrow_color5)
  2975. @arrow_bitmap.set_pixel(19, 3, arrow_color3)
  2976. @arrow_bitmap.fill_rect(20, 3, 3, 1, arrow_color4)
  2977. @arrow_bitmap.set_pixel(18, 4, arrow_color3)
  2978. @arrow_bitmap.fill_rect(19, 4, 3, 1, arrow_color5)
  2979. @arrow_bitmap.set_pixel(17, 5, arrow_color3)
  2980. @arrow_bitmap.fill_rect(18, 5, 3, 1, arrow_color4)
  2981. @arrow_bitmap.set_pixel(16, 6, arrow_color3)
  2982. @arrow_bitmap.set_pixel(15, 7, arrow_color3)
  2983. @arrow_bitmap.set_pixel(14, 8, arrow_color3)
  2984. @arrow_bitmap.set_pixel(13, 9, arrow_color3)
  2985. @arrow_bitmap.set_pixel(12, 10, arrow_color3)
  2986. @arrow_bitmap.set_pixel(11, 11, arrow_color3)
  2987. @arrow_bitmap.set_pixel(10, 12, arrow_color3)
  2988. @arrow_bitmap.set_pixel(9, 13, arrow_color3)
  2989. @arrow_bitmap.set_pixel(8, 14, arrow_color3)
  2990. @arrow_bitmap.set_pixel(7, 15, arrow_color3)
  2991. @arrow_bitmap.set_pixel(6, 16, arrow_color3)
  2992. @arrow_bitmap.set_pixel(5, 17, arrow_color3)
  2993. @arrow_bitmap.set_pixel(4, 18, arrow_color3)
  2994. @arrow_bitmap.fill_rect(1, 19, 3, 1, arrow_color1)
  2995. @arrow_bitmap.fill_rect(0, 20, 1, 3, arrow_color1)
  2996. @arrow_bitmap.set_pixel(1, 20, arrow_color2)
  2997. @arrow_bitmap.set_pixel(2, 20, arrow_color5)
  2998. @arrow_bitmap.fill_rect(3, 20, 1, 2, arrow_color1)
  2999. @arrow_bitmap.set_pixel(1, 21, arrow_color5)
  3000. @arrow_bitmap.set_pixel(2, 21, arrow_color2)
  3001. @arrow_bitmap.fill_rect(1, 22, 2, 1, arrow_color1)
  3002. #-------------------------------------------------------------------------------
  3003. # Butterflies
  3004.  
  3005. @butterfly_bitmaps = []
  3006. case $game_screen.weather_variation
  3007. when 1
  3008. # Red butterflies
  3009. butterfly_color1 = Color.new(204, 53, 55)
  3010. butterfly_color2 = Color.new(206, 76, 74)
  3011. butterfly_color3 = Color.new(252, 131, 137)
  3012. butterfly_color4 = Color.new(255, 178, 163)
  3013. butterfly_color5 = Color.new(175, 35, 49)
  3014. when 2
  3015. # Yellow butterflies
  3016. butterfly_color1 = Color.new(209, 190, 75)
  3017. butterfly_color2 = Color.new(254, 228, 131)
  3018. butterfly_color3 = Color.new(205, 178, 52)
  3019. butterfly_color4 = Color.new(255, 255, 162)
  3020. butterfly_color5 = Color.new(177, 141, 34)
  3021. when 3
  3022. # Aqua-blue butterflies
  3023. butterfly_color1 = Color.new(53, 204, 201)
  3024. butterfly_color2 = Color.new(73, 204, 204)
  3025. butterfly_color3 = Color.new(129, 249, 243)
  3026. butterfly_color4 = Color.new(163, 241, 255)
  3027. butterfly_color5 = Color.new(34, 173, 159)
  3028. when 4
  3029. # Green butterflies
  3030. butterfly_color1 = Color.new(63, 204, 53)
  3031. butterfly_color2 = Color.new(77, 204, 73)
  3032. butterfly_color3 = Color.new(138, 247, 128)
  3033. butterfly_color4 = Color.new(163, 255, 173)
  3034. butterfly_color5 = Color.new(54, 170, 34)
  3035. when 5
  3036. # White butterflies
  3037. butterfly_color1 = Color.new(180, 180, 180)
  3038. butterfly_color2 = Color.new(198, 198, 198)
  3039. butterfly_color3 = Color.new(249, 249, 249)
  3040. butterfly_color4 = Color.new(231, 231, 231)
  3041. butterfly_color5 = Color.new(255, 255, 255)
  3042. when 6
  3043. # Light cyan butterflies
  3044. butterfly_color1 = Color.new(26, 230, 230)
  3045. butterfly_color2 = Color.new(19, 171, 171)
  3046. butterfly_color3 = Color.new(108, 239, 239)
  3047. butterfly_color4 = Color.new(135, 242, 242)
  3048. butterfly_color5 = Color.new(135, 242, 242)
  3049. when 7
  3050. # Light green butterflies
  3051. butterfly_color1 = Color.new(23, 171, 19)
  3052. butterfly_color2 = Color.new(32, 230, 26)
  3053. butterfly_color3 = Color.new(138, 242, 135)
  3054. butterfly_color4 = Color.new(112, 239, 108)
  3055. butterfly_color5 = Color.new(138, 242, 135)
  3056. when 8
  3057. # Purple butterflies
  3058. butterfly_color1 = Color.new(176, 15, 108)
  3059. butterfly_color2 = Color.new(236, 20, 145)
  3060. butterfly_color3 = Color.new(243, 104, 185)
  3061. butterfly_color4 = Color.new(245, 132, 198)
  3062. butterfly_color5 = Color.new(243, 104, 185)
  3063. when 9
  3064. # Light yellow butterflies
  3065. butterfly_color1 = Color.new(204, 193, 51)
  3066. butterfly_color2 = Color.new(217, 209, 102)
  3067. butterfly_color3 = Color.new(234, 229, 169)
  3068. butterfly_color4 = Color.new(239, 236, 191)
  3069. butterfly_color5 = Color.new(234, 229, 169)
  3070. when 10
  3071. # Lavender butterflies
  3072. butterfly_color1 = Color.new(154, 129, 201)
  3073. butterfly_color2 = Color.new(179, 160, 214)
  3074. butterfly_color3 = Color.new(212, 202, 232)
  3075. butterfly_color4 = Color.new(224, 216, 218)
  3076. butterfly_color5 = Color.new(212, 202, 232)
  3077. when 11
  3078. # Brown butterflies
  3079. butterfly_color1 = Color.new(129, 78, 43)
  3080. butterfly_color2 = Color.new(176, 107, 59)
  3081. butterfly_color3 = Color.new(207, 150, 110)
  3082. butterfly_color4 = Color.new(213, 163, 129)
  3083. butterfly_color5 = Color.new(207, 150, 110)
  3084. when 12
  3085. # Dark Grey butterflies
  3086. butterfly_color1 = Color.new(42, 42, 42)
  3087. butterfly_color2 = Color.new(57, 57, 57)
  3088. butterfly_color3 = Color.new(77, 77, 77)
  3089. butterfly_color4 = Color.new(83, 83, 83)
  3090. butterfly_color5 = Color.new(77, 77, 77)
  3091. when 13
  3092. # Light Sepia butterflies
  3093. butterfly_color1 = Color.new(163, 152, 140)
  3094. butterfly_color2 = Color.new(191, 187, 183)
  3095. butterfly_color3 = Color.new(231, 230, 230)
  3096. butterfly_color4 = Color.new(245, 245, 245)
  3097. butterfly_color5 = Color.new(231, 230, 230)
  3098. when 14
  3099. # Dark Sepia butterflies
  3100. butterfly_color1 = Color.new(179, 154, 127)
  3101. butterfly_color2 = Color.new(205, 179, 151)
  3102. butterfly_color3 = Color.new(224, 210, 196)
  3103. butterfly_color4 = Color.new(234, 225, 216)
  3104. butterfly_color5 = Color.new(224, 210, 196)
  3105. when 15
  3106. # Old T'vision butterflies
  3107. butterfly_color1 = Color.new(126, 126, 126)
  3108. butterfly_color2 = Color.new(162, 162, 162)
  3109. butterfly_color3 = Color.new(217, 217, 217)
  3110. butterfly_color4 = Color.new(240, 240, 240)
  3111. butterfly_color5 = Color.new(217, 217, 217)
  3112. else
  3113. # Violet butterflies
  3114. butterfly_color1 = Color.new(163, 53, 204)
  3115. butterfly_color2 = Color.new(173, 73, 204)
  3116. butterfly_color3 = Color.new(209, 128, 242)
  3117. butterfly_color4 = Color.new(247, 163, 255)
  3118. butterfly_color5 = Color.new(121, 33, 165)
  3119. end
  3120.  
  3121. # Butterfly up 1
  3122. @butterfly_bitmaps[0] = Bitmap.new(9, 6)
  3123. @butterfly_bitmaps[0].fill_rect(1, 0, 2, 1, butterfly_color1)
  3124. @butterfly_bitmaps[0].fill_rect(6, 0, 2, 1, butterfly_color1)
  3125. @butterfly_bitmaps[0].fill_rect(0, 1, 1, 2, butterfly_color1)
  3126. @butterfly_bitmaps[0].set_pixel(1, 1, butterfly_color2)
  3127. @butterfly_bitmaps[0].fill_rect(2, 1, 1, 2, butterfly_color4)
  3128. @butterfly_bitmaps[0].set_pixel(3, 1, butterfly_color1)
  3129. @butterfly_bitmaps[0].set_pixel(5, 1, butterfly_color1)
  3130. @butterfly_bitmaps[0].fill_rect(6, 1, 1, 2, butterfly_color4)
  3131. @butterfly_bitmaps[0].set_pixel(7, 1, butterfly_color2)
  3132. @butterfly_bitmaps[0].fill_rect(8, 1, 1, 2, butterfly_color1)
  3133. @butterfly_bitmaps[0].set_pixel(1, 2, butterfly_color4)
  3134. @butterfly_bitmaps[0].set_pixel(3, 2, butterfly_color4)
  3135. @butterfly_bitmaps[0].set_pixel(4, 2, butterfly_color1)
  3136. @butterfly_bitmaps[0].set_pixel(5, 2, butterfly_color4)
  3137. @butterfly_bitmaps[0].set_pixel(7, 2, butterfly_color4)
  3138. @butterfly_bitmaps[0].set_pixel(1, 3, butterfly_color5)
  3139. @butterfly_bitmaps[0].fill_rect(2, 3, 2, 1, butterfly_color2)
  3140. @butterfly_bitmaps[0].set_pixel(4, 3, butterfly_color5)
  3141. @butterfly_bitmaps[0].fill_rect(5, 3, 2, 1, butterfly_color2)
  3142. @butterfly_bitmaps[0].set_pixel(7, 3, butterfly_color5)
  3143. @butterfly_bitmaps[0].fill_rect(1, 4, 1, 2, butterfly_color1)
  3144. @butterfly_bitmaps[0].set_pixel(2, 4, butterfly_color4)
  3145. @butterfly_bitmaps[0].set_pixel(3, 4, butterfly_color5)
  3146. @butterfly_bitmaps[0].set_pixel(5, 4, butterfly_color5)
  3147. @butterfly_bitmaps[0].set_pixel(6, 4, butterfly_color4)
  3148. @butterfly_bitmaps[0].fill_rect(7, 4, 1, 2, butterfly_color1)
  3149. @butterfly_bitmaps[0].set_pixel(2, 5, butterfly_color1)
  3150. @butterfly_bitmaps[0].set_pixel(6, 5, butterfly_color1)
  3151.  
  3152. # Butterfly up 2
  3153. @butterfly_bitmaps[1] = Bitmap.new(9, 6)
  3154. @butterfly_bitmaps[1].fill_rect(2, 0, 2, 1, butterfly_color1)
  3155. @butterfly_bitmaps[1].fill_rect(5, 0, 2, 1, butterfly_color1)
  3156. @butterfly_bitmaps[1].fill_rect(0, 1, 1, 2, butterfly_color1)
  3157. @butterfly_bitmaps[1].fill_rect(1, 1, 3, 1, butterfly_color4)
  3158. @butterfly_bitmaps[1].fill_rect(4, 1, 1, 2, butterfly_color1)
  3159. @butterfly_bitmaps[1].fill_rect(5, 1, 3, 1, butterfly_color4)
  3160. @butterfly_bitmaps[1].fill_rect(8, 1, 1, 2, butterfly_color1)
  3161. @butterfly_bitmaps[1].fill_rect(1, 2, 2, 1, butterfly_color4)
  3162. @butterfly_bitmaps[1].set_pixel(3, 2, butterfly_color2)
  3163. @butterfly_bitmaps[1].set_pixel(5, 2, butterfly_color2)
  3164. @butterfly_bitmaps[1].fill_rect(6, 2, 2, 1, butterfly_color4)
  3165. @butterfly_bitmaps[1].set_pixel(1, 3, butterfly_color5)
  3166. @butterfly_bitmaps[1].fill_rect(2, 3, 2, 1, butterfly_color1)
  3167. @butterfly_bitmaps[1].set_pixel(4, 3, butterfly_color5)
  3168. @butterfly_bitmaps[1].fill_rect(5, 3, 2, 1, butterfly_color1)
  3169. @butterfly_bitmaps[1].set_pixel(7, 3, butterfly_color5)
  3170. @butterfly_bitmaps[1].set_pixel(1, 4, butterfly_color1)
  3171. @butterfly_bitmaps[1].set_pixel(2, 4, butterfly_color2)
  3172. @butterfly_bitmaps[1].set_pixel(3, 4, butterfly_color5)
  3173. @butterfly_bitmaps[1].set_pixel(5, 4, butterfly_color5)
  3174. @butterfly_bitmaps[1].set_pixel(6, 4, butterfly_color2)
  3175. @butterfly_bitmaps[1].set_pixel(7, 4, butterfly_color1)
  3176. @butterfly_bitmaps[1].set_pixel(2, 5, butterfly_color1)
  3177. @butterfly_bitmaps[1].set_pixel(6, 5, butterfly_color1)
  3178.  
  3179. # Butterfly up 3
  3180. @butterfly_bitmaps[2] = Bitmap.new(9, 6)
  3181. @butterfly_bitmaps[2].fill_rect(1, 0, 2, 1, butterfly_color1)
  3182. @butterfly_bitmaps[2].fill_rect(6, 0, 2, 1, butterfly_color1)
  3183. @butterfly_bitmaps[2].fill_rect(0, 1, 1, 2, butterfly_color1)
  3184. @butterfly_bitmaps[2].set_pixel(1, 1, butterfly_color2)
  3185. @butterfly_bitmaps[2].fill_rect(2, 1, 1, 2, butterfly_color4)
  3186. @butterfly_bitmaps[2].set_pixel(3, 1, butterfly_color1)
  3187. @butterfly_bitmaps[2].set_pixel(5, 1, butterfly_color1)
  3188. @butterfly_bitmaps[2].fill_rect(6, 1, 1, 2, butterfly_color4)
  3189. @butterfly_bitmaps[2].set_pixel(7, 1, butterfly_color2)
  3190. @butterfly_bitmaps[2].fill_rect(8, 1, 1, 2, butterfly_color1)
  3191. @butterfly_bitmaps[2].set_pixel(1, 2, butterfly_color4)
  3192. @butterfly_bitmaps[2].set_pixel(3, 2, butterfly_color4)
  3193. @butterfly_bitmaps[2].set_pixel(4, 2, butterfly_color1)
  3194. @butterfly_bitmaps[2].set_pixel(5, 2, butterfly_color4)
  3195. @butterfly_bitmaps[2].set_pixel(7, 2, butterfly_color4)
  3196. @butterfly_bitmaps[2].set_pixel(1, 3, butterfly_color5)
  3197. @butterfly_bitmaps[2].fill_rect(2, 3, 2, 1, butterfly_color2)
  3198. @butterfly_bitmaps[2].set_pixel(4, 3, butterfly_color5)
  3199. @butterfly_bitmaps[2].fill_rect(5, 3, 2, 1, butterfly_color2)
  3200. @butterfly_bitmaps[2].set_pixel(7, 3, butterfly_color5)
  3201. @butterfly_bitmaps[2].fill_rect(1, 4, 1, 2, butterfly_color1)
  3202. @butterfly_bitmaps[2].set_pixel(2, 4, butterfly_color4)
  3203. @butterfly_bitmaps[2].set_pixel(3, 4, butterfly_color5)
  3204. @butterfly_bitmaps[2].set_pixel(5, 4, butterfly_color5)
  3205. @butterfly_bitmaps[2].set_pixel(6, 4, butterfly_color4)
  3206. @butterfly_bitmaps[2].fill_rect(7, 4, 1, 2, butterfly_color1)
  3207. @butterfly_bitmaps[2].set_pixel(2, 5, butterfly_color1)
  3208. @butterfly_bitmaps[2].set_pixel(6, 5, butterfly_color1)
  3209.  
  3210. # Butterfly up 4
  3211. @butterfly_bitmaps[3] = Bitmap.new(7, 6)
  3212. @butterfly_bitmaps[3].fill_rect(1, 0, 2, 1, butterfly_color1)
  3213. @butterfly_bitmaps[3].fill_rect(4, 0, 2, 1, butterfly_color1)
  3214. @butterfly_bitmaps[3].fill_rect(0, 1, 1, 2, butterfly_color1)
  3215. @butterfly_bitmaps[3].fill_rect(1, 1, 2, 2, butterfly_color4)
  3216. @butterfly_bitmaps[3].fill_rect(4, 1, 2, 2, butterfly_color4)
  3217. @butterfly_bitmaps[3].fill_rect(6, 1, 1, 2, butterfly_color1)
  3218. @butterfly_bitmaps[3].fill_rect(3, 2, 1, 2, butterfly_color1)
  3219. @butterfly_bitmaps[3].set_pixel(1, 3, butterfly_color5)
  3220. @butterfly_bitmaps[3].fill_rect(2, 3, 1, 2, butterfly_color2)
  3221. @butterfly_bitmaps[3].fill_rect(4, 3, 1, 2, butterfly_color2)
  3222. @butterfly_bitmaps[3].set_pixel(5, 3, butterfly_color5)
  3223. @butterfly_bitmaps[3].set_pixel(1, 4, butterfly_color2)
  3224. @butterfly_bitmaps[3].set_pixel(3, 4, butterfly_color5)
  3225. @butterfly_bitmaps[3].set_pixel(5, 4, butterfly_color2)
  3226. @butterfly_bitmaps[3].set_pixel(1, 5, butterfly_color1)
  3227. @butterfly_bitmaps[3].set_pixel(2, 5, butterfly_color5)
  3228. @butterfly_bitmaps[3].set_pixel(4, 5, butterfly_color5)
  3229. @butterfly_bitmaps[3].set_pixel(5, 5, butterfly_color1)
  3230.  
  3231. # Butterfly down 1
  3232. @butterfly_bitmaps[4] = Bitmap.new(9, 6)
  3233. @butterfly_bitmaps[4].fill_rect(1, 0, 2, 1, butterfly_color1)
  3234. @butterfly_bitmaps[4].fill_rect(6, 0, 2, 1, butterfly_color1)
  3235. @butterfly_bitmaps[4].set_pixel(1, 1, butterfly_color1)
  3236. @butterfly_bitmaps[4].set_pixel(2, 1, butterfly_color4)
  3237. @butterfly_bitmaps[4].set_pixel(3, 1, butterfly_color5)
  3238. @butterfly_bitmaps[4].set_pixel(5, 1, butterfly_color5)
  3239. @butterfly_bitmaps[4].set_pixel(6, 1, butterfly_color4)
  3240. @butterfly_bitmaps[4].set_pixel(7, 1, butterfly_color1)
  3241. @butterfly_bitmaps[4].set_pixel(1, 2, butterfly_color5)
  3242. @butterfly_bitmaps[4].fill_rect(2, 2, 2, 1, butterfly_color2)
  3243. @butterfly_bitmaps[4].set_pixel(4, 2, butterfly_color5)
  3244. @butterfly_bitmaps[4].fill_rect(5, 2, 2, 1, butterfly_color2)
  3245. @butterfly_bitmaps[4].set_pixel(7, 2, butterfly_color5)
  3246. @butterfly_bitmaps[4].fill_rect(0, 3, 1, 2, butterfly_color1)
  3247. @butterfly_bitmaps[4].fill_rect(1, 3, 3, 1, butterfly_color4)
  3248. @butterfly_bitmaps[4].set_pixel(4, 3, butterfly_color1)
  3249. @butterfly_bitmaps[4].fill_rect(5, 3, 3, 1, butterfly_color4)
  3250. @butterfly_bitmaps[4].fill_rect(8, 3, 1, 2, butterfly_color1)
  3251. @butterfly_bitmaps[4].set_pixel(1, 4, butterfly_color2)
  3252. @butterfly_bitmaps[4].set_pixel(2, 4, butterfly_color4)
  3253. @butterfly_bitmaps[4].set_pixel(3, 4, butterfly_color1)
  3254. @butterfly_bitmaps[4].set_pixel(5, 4, butterfly_color1)
  3255. @butterfly_bitmaps[4].set_pixel(6, 4, butterfly_color4)
  3256. @butterfly_bitmaps[4].set_pixel(7, 4, butterfly_color2)
  3257. @butterfly_bitmaps[4].fill_rect(1, 5, 2, 1, butterfly_color1)
  3258. @butterfly_bitmaps[4].fill_rect(6, 5, 2, 1, butterfly_color1)
  3259.  
  3260. # Butterfly down 2
  3261. @butterfly_bitmaps[5] = Bitmap.new(9, 6)
  3262. @butterfly_bitmaps[5].set_pixel(2, 0, butterfly_color1)
  3263. @butterfly_bitmaps[5].set_pixel(6, 0, butterfly_color1)
  3264. @butterfly_bitmaps[5].set_pixel(1, 1, butterfly_color1)
  3265. @butterfly_bitmaps[5].set_pixel(2, 1, butterfly_color2)
  3266. @butterfly_bitmaps[5].set_pixel(3, 1, butterfly_color5)
  3267. @butterfly_bitmaps[5].set_pixel(5, 1, butterfly_color5)
  3268. @butterfly_bitmaps[5].set_pixel(6, 1, butterfly_color2)
  3269. @butterfly_bitmaps[5].set_pixel(7, 1, butterfly_color1)
  3270. @butterfly_bitmaps[5].set_pixel(1, 2, butterfly_color5)
  3271. @butterfly_bitmaps[5].fill_rect(2, 2, 2, 1, butterfly_color1)
  3272. @butterfly_bitmaps[5].set_pixel(4, 2, butterfly_color5)
  3273. @butterfly_bitmaps[5].fill_rect(5, 2, 2, 1, butterfly_color1)
  3274. @butterfly_bitmaps[5].set_pixel(7, 2, butterfly_color5)
  3275. @butterfly_bitmaps[5].fill_rect(0, 3, 1, 2, butterfly_color1)
  3276. @butterfly_bitmaps[5].fill_rect(1, 3, 2, 2, butterfly_color4)
  3277. @butterfly_bitmaps[5].set_pixel(3, 3, butterfly_color2)
  3278. @butterfly_bitmaps[5].fill_rect(4, 3, 1, 2, butterfly_color1)
  3279. @butterfly_bitmaps[5].set_pixel(5, 3, butterfly_color2)
  3280. @butterfly_bitmaps[5].fill_rect(6, 3, 2, 2, butterfly_color4)
  3281. @butterfly_bitmaps[5].fill_rect(8, 3, 1, 2, butterfly_color1)
  3282. @butterfly_bitmaps[5].set_pixel(3, 4, butterfly_color4)
  3283. @butterfly_bitmaps[5].set_pixel(5, 4, butterfly_color4)
  3284. @butterfly_bitmaps[5].fill_rect(2, 5, 2, 1, butterfly_color1)
  3285. @butterfly_bitmaps[5].fill_rect(5, 5, 2, 1, butterfly_color1)
  3286.  
  3287. # Butterfly down 3
  3288. @butterfly_bitmaps[6] = Bitmap.new(9, 6)
  3289. @butterfly_bitmaps[6].fill_rect(1, 0, 2, 1, butterfly_color1)
  3290. @butterfly_bitmaps[6].fill_rect(6, 0, 2, 1, butterfly_color1)
  3291. @butterfly_bitmaps[6].set_pixel(1, 1, butterfly_color1)
  3292. @butterfly_bitmaps[6].set_pixel(2, 1, butterfly_color4)
  3293. @butterfly_bitmaps[6].set_pixel(3, 1, butterfly_color5)
  3294. @butterfly_bitmaps[6].set_pixel(5, 1, butterfly_color5)
  3295. @butterfly_bitmaps[6].set_pixel(6, 1, butterfly_color4)
  3296. @butterfly_bitmaps[6].set_pixel(7, 1, butterfly_color1)
  3297. @butterfly_bitmaps[6].set_pixel(1, 2, butterfly_color5)
  3298. @butterfly_bitmaps[6].fill_rect(2, 2, 2, 1, butterfly_color2)
  3299. @butterfly_bitmaps[6].set_pixel(4, 2, butterfly_color5)
  3300. @butterfly_bitmaps[6].fill_rect(5, 2, 2, 1, butterfly_color2)
  3301. @butterfly_bitmaps[6].set_pixel(7, 2, butterfly_color5)
  3302. @butterfly_bitmaps[6].fill_rect(0, 3, 1, 2, butterfly_color1)
  3303. @butterfly_bitmaps[6].fill_rect(1, 3, 3, 1, butterfly_color4)
  3304. @butterfly_bitmaps[6].set_pixel(4, 3, butterfly_color1)
  3305. @butterfly_bitmaps[6].fill_rect(5, 3, 3, 1, butterfly_color4)
  3306. @butterfly_bitmaps[6].fill_rect(8, 3, 1, 2, butterfly_color1)
  3307. @butterfly_bitmaps[6].set_pixel(1, 4, butterfly_color2)
  3308. @butterfly_bitmaps[6].set_pixel(2, 4, butterfly_color4)
  3309. @butterfly_bitmaps[6].set_pixel(3, 4, butterfly_color1)
  3310. @butterfly_bitmaps[6].set_pixel(5, 4, butterfly_color1)
  3311. @butterfly_bitmaps[6].set_pixel(6, 4, butterfly_color4)
  3312. @butterfly_bitmaps[6].set_pixel(7, 4, butterfly_color2)
  3313. @butterfly_bitmaps[6].fill_rect(1, 5, 2, 1, butterfly_color1)
  3314. @butterfly_bitmaps[6].fill_rect(6, 5, 2, 1, butterfly_color1)
  3315.  
  3316. # Butterfly down 4
  3317. @butterfly_bitmaps[7] = Bitmap.new(7, 6)
  3318. @butterfly_bitmaps[7].set_pixel(1, 0, butterfly_color1)
  3319. @butterfly_bitmaps[7].set_pixel(2, 0, butterfly_color5)
  3320. @butterfly_bitmaps[7].set_pixel(4, 0, butterfly_color5)
  3321. @butterfly_bitmaps[7].set_pixel(5, 0, butterfly_color1)
  3322. @butterfly_bitmaps[7].fill_rect(1, 1, 2, 1, butterfly_color2)
  3323. @butterfly_bitmaps[7].set_pixel(3, 1, butterfly_color5)
  3324. @butterfly_bitmaps[7].fill_rect(4, 1, 2, 1, butterfly_color2)
  3325. @butterfly_bitmaps[7].set_pixel(1, 2, butterfly_color5)
  3326. @butterfly_bitmaps[7].set_pixel(2, 2, butterfly_color2)
  3327. @butterfly_bitmaps[7].fill_rect(3, 2, 1, 2, butterfly_color1)
  3328. @butterfly_bitmaps[7].set_pixel(4, 2, butterfly_color2)
  3329. @butterfly_bitmaps[7].set_pixel(5, 2, butterfly_color5)
  3330. @butterfly_bitmaps[7].fill_rect(0, 3, 1, 2, butterfly_color1)
  3331. @butterfly_bitmaps[7].fill_rect(1, 3, 2, 2, butterfly_color4)
  3332. @butterfly_bitmaps[7].fill_rect(4, 3, 2, 2, butterfly_color4)
  3333. @butterfly_bitmaps[7].fill_rect(6, 3, 1, 2, butterfly_color1)
  3334. @butterfly_bitmaps[7].fill_rect(1, 5, 2, 1, butterfly_color1)
  3335. @butterfly_bitmaps[7].fill_rect(4, 5, 2, 1, butterfly_color1)
  3336.  
  3337. # Butterfly left 1
  3338. @butterfly_bitmaps[8] = Bitmap.new(7, 7)
  3339. @butterfly_bitmaps[8].set_pixel(2, 0, butterfly_color3)
  3340. @butterfly_bitmaps[8].fill_rect(3, 0, 2, 1, butterfly_color1)
  3341. @butterfly_bitmaps[8].fill_rect(0, 1, 2, 2, butterfly_color3)
  3342. @butterfly_bitmaps[8].set_pixel(2, 1, butterfly_color2)
  3343. @butterfly_bitmaps[8].fill_rect(3, 1, 1, 3, butterfly_color4)
  3344. @butterfly_bitmaps[8].set_pixel(4, 1, butterfly_color2)
  3345. @butterfly_bitmaps[8].fill_rect(5, 1, 1, 3, butterfly_color1)
  3346. @butterfly_bitmaps[8].fill_rect(2, 2, 1, 2, butterfly_color4)
  3347. @butterfly_bitmaps[8].set_pixel(4, 2, butterfly_color4)
  3348. @butterfly_bitmaps[8].set_pixel(0, 3, butterfly_color3)
  3349. @butterfly_bitmaps[8].fill_rect(1, 3, 1, 2, butterfly_color5)
  3350. @butterfly_bitmaps[8].set_pixel(4, 3, butterfly_color2)
  3351. @butterfly_bitmaps[8].fill_rect(2, 4, 2, 1, butterfly_color2)
  3352. @butterfly_bitmaps[8].set_pixel(4, 4, butterfly_color1)
  3353. @butterfly_bitmaps[8].set_pixel(5, 4, butterfly_color5)
  3354. @butterfly_bitmaps[8].set_pixel(2, 5, butterfly_color5)
  3355. @butterfly_bitmaps[8].set_pixel(3, 5, butterfly_color1)
  3356. @butterfly_bitmaps[8].fill_rect(4, 5, 2, 1, butterfly_color2)
  3357. @butterfly_bitmaps[8].set_pixel(6, 5, butterfly_color1)
  3358. @butterfly_bitmaps[8].set_pixel(3, 6, butterfly_color5)
  3359. @butterfly_bitmaps[8].fill_rect(4, 6, 2, 1, butterfly_color1)
  3360.  
  3361. # Butterfly left 2
  3362. @butterfly_bitmaps[9] = Bitmap.new(7, 6)
  3363. @butterfly_bitmaps[9].fill_rect(1, 0, 2, 1, butterfly_color2)
  3364. @butterfly_bitmaps[9].set_pixel(3, 0, butterfly_color1)
  3365. @butterfly_bitmaps[9].fill_rect(0, 1, 1, 2, butterfly_color3)
  3366. @butterfly_bitmaps[9].set_pixel(1, 1, butterfly_color2)
  3367. @butterfly_bitmaps[9].set_pixel(2, 1, butterfly_color4)
  3368. @butterfly_bitmaps[9].set_pixel(3, 1, butterfly_color2)
  3369. @butterfly_bitmaps[9].set_pixel(4, 1, butterfly_color3)
  3370. @butterfly_bitmaps[9].set_pixel(1, 2, butterfly_color5)
  3371. @butterfly_bitmaps[9].set_pixel(2, 2, butterfly_color2)
  3372. @butterfly_bitmaps[9].set_pixel(3, 2, butterfly_color4)
  3373. @butterfly_bitmaps[9].fill_rect(4, 2, 1, 2, butterfly_color2)
  3374. @butterfly_bitmaps[9].fill_rect(5, 2, 1, 2, butterfly_color3)
  3375. @butterfly_bitmaps[9].set_pixel(2, 3, butterfly_color5)
  3376. @butterfly_bitmaps[9].set_pixel(3, 3, butterfly_color3)
  3377. @butterfly_bitmaps[9].set_pixel(4, 4, butterfly_color3)
  3378. @butterfly_bitmaps[9].set_pixel(5, 4, butterfly_color2)
  3379. @butterfly_bitmaps[9].set_pixel(6, 4, butterfly_color3)
  3380. @butterfly_bitmaps[9].set_pixel(5, 5, butterfly_color3)
  3381. @butterfly_bitmaps[9].set_pixel(6, 5, butterfly_color2)
  3382.  
  3383. # Butterfly left 3
  3384. @butterfly_bitmaps[10] = Bitmap.new(7, 6)
  3385. @butterfly_bitmaps[10].fill_rect(2, 0, 2, 1, butterfly_color3)
  3386. @butterfly_bitmaps[10].set_pixel(4, 0, butterfly_color5)
  3387. @butterfly_bitmaps[10].fill_rect(0, 1, 2, 1, butterfly_color3)
  3388. @butterfly_bitmaps[10].set_pixel(2, 1, butterfly_color2)
  3389. @butterfly_bitmaps[10].fill_rect(3, 1, 2, 2, butterfly_color4)
  3390. @butterfly_bitmaps[10].set_pixel(5, 1, butterfly_color5)
  3391. @butterfly_bitmaps[10].set_pixel(0, 2, butterfly_color3)
  3392. @butterfly_bitmaps[10].set_pixel(1, 2, butterfly_color2)
  3393. @butterfly_bitmaps[10].fill_rect(2, 2, 1, 2, butterfly_color4)
  3394. @butterfly_bitmaps[10].set_pixel(5, 2, butterfly_color3)
  3395. @butterfly_bitmaps[10].set_pixel(1, 3, butterfly_color3)
  3396. @butterfly_bitmaps[10].set_pixel(3, 3, butterfly_color2)
  3397. @butterfly_bitmaps[10].set_pixel(4, 3, butterfly_color3)
  3398. @butterfly_bitmaps[10].fill_rect(5, 3, 1, 2, butterfly_color2)
  3399. @butterfly_bitmaps[10].fill_rect(6, 3, 1, 2, butterfly_color3)
  3400. @butterfly_bitmaps[10].fill_rect(2, 4, 2, 1, butterfly_color3)
  3401. @butterfly_bitmaps[10].set_pixel(4, 4, butterfly_color2)
  3402. @butterfly_bitmaps[10].fill_rect(4, 5, 2, 1, butterfly_color3)
  3403.  
  3404. # Butterfly left 4
  3405. @butterfly_bitmaps[11] = Bitmap.new(7, 6)
  3406. @butterfly_bitmaps[11].fill_rect(1, 0, 2, 1, butterfly_color2)
  3407. @butterfly_bitmaps[11].set_pixel(3, 0, butterfly_color1)
  3408. @butterfly_bitmaps[11].fill_rect(0, 1, 2, 1, butterfly_color3)
  3409. @butterfly_bitmaps[11].set_pixel(2, 1, butterfly_color4)
  3410. @butterfly_bitmaps[11].set_pixel(3, 1, butterfly_color2)
  3411. @butterfly_bitmaps[11].set_pixel(4, 1, butterfly_color3)
  3412. @butterfly_bitmaps[11].set_pixel(0, 2, butterfly_color3)
  3413. @butterfly_bitmaps[11].set_pixel(1, 2, butterfly_color5)
  3414. @butterfly_bitmaps[11].set_pixel(2, 2, butterfly_color2)
  3415. @butterfly_bitmaps[11].set_pixel(3, 2, butterfly_color4)
  3416. @butterfly_bitmaps[11].fill_rect(4, 2, 1, 2, butterfly_color2)
  3417. @butterfly_bitmaps[11].fill_rect(5, 2, 1, 2, butterfly_color3)
  3418. @butterfly_bitmaps[11].set_pixel(2, 3, butterfly_color5)
  3419. @butterfly_bitmaps[11].set_pixel(3, 3, butterfly_color3)
  3420. @butterfly_bitmaps[11].set_pixel(4, 4, butterfly_color3)
  3421. @butterfly_bitmaps[11].set_pixel(5, 4, butterfly_color2)
  3422. @butterfly_bitmaps[11].fill_rect(6, 4, 1, 2, butterfly_color3)
  3423. @butterfly_bitmaps[11].set_pixel(5, 5, butterfly_color3)
  3424.  
  3425. # Butterfly right 1
  3426. @butterfly_bitmaps[12] = Bitmap.new(7, 7)
  3427. @butterfly_bitmaps[12].fill_rect(2, 0, 2, 1, butterfly_color1)
  3428. @butterfly_bitmaps[12].set_pixel(4, 0, butterfly_color3)
  3429. @butterfly_bitmaps[12].fill_rect(1, 1, 1, 3, butterfly_color1)
  3430. @butterfly_bitmaps[12].set_pixel(2, 1, butterfly_color2)
  3431. @butterfly_bitmaps[12].fill_rect(3, 1, 1, 3, butterfly_color4)
  3432. @butterfly_bitmaps[12].set_pixel(4, 1, butterfly_color2)
  3433. @butterfly_bitmaps[12].fill_rect(5, 1, 2, 2, butterfly_color3)
  3434. @butterfly_bitmaps[12].set_pixel(2, 2, butterfly_color4)
  3435. @butterfly_bitmaps[12].fill_rect(4, 2, 1, 2, butterfly_color4)
  3436. @butterfly_bitmaps[12].set_pixel(2, 3, butterfly_color2)
  3437. @butterfly_bitmaps[12].fill_rect(5, 3, 1, 2, butterfly_color5)
  3438. @butterfly_bitmaps[12].set_pixel(6, 3, butterfly_color3)
  3439. @butterfly_bitmaps[12].set_pixel(1, 4, butterfly_color5)
  3440. @butterfly_bitmaps[12].set_pixel(2, 4, butterfly_color1)
  3441. @butterfly_bitmaps[12].fill_rect(3, 4, 2, 1, butterfly_color2)
  3442. @butterfly_bitmaps[12].set_pixel(0, 5, butterfly_color1)
  3443. @butterfly_bitmaps[12].fill_rect(1, 5, 2, 1, butterfly_color2)
  3444. @butterfly_bitmaps[12].set_pixel(3, 5, butterfly_color1)
  3445. @butterfly_bitmaps[12].set_pixel(4, 5, butterfly_color5)
  3446. @butterfly_bitmaps[12].fill_rect(1, 6, 2, 1, butterfly_color1)
  3447. @butterfly_bitmaps[12].set_pixel(3, 6, butterfly_color5)
  3448.  
  3449. # Butterfly right 2
  3450. @butterfly_bitmaps[13] = Bitmap.new(7, 6)
  3451. @butterfly_bitmaps[13].set_pixel(3, 0, butterfly_color1)
  3452. @butterfly_bitmaps[13].fill_rect(4, 0, 2, 1, butterfly_color2)
  3453. @butterfly_bitmaps[13].set_pixel(2, 1, butterfly_color3)
  3454. @butterfly_bitmaps[13].set_pixel(3, 1, butterfly_color2)
  3455. @butterfly_bitmaps[13].set_pixel(4, 1, butterfly_color4)
  3456. @butterfly_bitmaps[13].set_pixel(5, 1, butterfly_color2)
  3457. @butterfly_bitmaps[13].fill_rect(6, 1, 1, 2, butterfly_color3)
  3458. @butterfly_bitmaps[13].fill_rect(1, 2, 1, 2, butterfly_color3)
  3459. @butterfly_bitmaps[13].fill_rect(2, 2, 1, 2, butterfly_color2)
  3460. @butterfly_bitmaps[13].set_pixel(3, 2, butterfly_color4)
  3461. @butterfly_bitmaps[13].set_pixel(4, 2, butterfly_color2)
  3462. @butterfly_bitmaps[13].set_pixel(5, 2, butterfly_color5)
  3463. @butterfly_bitmaps[13].set_pixel(3, 3, butterfly_color3)
  3464. @butterfly_bitmaps[13].set_pixel(4, 3, butterfly_color5)
  3465. @butterfly_bitmaps[13].set_pixel(0, 4, butterfly_color3)
  3466. @butterfly_bitmaps[13].set_pixel(1, 4, butterfly_color2)
  3467. @butterfly_bitmaps[13].set_pixel(2, 4, butterfly_color3)
  3468. @butterfly_bitmaps[13].set_pixel(0, 5, butterfly_color2)
  3469. @butterfly_bitmaps[13].set_pixel(1, 5, butterfly_color3)
  3470.  
  3471. # Butterfly right 3
  3472. @butterfly_bitmaps[14] = Bitmap.new(7, 6)
  3473. @butterfly_bitmaps[14].set_pixel(2, 0, butterfly_color5)
  3474. @butterfly_bitmaps[14].fill_rect(3, 0, 2, 1, butterfly_color3)
  3475. @butterfly_bitmaps[14].set_pixel(1, 1, butterfly_color5)
  3476. @butterfly_bitmaps[14].fill_rect(2, 1, 2, 2, butterfly_color4)
  3477. @butterfly_bitmaps[14].set_pixel(4, 1, butterfly_color2)
  3478. @butterfly_bitmaps[14].fill_rect(5, 1, 2, 1, butterfly_color3)
  3479. @butterfly_bitmaps[14].set_pixel(1, 2, butterfly_color3)
  3480. @butterfly_bitmaps[14].fill_rect(4, 2, 1, 2, butterfly_color4)
  3481. @butterfly_bitmaps[14].set_pixel(5, 2, butterfly_color2)
  3482. @butterfly_bitmaps[14].set_pixel(6, 2, butterfly_color3)
  3483. @butterfly_bitmaps[14].fill_rect(0, 3, 1, 2, butterfly_color3)
  3484. @butterfly_bitmaps[14].fill_rect(1, 3, 1, 2, butterfly_color2)
  3485. @butterfly_bitmaps[14].set_pixel(2, 3, butterfly_color3)
  3486. @butterfly_bitmaps[14].set_pixel(3, 3, butterfly_color2)
  3487. @butterfly_bitmaps[14].set_pixel(5, 3, butterfly_color3)
  3488. @butterfly_bitmaps[14].set_pixel(2, 4, butterfly_color2)
  3489. @butterfly_bitmaps[14].fill_rect(3, 4, 2, 1, butterfly_color3)
  3490. @butterfly_bitmaps[14].fill_rect(1, 5, 2, 1, butterfly_color3)
  3491.  
  3492. # Butterfly right 4
  3493. @butterfly_bitmaps[15] = Bitmap.new(7, 6)
  3494. @butterfly_bitmaps[15].set_pixel(3, 0, butterfly_color1)
  3495. @butterfly_bitmaps[15].fill_rect(4, 0, 2, 1, butterfly_color2)
  3496. @butterfly_bitmaps[15].set_pixel(2, 1, butterfly_color3)
  3497. @butterfly_bitmaps[15].set_pixel(3, 1, butterfly_color2)
  3498. @butterfly_bitmaps[15].set_pixel(4, 1, butterfly_color4)
  3499. @butterfly_bitmaps[15].fill_rect(5, 1, 2, 1, butterfly_color3)
  3500. @butterfly_bitmaps[15].fill_rect(1, 2, 1, 2, butterfly_color3)
  3501. @butterfly_bitmaps[15].fill_rect(2, 2, 1, 2, butterfly_color2)
  3502. @butterfly_bitmaps[15].set_pixel(3, 2, butterfly_color4)
  3503. @butterfly_bitmaps[15].set_pixel(4, 2, butterfly_color2)
  3504. @butterfly_bitmaps[15].set_pixel(5, 2, butterfly_color5)
  3505. @butterfly_bitmaps[15].set_pixel(6, 2, butterfly_color3)
  3506. @butterfly_bitmaps[15].set_pixel(3, 3, butterfly_color3)
  3507. @butterfly_bitmaps[15].set_pixel(4, 3, butterfly_color5)
  3508. @butterfly_bitmaps[15].fill_rect(0, 4, 1, 2, butterfly_color3)
  3509. @butterfly_bitmaps[15].set_pixel(1, 4, butterfly_color2)
  3510. @butterfly_bitmaps[15].set_pixel(2, 4, butterfly_color3)
  3511. @butterfly_bitmaps[15].set_pixel(1, 5, butterfly_color3)
  3512. #-------------------------------------------------------------------------------
  3513. # Bird bitmaps
  3514.  
  3515. @bird_bitmaps = []
  3516. case $game_screen.weather_variation
  3517. when 1 #Grey Pigeons
  3518. bird_color1 = Color.new(75, 75, 75)
  3519. bird_color2 = Color.new(128, 128, 128)
  3520. bird_color3 = Color.new(136, 136, 136)
  3521. bird_color4 = Color.new(154, 154, 154)
  3522. bird_color5 = Color.new(192, 192, 192)
  3523. bird_color6 = Color.new(73, 51, 87)
  3524. bird_color7 = Color.new(245, 245, 245)
  3525. bird_color8 = Color.new(192, 192, 192)
  3526. bird_color9 = Color.new(225, 225, 226)
  3527. when 2 #Crows
  3528. bird_color1 = Color.new(20, 20, 20)
  3529. bird_color2 = Color.new(34, 34, 34)
  3530. bird_color3 = Color.new(41, 41, 41)
  3531. bird_color4 = Color.new(27, 27, 27)
  3532. bird_color5 = Color.new(41, 41, 41)
  3533. bird_color6 = Color.new(73, 51, 87)
  3534. bird_color7 = Color.new(32, 32, 32)
  3535. bird_color8 = Color.new(41, 41, 41)
  3536. bird_color9 = Color.new(24, 23, 24)
  3537. when 3 #Pink pigeons
  3538. bird_color1 = Color.new(213, 18, 18)
  3539. bird_color2 = Color.new(243, 113, 113)
  3540. bird_color3 = Color.new(239, 58, 58)
  3541. bird_color4 = Color.new(248, 170, 170)
  3542. bird_color5 = Color.new(239, 58, 58)
  3543. bird_color6 = Color.new(73, 51, 87)
  3544. bird_color7 = Color.new(147, 46, 42)
  3545. bird_color8 = Color.new(248, 170, 170)
  3546. bird_color9 = Color.new(209, 210, 211)
  3547. when 4 #Green Birds
  3548. bird_color1 = Color.new(49, 131, 44)
  3549. bird_color2 = Color.new(101, 202, 95)
  3550. bird_color3 = Color.new(65, 177, 59)
  3551. bird_color4 = Color.new(144, 217, 140)
  3552. bird_color5 = Color.new(65, 177, 59)
  3553. bird_color6 = Color.new(73, 51, 87)
  3554. bird_color7 = Color.new(248, 170, 170)
  3555. bird_color8 = Color.new(144, 217, 140)
  3556. bird_color9 = Color.new(209, 210, 211)
  3557. when 5 #Yellow Birds
  3558. bird_color1 = Color.new(167, 137, 14)
  3559. bird_color2 = Color.new(240, 206, 67)
  3560. bird_color3 = Color.new(228, 187, 19)
  3561. bird_color4 = Color.new(240, 206, 67)
  3562. bird_color5 = Color.new(228, 187, 19)
  3563. bird_color6 = Color.new(73, 51, 87)
  3564. bird_color7 = Color.new(191, 90, 97)
  3565. bird_color8 = Color.new(244, 220, 124)
  3566. bird_color9 = Color.new(225, 225, 226)
  3567. else #White Pigeons
  3568. bird_color1 = Color.new(100, 100, 100)
  3569. bird_color2 = Color.new(170, 170, 170)
  3570. bird_color3 = Color.new(136, 136, 136)
  3571. bird_color4 = Color.new(204, 204, 204)
  3572. bird_color5 = Color.new(240, 240, 240)
  3573. bird_color6 = Color.new(73, 51, 87)
  3574. bird_color7 = Color.new(191, 90, 97)
  3575. bird_color8 = Color.new(255, 255, 255)
  3576. bird_color9 = Color.new(223, 130, 142)
  3577. end
  3578.  
  3579. # Bird left 1
  3580. @bird_bitmaps[0] = Bitmap.new(12, 10)
  3581. @bird_bitmaps[0].fill_rect(7, 0, 3, 1, bird_color1)
  3582. @bird_bitmaps[0].set_pixel(5, 1, bird_color1)
  3583. @bird_bitmaps[0].fill_rect(6, 1, 2, 1, bird_color2)
  3584. @bird_bitmaps[0].set_pixel(8, 1, bird_color3)
  3585. @bird_bitmaps[0].set_pixel(9, 1, bird_color1)
  3586. @bird_bitmaps[0].set_pixel(3, 2, bird_color1)
  3587. @bird_bitmaps[0].set_pixel(4, 2, bird_color2)
  3588. @bird_bitmaps[0].set_pixel(5, 2, bird_color3)
  3589. @bird_bitmaps[0].set_pixel(6, 2, bird_color4)
  3590. @bird_bitmaps[0].fill_rect(7, 2, 5, 1, bird_color8)
  3591. @bird_bitmaps[0].set_pixel(3, 3, bird_color6)
  3592. @bird_bitmaps[0].set_pixel(4, 3, bird_color3)
  3593. @bird_bitmaps[0].fill_rect(5, 3, 1, 3, bird_color8)
  3594. @bird_bitmaps[0].set_pixel(6, 3, bird_color3)
  3595. @bird_bitmaps[0].fill_rect(7, 3, 2, 1, bird_color4)
  3596. @bird_bitmaps[0].set_pixel(9, 3, bird_color8)
  3597. @bird_bitmaps[0].set_pixel(10, 3, bird_color2)
  3598. @bird_bitmaps[0].set_pixel(11, 3, bird_color6)
  3599. @bird_bitmaps[0].fill_rect(1, 4, 2, 1, bird_color3)
  3600. @bird_bitmaps[0].set_pixel(3, 4, bird_color1)
  3601. @bird_bitmaps[0].fill_rect(4, 4, 1, 2, bird_color2)
  3602. @bird_bitmaps[0].set_pixel(6, 4, bird_color2)
  3603. @bird_bitmaps[0].fill_rect(7, 4, 1, 2, bird_color4)
  3604. @bird_bitmaps[0].set_pixel(8, 4, bird_color8)
  3605. @bird_bitmaps[0].set_pixel(9, 4, bird_color2)
  3606. @bird_bitmaps[0].set_pixel(10, 4, bird_color6)
  3607. @bird_bitmaps[0].fill_rect(1, 5, 3, 1, bird_color8)
  3608. @bird_bitmaps[0].set_pixel(6, 5, bird_color3)
  3609. @bird_bitmaps[0].set_pixel(8, 5, bird_color2)
  3610. @bird_bitmaps[0].set_pixel(1, 6, bird_color6)
  3611. @bird_bitmaps[0].set_pixel(2, 6, bird_color2)
  3612. @bird_bitmaps[0].fill_rect(3, 6, 2, 2, bird_color8)
  3613. @bird_bitmaps[0].set_pixel(5, 6, bird_color4)
  3614. @bird_bitmaps[0].set_pixel(6, 6, bird_color2)
  3615. @bird_bitmaps[0].set_pixel(7, 6, bird_color1)
  3616. @bird_bitmaps[0].set_pixel(2, 7, bird_color1)
  3617. @bird_bitmaps[0].fill_rect(5, 7, 2, 1, bird_color8)
  3618. @bird_bitmaps[0].fill_rect(7, 7, 1, 2, bird_color2)
  3619. @bird_bitmaps[0].fill_rect(8, 7, 1, 2, bird_color8)
  3620. @bird_bitmaps[0].fill_rect(9, 7, 1, 2, bird_color1)
  3621. @bird_bitmaps[0].set_pixel(4, 8, bird_color6)
  3622. @bird_bitmaps[0].fill_rect(5, 8, 2, 1, bird_color2)
  3623. @bird_bitmaps[0].set_pixel(6, 9, bird_color6)
  3624. @bird_bitmaps[0].fill_rect(8, 9, 2, 1, bird_color6)
  3625.  
  3626. # Bird left 2
  3627. @bird_bitmaps[1] = Bitmap.new(10, 13)
  3628. @bird_bitmaps[1].set_pixel(5, 0, bird_color1)
  3629. @bird_bitmaps[1].set_pixel(7, 0, bird_color4)
  3630. @bird_bitmaps[1].set_pixel(8, 0, bird_color1)
  3631. @bird_bitmaps[1].fill_rect(5, 1, 1, 4, bird_color2)
  3632. @bird_bitmaps[1].set_pixel(6, 1, bird_color1)
  3633. @bird_bitmaps[1].fill_rect(7, 1, 1, 2, bird_color8)
  3634. @bird_bitmaps[1].set_pixel(8, 1, bird_color4)
  3635. @bird_bitmaps[1].set_pixel(6, 2, bird_color3)
  3636. @bird_bitmaps[1].set_pixel(8, 2, bird_color5)
  3637. @bird_bitmaps[1].fill_rect(9, 2, 1, 4, bird_color1)
  3638. @bird_bitmaps[1].fill_rect(6, 3, 3, 1, bird_color4)
  3639. @bird_bitmaps[1].set_pixel(4, 4, bird_color1)
  3640. @bird_bitmaps[1].set_pixel(6, 4, bird_color8)
  3641. @bird_bitmaps[1].fill_rect(7, 4, 1, 3, bird_color4)
  3642. @bird_bitmaps[1].set_pixel(8, 4, bird_color8)
  3643. @bird_bitmaps[1].set_pixel(4, 5, bird_color2)
  3644. @bird_bitmaps[1].set_pixel(5, 5, bird_color8)
  3645. @bird_bitmaps[1].set_pixel(6, 5, bird_color2)
  3646. @bird_bitmaps[1].set_pixel(8, 5, bird_color5)
  3647. @bird_bitmaps[1].set_pixel(4, 6, bird_color8)
  3648. @bird_bitmaps[1].set_pixel(5, 6, bird_color1)
  3649. @bird_bitmaps[1].fill_rect(6, 6, 1, 2, bird_color4)
  3650. @bird_bitmaps[1].set_pixel(8, 6, bird_color3)
  3651. @bird_bitmaps[1].fill_rect(2, 7, 1, 2, bird_color3)
  3652. @bird_bitmaps[1].set_pixel(3, 7, bird_color1)
  3653. @bird_bitmaps[1].set_pixel(4, 7, bird_color2)
  3654. @bird_bitmaps[1].set_pixel(5, 7, bird_color3)
  3655. @bird_bitmaps[1].set_pixel(7, 7, bird_color3)
  3656. @bird_bitmaps[1].set_pixel(8, 7, bird_color1)
  3657. @bird_bitmaps[1].set_pixel(1, 8, bird_color7)
  3658. @bird_bitmaps[1].fill_rect(3, 8, 1, 2, bird_color8)
  3659. @bird_bitmaps[1].set_pixel(4, 8, bird_color4)
  3660. @bird_bitmaps[1].set_pixel(5, 8, bird_color2)
  3661. @bird_bitmaps[1].fill_rect(6, 8, 1, 2, bird_color3)
  3662. @bird_bitmaps[1].fill_rect(7, 8, 1, 2, bird_color1)
  3663. @bird_bitmaps[1].set_pixel(1, 9, bird_color6)
  3664. @bird_bitmaps[1].set_pixel(2, 9, bird_color2)
  3665. @bird_bitmaps[1].fill_rect(4, 9, 1, 2, bird_color8)
  3666. @bird_bitmaps[1].set_pixel(5, 9, bird_color4)
  3667. @bird_bitmaps[1].set_pixel(3, 10, bird_color2)
  3668. @bird_bitmaps[1].fill_rect(5, 10, 2, 1, bird_color8)
  3669. @bird_bitmaps[1].set_pixel(7, 10, bird_color4)
  3670. @bird_bitmaps[1].set_pixel(8, 10, bird_color8)
  3671. @bird_bitmaps[1].set_pixel(9, 10, bird_color2)
  3672. @bird_bitmaps[1].set_pixel(4, 11, bird_color3)
  3673. @bird_bitmaps[1].set_pixel(5, 11, bird_color2)
  3674. @bird_bitmaps[1].set_pixel(6, 11, bird_color4)
  3675. @bird_bitmaps[1].set_pixel(7, 11, bird_color1)
  3676. @bird_bitmaps[1].set_pixel(8, 11, bird_color2)
  3677. @bird_bitmaps[1].set_pixel(9, 11, bird_color4)
  3678. @bird_bitmaps[1].set_pixel(6, 12, bird_color6)
  3679. @bird_bitmaps[1].set_pixel(7, 12, bird_color7)
  3680. @bird_bitmaps[1].set_pixel(9, 12, bird_color6)
  3681.  
  3682. # Bird left 3
  3683. @bird_bitmaps[2] = Bitmap.new(12, 7)
  3684. @bird_bitmaps[2].set_pixel(4, 0, bird_color3)
  3685. @bird_bitmaps[2].fill_rect(5, 0, 3, 1, bird_color1)
  3686. @bird_bitmaps[2].set_pixel(3, 1, bird_color3)
  3687. @bird_bitmaps[2].fill_rect(4, 1, 1, 4, bird_color8)
  3688. @bird_bitmaps[2].set_pixel(5, 1, bird_color4)
  3689. @bird_bitmaps[2].set_pixel(6, 1, bird_color2)
  3690. @bird_bitmaps[2].set_pixel(7, 1, bird_color4)
  3691. @bird_bitmaps[2].set_pixel(3, 2, bird_color7)
  3692. @bird_bitmaps[2].fill_rect(5, 2, 2, 2, bird_color8)
  3693. @bird_bitmaps[2].set_pixel(7, 2, bird_color2)
  3694. @bird_bitmaps[2].set_pixel(8, 2, bird_color1)
  3695. @bird_bitmaps[2].set_pixel(2, 3, bird_color3)
  3696. @bird_bitmaps[2].fill_rect(3, 3, 1, 2, bird_color2)
  3697. @bird_bitmaps[2].set_pixel(7, 3, bird_color8)
  3698. @bird_bitmaps[2].set_pixel(8, 3, bird_color2)
  3699. @bird_bitmaps[2].set_pixel(0, 4, bird_color1)
  3700. @bird_bitmaps[2].set_pixel(1, 4, bird_color4)
  3701. @bird_bitmaps[2].set_pixel(2, 4, bird_color8)
  3702. @bird_bitmaps[2].set_pixel(5, 4, bird_color8)
  3703. @bird_bitmaps[2].fill_rect(6, 4, 1, 2, bird_color3)
  3704. @bird_bitmaps[2].set_pixel(7, 4, bird_color2)
  3705. @bird_bitmaps[2].set_pixel(8, 4, bird_color4)
  3706. @bird_bitmaps[2].fill_rect(9, 4, 2, 1, bird_color8)
  3707. @bird_bitmaps[2].set_pixel(11, 4, bird_color2)
  3708. @bird_bitmaps[2].set_pixel(1, 5, bird_color6)
  3709. @bird_bitmaps[2].set_pixel(2, 5, bird_color3)
  3710. @bird_bitmaps[2].set_pixel(3, 5, bird_color8)
  3711. @bird_bitmaps[2].set_pixel(4, 5, bird_color3)
  3712. @bird_bitmaps[2].set_pixel(5, 5, bird_color2)
  3713. @bird_bitmaps[2].set_pixel(7, 5, bird_color4)
  3714. @bird_bitmaps[2].fill_rect(8, 5, 2, 1, bird_color2)
  3715. @bird_bitmaps[2].set_pixel(10, 5, bird_color8)
  3716. @bird_bitmaps[2].set_pixel(11, 5, bird_color1)
  3717. @bird_bitmaps[2].fill_rect(2, 6, 2, 1, bird_color6)
  3718. @bird_bitmaps[2].set_pixel(4, 6, bird_color2)
  3719. @bird_bitmaps[2].fill_rect(5, 6, 4, 1, bird_color6)
  3720. @bird_bitmaps[2].fill_rect(10, 6, 2, 1, bird_color6)
  3721.  
  3722. # Bird left 4
  3723. @bird_bitmaps[3] = Bitmap.new(12, 9)
  3724. @bird_bitmaps[3].fill_rect(3, 0, 2, 1, bird_color3)
  3725. @bird_bitmaps[3].set_pixel(3, 1, bird_color4)
  3726. @bird_bitmaps[3].fill_rect(4, 1, 1, 2, bird_color8)
  3727. @bird_bitmaps[3].set_pixel(5, 1, bird_color2)
  3728. @bird_bitmaps[3].set_pixel(6, 1, bird_color1)
  3729. @bird_bitmaps[3].set_pixel(2, 2, bird_color9)
  3730. @bird_bitmaps[3].set_pixel(3, 2, bird_color2)
  3731. @bird_bitmaps[3].fill_rect(5, 2, 3, 1, bird_color8)
  3732. @bird_bitmaps[3].set_pixel(8, 2, bird_color1)
  3733. @bird_bitmaps[3].fill_rect(3, 3, 1, 2, bird_color3)
  3734. @bird_bitmaps[3].set_pixel(4, 3, bird_color2)
  3735. @bird_bitmaps[3].fill_rect(5, 3, 2, 2, bird_color8)
  3736. @bird_bitmaps[3].set_pixel(7, 3, bird_color4)
  3737. @bird_bitmaps[3].fill_rect(8, 3, 2, 1, bird_color8)
  3738. @bird_bitmaps[3].fill_rect(10, 3, 2, 1, bird_color2)
  3739. @bird_bitmaps[3].fill_rect(2, 4, 1, 2, bird_color3)
  3740. @bird_bitmaps[3].fill_rect(4, 4, 1, 2, bird_color8)
  3741. @bird_bitmaps[3].fill_rect(7, 4, 1, 2, bird_color8)
  3742. @bird_bitmaps[3].set_pixel(8, 4, bird_color2)
  3743. @bird_bitmaps[3].set_pixel(9, 4, bird_color1)
  3744. @bird_bitmaps[3].set_pixel(10, 4, bird_color8)
  3745. @bird_bitmaps[3].set_pixel(11, 4, bird_color4)
  3746. @bird_bitmaps[3].set_pixel(0, 5, bird_color1)
  3747. @bird_bitmaps[3].set_pixel(1, 5, bird_color2)
  3748. @bird_bitmaps[3].fill_rect(3, 5, 1, 3, bird_color8)
  3749. @bird_bitmaps[3].set_pixel(5, 5, bird_color5)
  3750. @bird_bitmaps[3].fill_rect(6, 5, 1, 2, bird_color2)
  3751. @bird_bitmaps[3].set_pixel(8, 5, bird_color6)
  3752. @bird_bitmaps[3].set_pixel(9, 5, bird_color7)
  3753. @bird_bitmaps[3].set_pixel(10, 5, bird_color2)
  3754. @bird_bitmaps[3].set_pixel(11, 5, bird_color6)
  3755. @bird_bitmaps[3].set_pixel(2, 6, bird_color8)
  3756. @bird_bitmaps[3].fill_rect(4, 6, 2, 1, bird_color4)
  3757. @bird_bitmaps[3].set_pixel(7, 6, bird_color1)
  3758. @bird_bitmaps[3].set_pixel(1, 7, bird_color3)
  3759. @bird_bitmaps[3].set_pixel(2, 7, bird_color5)
  3760. @bird_bitmaps[3].set_pixel(4, 7, bird_color2)
  3761. @bird_bitmaps[3].fill_rect(5, 7, 2, 1, bird_color1)
  3762. @bird_bitmaps[3].set_pixel(0, 8, bird_color3)
  3763. @bird_bitmaps[3].set_pixel(1, 8, bird_color8)
  3764. @bird_bitmaps[3].fill_rect(2, 8, 2, 1, bird_color1)
  3765. #-------------------------------------------------------------------------------
  3766. @user_bitmaps = []
  3767. update_user_defined
  3768. end
  3769. #-------------------------------------------------------------------------------
  3770. def update_user_defined
  3771. @user_bitmaps.each {|image| image.dispose}
  3772. $WEATHER_IMAGES.each {|name| @user_bitmaps.push(RPG::Cache.picture(name))}
  3773. @sprites.each {|sprite| sprite.bitmap = @user_bitmaps[rand(@user_bitmaps.size)]}
  3774. end
  3775. attr_reader :type
  3776. attr_reader :max
  3777. attr_reader :ox
  3778. attr_reader :oy
  3779. end
  3780. end
  3781.  
  3782. #-------------------------------------------------------------------------------
  3783. # Game_Screen
  3784. #-------------------------------------------------------------------------------
  3785. class Game_Screen
  3786.  
  3787. attr_accessor :weather_variation
  3788. attr_accessor :variation_update
  3789.  
  3790. alias maws_weather_color_init initialize
  3791. def initialize
  3792. maws_weather_color_init
  3793. @weather_variation = 0
  3794. @variation_update = false
  3795. end
  3796.  
  3797. def weather(type, power, duration, variation=0)
  3798. @variation_update = true if variation != @weather_variation
  3799. @weather_variation = variation
  3800. @weather_type_target = type
  3801. @weather_duration = duration
  3802. if @weather_type_target != 0
  3803. @weather_type = @weather_type_target
  3804. end
  3805. @weather_max_target = @weather_type_target == 0 ? 0.0 : (power + 1) * 4.0
  3806. if @weather_duration == 0
  3807. @weather_type = @weather_type_target
  3808. @weather_max = @weather_max_target
  3809. end
  3810. end
  3811. end
  3812. #-------------------------------------------------------------------------------
  3813. # Spriteset_Map
  3814. #-------------------------------------------------------------------------------
  3815. class Spriteset_Map
  3816.  
  3817. alias maws_weather_variation_upd update
  3818. def update
  3819. if $game_screen.variation_update
  3820. @weather.dispose if @weather != nil
  3821. @weather = RPG::Weather.new(@viewport1)
  3822. $game_screen.variation_update = false
  3823. end
  3824. maws_weather_variation_upd
  3825. end
  3826. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement