<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
  <spriteName>&lt;undefined&gt;</spriteName>
  <solid>0</solid>
  <visible>-1</visible>
  <depth>-6</depth>
  <persistent>0</persistent>
  <parentName>&lt;undefined&gt;</parentName>
  <maskName>&lt;undefined&gt;</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>randomize();
alarm[0] = 600; // бонус
alarm[1] = 300; // кусты
alarm[2] = 32;  // проверка здоровья
x = 320;
y = 256;
see = 0;
audio_listener_position(x, y, 0);
/*  depth:

3   основная текстура дороги
2   детали дороги
1   мины, аптечки

0   машины

-1  мелкие препятствия
-2  пули, лазеры, ракеты, взрывы
-3  высокие препятствия
-4  неломаемые строения
-5  облака, листва
-6  чёрная рамка
-7  кнопки
-8  руки
-9  тёмный экран   */


draw_set_font(font_1);
draw_set_halign(fa_center);
draw_set_valign(fa_middle);
display_set_gui_size(640, 420);
</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>///hp &lt; 1
alarm[2] = 32;
var i = irandom(3)
switch (i)
{
    case 0: with instance_create(0, -32, o_greenzone_up1) image_index = 0; break;
    case 1: with instance_create(0, -32, o_greenzone_up1) image_index = 1; break;
    case 2: with instance_create(0, -32, o_greenzone_up1) image_index = 2; break;
    default: break;
}
if o_car1_pl1.hp &lt; 1
{
    if !instance_exists(o_close_window)
    {
        with instance_create(0, 0, o_close_window) type = 1;
        global.victory = 2;
    }
    exit;
}
if o_car2_pl2.hp &lt; 1
{
    if !instance_exists(o_close_window)
    {
        with instance_create(0, 0, o_close_window) type = 1;
        global.points += 100;
        global.victory = 1;
        global.hp = o_car1_pl1.hp;
    }
    exit;
}
</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>///bush
alarm[1] = choose(30, 60, 90, 120);
with instance_create(irandom_range(35, 272), -50, o_bush)
{
    instance_create(x+333, -50, o_bush);
}
</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>///bonus
alarm[0] = 500;
instance_create(153, -200, o_bonus);
instance_create(486, -200, o_bonus);
instance_create(153, -200, o_trava);
instance_create(486, -200, o_trava);
var i1 = irandom(4);
if i1 == 0
{
    repeat(36)
    {
        with instance_create(irandom_range(35, 272), irandom_range(8, -2048), o_bush)
        {
            instance_create(x+333, y, o_bush);
        };
    }
    exit;
};
if i1 == 1
{
    for (i2=32; i2&lt;300; i2+=64)   
    {
        instance_create(i2, -195, o_trava);
        instance_create(i2-32, -205, o_trava);
        instance_create(i2+333, -195, o_trava);
        instance_create(i2-301, -205, o_trava);
        with instance_create(i2, -50, o_stolb)
        {
            instance_create(x+333, y, o_stolb);
        };
        with instance_create(i2-24, -350, o_stolb)
        {
            instance_create(x+333, y, o_stolb);
        };
        instance_create(i2, -1195, o_trava);
        instance_create(i2-32, -1205, o_trava);
        with instance_create(i2, -1050, o_stolb)
        {
            instance_create(x+333, y, o_stolb);
        };
        with instance_create(i2-24, -1350, o_stolb)
        {
            instance_create(x+333, y, o_stolb);
        };
    };
    exit;
};
if i1 == 2
{
    alarm[1] = 500;
    for (i2=35; i2&lt;240; i2+=12)   
    {
        with instance_create(i2, -i2-500, o_fence)
        {
            instance_create(x+333, y, o_fence);
        };
        with instance_create(i2, i2-1000, o_fence)
        {
            instance_create(x+333, y, o_fence);
        };
        with instance_create(i2+32, i2-1240, o_fence)
        {
            instance_create(x+365, y, o_fence);
        };
        with instance_create(i2+32, -i2-1180, o_fence)
        {
            instance_create(x+365, y, o_fence);
        };
    };
    with instance_create(128, -750, o_house) //дом1
    {
        instance_create(x+333, y, o_house);
    };
    with instance_create(128, -798, o_house)
    {
        instance_create(x+333, y, o_house);
    };
    with instance_create(178, -1200, o_house) //дом2
    {
        image_xscale = -1;
    };
    with instance_create(511, -1200, o_house)
    {
        image_xscale = -1;
    };
    with instance_create(226, -1200, o_house)
    {
        instance_create(x+333, y, o_house);
    };
    exit;
};
if i1 == 3
{
    for (i2=35; i2&lt;240; i2+=12)   
    {
        with instance_create(i2, -i2-1600, o_fence)
        {
            instance_create(x+333, y, o_fence);
        };
        with instance_create(i2, i2-2100, o_fence)
        {
            instance_create(x+333, y, o_fence);
        };
        with instance_create(i2+32, i2-840, o_fence)
        {
            instance_create(x+365, y, o_fence);
        };
        with instance_create(i2+32, -i2-780, o_fence)
        {
            instance_create(x+365, y, o_fence);
        };
    };
    with instance_create(128, -1850, o_house) //дом1
    {
        instance_create(x+333, y, o_house);
    };
    with instance_create(128, -1898, o_house)
    {
        instance_create(x+333, y, o_house);
    };
    with instance_create(178, -800, o_house) //дом2
    {
        image_xscale = -1;
    };
    with instance_create(511, -800, o_house)
    {
        image_xscale = -1;
    };
    with instance_create(226, -800, o_house)
    {
        instance_create(x+333, y, o_house);
    };
    exit;
};
if i1 == 4
{
    for (i2=0; i2&lt;1500; i2+=100)   
    {
    with instance_create(irandom_range(35, 272), -i2-400, o_house)
        {
            instance_create(x+333, y, o_house);
        };
    };
    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>draw_set_alpha(1-see);
draw_set_colour(c_black);
draw_rectangle(0, 0, 640, 420, 0);
draw_set_alpha(1);

draw_set_colour(make_colour_rgb(64, 32, 0));
    draw_rectangle(-200, -200, 19, 620, 0);
    draw_rectangle(287, -200, 352, 620, 0);
    draw_rectangle(620, -200, 840, 620, 0);
    draw_rectangle(-200, -200, 840, 5, 0);
    draw_rectangle(-200, 415, 840, 620, 0);
    
draw_sprite_ext(s_ramka, 0, 0, 0, 1, 1, 0, c_white, 1);

if see != 1 exit;
draw_set_colour(c_black);
draw_set_alpha(0.5);
    draw_text(486, 16, "лучший результат");
    draw_text(486, 36, global.top_points);
    draw_text(486, 56, "текущий результат");
    draw_text(486, 76, global.points);
draw_set_colour(c_white);
    draw_text(486, 18, "лучший результат");
    draw_text(486, 38, global.top_points);
    draw_text(486, 58, "текущий результат");
    draw_text(486, 78, global.points);
draw_set_alpha(1);
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="9" enumb="27">
      <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 !instance_exists(o_close_window)
{
    with instance_create(0, 0, o_close_window) type = 0;
}
</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>
