CommitLog |
|
@ -7,6 +7,7 @@
|
||||||
<sounds name="sound">
|
<sounds name="sound">
|
||||||
<sound>sound\snd_engine</sound>
|
<sound>sound\snd_engine</sound>
|
||||||
<sound>sound\snd_shoot</sound>
|
<sound>sound\snd_shoot</sound>
|
||||||
|
<sound>sound\snd_boom</sound>
|
||||||
</sounds>
|
</sounds>
|
||||||
<sprites name="sprites">
|
<sprites name="sprites">
|
||||||
<sprite>sprites\spr_player</sprite>
|
<sprite>sprites\spr_player</sprite>
|
||||||
|
@ -29,6 +30,8 @@
|
||||||
<object>objects\obj_bullet</object>
|
<object>objects\obj_bullet</object>
|
||||||
<object>objects\obj_asteriod</object>
|
<object>objects\obj_asteriod</object>
|
||||||
<object>objects\obj_chunk</object>
|
<object>objects\obj_chunk</object>
|
||||||
|
<object>objects\obj_boom_fx</object>
|
||||||
|
<object>objects\obj_chunk_item</object>
|
||||||
</objects>
|
</objects>
|
||||||
<rooms name="rooms">
|
<rooms name="rooms">
|
||||||
<room>rooms\rm_game</room>
|
<room>rooms\rm_game</room>
|
||||||
|
|
BIN
help.rtf
|
@ -5,7 +5,7 @@
|
||||||
<visible>-1</visible>
|
<visible>-1</visible>
|
||||||
<depth>0</depth>
|
<depth>0</depth>
|
||||||
<persistent>0</persistent>
|
<persistent>0</persistent>
|
||||||
<parentName><undefined></parentName>
|
<parentName>obj_chunk_item</parentName>
|
||||||
<maskName><undefined></maskName>
|
<maskName><undefined></maskName>
|
||||||
<events>
|
<events>
|
||||||
<event eventtype="0" enumb="0">
|
<event eventtype="0" enumb="0">
|
||||||
|
|
63
objects/obj_boom_fx.object.gmx
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
||||||
|
<object>
|
||||||
|
<spriteName>spr_boom</spriteName>
|
||||||
|
<solid>0</solid>
|
||||||
|
<visible>-1</visible>
|
||||||
|
<depth>-60</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>audio_play_sound(snd_boom,3,false);
|
||||||
|
</string>
|
||||||
|
</argument>
|
||||||
|
</arguments>
|
||||||
|
</action>
|
||||||
|
</event>
|
||||||
|
<event eventtype="7" enumb="7">
|
||||||
|
<action>
|
||||||
|
<libid>1</libid>
|
||||||
|
<id>203</id>
|
||||||
|
<kind>0</kind>
|
||||||
|
<userelative>0</userelative>
|
||||||
|
<isquestion>0</isquestion>
|
||||||
|
<useapplyto>-1</useapplyto>
|
||||||
|
<exetype>1</exetype>
|
||||||
|
<functionname>action_kill_object</functionname>
|
||||||
|
<codestring></codestring>
|
||||||
|
<whoName>self</whoName>
|
||||||
|
<relative>0</relative>
|
||||||
|
<isnot>0</isnot>
|
||||||
|
</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>
|
|
@ -63,31 +63,26 @@ if(step_counter == 60*room_speed)
|
||||||
<event eventtype="4" ename="obj_asteriod">
|
<event eventtype="4" ename="obj_asteriod">
|
||||||
<action>
|
<action>
|
||||||
<libid>1</libid>
|
<libid>1</libid>
|
||||||
<id>203</id>
|
<id>603</id>
|
||||||
<kind>0</kind>
|
<kind>7</kind>
|
||||||
<userelative>0</userelative>
|
<userelative>0</userelative>
|
||||||
<isquestion>0</isquestion>
|
<isquestion>0</isquestion>
|
||||||
<useapplyto>-1</useapplyto>
|
<useapplyto>-1</useapplyto>
|
||||||
<exetype>1</exetype>
|
<exetype>2</exetype>
|
||||||
<functionname>action_kill_object</functionname>
|
<functionname></functionname>
|
||||||
<codestring></codestring>
|
|
||||||
<whoName>other</whoName>
|
|
||||||
<relative>0</relative>
|
|
||||||
<isnot>0</isnot>
|
|
||||||
</action>
|
|
||||||
<action>
|
|
||||||
<libid>1</libid>
|
|
||||||
<id>203</id>
|
|
||||||
<kind>0</kind>
|
|
||||||
<userelative>0</userelative>
|
|
||||||
<isquestion>0</isquestion>
|
|
||||||
<useapplyto>-1</useapplyto>
|
|
||||||
<exetype>1</exetype>
|
|
||||||
<functionname>action_kill_object</functionname>
|
|
||||||
<codestring></codestring>
|
<codestring></codestring>
|
||||||
<whoName>self</whoName>
|
<whoName>self</whoName>
|
||||||
<relative>0</relative>
|
<relative>0</relative>
|
||||||
<isnot>0</isnot>
|
<isnot>0</isnot>
|
||||||
|
<arguments>
|
||||||
|
<argument>
|
||||||
|
<kind>1</kind>
|
||||||
|
<string>instance_destroy(other);
|
||||||
|
instance_create(other.x,other.y,obj_boom_fx)
|
||||||
|
instance_destroy(id);
|
||||||
|
</string>
|
||||||
|
</argument>
|
||||||
|
</arguments>
|
||||||
</action>
|
</action>
|
||||||
</event>
|
</event>
|
||||||
</events>
|
</events>
|
||||||
|
|
|
@ -26,10 +26,7 @@
|
||||||
<argument>
|
<argument>
|
||||||
<kind>1</kind>
|
<kind>1</kind>
|
||||||
<string>/// GENERATE CHUNK
|
<string>/// GENERATE CHUNK
|
||||||
var total_size = CHUNK_SIZE*TILE_SIZE;
|
instance_list = ds_list_create();
|
||||||
|
|
||||||
instance_list = array_create(total_size);
|
|
||||||
cur_inst = 0;
|
|
||||||
loaded = true;
|
loaded = true;
|
||||||
|
|
||||||
// GENERATION
|
// GENERATION
|
||||||
|
@ -37,10 +34,12 @@ for(var xx = 0; xx < CHUNK_SIZE*TILE_SIZE; xx+= TILE_SIZE)
|
||||||
{
|
{
|
||||||
for(var yy = 0; yy < CHUNK_SIZE*TILE_SIZE; yy+= TILE_SIZE)
|
for(var yy = 0; yy < CHUNK_SIZE*TILE_SIZE; yy+= TILE_SIZE)
|
||||||
{
|
{
|
||||||
if(random_range(0,100) > 50)
|
if(random_range(0,100) < 5)
|
||||||
{
|
{
|
||||||
instance_list[cur_inst] = instance_create(x+xx,y+yy, obj_asteriod);
|
var inst = instance_create(x+xx,y+yy, obj_asteriod);
|
||||||
cur_inst ++;
|
inst.CHUNK_CONTAINED = id;
|
||||||
|
|
||||||
|
ds_list_add(instance_list, inst);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -98,9 +97,9 @@ if(distance_to_object(obj_player) > chunk_total_size*3)
|
||||||
<kind>1</kind>
|
<kind>1</kind>
|
||||||
<string>/// load
|
<string>/// load
|
||||||
|
|
||||||
for(var i = 0; i < cur_inst; i++)
|
for(var i = 0; i < ds_list_size(instance_list); i++)
|
||||||
{
|
{
|
||||||
instance_activate_object(instance_list[i]);
|
instance_activate_object(instance_list[| i]);
|
||||||
}
|
}
|
||||||
loaded = true;
|
loaded = true;
|
||||||
</string>
|
</string>
|
||||||
|
@ -126,12 +125,11 @@ loaded = true;
|
||||||
<argument>
|
<argument>
|
||||||
<kind>1</kind>
|
<kind>1</kind>
|
||||||
<string>/// unload
|
<string>/// unload
|
||||||
for(var i = 0; i < cur_inst; i++)
|
for(var i = 0; i < ds_list_size(instance_list); i++)
|
||||||
{
|
{
|
||||||
instance_deactivate_object(instance_list[i]);
|
instance_deactivate_object(instance_list[| i]);
|
||||||
}
|
}
|
||||||
loaded = false;
|
loaded = false;
|
||||||
show_debug_message("Unloading chunk: "+string(x)+","+string(y));
|
|
||||||
instance_deactivate_object(id);
|
instance_deactivate_object(id);
|
||||||
</string>
|
</string>
|
||||||
</argument>
|
</argument>
|
||||||
|
|
48
objects/obj_chunk_item.object.gmx
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
||||||
|
<object>
|
||||||
|
<spriteName><undefined></spriteName>
|
||||||
|
<solid>0</solid>
|
||||||
|
<visible>-1</visible>
|
||||||
|
<depth>0</depth>
|
||||||
|
<persistent>0</persistent>
|
||||||
|
<parentName><undefined></parentName>
|
||||||
|
<maskName><undefined></maskName>
|
||||||
|
<events>
|
||||||
|
<event eventtype="1" 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 indx = ds_list_find_index(CHUNK_CONTAINED.instance_list,id);
|
||||||
|
ds_list_delete(CHUNK_CONTAINED.instance_list,indx);
|
||||||
|
</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>
|
|
@ -32,14 +32,12 @@ for(var i = 0; i < 16; i ++)
|
||||||
var chunkat = instance_position(cX[i], cY[i],obj_chunk);
|
var chunkat = instance_position(cX[i], cY[i],obj_chunk);
|
||||||
if(chunkat == noone) // create
|
if(chunkat == noone) // create
|
||||||
{
|
{
|
||||||
show_debug_message("Generating chunk: "+string(cX[i])+","+string(cY[i]));
|
|
||||||
instance_create(cX[i],cY[i],obj_chunk);
|
instance_create(cX[i],cY[i],obj_chunk);
|
||||||
}
|
}
|
||||||
else // load
|
else // load
|
||||||
{
|
{
|
||||||
if(chunkat.loaded = false)
|
if(chunkat.loaded = false)
|
||||||
{
|
{
|
||||||
show_debug_message("Loading chunk: #"+string(chunkat)+" "+string(cX[i])+","+string(cY[i]));
|
|
||||||
with(chunkat){
|
with(chunkat){
|
||||||
event_user(1);
|
event_user(1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<spriteName>spr_player</spriteName>
|
<spriteName>spr_player</spriteName>
|
||||||
<solid>0</solid>
|
<solid>0</solid>
|
||||||
<visible>-1</visible>
|
<visible>-1</visible>
|
||||||
<depth>0</depth>
|
<depth>-100</depth>
|
||||||
<persistent>0</persistent>
|
<persistent>0</persistent>
|
||||||
<parentName><undefined></parentName>
|
<parentName><undefined></parentName>
|
||||||
<maskName><undefined></maskName>
|
<maskName><undefined></maskName>
|
||||||
|
|
BIN
sound/audio/snd_boom.wav
Normal file
BIN
sound/audio/sound2_435415__v-ktor__explosion10.wav
Normal file
29
sound/snd_boom.sound.gmx
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
||||||
|
<sound>
|
||||||
|
<kind>0</kind>
|
||||||
|
<extension>.wav</extension>
|
||||||
|
<origname>sound\audio\snd_boom.wav</origname>
|
||||||
|
<effects>0</effects>
|
||||||
|
<volume>
|
||||||
|
<volume>1</volume>
|
||||||
|
</volume>
|
||||||
|
<pan>0</pan>
|
||||||
|
<bitRates>
|
||||||
|
<bitRate>192</bitRate>
|
||||||
|
</bitRates>
|
||||||
|
<sampleRates>
|
||||||
|
<sampleRate>44100</sampleRate>
|
||||||
|
</sampleRates>
|
||||||
|
<types>
|
||||||
|
<type>1</type>
|
||||||
|
</types>
|
||||||
|
<bitDepths>
|
||||||
|
<bitDepth>16</bitDepth>
|
||||||
|
</bitDepths>
|
||||||
|
<preload>-1</preload>
|
||||||
|
<data>snd_boom.wav</data>
|
||||||
|
<compressed>1</compressed>
|
||||||
|
<streamed>1</streamed>
|
||||||
|
<uncompressOnLoad>0</uncompressOnLoad>
|
||||||
|
<audioGroup>0</audioGroup>
|
||||||
|
</sound>
|
29
sound/sound2_435415__v-ktor__explosion10.sound.gmx
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
||||||
|
<sound>
|
||||||
|
<kind>0</kind>
|
||||||
|
<extension>.wav</extension>
|
||||||
|
<origname>sound\audio\sound2_435415__v-ktor__explosion10.wav</origname>
|
||||||
|
<effects>0</effects>
|
||||||
|
<volume>
|
||||||
|
<volume>1</volume>
|
||||||
|
</volume>
|
||||||
|
<pan>0</pan>
|
||||||
|
<bitRates>
|
||||||
|
<bitRate>192</bitRate>
|
||||||
|
</bitRates>
|
||||||
|
<sampleRates>
|
||||||
|
<sampleRate>44100</sampleRate>
|
||||||
|
</sampleRates>
|
||||||
|
<types>
|
||||||
|
<type>0</type>
|
||||||
|
</types>
|
||||||
|
<bitDepths>
|
||||||
|
<bitDepth>16</bitDepth>
|
||||||
|
</bitDepths>
|
||||||
|
<preload>-1</preload>
|
||||||
|
<data>sound2_435415__v-ktor__explosion10.wav</data>
|
||||||
|
<compressed>0</compressed>
|
||||||
|
<streamed>0</streamed>
|
||||||
|
<uncompressOnLoad>0</uncompressOnLoad>
|
||||||
|
<audioGroup>0</audioGroup>
|
||||||
|
</sound>
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 598 B |
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 855 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 672 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 521 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 387 B |
Before Width: | Height: | Size: 959 B After Width: | Height: | Size: 275 B |
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 2.5 KiB |
BIN
sprites/images/spr_boom_20.png
Normal file
After Width: | Height: | Size: 232 B |
BIN
sprites/images/spr_boom_21.png
Normal file
After Width: | Height: | Size: 163 B |
BIN
sprites/images/spr_boom_22.png
Normal file
After Width: | Height: | Size: 111 B |
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 2.3 KiB |
|
@ -1,8 +1,8 @@
|
||||||
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
||||||
<sprite>
|
<sprite>
|
||||||
<type>0</type>
|
<type>0</type>
|
||||||
<xorig>0</xorig>
|
<xorig>16</xorig>
|
||||||
<yorigin>0</yorigin>
|
<yorigin>16</yorigin>
|
||||||
<colkind>1</colkind>
|
<colkind>1</colkind>
|
||||||
<coltolerance>0</coltolerance>
|
<coltolerance>0</coltolerance>
|
||||||
<sepmasks>0</sepmasks>
|
<sepmasks>0</sepmasks>
|
||||||
|
|
|
@ -1,24 +1,24 @@
|
||||||
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
||||||
<sprite>
|
<sprite>
|
||||||
<type>0</type>
|
<type>0</type>
|
||||||
<xorig>0</xorig>
|
<xorig>16</xorig>
|
||||||
<yorigin>0</yorigin>
|
<yorigin>16</yorigin>
|
||||||
<colkind>1</colkind>
|
<colkind>1</colkind>
|
||||||
<coltolerance>0</coltolerance>
|
<coltolerance>0</coltolerance>
|
||||||
<sepmasks>0</sepmasks>
|
<sepmasks>0</sepmasks>
|
||||||
<bboxmode>0</bboxmode>
|
<bboxmode>0</bboxmode>
|
||||||
<bbox_left>0</bbox_left>
|
<bbox_left>0</bbox_left>
|
||||||
<bbox_right>511</bbox_right>
|
<bbox_right>31</bbox_right>
|
||||||
<bbox_top>0</bbox_top>
|
<bbox_top>0</bbox_top>
|
||||||
<bbox_bottom>183</bbox_bottom>
|
<bbox_bottom>31</bbox_bottom>
|
||||||
<HTile>0</HTile>
|
<HTile>0</HTile>
|
||||||
<VTile>0</VTile>
|
<VTile>0</VTile>
|
||||||
<TextureGroups>
|
<TextureGroups>
|
||||||
<TextureGroup0>0</TextureGroup0>
|
<TextureGroup0>0</TextureGroup0>
|
||||||
</TextureGroups>
|
</TextureGroups>
|
||||||
<For3D>0</For3D>
|
<For3D>0</For3D>
|
||||||
<width>512</width>
|
<width>32</width>
|
||||||
<height>256</height>
|
<height>32</height>
|
||||||
<frames>
|
<frames>
|
||||||
<frame index="0">images\spr_boom_0.png</frame>
|
<frame index="0">images\spr_boom_0.png</frame>
|
||||||
<frame index="1">images\spr_boom_1.png</frame>
|
<frame index="1">images\spr_boom_1.png</frame>
|
||||||
|
@ -40,5 +40,8 @@
|
||||||
<frame index="17">images\spr_boom_17.png</frame>
|
<frame index="17">images\spr_boom_17.png</frame>
|
||||||
<frame index="18">images\spr_boom_18.png</frame>
|
<frame index="18">images\spr_boom_18.png</frame>
|
||||||
<frame index="19">images\spr_boom_19.png</frame>
|
<frame index="19">images\spr_boom_19.png</frame>
|
||||||
|
<frame index="20">images\spr_boom_20.png</frame>
|
||||||
|
<frame index="21">images\spr_boom_21.png</frame>
|
||||||
|
<frame index="22">images\spr_boom_22.png</frame>
|
||||||
</frames>
|
</frames>
|
||||||
</sprite>
|
</sprite>
|
||||||
|
|