1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
|
[object_type]
id="whitewater_controller"
ignore_collide="true"
on_editor_added="add_water(zone_x1, zone_y1, zone_x2, zone_y2, [140,00,0,70])"
on_editor_changed_variable="add_water(zone_x1, zone_y1, zone_x2, zone_y2, [140,00,0,70])"
on_editor_changing_variable="remove_water(zone_x1, zone_y1, zone_x2, zone_y2)"
on_editor_removed="remove_water(zone_x1, zone_y1, zone_x2, zone_y2)"
on_end_anim="animation('normal')"
on_load="[
set(alpha,0), add_particles('bubbles'), add_particles('fizz'), add_particles('splash'), add_particles('splash_droplets'),
fire_event('setup_particles')]"
on_setup_particles="[
set(bubbles.area, [zone_x1, zone_y1, zone_x2, zone_y2]),
set(fizz.min_x, vars.zone_x1 - x),
set(fizz.max_x, vars.zone_x2 - x),
set(fizz.min_y, (vars.zone_y1 - 15) - y),
set(fizz.max_y, (vars.zone_y1 + 60) - y),
set(fizz.spawn_rate, 4*(zone_x2 - zone_x1)),
set(splash.min_x, vars.zone_x1 - x),
set(splash.max_x, vars.zone_x2 - 54 - x),
set(splash.min_y, (vars.zone_y1 - 28) - y),
set(splash.max_y, (vars.zone_y1 - 28) - y),
set(splash.spawn_rate, 1*(zone_x2 - zone_x1)),
set(splash_droplets.pos_x, vars.zone_x1 - x),
set(splash_droplets.pos_x_rand, vars.zone_x2 - x),
set(splash_droplets.pos_y, (vars.zone_y1) - y),
set(splash_droplets.pos_y_rand, (vars.zone_y1) - y),
set(splash_droplets.generation_rate, 10*(zone_x2 - zone_x1))
]"
on_start_level="[
set(activation_area, [vars.zone_x1 - 50, vars.zone_y1 - 100, (vars.zone_x2 - vars.zone_x1) + 100, (vars.zone_y2 - vars.zone_y1) + 100])]"
zorder="40"
[editor_info]
category="controllers"
[var]
name="zone_x1"
type="x"
value="x"
[/var]
[var]
name="zone_x2"
type="x"
value="x+200"
[/var]
[var]
name="zone_y1"
type="y"
value="y"
[/var]
[var]
name="zone_y2"
type="y"
value="y+200"
[/var]
[/editor_info]
[consts]
damage="128"
[/consts]
[animation]
duration="1000"
frame_info="1,2,1,0,719,449,26,26"
frames="1"
id="normal"
image="compiled-2.png"
rect="718,447,745,474"
[/animation]
[particle_system]
color="120,250,200,200"
dot_size="2"
id="bubbles"
number_of_particles="100"
repeat_period="200"
type="water"
velocity_rand="4"
velocity_x="0"
velocity_y="-1"
[/particle_system]
[particle_system]
id="fizz"
max_x="260"
max_y="15"
min_x="-60"
min_y="-5"
spawn_rate="600"
time_to_live="48"
type="simple"
velocity_x="260"
velocity_x_random="200"
velocity_y="-200"
velocity_y_random="400"
[animation]
duration="4"
frame_info="13,13,13,13,497,0,11,11,12,11,12,13,508,0,13,13,11,9,11,13,521,0,15,15,10,5,10,13,536,0,17,19,10,4,10,10,553,0,17,23,11,3,10,11,570,0,16,23,14,2,13,12,586,0,10,23,15,1,14,14,596,0,8,22,14,0,14,16,604,0,9,21,14,2,14,18,613,0,9,17,17,1,16,20,622,0,4,16,37,37,0,0,626,0,0,0"
frames="12"
frames_per_row="3"
id="normal"
image="compiled-0.png"
rect="484,-13,520,23"
[/animation]
[/particle_system]
[particle_system]
id="splash"
max_x="260"
max_y="0"
min_x="-60"
min_y="0"
spawn_rate="600"
time_to_live="40"
type="simple"
velocity_x="260"
velocity_y="0"
[animation]
duration="4"
frame_info="14,7,15,17,0,0,25,14,13,5,14,8,25,0,27,25,7,5,8,1,52,0,39,32,3,3,4,2,91,0,47,33,1,1,2,5,138,0,51,32,1,7,2,7,189,0,51,24,10,11,13,9,240,0,31,18,12,13,14,11,271,0,28,14,10,14,13,13,299,0,31,11,24,14,26,16,330,0,4,8"
frames="10"
frames_per_row="2"
id="normal"
image="compiled-0.png"
rect="-14,-7,39,30"
[/animation]
[/particle_system]
[particle_system]
accel_y="200000"
alpha="255"
blue="255"
dot_size="1"
generation_rate_millis="0"
green="255"
id="splash_droplets"
pos_x="-10"
pos_x_rand="20"
pos_y="-60"
red="255"
time_to_live="30"
type="point"
velocity_x="-2000"
velocity_x_rand="4000"
velocity_y="-4500"
velocity_y_rand="2000"
[/particle_system]
[/object_type]
|