1
Fork 0
mirror of https://github.com/Steffo99/stack.git synced 2024-11-22 07:54:20 +00:00

Aggiunto un... Twomp? Schiacciatore?

This commit is contained in:
Steffo 2013-07-18 17:18:39 +02:00
parent f712357f4e
commit fd1fa902d1
11 changed files with 558 additions and 5 deletions

View file

@ -102,6 +102,7 @@
<sprite>sprites\i_CD</sprite>
<sprite>sprites\i_ingot_gold</sprite>
<sprite>sprites\i_moving_h</sprite>
<sprite>sprites\i_stomping_h_r</sprite>
</sprites>
<backgrounds name="background">
<background>background\cloud</background>
@ -237,6 +238,7 @@
<objects name="Piazzabili">
<object>objects\o_wall_norm</object>
<object>objects\o_wall_norm_move_h</object>
<object>objects\o_wall_norm_stomp_h_r</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>

View file

@ -20,8 +20,10 @@
<PhysicsObjectAwake>-1</PhysicsObjectAwake>
<PhysicsObjectKinematic>0</PhysicsObjectKinematic>
<PhysicsShapePoints>
<point>0,0</point>
<point>10,0</point>
<point>5,0</point>
<point>10,8</point>
<point>10,40</point>
<point>0,40</point>
<point>0,8</point>
</PhysicsShapePoints>
</object>

View file

@ -0,0 +1,250 @@
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
<spriteName>i_moving_h</spriteName>
<solid>-1</solid>
<visible>-1</visible>
<depth>0</depth>
<persistent>0</persistent>
<parentName>o_generale</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>phy_linear_velocity_x = +384;
</string>
</argument>
</arguments>
</action>
<action>
<libid>1</libid>
<id>301</id>
<kind>0</kind>
<userelative>-1</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>1</exetype>
<functionname>action_set_alarm</functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>0</kind>
<string>15</string>
</argument>
<argument>
<kind>4</kind>
<string>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>phy_linear_velocity_x = +384;
</string>
</argument>
</arguments>
</action>
<action>
<libid>1</libid>
<id>301</id>
<kind>0</kind>
<userelative>-1</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>1</exetype>
<functionname>action_set_alarm</functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>0</kind>
<string>15</string>
</argument>
<argument>
<kind>4</kind>
<string>0</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>phy_linear_velocity_x = -16;
</string>
</argument>
</arguments>
</action>
<action>
<libid>1</libid>
<id>301</id>
<kind>0</kind>
<userelative>-1</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>1</exetype>
<functionname>action_set_alarm</functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>0</kind>
<string>360</string>
</argument>
<argument>
<kind>4</kind>
<string>1</string>
</argument>
</arguments>
</action>
</event>
<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>1</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>-1</PhysicsObjectKinematic>
<PhysicsShapePoints>
<point>0,0</point>
<point>32,0</point>
<point>32,32</point>
<point>0,32</point>
</PhysicsShapePoints>
</object>

View file

@ -0,0 +1,250 @@
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
<spriteName>i_stomping_h_r</spriteName>
<solid>-1</solid>
<visible>-1</visible>
<depth>0</depth>
<persistent>0</persistent>
<parentName>o_generale</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>phy_linear_velocity_x = +384;
</string>
</argument>
</arguments>
</action>
<action>
<libid>1</libid>
<id>301</id>
<kind>0</kind>
<userelative>-1</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>1</exetype>
<functionname>action_set_alarm</functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>0</kind>
<string>15</string>
</argument>
<argument>
<kind>4</kind>
<string>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>phy_linear_velocity_x = +384;
</string>
</argument>
</arguments>
</action>
<action>
<libid>1</libid>
<id>301</id>
<kind>0</kind>
<userelative>-1</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>1</exetype>
<functionname>action_set_alarm</functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>0</kind>
<string>15</string>
</argument>
<argument>
<kind>4</kind>
<string>0</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>phy_linear_velocity_x = -16;
</string>
</argument>
</arguments>
</action>
<action>
<libid>1</libid>
<id>301</id>
<kind>0</kind>
<userelative>-1</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>1</exetype>
<functionname>action_set_alarm</functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>0</kind>
<string>360</string>
</argument>
<argument>
<kind>4</kind>
<string>1</string>
</argument>
</arguments>
</action>
</event>
<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>1</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>-1</PhysicsObjectKinematic>
<PhysicsShapePoints>
<point>0,0</point>
<point>32,0</point>
<point>32,32</point>
<point>0,32</point>
</PhysicsShapePoints>
</object>

