<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
  <spriteName>s0</spriteName>
  <solid>0</solid>
  <visible>-1</visible>
  <depth>0</depth>
  <persistent>0</persistent>
  <parentName>o_player_main</parentName>
  <maskName>s_block1_c</maskName>
  <events>
    <event eventtype="0" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>move = 0;
turn1 = 0;
turn2 = 0;
rot1 = 0;
rot2 = 0;
fire = 1;
hp = 5;
max_hp = 5;
see = 1;
ready = 0;
sloi = 0;
alarm[10] = 2;//3D print
tx = '';
tx2 = '';
bonus = 0;
time = 0;
alarm[9] = 5;//engine sound
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="2" enumb="10">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>///pechataem
if sloi &lt; 30
{
    sloi++
    alarm[10] = 10;
    hp = max_hp;
    see = 1;
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="2" enumb="9">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>///engine sound
alarm[9] = 6;
if sloi &lt; 30 exit;
audio_play_sound(w_engine, 0, 0);
switch (move)
{
    case 0: alarm[9] = 9; audio_sound_pitch(w_engine, 0.7); break;
    case 1: audio_sound_pitch(w_engine, 1.2); break;
    case 2: audio_sound_pitch(w_engine, 1); break;
    default: break;
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="2" enumb="8">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>///autoheal
if hp &lt; max_hp
{
    hp++;
    alarm[8] = 120;
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="2" enumb="2">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>///fire = 1
fire = 1;
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="2" enumb="1">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>///up, AI
turn2 = 0;
rot2 = (round(rot2/90))*90;
if rot2 &lt; 0 rot2 += 360;
if rot2 &gt;= 360 rot2 -= 360;
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="2" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>///stop moving
ss_grid();
move = 0;
turn1 = 0;
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="3" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>depth = point_distance(x, y, room_width/2, room_height/2);
if turn1 == -1 rot1 += 3;
if turn1 == 1 rot1 -= 3;
if turn2 == -1 rot2 += 6;
if turn2 == 1 rot2 -= 6;
if bonus == 4 hp = max_hp;
if bonus = 6 with o_e_bullet instance_destroy();
if move == 1
{
    x += lengthdir_x(1.33, rot1);
    y += lengthdir_y(1.33, rot1);
};
if time &gt; 0
{
    time--;
    if time == 0
    {
        tx = '';
        tx2 = '';
        bonus = 0;
    }
}
if hp &lt;= 0
{
    instance_destroy();
    var son;
    son = instance_create(x, y, o_boom);
    son.cc = c_yellow;
    ss_shake(5);
    audio_play_sound(w_boom, 1, 0);
    audio_sound_pitch(w_boom, choose(0.9, 0.95, 1, 1.05, 1.1));
    exit;
}
if hp == max_hp
{
    if see == 0 exit;
    see -= 0.01;
    if see &lt; 0 see = 0;
    exit;
};
else
{
    if see == 1 exit;
    see += 0.02;
    if see &gt; 1 see = 1;
    exit;
};
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="5" enumb="87">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if sloi != 30 exit;
if move == 0
{
    if rot1 == 270
    {
        turn1 = choose(-1, 1);
        turn2 = turn1;
        alarm[0] = 60;
        alarm[1] = 30;
        move = 2;
        exit;
    };
    if rot1 = 0
    {
        turn1 = -1;
        turn2 = -1;
        alarm[0] = 30;
        alarm[1] = 15;
        move = 2;
        exit
    };
    if rot1 = 90
    {
        if !collision_point(x+lengthdir_x(40, rot1), y+lengthdir_y(40, rot1), o_busy, 0, 1)
        {
            move = 1;
            alarm[0] = 30;
            instance_create(x, y, o_busy_block);
            instance_create(x+lengthdir_x(40, rot1), y+lengthdir_y(40, rot1), o_busy_block)
        };
        exit;
    };
    if rot1 = 180
    {
        turn1 = 1;
        turn2 = 1;
        alarm[0] = 30;
        alarm[1] = 15;
        move = 2;
        exit;
    };
};
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="5" enumb="83">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if sloi != 30 exit;
if move == 0
{
    if rot1 == 90
    {
        turn1 = choose(-1, 1);
        turn2 = turn1;
        alarm[0] = 60;
        alarm[1] = 30;
        move = 2;
        exit;
    };
    if rot1 = 180
    {
        turn1 = -1;
        turn2 = -1;
        alarm[0] = 30;
        alarm[1] = 15;
        move = 2;
        exit
    };
    if rot1 = 270
    {
        if !collision_point(x+lengthdir_x(40, rot1), y+lengthdir_y(40, rot1), o_busy, 0, 1)
        {
            move = 1;
            alarm[0] = 30;
            instance_create(x, y, o_busy_block);
            instance_create(x+lengthdir_x(40, rot1), y+lengthdir_y(40, rot1), o_busy_block)
        };
        exit;
    };
    if rot1 = 0
    {
        turn1 = 1;
        turn2 = 1;
        alarm[0] = 30;
        alarm[1] = 15;
        move = 2;
        exit;
    };
};
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="5" enumb="68">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if sloi != 30 exit;
if move == 0
{
    if rot1 == 180
    {
        turn1 = choose(-1, 1);
        turn2 = turn1;
        alarm[0] = 60;
        alarm[1] = 30;
        move = 2;
        exit;
    };
    if rot1 = 270
    {
        turn1 = -1;
        turn2 = -1;
        alarm[0] = 30;
        alarm[1] = 15;
        move = 2;
        exit
    };
    if rot1 = 0
    {
        if !collision_point(x+lengthdir_x(40, rot1), y+lengthdir_y(40, rot1), o_busy, 0, 1)
        {
            move = 1;
            alarm[0] = 30;
            instance_create(x, y, o_busy_block);
            instance_create(x+lengthdir_x(40, rot1), y+lengthdir_y(40, rot1), o_busy_block)
        };
        exit;
    };
    if rot1 = 90
    {
        turn1 = 1;
        turn2 = 1;
        alarm[0] = 30;
        alarm[1] = 15;
        move = 2;
        exit;
    };
};
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="5" enumb="65">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if sloi != 30 exit;
if move == 0
{
    if rot1 == 0
    {
        turn1 = choose(-1, 1);
        turn2 = turn1;
        alarm[0] = 60;
        alarm[1] = 30;
        move = 2;
        exit;
    };
    if rot1 = 90
    {
        turn1 = -1;
        turn2 = -1;
        alarm[0] = 30;
        alarm[1] = 15;
        move = 2;
        exit
    };
    if rot1 = 180
    {
        if !collision_point(x+lengthdir_x(40, rot1), y+lengthdir_y(40, rot1), o_busy, 0, 1)
        {
            move = 1;
            alarm[0] = 30;
            instance_create(x, y, o_busy_block);
            instance_create(x+lengthdir_x(40, rot1), y+lengthdir_y(40, rot1), o_busy_block)
        };
        exit;
    };
    if rot1 = 270
    {
        turn1 = 1;
        turn2 = 1;
        alarm[0] = 30;
        alarm[1] = 15;
        move = 2;
        exit;
    };
};
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="5" enumb="40">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if sloi != 30 exit;
if move == 0
{
    if rot1 == 90
    {
        turn1 = choose(-1, 1);
        turn2 = turn1;
        alarm[0] = 60;
        alarm[1] = 30;
        move = 2;
        exit;
    };
    if rot1 = 180
    {
        turn1 = -1;
        turn2 = -1;
        alarm[0] = 30;
        alarm[1] = 15;
        move = 2;
        exit
    };
    if rot1 = 270
    {
        if !collision_point(x+lengthdir_x(40, rot1), y+lengthdir_y(40, rot1), o_busy, 0, 1)
        {
            move = 1;
            alarm[0] = 30;
            instance_create(x, y, o_busy_block);
            instance_create(x+lengthdir_x(40, rot1), y+lengthdir_y(40, rot1), o_busy_block)
        };
        exit;
    };
    if rot1 = 0
    {
        turn1 = 1;
        turn2 = 1;
        alarm[0] = 30;
        alarm[1] = 15;
        move = 2;
        exit;
    };
};
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="5" enumb="39">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if sloi != 30 exit;
if move == 0
{
    if rot1 == 180
    {
        turn1 = choose(-1, 1);
        turn2 = turn1;
        alarm[0] = 60;
        alarm[1] = 30;
        move = 2;
        exit;
    };
    if rot1 = 270
    {
        turn1 = -1;
        turn2 = -1;
        alarm[0] = 30;
        alarm[1] = 15;
        move = 2;
        exit
    };
    if rot1 = 0
    {
        if !collision_point(x+lengthdir_x(40, rot1), y+lengthdir_y(40, rot1), o_busy, 0, 1)
        {
            move = 1;
            alarm[0] = 30;
            instance_create(x, y, o_busy_block);
            instance_create(x+lengthdir_x(40, rot1), y+lengthdir_y(40, rot1), o_busy_block)
        };
        exit;
    };
    if rot1 = 90
    {
        turn1 = 1;
        turn2 = 1;
        alarm[0] = 30;
        alarm[1] = 15;
        move = 2;
        exit;
    };
};
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="5" enumb="38">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if sloi != 30 exit;
if move == 0
{
    if rot1 == 270
    {
        turn1 = choose(-1, 1);
        turn2 = turn1;
        alarm[0] = 60;
        alarm[1] = 30;
        move = 2;
        exit;
    };
    if rot1 = 0
    {
        turn1 = -1;
        turn2 = -1;
        alarm[0] = 30;
        alarm[1] = 15;
        move = 2;
        exit
    };
    if rot1 = 90
    {
        if !collision_point(x+lengthdir_x(40, rot1), y+lengthdir_y(40, rot1), o_busy, 0, 1)
        {
            move = 1;
            alarm[0] = 30;
            instance_create(x, y, o_busy_block);
            instance_create(x+lengthdir_x(40, rot1), y+lengthdir_y(40, rot1), o_busy_block)
        };
        exit;
    };
    if rot1 = 180
    {
        turn1 = 1;
        turn2 = 1;
        alarm[0] = 30;
        alarm[1] = 15;
        move = 2;
        exit;
    };
};
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="5" enumb="37">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if sloi != 30 exit;
if move == 0
{
    if rot1 == 0
    {
        turn1 = choose(-1, 1);
        turn2 = turn1;
        alarm[0] = 60;
        alarm[1] = 30;
        move = 2;
        exit;
    };
    if rot1 = 90
    {
        turn1 = -1;
        turn2 = -1;
        alarm[0] = 30;
        alarm[1] = 15;
        move = 2;
        exit
    };
    if rot1 = 180
    {
        if !collision_point(x+lengthdir_x(40, rot1), y+lengthdir_y(40, rot1), o_busy, 0, 1)
        {
            move = 1;
            alarm[0] = 30;
            instance_create(x, y, o_busy_block);
            instance_create(x+lengthdir_x(40, rot1), y+lengthdir_y(40, rot1), o_busy_block)
        };
        exit;
    };
    if rot1 = 270
    {
        turn1 = 1;
        turn2 = 1;
        alarm[0] = 30;
        alarm[1] = 15;
        move = 2;
        exit;
    };
};
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="5" enumb="32">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if sloi != 30 exit;
if fire = 1
{
    if rot2 == 0 or rot2 == 90 or rot2 == 180 or rot2 == 270
    {
        if bonus==0 or bonus&gt;=4
        {
            alarm[2] = 50;
            fire = 0;
            audio_play_sound(w_shot1, 1, 0);
            audio_sound_pitch(w_shot1, choose(0.9, 0.95, 1, 1.05, 1.1));
            son = instance_create(x+lengthdir_x(32, rot2), y+lengthdir_y(32, rot2), o_bullet2_player);
            son.speed = 4;
            son.direction = rot2;
            son.cc = c_yellow;
            exit;
        };
        if bonus==1
        {
            alarm[2] = 50;
            audio_play_sound(w_shot1, 1, 0);
            audio_sound_pitch(w_shot1, choose(0.9, 0.95, 1, 1.05, 1.1));
            fire = 0;
            son = instance_create(x+lengthdir_x(32, rot2-8), y+lengthdir_y(32, rot2-8), o_bullet2_player);
            son.speed = 4;
            son.direction = rot2;
            son.cc = c_yellow;
            son = instance_create(x+lengthdir_x(32, rot2+8), y+lengthdir_y(32, rot2+8), o_bullet2_player);
            son.speed = 4;
            son.direction = rot2;
            son.cc = c_yellow;
            exit;
        };
        if bonus==2
        {
            alarm[2] = 50;
            fire = 0;
            audio_play_sound(w_shot_relsa, 1, 0);
            audio_sound_pitch(w_shot_relsa, choose(0.9, 0.95, 1, 1.05, 1.1));
            var xx, yy;
            xx = (x - (room_width/2))/1024;
            yy = (y - (room_height/2))/382;
            for (i=40; i&lt;2000; i+=40)
            {
                if (collision_point(x+lengthdir_x(i, rot2), y+lengthdir_y(i, rot2), o_block3_a, 0, 1)) or (collision_point(x+lengthdir_x(i, rot2), y+lengthdir_y(i, rot2), o_block2, 0, 1))
                {
                    exit;
                };
                var xx, yy;
                instance_create(x+lengthdir_x(i, rot2), y+lengthdir_y(i, rot2), o_bullet_relsa);
                effect_create_above(ef_spark, x+(xx*20)+lengthdir_x(i-10, rot2), y+(yy*20)+lengthdir_y(i-10, rot2), 0, c_yellow);
                effect_create_above(ef_spark, x+(xx*20)+lengthdir_x(i+10, rot2), y+(yy*20)+lengthdir_y(i+10, rot2), 0, c_yellow);
            };
            exit;
        };
        if bonus==3
        {
            alarm[2] = 60;
            fire = 0;
            audio_play_sound(w_shot1, 1, 0);
            audio_sound_pitch(w_shot1, choose(0.7, 0.75, 0.8, 0.85, 0.9));
            son = instance_create(x+lengthdir_x(32, rot2), y+lengthdir_y(32, rot2), o_bullet_BIG_player);
            son.speed = 3;
            son.direction = rot2;
            son.cc = c_yellow;
            exit;
        };
    };
};
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="8" enumb="64">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if see != 0
{
draw_set_alpha(see);
    for (i=0; i&lt;max_hp; i+=1)
    {
        draw_circle_colour(x-10-(max_hp*4)+(i*8), y-30, 4, c_dkgray, c_dkgray, 0);
    };
    for (i=0; i&lt;hp; i+=1)
    {
        draw_circle_colour(x-10-(max_hp*4)+(i*8), y-30, 3, c_yellow, c_yellow, 0);
    };
    draw_set_alpha(1);
};
switch (bonus)
{
    case 1: draw_text_colour(view_wview[0]/2, view_hview[0]-10, string(tx)+' -- '+string(round((time)/60)), c_yellow, c_yellow, c_yellow, c_yellow, 1); break;
    case 2: draw_text_colour(view_wview[0]/2, view_hview[0]-10, string(tx)+' -- '+string(round((time)/60)), c_yellow, c_yellow, c_yellow, c_yellow, 1); break;
    case 3: draw_text_colour(view_wview[0]/2, view_hview[0]-10, string(tx)+' -- '+string(round((time)/60)), c_yellow, c_yellow, c_yellow, c_yellow, 1); break;
    case 4: draw_text_colour(view_wview[0]/2, view_hview[0]-10, string(tx)+' -- '+string(round((time)/60)), c_yellow, c_yellow, c_yellow, c_yellow, 1); break;
    case 5: draw_text_colour(view_wview[0]/2, view_hview[0]-10, tx2, c_silver, c_silver, c_silver, c_silver, 1); break;
    case 6: draw_text_colour(view_wview[0]/2, view_hview[0]-10, string(tx)+' -- '+string(round((time)/60)), c_yellow, c_yellow, c_yellow, c_yellow, 1); break;
    case 7: draw_text_colour(view_wview[0]/2, view_hview[0]-10, tx2, c_silver, c_silver, c_silver, c_silver, 1); break;
    case 8: draw_text_colour(view_wview[0]/2, view_hview[0]-10, tx2, c_silver, c_silver, c_silver, c_silver, 1); break;
    case 9: draw_text_colour(view_wview[0]/2, view_hview[0]-10, tx2, c_silver, c_silver, c_silver, c_silver, 1); break;
    case 10: draw_text_colour(view_wview[0]/2, view_hview[0]-10, tx2, c_silver, c_silver, c_silver, c_silver, 1); break;
    default: break;
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="8" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>var xx, yy;
xx = (x - (room_width/2))/1024;
yy = (y - (room_height/2))/382;
if bonus==0 or bonus&gt;=5 //обычная башня //+материал
{
    if sloi &gt; 3 draw_sprite_ext(global.down, 4, x, y, 1, 1, rot1, c_black, 0.2);
    if sloi &gt; 19 draw_sprite_ext(s_up4, 5, x, y, 1, 1, rot2, c_black, 0.2);
    for (i=0; i&lt;sloi; i+=1)
    {
        if i &lt; 15 draw_sprite_ext(global.down, i, x+(xx*i), y+(yy*i), 1, 1, rot1, make_colour_rgb(250, 200, 128), 1);
        if i &gt; 14 draw_sprite_ext(s_up4, i, x+(xx*i), y+(yy*i), 1, 1, rot2, make_colour_rgb(250, 200, 128), 1);
    };
    exit;
};
if bonus == 1 //двойной ствол
{
    if sloi &gt; 3 draw_sprite_ext(global.down, 4, x, y, 1, 1, rot1, c_black, 0.2);
    if sloi &gt; 19 draw_sprite_ext(s_up4_duplet, 5, x, y, 1, 1, rot2, c_black, 0.2);
    for (i=0; i&lt;sloi; i+=1)
    {
        if i &lt; 15 draw_sprite_ext(global.down, i, x+(xx*i), y+(yy*i), 1, 1, rot1, make_colour_rgb(250, 200, 128), 1);
        if i &gt; 14 draw_sprite_ext(s_up4_duplet, i, x+(xx*i), y+(yy*i), 1, 1, rot2, make_colour_rgb(250, 200, 128), 1);
    };
    exit;
};
if bonus == 2 //рельса
{
    if sloi &gt; 3 draw_sprite_ext(global.down, 4, x, y, 1, 1, rot1, c_black, 0.2);
    if sloi &gt; 19 draw_sprite_ext(s_up4_relsa, 5, x, y, 1, 1, rot2, c_black, 0.2);
    for (i=0; i&lt;sloi; i+=1)
    {
        if i &lt; 15 draw_sprite_ext(global.down, i, x+(xx*i), y+(yy*i), 1, 1, rot1, make_colour_rgb(250, 200, 128), 1);
        if i &gt; 14 draw_sprite_ext(s_up4_relsa, i, x+(xx*i), y+(yy*i), 1, 1, rot2, make_colour_rgb(250, 200, 128), 1);
    };
    exit;
};
if bonus == 3 //царь пушка
{
    if sloi &gt; 3 draw_sprite_ext(global.down, 4, x, y, 1, 1, rot1, c_black, 0.2);
    if sloi &gt; 19 draw_sprite_ext(s_up4_czar, 5, x, y, 1, 1, rot2, c_black, 0.2);
    for (i=0; i&lt;sloi; i+=1)
    {
        if i &lt; 15 draw_sprite_ext(global.down, i, x+(xx*i), y+(yy*i), 1, 1, rot1, make_colour_rgb(250, 200, 128), 1);
        if i &gt; 14 draw_sprite_ext(s_up4_czar, i, x+(xx*i), y+(yy*i), 1, 1, rot2, make_colour_rgb(250, 200, 128), 1);
    };
    exit;
};
if bonus == 4 //бессмертие
{
    if sloi &gt; 3 draw_sprite_ext(global.down, 4, x, y, 1, 1, rot1, c_black, 0.2);
    if sloi &gt; 19 draw_sprite_ext(s_up4, 5, x, y, 1, 1, rot2, c_black, 0.2);
    for (i=0; i&lt;sloi; i+=1)
    {
        if i &lt; 15 draw_sprite_ext(global.down, i, x+(xx*i), y+(yy*i), 1, 1, rot1, c_white, 0.5);
        if i &gt; 14 draw_sprite_ext(s_up4, i, x+(xx*i), y+(yy*i), 1, 1, rot2, c_white, 0.5);
    };
    exit;
};
</string>
          </argument>
        </arguments>
      </action>
    </event>
  </events>
  <PhysicsObject>0</PhysicsObject>
  <PhysicsObjectSensor>0</PhysicsObjectSensor>
  <PhysicsObjectShape>0</PhysicsObjectShape>
  <PhysicsObjectDensity>0.5</PhysicsObjectDensity>
  <PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution>
  <PhysicsObjectGroup>0</PhysicsObjectGroup>
  <PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
  <PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
  <PhysicsObjectFriction>0.200000002980232</PhysicsObjectFriction>
  <PhysicsObjectAwake>-1</PhysicsObjectAwake>
  <PhysicsObjectKinematic>0</PhysicsObjectKinematic>
  <PhysicsShapePoints/>
</object>
