mirror of
https://github.com/Steffo99/stack.git
synced 2024-11-22 07:54:20 +00:00
Aggiunta una pallina telecomandata.
This commit is contained in:
parent
3793080aff
commit
9792a138ef
7 changed files with 144 additions and 1 deletions
|
@ -24,6 +24,7 @@
|
|||
<sprite>sprites\yslabr</sprite>
|
||||
<sprite>sprites\rtile</sprite>
|
||||
<sprite>sprites\octo</sprite>
|
||||
<sprite>sprites\radio</sprite>
|
||||
<sprite>sprites\rbomb</sprite>
|
||||
<sprite>sprites\obomb</sprite>
|
||||
<sprite>sprites\lball</sprite>
|
||||
|
@ -49,6 +50,8 @@
|
|||
<script>scripts\togglefullscreen.gml</script>
|
||||
<script>scripts\init.gml</script>
|
||||
<script>scripts\scrcursor.gml</script>
|
||||
<script>scripts\rollL.gml</script>
|
||||
<script>scripts\rollR.gml</script>
|
||||
</scripts>
|
||||
<fonts name="fonts">
|
||||
<font>fonts\points</font>
|
||||
|
@ -94,6 +97,7 @@
|
|||
<object>objects\libro</object>
|
||||
<object>objects\temperino</object>
|
||||
<object>objects\gommag</object>
|
||||
<object>objects\specialroll</object>
|
||||
<object>objects\matita</object>
|
||||
<object>objects\moon</object>
|
||||
</objects>
|
||||
|
|
111
objects/specialroll.object.gmx
Normal file
111
objects/specialroll.object.gmx
Normal file
|
@ -0,0 +1,111 @@
|
|||
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
||||
<object>
|
||||
<spriteName>radio</spriteName>
|
||||
<solid>-1</solid>
|
||||
<visible>-1</visible>
|
||||
<depth>0</depth>
|
||||
<persistent>0</persistent>
|
||||
<parentName>stackdrop</parentName>
|
||||
<maskName><undefined></maskName>
|
||||
<events>
|
||||
<event eventtype="5" enumb="76">
|
||||
<action>
|
||||
<libid>1</libid>
|
||||
<id>601</id>
|
||||
<kind>0</kind>
|
||||
<userelative>0</userelative>
|
||||
<isquestion>0</isquestion>
|
||||
<useapplyto>-1</useapplyto>
|
||||
<exetype>1</exetype>
|
||||
<functionname>action_execute_script</functionname>
|
||||
<codestring></codestring>
|
||||
<whoName>self</whoName>
|
||||
<relative>0</relative>
|
||||
<isnot>0</isnot>
|
||||
<arguments>
|
||||
<argument>
|
||||
<kind>9</kind>
|
||||
<script>rollR</script>
|
||||
</argument>
|
||||
<argument>
|
||||
<kind>0</kind>
|
||||
<string>0</string>
|
||||
</argument>
|
||||
<argument>
|
||||
<kind>0</kind>
|
||||
<string>0</string>
|
||||
</argument>
|
||||
<argument>
|
||||
<kind>0</kind>
|
||||
<string>0</string>
|
||||
</argument>
|
||||
<argument>
|
||||
<kind>0</kind>
|
||||
<string>0</string>
|
||||
</argument>
|
||||
<argument>
|
||||
<kind>0</kind>
|
||||
<string>0</string>
|
||||
</argument>
|
||||
</arguments>
|
||||
</action>
|
||||
</event>
|
||||
<event eventtype="5" enumb="75">
|
||||
<action>
|
||||
<libid>1</libid>
|
||||
<id>601</id>
|
||||
<kind>0</kind>
|
||||
<userelative>0</userelative>
|
||||
<isquestion>0</isquestion>
|
||||
<useapplyto>-1</useapplyto>
|
||||
<exetype>1</exetype>
|
||||
<functionname>action_execute_script</functionname>
|
||||
<codestring></codestring>
|
||||
<whoName>self</whoName>
|
||||
<relative>0</relative>
|
||||
<isnot>0</isnot>
|
||||
<arguments>
|
||||
<argument>
|
||||
<kind>9</kind>
|
||||
<script>rollL</script>
|
||||
</argument>
|
||||
<argument>
|
||||
<kind>0</kind>
|
||||
<string>0</string>
|
||||
</argument>
|
||||
<argument>
|
||||
<kind>0</kind>
|
||||
<string>0</string>
|
||||
</argument>
|
||||
<argument>
|
||||
<kind>0</kind>
|
||||
<string>0</string>
|
||||
</argument>
|
||||
<argument>
|
||||
<kind>0</kind>
|
||||
<string>0</string>
|
||||
</argument>
|
||||
<argument>
|
||||
<kind>0</kind>
|
||||
<string>0</string>
|
||||
</argument>
|
||||
</arguments>
|
||||
</action>
|
||||
</event>
|
||||
</events>
|
||||
<PhysicsObject>-1</PhysicsObject>
|
||||
<PhysicsObjectSensor>0</PhysicsObjectSensor>
|
||||
<PhysicsObjectShape>0</PhysicsObjectShape>
|
||||
<PhysicsObjectDensity>0.800000011920929</PhysicsObjectDensity>
|
||||
<PhysicsObjectRestitution>0</PhysicsObjectRestitution>
|
||||
<PhysicsObjectGroup>1</PhysicsObjectGroup>
|
||||
<PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
|
||||
<PhysicsObjectAngularDamping>3</PhysicsObjectAngularDamping>
|
||||
<PhysicsObjectFriction>5</PhysicsObjectFriction>
|
||||
<PhysicsObjectAwake>-1</PhysicsObjectAwake>
|
||||
<PhysicsObjectKinematic>0</PhysicsObjectKinematic>
|
||||
<PhysicsShapePoints>
|
||||
<point>8,8</point>
|
||||
<point>8,8</point>
|
||||
</PhysicsShapePoints>
|
||||
</object>
|
|
@ -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 = 8;
|
||||
totalitems = 9;
|
||||
//Definisci l'array con tutti i nomi degli oggetti da fare spawnare.
|
||||
stack_names[0] = squadraL;
|
||||
stack_names[1] = gomma;
|
||||
|
@ -12,6 +12,7 @@ stack_names[5] = temperino;
|
|||
stack_names[6] = gommag;
|
||||
stack_names[7] = matita;
|
||||
stack_names[8] = moon;
|
||||
stack_names[9] = specialroll;
|
||||
//Definisci l'array con tutti i nomi degli sprite da disegnare con il mouse.
|
||||
spr_names[0] = rtri;
|
||||
spr_names[1] = lball;
|
||||
|
@ -22,6 +23,7 @@ spr_names[5] = temper;
|
|||
spr_names[6] = bigball;
|
||||
spr_names[7] = matitasp;
|
||||
spr_names[8] = moonball;
|
||||
spr_names[9] = radio;
|
||||
//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
scripts/rollL.gml
Normal file
1
scripts/rollL.gml
Normal file
|
@ -0,0 +1 @@
|
|||
physics_apply_torque(-100);
|
1
scripts/rollR.gml
Normal file
1
scripts/rollR.gml
Normal file
|
@ -0,0 +1 @@
|
|||
physics_apply_torque(100);
|
BIN
sprites/images/radio_0.png
Normal file
BIN
sprites/images/radio_0.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 124 B |
24
sprites/radio.sprite.gmx
Normal file
24
sprites/radio.sprite.gmx
Normal 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>8</xorig>
|
||||
<yorigin>8</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>15</bbox_bottom>
|
||||
<HTile>0</HTile>
|
||||
<VTile>0</VTile>
|
||||
<TextureGroups>
|
||||
<TextureGroup0>0</TextureGroup0>
|
||||
</TextureGroups>
|
||||
<For3D>0</For3D>
|
||||
<width>16</width>
|
||||
<height>16</height>
|
||||
<frames>
|
||||
<frame index="0">images\radio_0.png</frame>
|
||||
</frames>
|
||||
</sprite>
|
Loading…
Reference in a new issue