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
|
[prototype]
friction="100"
id="powerup_shooting"
on_acquired="[fire_event(level.player, 'lose_powerup'), set(level.player.variations, filter(level.player.variations, 'v', not strstr(v, 'powerup')) + [consts.powerup_type]),
fire_event(level.player, 'get_powerup'),
map([0,0,0,0],spawn('points_sparkle',midpoint_x + 1d40-20,midpoint_y + 1d40-20,0)),sound('HeartPickUp.ogg'),die()]"
on_collide="[set(velocity_y, velocity_y/2), set(velocity_x, -velocity_x)]"
on_collide_feet="[set(velocity_y, -velocity_y), set(velocity_x, (velocity_x*9)/10 + (velocity_y*slope_standing_on)/90)]"
on_collide_object_item="if(collide_with.player,fire_event('acquired'))"
on_create="[set(vars.time_to_live, level.cycle + vars.time_to_live),add_particles('particles')]"
on_end_anim="animation('normal')"
on_process="[set(red, (consts.red*intensity)/255),
set(green, (consts.green*intensity)/255),
set(blue, (consts.blue*intensity)/255),
set(alpha, (consts.alpha*intensity)/255)
]
where intensity = (wave(cycle*30)+1000)/3 + 1024"
on_timer="[if(level.cycle > vars.time_to_live, die())]"
solid_dimensions="level_only"
timer_frequency="50"
[vars]
time_to_live="250"
[/vars]
[consts]
alpha="255"
blue="255"
green="255"
powerup_type="'powerup_shooting'"
red="255"
[/consts]
[particle_system]
id="particles"
max_x="20"
max_y="20"
min_x="-20"
min_y="-20"
spawn_rate="200"
time_to_live="20"
type="simple"
[animation]
duration="6"
frame_info="1,1,1,1,227,0,9,9,2,2,2,2,236,0,7,7,3,3,3,3,243,0,5,5,4,4,4,4,248,0,3,3"
frames="4"
id="sparkle"
image="compiled-0.png"
rect="226,-1,236,9"
[/animation]
[animation]
duration="4"
frame_info="2,2,2,2,303,0,7,7,3,3,3,3,310,0,5,5,4,4,4,4,315,0,3,3"
frames="3"
id="sparkle"
image="compiled-0.png"
rect="301,-2,311,8"
[/animation]
[animation]
duration="6"
frame_info="3,3,3,3,337,0,5,5,4,4,4,4,342,0,3,3"
frames="2"
id="sparkle"
image="compiled-0.png"
rect="334,-3,344,7"
[/animation]
[animation]
duration="6"
frame_info="4,4,4,4,122,11,3,3"
frames="1"
id="sparkle"
image="compiled-0.png"
rect="118,7,128,17"
[/animation]
[/particle_system]
[animation]
accel_y="20"
duration="1"
frame_info="2,3,3,1,829,267,13,14,5,3,5,1,842,267,8,14,5,4,5,2,850,267,8,12,3,5,5,3,858,267,10,10,2,5,2,5,868,267,14,8,1,5,1,4,882,267,16,9,2,3,3,1,898,267,13,14,4,2,4,2,911,267,10,14,5,1,2,4,921,267,11,13,5,1,1,5,932,267,12,12,5,1,1,4,944,267,12,13,3,3,2,2,956,267,13,13"
frames="12"
frames_per_row="6"
id="normal"
image="compiled-0.png"
item_area="all"
rect="827,264,844,281"
solid_area="4,4,8,8"
[/animation]
[/prototype]
|