From c0c253b2847df3e55f7471ebf81275284bd07705 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 6 Jul 2013 22:06:52 +0300 Subject: [PATCH] Roba. --- boom.project.gmx | 3 +- objects/following.object.gmx | 102 +++++++++++++++++++++++++++++++++++ objects/m_totem.object.gmx | 48 ++--------------- objects/stack.object.gmx | 4 +- rooms/t_classic.room.gmx | 21 ++++---- scripts/m_totem_init.gml | 4 +- scripts/totemcursor.gml | 1 - 7 files changed, 123 insertions(+), 60 deletions(-) create mode 100644 objects/following.object.gmx delete mode 100644 scripts/totemcursor.gml diff --git a/boom.project.gmx b/boom.project.gmx index 3a087dc..471ce9a 100644 --- a/boom.project.gmx +++ b/boom.project.gmx @@ -56,6 +56,7 @@ sprites\i_half_R_D sprites\i_locked + sprites\clock60 @@ -69,7 +70,6 @@ - @@ -157,6 +157,7 @@ objects\btotal objects\stack objects\m_totem + objects\following objects\debugobj objects\strategy objects\boom diff --git a/objects/following.object.gmx b/objects/following.object.gmx new file mode 100644 index 0000000..9c775dc --- /dev/null +++ b/objects/following.object.gmx @@ -0,0 +1,102 @@ + + + <undefined> + 0 + -1 + 0 + 0 + <undefined> + <undefined> + + + + 1 + 109 + 0 + -1 + 0 + -1 + 1 + action_move_to + + self + -1 + 0 + + + 0 + 0 + + + 0 + +2 + + + + + + + 1 + 109 + 0 + -1 + 0 + -1 + 1 + action_move_to + + self + -1 + 0 + + + 0 + 0 + + + 0 + -2 + + + + + + + 1 + 109 + 0 + -1 + 0 + -1 + 1 + action_move_to + + self + -1 + 0 + + + 0 + 0 + + + 0 + -32 + + + + + + 0 + 0 + 0 + 0.5 + 0.100000001490116 + 0 + 0.100000001490116 + 0.100000001490116 + 0.200000002980232 + -1 + 0 + + diff --git a/objects/m_totem.object.gmx b/objects/m_totem.object.gmx index a80ed6b..144edad 100644 --- a/objects/m_totem.object.gmx +++ b/objects/m_totem.object.gmx @@ -115,8 +115,8 @@ instance_create(mouse_x,mouse_y,totem_list[selected]); pile = pile + 1; //Seleziona un altro totem casuale. selected = irandom(totalitems); -//Metti il mouse in una posizione casuale sullo schermo. Bwhahaha! -display_mouse_set(irandom(640), irandom(480)); +/*Metti il mouse in una posizione casuale sullo schermo. Bwhahaha! +display_mouse_set(irandom(640), irandom(480));*/ @@ -157,7 +157,7 @@ display_mouse_set(irandom(640), irandom(480)); 4 - 0 + 1 @@ -222,47 +222,7 @@ display_mouse_set(irandom(640), irandom(480)); 0 - 0 - - - 0 - 0 - - - - - 1 - 601 - 0 - 0 - 0 - -1 - 1 - action_execute_script - - self - 0 - 0 - - - 9 - - - - 0 - 0 - - - 0 - 0 - - - 0 - 0 - - - 0 - 0 + 320 0 diff --git a/objects/stack.object.gmx b/objects/stack.object.gmx index b7f039b..215c42b 100644 --- a/objects/stack.object.gmx +++ b/objects/stack.object.gmx @@ -49,7 +49,7 @@ 9 - + 0 @@ -617,7 +617,7 @@ instance_create(mouse_x,mouse_y,stack_names[selected]); 9 - + 0 diff --git a/rooms/t_classic.room.gmx b/rooms/t_classic.room.gmx index 7c1a5f8..145359e 100644 --- a/rooms/t_classic.room.gmx +++ b/rooms/t_classic.room.gmx @@ -2,7 +2,7 @@ 640 - 480 + 960 32 32 0 @@ -11,13 +11,13 @@ 64 -1 - 0 + -1 -1 -1 - 822 - 454 - -1 + 1050 + 463 + 0 -1 -1 -1 @@ -25,9 +25,9 @@ 0 0 -1 - 1 - 45 - 136 + 4 + 175 + 180 @@ -40,7 +40,7 @@ - + @@ -50,8 +50,9 @@ - + + -1 diff --git a/scripts/m_totem_init.gml b/scripts/m_totem_init.gml index 5c1abf8..d434332 100644 --- a/scripts/m_totem_init.gml +++ b/scripts/m_totem_init.gml @@ -15,8 +15,8 @@ totem_list[6] = o_totem_G; totem_list[7] = o_totem_H; totem_list[8] = o_totem_I; totem_list[9] = o_totem_J; -//Disattiva il mouse normale visto che viene generato automaticamente. -window_set_cursor(cr_none); +//Cambia il mouse. +window_set_cursor(cr_cross); //Apri il file di salvataggio, carica il record e chiudi il file. ini_open("savefile.ini"); m_totem.blocksr = ini_read_real("Totem",room_get_name(room),"0"); diff --git a/scripts/totemcursor.gml b/scripts/totemcursor.gml deleted file mode 100644 index 8ffcd46..0000000 --- a/scripts/totemcursor.gml +++ /dev/null @@ -1 +0,0 @@ -draw_sprite_ext(object_get_sprite(totem_list[selected]), -1, mouse_x, mouse_y, 1, 1, 0, c_white, 0.4);