parent
7a556943df
commit
8cd8a1a60a
@ -0,0 +1,202 @@
|
||||
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
||||
<object>
|
||||
<spriteName>sBomb</spriteName>
|
||||
<solid>0</solid>
|
||||
<visible>-1</visible>
|
||||
<depth>-110</depth>
|
||||
<persistent>0</persistent>
|
||||
<parentName><undefined></parentName>
|
||||
<maskName><undefined></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>image_speed = 0.25;
|
||||
alarm[0] = 32;
|
||||
alarm[1] = 8;
|
||||
alarm[2] = 16;
|
||||
</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>image_speed = 0.75;
|
||||
</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>image_speed = 0.5;
|
||||
</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>event_user(0);
|
||||
</string>
|
||||
</argument>
|
||||
</arguments>
|
||||
</action>
|
||||
</event>
|
||||
<event eventtype="4" ename="oMissileExpl">
|
||||
<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>event_user(0);
|
||||
</string>
|
||||
</argument>
|
||||
</arguments>
|
||||
</action>
|
||||
</event>
|
||||
<event eventtype="7" 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>instance_create(round(x), round(y), oBombExpl);
|
||||
PlaySoundMono(sndBombExpl);
|
||||
light = instance_create(x, y, oFadeLight32);
|
||||
light.fadespeed = 0.1;
|
||||
light.alarm[0] = 10;
|
||||
if (y > global.waterlevel + global.wateroffset && global.waterlevel != 0) {
|
||||
repeat (4 + floor(random(4))) {
|
||||
bubble = instance_create(x, y, oLBubble);
|
||||
if (instance_exists(bubble)) {
|
||||
bubble.hspeed = 2 - random(4);
|
||||
bubble.vspeed = -0.1 - random(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
instance_destroy();
|
||||
</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>draw_sprite_ext(sprite_index, image_index, round(x), round(y), image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
||||
</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>
|
||||
@ -0,0 +1,100 @@
|
||||
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
||||
<object>
|
||||
<spriteName>sMflash</spriteName>
|
||||
<solid>0</solid>
|
||||
<visible>-1</visible>
|
||||
<depth>-10</depth>
|
||||
<persistent>0</persistent>
|
||||
<parentName><undefined></parentName>
|
||||
<maskName><undefined></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>sprite_index = sMflash;
|
||||
if (global.wbeam) sprite_index = sWMflash;
|
||||
if (global.pbeam) sprite_index = sPMflash;
|
||||
if (global.ibeam) sprite_index = sIMflash;
|
||||
image_speed = 0.5;
|
||||
</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>if (instance_exists(oCharacter)) {
|
||||
if (oCharacter.x != oCharacter.xprevious && image_index > 0) x += oCharacter.x - oCharacter.xprevious;
|
||||
if (oCharacter.y != oCharacter.yprevious && image_index > 0) y += oCharacter.y - oCharacter.yprevious;
|
||||
}
|
||||
</string>
|
||||
</argument>
|
||||
</arguments>
|
||||
</action>
|
||||
</event>
|
||||
<event eventtype="7" enumb="7">
|
||||
<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>instance_destroy();
|
||||
</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>
|
||||
@ -0,0 +1,107 @@
|
||||
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
||||
<object>
|
||||
<spriteName>sPBomb</spriteName>
|
||||
<solid>0</solid>
|
||||
<visible>-1</visible>
|
||||
<depth>-10</depth>
|
||||
<persistent>0</persistent>
|
||||
<parentName><undefined></parentName>
|
||||
<maskName><undefined></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>image_speed = 0.25;
|
||||
alarm[0] = 60;
|
||||
alarm[1] = 30;
|
||||
sfx_play(sndPBombSet);
|
||||
special = 0;
|
||||
</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>image_speed = 0.5;
|
||||
</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>if (special == 0) {
|
||||
instance_create(x, y, oPBombExpl);
|
||||
expl = instance_create(x, y, oPBombExpl);
|
||||
expl.image_angle = 90;
|
||||
expl = instance_create(x, y, oPBombExpl);
|
||||
expl.image_angle = 180;
|
||||
expl = instance_create(x, y, oPBombExpl);
|
||||
expl.image_angle = 270;
|
||||
sfx_play(sndPBombExpl);
|
||||
} else instance_create(x, y, oQueenFinalExplosion);
|
||||
instance_destroy();
|
||||
</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>
|
||||
@ -1,4 +1,4 @@
|
||||
/// popup_seed
|
||||
with (oPopupTextSeed) instance_destroy();
|
||||
var t = instance_create(0, 0, oPopupTextSeed);
|
||||
t.text = argument0;
|
||||
t.text = argument0;
|
||||
|
||||
@ -0,0 +1,241 @@
|
||||
/// shoot_beam_receive(aspr2x, aspr2y, direction, charge)
|
||||
if (argument3 < 1) argument3 = 0;
|
||||
instance_create(argument0, argument1, oMflashMulti);
|
||||
beams = 1;
|
||||
if (global.wbeam && !global.sbeam && argument3 >= 1) beams = 2;
|
||||
if (global.sbeam) beams = 3;
|
||||
i = 0;
|
||||
repeat (beams) {
|
||||
beam = instance_create(argument0, argument1, oBeam);
|
||||
beam.ibeam = global.ibeam;
|
||||
beam.wbeam = global.wbeam;
|
||||
beam.pbeam = global.pbeam;
|
||||
beam.sbeam = global.sbeam;
|
||||
beam.beamid = i;
|
||||
beam.direction = argument2;
|
||||
beam.maindir = argument2;
|
||||
beam.speed = 6.4;
|
||||
beam.offset = 0;
|
||||
beam.chargebeam = argument3;
|
||||
if (global.wbeam) {
|
||||
global.wbdir = !global.wbdir;
|
||||
beam.wbeamdir = global.wbdir;
|
||||
beam.speed = 9;
|
||||
beam.depth = -1000;
|
||||
}
|
||||
if (global.ibeam) beam.alarm[0] = 1 + random(5);
|
||||
if (global.pbeam) beam.alarm[1] = 1;
|
||||
if (argument3 >= 1) beam.speed = 12;
|
||||
beam.image_angle = argument2;
|
||||
beam.fcolor = make_color_rgb(180, 180, 45);
|
||||
if (global.wbeam) beam.fcolor = make_color_rgb(240, 150, 210);
|
||||
if (global.pbeam) beam.fcolor = make_color_rgb(120, 250, 210);
|
||||
if (global.ibeam) beam.fcolor = make_color_rgb(75, 220, 255);
|
||||
beam.falpha = 0.4;
|
||||
beam.fxscale = 0.6;
|
||||
beam.fyscale = 0.6;
|
||||
if (global.sbeam) beam.fxscale = 0.8;
|
||||
if (argument3 >= 1) {
|
||||
beam.fxscale = 1;
|
||||
beam.fyscale = 1;
|
||||
}
|
||||
beam.damage = 5;
|
||||
beam.chargebeam = 0;
|
||||
if (global.wbeam) {
|
||||
beam.damage *= 1.5;
|
||||
}
|
||||
if (global.ibeam) {
|
||||
beam.damage *= 1.5;
|
||||
}
|
||||
if (global.sbeam) {
|
||||
beam.damage *= 0.8;
|
||||
}
|
||||
if (global.pbeam) {
|
||||
beam.damage *= 1.2;
|
||||
}
|
||||
if (argument3 >= 1) {
|
||||
beam.damage *= 3;
|
||||
beam.chargebeam = 1;
|
||||
if (global.wbeam && !global.sbeam) beam.damage *= 0.6;
|
||||
}
|
||||
/*
|
||||
if (aimdirection == 1) {
|
||||
beam.x += 4;
|
||||
if (state != GRIP) beam.y -= 1;
|
||||
}
|
||||
if (aimdirection == 0) beam.x -= 4;
|
||||
if (aimdirection == 6) {
|
||||
beam.y += 4;
|
||||
if (facing == LEFT) beam.x += 1;
|
||||
}
|
||||
*/
|
||||
if (global.ibeam == 0 && global.wbeam == 0 && global.pbeam == 0 && global.sbeam == 0) {
|
||||
if (argument3 == 0) beam.sprite_index = sBeam;
|
||||
if (argument3 >= 1) {
|
||||
beam.sprite_index = sBeam2;
|
||||
beam.offset = 4;
|
||||
}
|
||||
}
|
||||
if (global.ibeam == 0 && global.wbeam == 1 && global.pbeam == 0 && global.sbeam == 0) {
|
||||
if (argument3 == 0) beam.sprite_index = sWBeam;
|
||||
if (argument3 >= 1) beam.sprite_index = sWBeam2;
|
||||
beam.offset = 10;
|
||||
}
|
||||
if (global.ibeam == 1 && global.wbeam == 0 && global.pbeam == 0 && global.sbeam == 0) {
|
||||
if (argument3 == 0) beam.sprite_index = sIBeam;
|
||||
if (argument3 >= 1) {
|
||||
beam.sprite_index = sIBeam2;
|
||||
beam.image_xscale = 1.4;
|
||||
}
|
||||
}
|
||||
if (global.ibeam == 0 && global.wbeam == 0 && global.pbeam == 1 && global.sbeam == 0) {
|
||||
if (argument3 == 0) beam.sprite_index = sPBeam;
|
||||
if (argument3 >= 1) beam.sprite_index = sPBeam2;
|
||||
beam.offset = 4;
|
||||
}
|
||||
if (global.ibeam == 0 && global.wbeam == 0 && global.pbeam == 0 && global.sbeam == 1) {
|
||||
if (argument3 == 0) {
|
||||
beam.sprite_index = sSBeam;
|
||||
beam.offset = 5;
|
||||
}
|
||||
if (argument3 >= 1) {
|
||||
beam.sprite_index = sSBeam2;
|
||||
beam.offset = 8;
|
||||
}
|
||||
}
|
||||
if (global.ibeam == 0 && global.wbeam == 1 && global.pbeam == 0 && global.sbeam == 1) {
|
||||
if (argument3 == 0) beam.sprite_index = sWBeam;
|
||||
if (argument3 >= 1) beam.sprite_index = sWBeam2;
|
||||
beam.offset = 12;
|
||||
}
|
||||
if (global.ibeam == 1 && global.wbeam == 0 && global.pbeam == 0 && global.sbeam == 1) {
|
||||
if (argument3 == 0) {
|
||||
beam.sprite_index = sISBeam;
|
||||
beam.image_xscale = 0.6;
|
||||
}
|
||||
if (argument3 >= 1) {
|
||||
beam.sprite_index = sISBeam;
|
||||
beam.image_xscale = 1.2;
|
||||
}
|
||||
beam.offset = 8;
|
||||
}
|
||||
if (global.ibeam == 0 && global.wbeam == 0 && global.pbeam == 1 && global.sbeam == 1) {
|
||||
if (argument3 == 0) beam.sprite_index = sSPBeam;
|
||||
if (argument3 >= 1) beam.sprite_index = sSPBeam2;
|
||||
beam.offset = 8;
|
||||
}
|
||||
if (global.ibeam == 1 && global.wbeam == 1 && global.pbeam == 0 && global.sbeam == 0) {
|
||||
if (argument3 == 0) beam.sprite_index = sIWBeam;
|
||||
if (argument3 >= 1) beam.sprite_index = sIWBeam2;
|
||||
beam.offset = 8;
|
||||
}
|
||||
if (global.ibeam == 0 && global.wbeam == 1 && global.pbeam == 1 && global.sbeam == 0) {
|
||||
if (argument3 == 0) beam.sprite_index = sPBeam;
|
||||
if (argument3 >= 1) beam.sprite_index = sPBeam2;
|
||||
beam.offset = 8;
|
||||
}
|
||||
if (global.ibeam == 1 && global.wbeam == 0 && global.pbeam == 1 && global.sbeam == 0) {
|
||||
if (argument3 == 0) {
|
||||
beam.sprite_index = sIPBeam;
|
||||
beam.image_xscale = 0.6;
|
||||
beam.image_yscale = 0.6;
|
||||
}
|
||||
if (argument3 >= 1) beam.sprite_index = sIPBeam;
|
||||
beam.offset = 8;
|
||||
}
|
||||
if (global.ibeam == 1 && global.wbeam == 1 && global.pbeam == 0 && global.sbeam == 1) {
|
||||
if (argument3 == 0) beam.sprite_index = sIWBeam;
|
||||
if (argument3 >= 1) beam.sprite_index = sIWBeam2;
|
||||
beam.offset = 8;
|
||||
}
|
||||
if (global.ibeam == 0 && global.wbeam == 1 && global.pbeam == 1 && global.sbeam == 1) {
|
||||
if (argument3 == 0) beam.sprite_index = sPBeam;
|
||||
if (argument3 >= 1) beam.sprite_index = sPBeam2;
|
||||
beam.offset = 8;
|
||||
}
|
||||
if (global.ibeam == 1 && global.wbeam == 0 && global.pbeam == 1 && global.sbeam == 1) {
|
||||
if (argument3 == 0) beam.sprite_index = sISPBeam;
|
||||
if (argument3 >= 1) beam.sprite_index = sISPBeam2;
|
||||
beam.offset = 8;
|
||||
}
|
||||
if (global.ibeam == 1 && global.wbeam == 1 && global.pbeam == 1 && global.sbeam == 0) {
|
||||
if (argument3 == 0) {
|
||||
beam.sprite_index = sIPBeam;
|
||||
beam.image_xscale = 0.6;
|
||||
beam.image_yscale = 0.6;
|
||||
}
|
||||
if (argument3 >= 1) beam.sprite_index = sIPBeam;
|
||||
beam.offset = 8;
|
||||
}
|
||||
if (global.ibeam == 1 && global.wbeam == 1 && global.pbeam == 1 && global.sbeam == 1) {
|
||||
if (argument3 == 0) beam.sprite_index = sISWPBeam;
|
||||
if (argument3 >= 1) beam.sprite_index = sISWPBeam2;
|
||||
beam.offset = 8;
|
||||
}
|
||||
with (beam) if (offset != 0) beam_offset(offset, maindir);
|
||||
i += 1;
|
||||
} // repeat (beams)
|
||||
if (global.ibeam == 0 && global.wbeam == 0 && global.pbeam == 0 && global.sbeam == 0) {
|
||||
if (argument3 == 0) PlaySoundMono(sndFireBeam);
|
||||
if (argument3 >= 1) PlaySoundMono(sndFireBeamC);
|
||||
}
|
||||
if (global.ibeam == 0 && global.wbeam == 1 && global.pbeam == 0 && global.sbeam == 0) {
|
||||
if (argument3 == 0) PlaySoundMono(sndFireBeamW);
|
||||
if (argument3 >= 1) PlaySoundMono(sndFireBeamCW);
|
||||
}
|
||||
if (global.ibeam == 1 && global.wbeam == 0 && global.pbeam == 0 && global.sbeam == 0) {
|
||||
if (argument3 == 0) PlaySoundMono(sndFireBeamI);
|
||||
if (argument3 >= 1) PlaySoundMono(sndFireBeamCI);
|
||||
}
|
||||
if (global.ibeam == 0 && global.wbeam == 0 && global.pbeam == 1 && global.sbeam == 0) {
|
||||
if (argument3 == 0) PlaySoundMono(sndFireBeamP);
|
||||
if (argument3 >= 1) PlaySoundMono(sndFireBeamCP);
|
||||
}
|
||||
if (global.ibeam == 0 && global.wbeam == 0 && global.pbeam == 0 && global.sbeam == 1) {
|
||||
if (argument3 == 0) PlaySoundMono(sndFireBeamS);
|
||||
if (argument3 >= 1) PlaySoundMono(sndFireBeamCS);
|
||||
}
|
||||
if (global.ibeam == 0 && global.wbeam == 1 && global.pbeam == 0 && global.sbeam == 1) {
|
||||
if (argument3 == 0) PlaySoundMono(sndFireBeamSW);
|
||||
if (argument3 >= 1) PlaySoundMono(sndFireBeamCSW);
|
||||
}
|
||||
if (global.ibeam == 1 && global.wbeam == 0 && global.pbeam == 0 && global.sbeam == 1) {
|
||||
if (argument3 == 0) PlaySoundMono(sndFireBeamSI);
|
||||
if (argument3 >= 1) PlaySoundMono(sndFireBeamCSI);
|
||||
}
|
||||
if (global.ibeam == 0 && global.wbeam == 0 && global.pbeam == 1 && global.sbeam == 1) {
|
||||
if (argument3 == 0) PlaySoundMono(sndFireBeamSP);
|
||||
if (argument3 >= 1) PlaySoundMono(sndFireBeamCSP);
|
||||
}
|
||||
if (global.ibeam == 1 && global.wbeam == 1 && global.pbeam == 0 && global.sbeam == 0) {
|
||||
if (argument3 == 0) PlaySoundMono(sndFireBeamWI);
|
||||
if (argument3 >= 1) PlaySoundMono(sndFireBeamCWI);
|
||||
}
|
||||
if (global.ibeam == 0 && global.wbeam == 1 && global.pbeam == 1 && global.sbeam == 0) {
|
||||
if (argument3 == 0) PlaySoundMono(sndFireBeamWP);
|
||||
if (argument3 >= 1) PlaySoundMono(sndFireBeamCWP);
|
||||
}
|
||||
if (global.ibeam == 1 && global.wbeam == 0 && global.pbeam == 1 && global.sbeam == 0) {
|
||||
if (argument3 == 0) PlaySoundMono(sndFireBeamIP);
|
||||
if (argument3 >= 1) PlaySoundMono(sndFireBeamCIP);
|
||||
}
|
||||
if (global.ibeam == 1 && global.wbeam == 1 && global.pbeam == 0 && global.sbeam == 1) {
|
||||
if (argument3 == 0) PlaySoundMono(sndFireBeamSWI);
|
||||
if (argument3 == 1) PlaySoundMono(sndFireBeamCSWI);
|
||||
}
|
||||
if (global.ibeam == 0 && global.wbeam == 1 && global.pbeam == 1 && global.sbeam == 1) {
|
||||
if (argument3 == 0) PlaySoundMono(sndFireBeamSWP);
|
||||
if (argument3 >= 1) PlaySoundMono(sndFireBeamCSWP);
|
||||
}
|
||||
if (global.ibeam == 1 && global.wbeam == 0 && global.pbeam == 1 && global.sbeam == 1) {
|
||||
if (argument3 == 0) PlaySoundMono(sndFireBeamSIP);
|
||||
if (argument3 >= 1) PlaySoundMono(sndFireBeamCSIP);
|
||||
}
|
||||
if (global.ibeam == 1 && global.wbeam == 1 && global.pbeam == 1 && global.sbeam == 0) {
|
||||
if (argument3 == 0) PlaySoundMono(sndFireBeamWIP);
|
||||
if (argument3 >= 1) PlaySoundMono(sndFireBeamCWIP);
|
||||
}
|
||||
if (global.ibeam == 1 && global.wbeam == 1 && global.pbeam == 1 && global.sbeam == 1) {
|
||||
if (argument3 == 0) PlaySoundMono(sndFireBeamSWIP);
|
||||
if (argument3 >= 1) PlaySoundMono(sndFireBeamCSWIP);
|
||||
}
|
||||
@ -0,0 +1,51 @@
|
||||
/// shoot_missile_receive(direction, currentweapon, x, y)
|
||||
if (argument1 == 1 && global.missiles > 0 || argument1 == 2 && global.smissiles > 0) {
|
||||
msl = instance_create(argument2, argument3, oMissile);
|
||||
msl.direction = argument0;
|
||||
msl.speed = 6.4;
|
||||
msl.image_angle = argument0;
|
||||
sfx_play(sndFireMissile);
|
||||
/*
|
||||
if (argument0 == 180) {
|
||||
msl.x += 4;
|
||||
if (state != GRIP) msl.y -= 1;
|
||||
}
|
||||
if (argument0 == 0) msl.x -= 4;
|
||||
if (argument0 == 90) {
|
||||
msl.y += 4;
|
||||
if (facing == LEFT) msl.x += 1;
|
||||
}
|
||||
*/
|
||||
msl.smissile = argument1 == 2;
|
||||
if (argument1 == 1) {
|
||||
msl.sprite_index = sMissile;
|
||||
msl.alarm[0] = 1;
|
||||
msl.damage = 20;
|
||||
}
|
||||
if (argument1 == 2) {
|
||||
msl.sprite_index = sSMissile;
|
||||
msl.alarm[0] = 1;
|
||||
msl.damage = 100;
|
||||
PlaySoundMono(sndFlyby);
|
||||
}
|
||||
if (global.icemissiles && argument1 == 1){
|
||||
msl.sprite_index = sIceMissile;
|
||||
}
|
||||
with (msl) {
|
||||
trail = instance_create(argument2, argument3, oMissileTrail);
|
||||
trail.direction = direction;
|
||||
trail.smissile = smissile;
|
||||
trail.fadein_speed = 0.04;
|
||||
if (argument1 == 2) {
|
||||
trail.sprite_index = sSMissileTrail1;
|
||||
trail.fadein_speed = 0.1;
|
||||
}
|
||||
/*
|
||||
if(global.icemissiles && argument1 == 1){
|
||||
trail.sprite_index = sIceMissileTrail;
|
||||
}
|
||||
*/
|
||||
}
|
||||
} // if (argument1 == 1 && global.missiles > 0 || argument1 == 2 && global.smissiles > 0)
|
||||
if (argument1 == 2 && global.smissiles == 0) argument1 = 1;
|
||||
if (argument1 == 1 && global.missiles == 0) argument1 = 0;
|
||||
@ -0,0 +1,27 @@
|
||||
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
||||
<sprite>
|
||||
<type>0</type>
|
||||
<xorig>0</xorig>
|
||||
<yorigin>0</yorigin>
|
||||
<colkind>1</colkind>
|
||||
<coltolerance>0</coltolerance>
|
||||
<sepmasks>0</sepmasks>
|
||||
<bboxmode>0</bboxmode>
|
||||
<bbox_left>0</bbox_left>
|
||||
<bbox_right>15</bbox_right>
|
||||
<bbox_top>0</bbox_top>
|
||||
<bbox_bottom>11</bbox_bottom>
|
||||
<HTile>0</HTile>
|
||||
<VTile>0</VTile>
|
||||
<TextureGroups>
|
||||
<TextureGroup0>0</TextureGroup0>
|
||||
</TextureGroups>
|
||||
<For3D>0</For3D>
|
||||
<width>16</width>
|
||||
<height>12</height>
|
||||
<frames>
|
||||
<frame index="0">images\sGUIIceMissile_0.png</frame>
|
||||
<frame index="1">images\sGUIIceMissile_1.png</frame>
|
||||
<frame index="2">images\sGUIIceMissile_2.png</frame>
|
||||
</frames>
|
||||
</sprite>
|
||||
@ -0,0 +1,28 @@
|
||||
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
||||
<sprite>
|
||||
<type>0</type>
|
||||
<xorig>4</xorig>
|
||||
<yorigin>7</yorigin>
|
||||
<colkind>1</colkind>
|
||||
<coltolerance>0</coltolerance>
|
||||
<sepmasks>0</sepmasks>
|
||||
<bboxmode>0</bboxmode>
|
||||
<bbox_left>0</bbox_left>
|
||||
<bbox_right>7</bbox_right>
|
||||
<bbox_top>0</bbox_top>
|
||||
<bbox_bottom>14</bbox_bottom>
|
||||
<HTile>0</HTile>
|
||||
<VTile>0</VTile>
|
||||
<TextureGroups>
|
||||
<TextureGroup0>0</TextureGroup0>
|
||||
</TextureGroups>
|
||||
<For3D>0</For3D>
|
||||
<width>8</width>
|
||||
<height>15</height>
|
||||
<frames>
|
||||
<frame index="0">images\sIMPickup_0.png</frame>
|
||||
<frame index="1">images\sIMPickup_1.png</frame>
|
||||
<frame index="2">images\sIMPickup_2.png</frame>
|
||||
<frame index="3">images\sIMPickup_3.png</frame>
|
||||
</frames>
|
||||
</sprite>
|
||||
@ -0,0 +1,28 @@
|
||||
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
||||
<sprite>
|
||||
<type>0</type>
|
||||
<xorig>8</xorig>
|
||||
<yorigin>4</yorigin>
|
||||
<colkind>1</colkind>
|
||||
<coltolerance>0</coltolerance>
|
||||
<sepmasks>0</sepmasks>
|
||||
<bboxmode>0</bboxmode>
|
||||
<bbox_left>0</bbox_left>
|
||||
<bbox_right>14</bbox_right>
|
||||
<bbox_top>0</bbox_top>
|
||||
<bbox_bottom>7</bbox_bottom>
|
||||
<HTile>0</HTile>
|
||||
<VTile>0</VTile>
|
||||
<TextureGroups>
|
||||
<TextureGroup0>0</TextureGroup0>
|
||||
</TextureGroups>
|
||||
<For3D>0</For3D>
|
||||
<width>15</width>
|
||||
<height>8</height>
|
||||
<frames>
|
||||
<frame index="0">images\sIceMissile_0.png</frame>
|
||||
<frame index="1">images\sIceMissile_1.png</frame>
|
||||
<frame index="2">images\sIceMissile_2.png</frame>
|
||||
<frame index="3">images\sIceMissile_3.png</frame>
|
||||
</frames>
|
||||
</sprite>
|
||||
@ -0,0 +1,28 @@
|
||||
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
||||
<sprite>
|
||||
<type>0</type>
|
||||
<xorig>4</xorig>
|
||||
<yorigin>4</yorigin>
|
||||
<colkind>1</colkind>
|
||||
<coltolerance>0</coltolerance>
|
||||
<sepmasks>0</sepmasks>
|
||||
<bboxmode>0</bboxmode>
|
||||
<bbox_left>0</bbox_left>
|
||||
<bbox_right>7</bbox_right>
|
||||
<bbox_top>1</bbox_top>
|
||||
<bbox_bottom>6</bbox_bottom>
|
||||
<HTile>0</HTile>
|
||||
<VTile>0</VTile>
|
||||
<TextureGroups>
|
||||
<TextureGroup0>0</TextureGroup0>
|
||||
</TextureGroups>
|
||||
<For3D>0</For3D>
|
||||
<width>8</width>
|
||||
<height>8</height>
|
||||
<frames>
|
||||
<frame index="0">images\sIceMissileFlame_0.png</frame>
|
||||
<frame index="1">images\sIceMissileFlame_1.png</frame>
|
||||
<frame index="2">images\sIceMissileFlame_2.png</frame>
|
||||
<frame index="3">images\sIceMissileFlame_3.png</frame>
|
||||
</frames>
|
||||
</sprite>
|
||||
@ -0,0 +1,25 @@
|
||||
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
||||
<sprite>
|
||||
<type>0</type>
|
||||
<xorig>156</xorig>
|
||||
<yorigin>2</yorigin>
|
||||
<colkind>1</colkind>
|
||||
<coltolerance>0</coltolerance>
|
||||
<sepmasks>0</sepmasks>
|
||||
<bboxmode>0</bboxmode>
|
||||
<bbox_left>0</bbox_left>
|
||||
<bbox_right>159</bbox_right>
|
||||
<bbox_top>0</bbox_top>
|
||||
<bbox_bottom>3</bbox_bottom>
|
||||
<HTile>0</HTile>
|
||||
<VTile>0</VTile>
|
||||
<TextureGroups>
|
||||
<TextureGroup0>0</TextureGroup0>
|
||||
</TextureGroups>
|
||||
<For3D>0</For3D>
|
||||
<width>160</width>
|
||||
<height>4</height>
|
||||
<frames>
|
||||
<frame index="0">images\sIceMissileTrail_0.png</frame>
|
||||
</frames>
|
||||
</sprite>
|
||||
Loading…
Reference in new issue