View file

@ -298,7 +298,7 @@
<argument>
<kind>1</kind>
<string>//Fai spawnare l'oggetto selezionato in base all'array stack_names.
if (selected = 10 || selected = 43 || selected = 44 || selected = 45 || selected = 46 || selected = 34 || selected = 37 || selected = 40 || selected = 47)
if (selected = 10 || selected = 43 || selected = 44 || selected = 45 || selected = 46 || selected = 34 || selected = 37 || selected = 40 || selected = 47 || selected = 48)
{
instance_create(floor((mouse_x div 32))*32,floor((mouse_y div 32))*32,stack_names[selected]);
}

View file

@ -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 = 47;
totalitems = 48;
//Definisci l'array con tutti i nomi degli oggetti da fare spawnare.
stack_names[0] = o_squadra_sin;
stack_names[1] = o_squadra_des;
@ -51,6 +51,7 @@ stack_names[44] = o_wall_norm_R_D;
stack_names[45] = o_wall_norm_R_U;
stack_names[46] = o_wall_norm_L_U;
stack_names[47] = o_wall_norm_move_h;
stack_names[48] = o_wall_norm_stomp_h_r;
//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.

View file

@ -1,4 +1,4 @@
if (selected = 10 || selected = 43 || selected = 44 || selected = 45 || selected = 46 || selected = 34 || selected = 37 || selected = 40 || selected = 47)
if (selected = 10 || selected = 43 || selected = 44 || selected = 45 || selected = 46 || selected = 34 || selected = 37 || selected = 40 || selected = 47 || selected = 48)
{
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);
}

View file

@ -0,0 +1,24 @@
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<sprite>
<xorig>16</xorig>
<yorigin>16</yorigin>
<colkind>1</colkind>
<coltolerance>0</coltolerance>
<sepmasks>0</sepmasks>
<bboxmode>0</bboxmode>
<bbox_left>0</bbox_left>
<bbox_right>31</bbox_right>
<bbox_top>0</bbox_top>
<bbox_bottom>31</bbox_bottom>
<HTile>0</HTile>
<VTile>0</VTile>
<TextureGroups>
<TextureGroup0>0</TextureGroup0>
</TextureGroups>
<For3D>0</For3D>
<width>32</width>
<height>32</height>
<frames>
<frame index="0">images\i_stomping_h_l_0.png</frame>
</frames>
</sprite>

View file

@ -0,0 +1,24 @@
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<sprite>
<xorig>16</xorig>
<yorigin>16</yorigin>
<colkind>1</colkind>
<coltolerance>0</coltolerance>
<sepmasks>0</sepmasks>
<bboxmode>0</bboxmode>
<bbox_left>0</bbox_left>
<bbox_right>31</bbox_right>
<bbox_top>0</bbox_top>
<bbox_bottom>31</bbox_bottom>
<HTile>0</HTile>
<VTile>0</VTile>
<TextureGroups>
<TextureGroup0>0</TextureGroup0>
</TextureGroups>
<For3D>0</For3D>
<width>32</width>
<height>32</height>
<frames>
<frame index="0">images\i_stomping_h_r_0.png</frame>
</frames>
</sprite>

Binary file not shown.

After

Width:  |  Height:  |  Size: 407 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 408 B