mirror of
https://github.com/Steffo99/stack.git
synced 2024-11-28 18:54:20 +00:00
Aggiunti nuovi muri usabili.
This commit is contained in:
parent
6a199b9eca
commit
ecec3da74d
9 changed files with 445 additions and 4 deletions
|
@ -235,6 +235,10 @@
|
|||
</objects>
|
||||
<objects name="Piazzabili">
|
||||
<object>objects\o_wall_norm</object>
|
||||
<object>objects\o_wall_norm_L_D</object>
|
||||
<object>objects\o_wall_norm_L_U</object>
|
||||
<object>objects\o_wall_norm_R_U</object>
|
||||
<object>objects\o_wall_norm_R_D</object>
|
||||
</objects>
|
||||
</objects>
|
||||
</objects>
|
||||
|
|
108
objects/o_wall_norm_L_D.object.gmx
Normal file
108
objects/o_wall_norm_L_D.object.gmx
Normal file
|
@ -0,0 +1,108 @@
|
|||
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
||||
<object>
|
||||
<spriteName>i_half_L_D</spriteName>
|
||||
<solid>-1</solid>
|
||||
<visible>-1</visible>
|
||||
<depth>0</depth>
|
||||
<persistent>0</persistent>
|
||||
<parentName>o_generale</parentName>
|
||||
<maskName><undefined></maskName>
|
||||
<events>
|
||||
<event eventtype="8" enumb="0">
|
||||
<action>
|
||||
<libid>1</libid>
|
||||
<id>612</id>
|
||||
<kind>0</kind>
|
||||
<userelative>0</userelative>
|
||||
<isquestion>-1</isquestion>
|
||||
<useapplyto>-1</useapplyto>
|
||||
<exetype>1</exetype>
|
||||
<functionname>action_if_variable</functionname>
|
||||
<codestring></codestring>
|
||||
<whoName>self</whoName>
|
||||
<relative>0</relative>
|
||||
<isnot>0</isnot>
|
||||
<arguments>
|
||||
<argument>
|
||||
<kind>0</kind>
|
||||
<string>debug_mode</string>
|
||||
</argument>
|
||||
<argument>
|
||||
<kind>0</kind>
|
||||
<string>true</string>
|
||||
</argument>
|
||||
<argument>
|
||||
<kind>4</kind>
|
||||
<string>0</string>
|
||||
</argument>
|
||||
</arguments>
|
||||
</action>
|
||||
<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_color(c_ltgray);
|
||||
physics_draw_debug();
|
||||
</string>
|
||||
</argument>
|
||||
</arguments>
|
||||
</action>
|
||||
<action>
|
||||
<libid>1</libid>
|
||||
<id>421</id>
|
||||
<kind>3</kind>
|
||||
<userelative>0</userelative>
|
||||
<isquestion>0</isquestion>
|
||||
<useapplyto>0</useapplyto>
|
||||
<exetype>0</exetype>
|
||||
<functionname></functionname>
|
||||
<codestring></codestring>
|
||||
<whoName>self</whoName>
|
||||
<relative>0</relative>
|
||||
<isnot>0</isnot>
|
||||
</action>
|
||||
<action>
|
||||
<libid>1</libid>
|
||||
<id>500</id>
|
||||
<kind>0</kind>
|
||||
<userelative>0</userelative>
|
||||
<isquestion>0</isquestion>
|
||||
<useapplyto>0</useapplyto>
|
||||
<exetype>2</exetype>
|
||||
<functionname></functionname>
|
||||
<codestring>draw_self();</codestring>
|
||||
<whoName>self</whoName>
|
||||
<relative>0</relative>
|
||||
<isnot>0</isnot>
|
||||
</action>
|
||||
</event>
|
||||
</events>
|
||||
<PhysicsObject>-1</PhysicsObject>
|
||||
<PhysicsObjectSensor>0</PhysicsObjectSensor>
|
||||
<PhysicsObjectShape>2</PhysicsObjectShape>
|
||||
<PhysicsObjectDensity>0</PhysicsObjectDensity>
|
||||
<PhysicsObjectRestitution>0</PhysicsObjectRestitution>
|
||||
<PhysicsObjectGroup>1</PhysicsObjectGroup>
|
||||
<PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
|
||||
<PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
|
||||
<PhysicsObjectFriction>0.5</PhysicsObjectFriction>
|
||||
<PhysicsObjectAwake>0</PhysicsObjectAwake>
|
||||
<PhysicsObjectKinematic>0</PhysicsObjectKinematic>
|
||||
<PhysicsShapePoints>
|
||||
<point>0,0</point>
|
||||
<point>32,32</point>
|
||||
<point>0,32</point>
|
||||
</PhysicsShapePoints>
|
||||
</object>
|
108
objects/o_wall_norm_L_U.object.gmx
Normal file
108
objects/o_wall_norm_L_U.object.gmx
Normal file
|
@ -0,0 +1,108 @@
|
|||
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
||||
<object>
|
||||
<spriteName>i_half_L_U</spriteName>
|
||||
<solid>-1</solid>
|
||||
<visible>-1</visible>
|
||||
<depth>0</depth>
|
||||
<persistent>0</persistent>
|
||||
<parentName>o_generale</parentName>
|
||||
<maskName><undefined></maskName>
|
||||
<events>
|
||||
<event eventtype="8" enumb="0">
|
||||
<action>
|
||||
<libid>1</libid>
|
||||
<id>612</id>
|
||||
<kind>0</kind>
|
||||
<userelative>0</userelative>
|
||||
<isquestion>-1</isquestion>
|
||||
<useapplyto>-1</useapplyto>
|
||||
<exetype>1</exetype>
|
||||
<functionname>action_if_variable</functionname>
|
||||
<codestring></codestring>
|
||||
<whoName>self</whoName>
|
||||
<relative>0</relative>
|
||||
<isnot>0</isnot>
|
||||
<arguments>
|
||||
<argument>
|
||||
<kind>0</kind>
|
||||
<string>debug_mode</string>
|
||||
</argument>
|
||||
<argument>
|
||||
<kind>0</kind>
|
||||
<string>true</string>
|
||||
</argument>
|
||||
<argument>
|
||||
<kind>4</kind>
|
||||
<string>0</string>
|
||||
</argument>
|
||||
</arguments>
|
||||
</action>
|
||||
<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_color(c_ltgray);
|
||||
physics_draw_debug();
|
||||
</string>
|
||||
</argument>
|
||||
</arguments>
|
||||
</action>
|
||||
<action>
|
||||
<libid>1</libid>
|
||||
<id>421</id>
|
||||
<kind>3</kind>
|
||||
<userelative>0</userelative>
|
||||
<isquestion>0</isquestion>
|
||||
<useapplyto>0</useapplyto>
|
||||
<exetype>0</exetype>
|
||||
<functionname></functionname>
|
||||
<codestring></codestring>
|
||||
<whoName>self</whoName>
|
||||
<relative>0</relative>
|
||||
<isnot>0</isnot>
|
||||
</action>
|
||||
<action>
|
||||
<libid>1</libid>
|
||||
<id>500</id>
|
||||
<kind>0</kind>
|
||||
<userelative>0</userelative>
|
||||
<isquestion>0</isquestion>
|
||||
<useapplyto>0</useapplyto>
|
||||
<exetype>2</exetype>
|
||||
<functionname></functionname>
|
||||
<codestring>draw_self();</codestring>
|
||||
<whoName>self</whoName>
|
||||
<relative>0</relative>
|
||||
<isnot>0</isnot>
|
||||
</action>
|
||||
</event>
|
||||
</events>
|
||||
<PhysicsObject>-1</PhysicsObject>
|
||||
<PhysicsObjectSensor>0</PhysicsObjectSensor>
|
||||
<PhysicsObjectShape>2</PhysicsObjectShape>
|
||||
<PhysicsObjectDensity>0</PhysicsObjectDensity>
|
||||
<PhysicsObjectRestitution>0</PhysicsObjectRestitution>
|
||||
<PhysicsObjectGroup>1</PhysicsObjectGroup>
|
||||
<PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
|
||||
<PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
|
||||
<PhysicsObjectFriction>0.5</PhysicsObjectFriction>
|
||||
<PhysicsObjectAwake>0</PhysicsObjectAwake>
|
||||
<PhysicsObjectKinematic>0</PhysicsObjectKinematic>
|
||||
<PhysicsShapePoints>
|
||||
<point>0,0</point>
|
||||
<point>32,0</point>
|
||||
<point>0,32</point>
|
||||
</PhysicsShapePoints>
|
||||
</object>
|
108
objects/o_wall_norm_R_D.object.gmx
Normal file
108
objects/o_wall_norm_R_D.object.gmx
Normal file
|
@ -0,0 +1,108 @@
|
|||
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
||||
<object>
|
||||
<spriteName>i_half_R_D</spriteName>
|
||||
<solid>-1</solid>
|
||||
<visible>-1</visible>
|
||||
<depth>0</depth>
|
||||
<persistent>0</persistent>
|
||||
<parentName>o_generale</parentName>
|
||||
<maskName><undefined></maskName>
|
||||
<events>
|
||||
<event eventtype="8" enumb="0">
|
||||
<action>
|
||||
<libid>1</libid>
|
||||
<id>612</id>
|
||||
<kind>0</kind>
|
||||
<userelative>0</userelative>
|
||||
<isquestion>-1</isquestion>
|
||||
<useapplyto>-1</useapplyto>
|
||||
<exetype>1</exetype>
|
||||
<functionname>action_if_variable</functionname>
|
||||
<codestring></codestring>
|
||||
<whoName>self</whoName>
|
||||
<relative>0</relative>
|
||||
<isnot>0</isnot>
|
||||
<arguments>
|
||||
<argument>
|
||||
<kind>0</kind>
|
||||
<string>debug_mode</string>
|
||||
</argument>
|
||||
<argument>
|
||||
<kind>0</kind>
|
||||
<string>true</string>
|
||||
</argument>
|
||||
<argument>
|
||||
<kind>4</kind>
|
||||
<string>0</string>
|
||||
</argument>
|
||||
</arguments>
|
||||
</action>
|
||||
<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_color(c_ltgray);
|
||||
physics_draw_debug();
|
||||
</string>
|
||||
</argument>
|
||||
</arguments>
|
||||
</action>
|
||||
<action>
|
||||
<libid>1</libid>
|
||||
<id>421</id>
|
||||
<kind>3</kind>
|
||||
<userelative>0</userelative>
|
||||
<isquestion>0</isquestion>
|
||||
<useapplyto>0</useapplyto>
|
||||
<exetype>0</exetype>
|
||||
<functionname></functionname>
|
||||
<codestring></codestring>
|
||||
<whoName>self</whoName>
|
||||
<relative>0</relative>
|
||||
<isnot>0</isnot>
|
||||
</action>
|
||||
<action>
|
||||
<libid>1</libid>
|
||||
<id>500</id>
|
||||
<kind>0</kind>
|
||||
<userelative>0</userelative>
|
||||
<isquestion>0</isquestion>
|
||||
<useapplyto>0</useapplyto>
|
||||
<exetype>2</exetype>
|
||||
<functionname></functionname>
|
||||
<codestring>draw_self();</codestring>
|
||||
<whoName>self</whoName>
|
||||
<relative>0</relative>
|
||||
<isnot>0</isnot>
|
||||
</action>
|
||||
</event>
|
||||
</events>
|
||||
<PhysicsObject>-1</PhysicsObject>
|
||||
<PhysicsObjectSensor>0</PhysicsObjectSensor>
|
||||
<PhysicsObjectShape>2</PhysicsObjectShape>
|
||||
<PhysicsObjectDensity>0</PhysicsObjectDensity>
|
||||
<PhysicsObjectRestitution>0</PhysicsObjectRestitution>
|
||||
<PhysicsObjectGroup>1</PhysicsObjectGroup>
|
||||
<PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
|
||||
<PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
|
||||
<PhysicsObjectFriction>0.5</PhysicsObjectFriction>
|
||||
<PhysicsObjectAwake>0</PhysicsObjectAwake>
|
||||
<PhysicsObjectKinematic>0</PhysicsObjectKinematic>
|
||||
<PhysicsShapePoints>
|
||||
<point>32,0</point>
|
||||
<point>32,32</point>
|
||||
<point>0,32</point>
|
||||
</PhysicsShapePoints>
|
||||
</object>
|
108
objects/o_wall_norm_R_U.object.gmx
Normal file
108
objects/o_wall_norm_R_U.object.gmx
Normal file
|
@ -0,0 +1,108 @@
|
|||
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
||||
<object>
|
||||
<spriteName>i_half_R_U</spriteName>
|
||||
<solid>-1</solid>
|
||||
<visible>-1</visible>
|
||||
<depth>0</depth>
|
||||
<persistent>0</persistent>
|
||||
<parentName>o_generale</parentName>
|
||||
<maskName><undefined></maskName>
|
||||
<events>
|
||||
<event eventtype="8" enumb="0">
|
||||
<action>
|
||||
<libid>1</libid>
|
||||
<id>612</id>
|
||||
<kind>0</kind>
|
||||
<userelative>0</userelative>
|
||||
<isquestion>-1</isquestion>
|
||||
<useapplyto>-1</useapplyto>
|
||||
<exetype>1</exetype>
|
||||
<functionname>action_if_variable</functionname>
|
||||
<codestring></codestring>
|
||||
<whoName>self</whoName>
|
||||
<relative>0</relative>
|
||||
<isnot>0</isnot>
|
||||
<arguments>
|
||||
<argument>
|
||||
<kind>0</kind>
|
||||
<string>debug_mode</string>
|
||||
</argument>
|
||||
<argument>
|
||||
<kind>0</kind>
|
||||
<string>true</string>
|
||||
</argument>
|
||||
<argument>
|
||||
<kind>4</kind>
|
||||
<string>0</string>
|
||||
</argument>
|
||||
</arguments>
|
||||
</action>
|
||||
<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_color(c_ltgray);
|
||||
physics_draw_debug();
|
||||
</string>
|
||||
</argument>
|
||||
</arguments>
|
||||
</action>
|
||||
<action>
|
||||
<libid>1</libid>
|
||||
<id>421</id>
|
||||
<kind>3</kind>
|
||||
<userelative>0</userelative>
|
||||
<isquestion>0</isquestion>
|
||||
<useapplyto>0</useapplyto>
|
||||
<exetype>0</exetype>
|
||||
<functionname></functionname>
|
||||
<codestring></codestring>
|
||||
<whoName>self</whoName>
|
||||
<relative>0</relative>
|
||||
<isnot>0</isnot>
|
||||
</action>
|
||||
<action>
|
||||
<libid>1</libid>
|
||||
<id>500</id>
|
||||
<kind>0</kind>
|
||||
<userelative>0</userelative>
|
||||
<isquestion>0</isquestion>
|
||||
<useapplyto>0</useapplyto>
|
||||
<exetype>2</exetype>
|
||||
<functionname></functionname>
|
||||
<codestring>draw_self();</codestring>
|
||||
<whoName>self</whoName>
|
||||
<relative>0</relative>
|
||||
<isnot>0</isnot>
|
||||
</action>
|
||||
</event>
|
||||
</events>
|
||||
<PhysicsObject>-1</PhysicsObject>
|
||||
<PhysicsObjectSensor>0</PhysicsObjectSensor>
|
||||
<PhysicsObjectShape>2</PhysicsObjectShape>
|
||||
<PhysicsObjectDensity>0</PhysicsObjectDensity>
|
||||
<PhysicsObjectRestitution>0</PhysicsObjectRestitution>
|
||||
<PhysicsObjectGroup>1</PhysicsObjectGroup>
|
||||
<PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
|
||||
<PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
|
||||
<PhysicsObjectFriction>0.5</PhysicsObjectFriction>
|
||||
<PhysicsObjectAwake>0</PhysicsObjectAwake>
|
||||
<PhysicsObjectKinematic>0</PhysicsObjectKinematic>
|
||||
<PhysicsShapePoints>
|
||||
<point>0,0</point>
|
||||
<point>32,0</point>
|
||||
<point>32,32</point>
|
||||
</PhysicsShapePoints>
|
||||
</object>
|
|
@ -298,7 +298,7 @@
|
|||
<argument>
|
||||
<kind>1</kind>
|
||||
<string>//Fai spawnare l'oggetto selezionato in base all'array stack_names.
|
||||
if (selected = 10)
|
||||
if (selected = 10 || selected = 43 || selected = 44 || selected = 45 || selected = 46)
|
||||
{
|
||||
instance_create(floor((mouse_x div 32))*32,floor((mouse_y div 32))*32,stack_names[selected]);
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
<instance objName="o_wall_inv_totem" x="320" y="4784" name="inst_BCCE11C0" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
|
||||
<instance objName="m_totem" x="0" y="0" name="inst_9BBB578C" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
|
||||
<instance objName="following" x="320" y="4736" name="inst_9D5719C5" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
|
||||
<instance objName="o_sea" x="0" y="4776" name="inst_73300635" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
|
||||
<instance objName="<undefined>" x="0" y="4776" name="inst_73300635" locked="0" code="" scaleX="1" scaleY="1" colour="4294967295" rotation="0"/>
|
||||
</instances>
|
||||
<tiles>
|
||||
<tile bgName="cloud" x="96" y="4256" w="64" h="32" xo="0" yo="0" id="10000000" name="inst_EAA1E049" depth="1000000" locked="0" colour="4294967295" scaleX="1" scaleY="1"/>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//Seleziona il primo oggetto.
|
||||
selected = 0;
|
||||
//Definisci qual è il numero massimo, ad esempio se arriva a stack_names[9] scrivi 9.
|
||||
totalitems = 42;
|
||||
totalitems = 46;
|
||||
//Definisci l'array con tutti i nomi degli oggetti da fare spawnare.
|
||||
stack_names[0] = o_squadra_sin;
|
||||
stack_names[1] = o_squadra_des;
|
||||
|
@ -46,6 +46,11 @@ stack_names[39] = o_bott_green;
|
|||
stack_names[40] = o_lock_green;
|
||||
stack_names[41] = o_chiave_green;
|
||||
stack_names[42] = o_CD;
|
||||
stack_names[43] = o_wall_norm_L_D;
|
||||
stack_names[44] = o_wall_norm_R_D;
|
||||
stack_names[45] = o_wall_norm_R_U;
|
||||
stack_names[46] = o_wall_norm_L_U;
|
||||
|
||||
//Disattiva il mouse normale visto che viene generato automaticamente.
|
||||
window_set_cursor(cr_none);
|
||||
//Apri il file di salvataggio, carica il record e chiudi il file.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
if (selected = 10)
|
||||
if (selected = 10 || selected = 43 || selected = 44 || selected = 45 || selected = 46)
|
||||
{
|
||||
draw_sprite_ext(object_get_sprite(stack_names[selected]), 0, floor((mouse_x div 32))*32,floor((mouse_y div 32))*32, 1, 1, 0, c_white, 0.4);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue