mirror of
https://github.com/Steffo99/stack.git
synced 2024-11-22 07:54:20 +00:00
Aggiunta la matita e modificato il mouse.
This commit is contained in:
parent
763e6c68ec
commit
5d5d7b9551
7 changed files with 108 additions and 25 deletions
|
@ -30,6 +30,7 @@
|
|||
<sprite>sprites\bigball</sprite>
|
||||
<sprite>sprites\pallinacarta</sprite>
|
||||
<sprite>sprites\libro_mate</sprite>
|
||||
<sprite>sprites\matitasp</sprite>
|
||||
<sprite>sprites\temper</sprite>
|
||||
<sprite>sprites\rtri</sprite>
|
||||
<sprite>sprites\explosion</sprite>
|
||||
|
@ -52,6 +53,7 @@
|
|||
<script>scripts\loadX.gml</script>
|
||||
<script>scripts\togglefullscreen.gml</script>
|
||||
<script>scripts\selnames_init.gml</script>
|
||||
<script>scripts\scrcursor.gml</script>
|
||||
</scripts>
|
||||
<fonts name="fonts">
|
||||
<font>fonts\points</font>
|
||||
|
@ -95,6 +97,7 @@
|
|||
<object>objects\pallinacartas</object>
|
||||
<object>objects\moneta</object>
|
||||
<object>objects\libro</object>
|
||||
<object>objects\matita</object>
|
||||
<object>objects\temperino</object>
|
||||
<object>objects\gommag</object>
|
||||
</objects>
|
||||
|
|
29
objects/matita.object.gmx
Normal file
29
objects/matita.object.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!-->
|
||||
<object>
|
||||
<spriteName>matitasp</spriteName>
|
||||
<solid>-1</solid>
|
||||
<visible>-1</visible>
|
||||
<depth>0</depth>
|
||||
<persistent>0</persistent>
|
||||
<parentName>stackdrop</parentName>
|
||||
<maskName><undefined></maskName>
|
||||
<events/>
|
||||
<PhysicsObject>-1</PhysicsObject>
|
||||
<PhysicsObjectSensor>0</PhysicsObjectSensor>
|
||||
<PhysicsObjectShape>2</PhysicsObjectShape>
|
||||
<PhysicsObjectDensity>0.5</PhysicsObjectDensity>
|
||||
<PhysicsObjectRestitution>0</PhysicsObjectRestitution>
|
||||
<PhysicsObjectGroup>1</PhysicsObjectGroup>
|
||||
<PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
|
||||
<PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
|
||||
<PhysicsObjectFriction>3</PhysicsObjectFriction>
|
||||
<PhysicsObjectAwake>-1</PhysicsObjectAwake>
|
||||
<PhysicsObjectKinematic>0</PhysicsObjectKinematic>
|
||||
<PhysicsShapePoints>
|
||||
<point>0,8</point>
|
||||
<point>4,0</point>
|
||||
<point>10,8</point>
|
||||
<point>10,40</point>
|
||||
<point>0,40</point>
|
||||
</PhysicsShapePoints>
|
||||
</object>
|
|
@ -9,30 +9,6 @@
|
|||
<maskName><undefined></maskName>
|
||||
<events>
|
||||
<event eventtype="0" enumb="0">
|
||||
<action>
|
||||
<libid>1</libid>
|
||||
<id>801</id>
|
||||
<kind>0</kind>
|
||||
<userelative>0</userelative>
|
||||
<isquestion>0</isquestion>
|
||||
<useapplyto>0</useapplyto>
|
||||
<exetype>1</exetype>
|
||||
<functionname>action_set_cursor</functionname>
|
||||
<codestring></codestring>
|
||||
<whoName>self</whoName>
|
||||
<relative>0</relative>
|
||||
<isnot>0</isnot>
|
||||
<arguments>
|
||||
<argument>
|
||||
<kind>5</kind>
|
||||
<sprite>cblock</sprite>
|
||||
</argument>
|
||||
<argument>
|
||||
<kind>4</kind>
|
||||
<string>0</string>
|
||||
</argument>
|
||||
</arguments>
|
||||
</action>
|
||||
<action>
|
||||
<libid>1</libid>
|
||||
<id>611</id>
|
||||
|
@ -583,6 +559,46 @@ instance_create(mouse_x,mouse_y,stack_names[selected]);
|
|||
</argument>
|
||||
</arguments>
|
||||
</action>
|
||||
<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>scrcursor</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="9" enumb="123">
|
||||
<action>
|
||||
|
|
1
scripts/scrcursor.gml
Normal file
1
scripts/scrcursor.gml
Normal file
|
@ -0,0 +1 @@
|
|||
draw_sprite_ext(spr_names[selected], -1, mouse_x, mouse_y, 1, 1, 0, c_white, 0.5);
|
|
@ -1,6 +1,6 @@
|
|||
//Inizia selezionando la squadra.
|
||||
selected = 0;
|
||||
//Questo è un'array con tutti i nomi degli oggetti da fare spawnare.
|
||||
//Questo è un array con tutti i nomi degli oggetti da fare spawnare.
|
||||
stack_names[0] = squadraL;
|
||||
stack_names[1] = gomma;
|
||||
stack_names[2] = pallinacartas;
|
||||
|
@ -8,3 +8,13 @@ stack_names[3] = moneta;
|
|||
stack_names[4] = libro;
|
||||
stack_names[5] = temperino;
|
||||
stack_names[6] = gommag;
|
||||
stack_names[7] = matita;
|
||||
//Questo è un array con tutti i nomi degli sprite da disegnare con il mouse.
|
||||
spr_names[0] = rtri;
|
||||
spr_names[1] = lball;
|
||||
spr_names[2] = pallinacarta;
|
||||
spr_names[3] = coin;
|
||||
spr_names[4] = libro_mate;
|
||||
spr_names[5] = temper;
|
||||
spr_names[6] = bigball;
|
||||
spr_names[7] = matitasp;
|
||||
|
|
BIN
sprites/images/matitasp_0.png
Normal file
BIN
sprites/images/matitasp_0.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 142 B |
24
sprites/matitasp.sprite.gmx
Normal file
24
sprites/matitasp.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>5</xorig>
|
||||
<yorigin>20</yorigin>
|
||||
<colkind>1</colkind>
|
||||
<coltolerance>0</coltolerance>
|
||||
<sepmasks>0</sepmasks>
|
||||
<bboxmode>0</bboxmode>
|
||||
<bbox_left>0</bbox_left>
|
||||
<bbox_right>9</bbox_right>
|
||||
<bbox_top>0</bbox_top>
|
||||
<bbox_bottom>39</bbox_bottom>
|
||||
<HTile>0</HTile>
|
||||
<VTile>0</VTile>
|
||||
<TextureGroups>
|
||||
<TextureGroup0>0</TextureGroup0>
|
||||
</TextureGroups>
|
||||
<For3D>0</For3D>
|
||||
<width>10</width>
|
||||
<height>40</height>
|
||||
<frames>
|
||||
<frame index="0">images\matitasp_0.png</frame>
|
||||
</frames>
|
||||
</sprite>
|
Loading…
Reference in a new issue