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
|
[object_type]
friction="5"
hitpoints="1"
id="playable_plane"
mass="5"
on_create="[set(hitpoints, 1), animation('stand')]"
on_die="[spawn('die_cloud', midpoint_x, midpoint_y, facing)]"
on_end_anim="animation('fly')"
on_process="[if(driver and ctrl_down and ctrl_jump, unboard()),
if((ctrl_left and facing > 0) or (ctrl_right and facing < 0),
[facing(-facing), animation('fly')], null()),
if(ctrl_up, set(accel_y, -40), set(accel_y,0)),
if(ctrl_down, set(accel_y, min(accel_y + 40, 40)), null())]"
springiness="100"
vehicle="true"
[animation]
collide="12,23,55,60"
duration="100000"
feet_x="36"
feet_y="60"
frame_info="2,16,11,7,841,949,56,46"
frames="1"
id="stand"
image="compiled-0.png"
rect="839,933,907,1001"
[/animation]
[animation]
accel_x="30"
collide="12,23,55,60"
duration="1"
feet_x="36"
feet_y="60"
frame_info="2,16,5,6,502,949,62,47,2,16,5,6,564,949,62,47,2,16,5,6,626,949,62,47,2,16,5,6,688,949,62,47"
frames="4"
id="fly"
image="compiled-0.png"
rect="500,933,568,1001"
[/animation]
[/object_type]
|