From fd1fa902d1c100e6fafce22f5ab4de5ab64a4bdc Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 18 Jul 2013 17:18:39 +0200 Subject: [PATCH] Aggiunto un... Twomp? Schiacciatore? --- boom.project.gmx | 2 + objects/o_matita.object.gmx | 6 +- objects/o_wall_norm_stomp_h_l.object.gmx | 250 +++++++++++++++++++++++ objects/o_wall_norm_stomp_h_r.object.gmx | 250 +++++++++++++++++++++++ objects/stack.object.gmx | 2 +- scripts/m_stack_init.gml | 3 +- scripts/scrcursor.gml | 2 +- sprites/i_stomping_h_l.sprite.gmx | 24 +++ sprites/i_stomping_h_r.sprite.gmx | 24 +++ sprites/images/i_stomping_h_l_0.png | Bin 0 -> 407 bytes sprites/images/i_stomping_h_r_0.png | Bin 0 -> 408 bytes 11 files changed, 558 insertions(+), 5 deletions(-) create mode 100644 objects/o_wall_norm_stomp_h_l.object.gmx create mode 100644 objects/o_wall_norm_stomp_h_r.object.gmx create mode 100644 sprites/i_stomping_h_l.sprite.gmx create mode 100644 sprites/i_stomping_h_r.sprite.gmx create mode 100644 sprites/images/i_stomping_h_l_0.png create mode 100644 sprites/images/i_stomping_h_r_0.png diff --git a/boom.project.gmx b/boom.project.gmx index cd1543e..97f1c22 100644 --- a/boom.project.gmx +++ b/boom.project.gmx @@ -102,6 +102,7 @@ sprites\i_CD sprites\i_ingot_gold sprites\i_moving_h + sprites\i_stomping_h_r background\cloud @@ -237,6 +238,7 @@ objects\o_wall_norm objects\o_wall_norm_move_h + objects\o_wall_norm_stomp_h_r objects\o_wall_norm_L_D objects\o_wall_norm_L_U objects\o_wall_norm_R_U diff --git a/objects/o_matita.object.gmx b/objects/o_matita.object.gmx index 52ad4ea..316761c 100644 --- a/objects/o_matita.object.gmx +++ b/objects/o_matita.object.gmx @@ -20,8 +20,10 @@ -1 0 - 0,0 - 10,0 + 5,0 + 10,8 10,40 + 0,40 + 0,8 diff --git a/objects/o_wall_norm_stomp_h_l.object.gmx b/objects/o_wall_norm_stomp_h_l.object.gmx new file mode 100644 index 0000000..fa821ea --- /dev/null +++ b/objects/o_wall_norm_stomp_h_l.object.gmx @@ -0,0 +1,250 @@ + + + i_moving_h + -1 + -1 + 0 + 0 + o_generale + <undefined> + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + phy_linear_velocity_x = +384; + + + + + + 1 + 301 + 0 + -1 + 0 + -1 + 1 + action_set_alarm + + self + 0 + 0 + + + 0 + 15 + + + 4 + 0 + + + + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + phy_linear_velocity_x = +384; + + + + + + 1 + 301 + 0 + -1 + 0 + -1 + 1 + action_set_alarm + + self + 0 + 0 + + + 0 + 15 + + + 4 + 0 + + + + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + phy_linear_velocity_x = -16; + + + + + + 1 + 301 + 0 + -1 + 0 + -1 + 1 + action_set_alarm + + self + 0 + 0 + + + 0 + 360 + + + 4 + 1 + + + + + + + 1 + 612 + 0 + 0 + -1 + -1 + 1 + action_if_variable + + self + 0 + 0 + + + 0 + debug_mode + + + 0 + true + + + 4 + 0 + + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + draw_set_color(c_ltgray); +physics_draw_debug(); + + + + + + 1 + 421 + 3 + 0 + 0 + 0 + 0 + + + self + 0 + 0 + + + 1 + 500 + 0 + 0 + 0 + 0 + 2 + + draw_self(); + self + 0 + 0 + + + + -1 + 0 + 1 + 0 + 0 + 1 + 0.100000001490116 + 0.100000001490116 + 0.5 + 0 + -1 + + 0,0 + 32,0 + 32,32 + 0,32 + + diff --git a/objects/o_wall_norm_stomp_h_r.object.gmx b/objects/o_wall_norm_stomp_h_r.object.gmx new file mode 100644 index 0000000..eacd196 --- /dev/null +++ b/objects/o_wall_norm_stomp_h_r.object.gmx @@ -0,0 +1,250 @@ + + + i_stomping_h_r + -1 + -1 + 0 + 0 + o_generale + <undefined> + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + phy_linear_velocity_x = +384; + + + + + + 1 + 301 + 0 + -1 + 0 + -1 + 1 + action_set_alarm + + self + 0 + 0 + + + 0 + 15 + + + 4 + 0 + + + + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + phy_linear_velocity_x = +384; + + + + + + 1 + 301 + 0 + -1 + 0 + -1 + 1 + action_set_alarm + + self + 0 + 0 + + + 0 + 15 + + + 4 + 0 + + + + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + phy_linear_velocity_x = -16; + + + + + + 1 + 301 + 0 + -1 + 0 + -1 + 1 + action_set_alarm + + self + 0 + 0 + + + 0 + 360 + + + 4 + 1 + + + + + + + 1 + 612 + 0 + 0 + -1 + -1 + 1 + action_if_variable + + self + 0 + 0 + + + 0 + debug_mode + + + 0 + true + + + 4 + 0 + + + + + 1 + 603 + 7 + 0 + 0 + -1 + 2 + + + self + 0 + 0 + + + 1 + draw_set_color(c_ltgray); +physics_draw_debug(); + + + + + + 1 + 421 + 3 + 0 + 0 + 0 + 0 + + + self + 0 + 0 + + + 1 + 500 + 0 + 0 + 0 + 0 + 2 + + draw_self(); + self + 0 + 0 + + + + -1 + 0 + 1 + 0 + 0 + 1 + 0.100000001490116 + 0.100000001490116 + 0.5 + 0 + -1 + + 0,0 + 32,0 + 32,32 + 0,32 + + diff --git a/objects/stack.object.gmx b/objects/stack.object.gmx index 612c55a..efc9cb2 100644 --- a/objects/stack.object.gmx +++ b/objects/stack.object.gmx @@ -298,7 +298,7 @@ 1 //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]); } diff --git a/scripts/m_stack_init.gml b/scripts/m_stack_init.gml index 0a15352..1722f8d 100644 --- a/scripts/m_stack_init.gml +++ b/scripts/m_stack_init.gml @@ -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. diff --git a/scripts/scrcursor.gml b/scripts/scrcursor.gml index 1489e1d..7380e41 100644 --- a/scripts/scrcursor.gml +++ b/scripts/scrcursor.gml @@ -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); } diff --git a/sprites/i_stomping_h_l.sprite.gmx b/sprites/i_stomping_h_l.sprite.gmx new file mode 100644 index 0000000..92d1c2f --- /dev/null +++ b/sprites/i_stomping_h_l.sprite.gmx @@ -0,0 +1,24 @@ + + + 16 + 16 + 1 + 0 + 0 + 0 + 0 + 31 + 0 + 31 + 0 + 0 + + 0 + + 0 + 32 + 32 + + images\i_stomping_h_l_0.png + + diff --git a/sprites/i_stomping_h_r.sprite.gmx b/sprites/i_stomping_h_r.sprite.gmx new file mode 100644 index 0000000..d835435 --- /dev/null +++ b/sprites/i_stomping_h_r.sprite.gmx @@ -0,0 +1,24 @@ + + + 16 + 16 + 1 + 0 + 0 + 0 + 0 + 31 + 0 + 31 + 0 + 0 + + 0 + + 0 + 32 + 32 + + images\i_stomping_h_r_0.png + + diff --git a/sprites/images/i_stomping_h_l_0.png b/sprites/images/i_stomping_h_l_0.png new file mode 100644 index 0000000000000000000000000000000000000000..0a75567d8217833a3ba7d506302a69c54f0a2975 GIT binary patch literal 407 zcmV;I0cie-P)AM|5L4pJ@ov)B@>%bA{$9E(`Hi1*0N;8NQ{vY6C*Ol#E6M&@_R96z1UOd zm-XU$eLm-$+d22m@i96*MWqs|R8Xyk&d<@s1-iUMtrohvLhUxXzDAu6>UPo14Z6KW zy&k%|L;XIwzej@sdU!y?AsUU)<0E={LeI}=JVq}sXfi>suV^|&%mA?%ipSCRHcBMW z&JNn$MSFWFnMA1+N~cjKgZB5)!2!xt*2d1x zP`!>C4b*IY04(|hJ_Ri51ndv^t1DOmz6Ef*k;n7(8VClhEH7Yf&B{*!p%4m(mkHo> zBA4s;0kcFRb_O^c*5dO3vv|G8=d-fDjy5*X=BAacE#&uG2?XW?qERa=fc*f*i_kUz z;}4N-0LDKf+W?F=B>xj&ye&5dFgltU9ZpS-=Wm(t-NlB|n79A{002ovPDHLkV1nGL BxHbR) literal 0 HcmV?d00001 diff --git a/sprites/images/i_stomping_h_r_0.png b/sprites/images/i_stomping_h_r_0.png new file mode 100644 index 0000000000000000000000000000000000000000..01c549c954988b0dca8286f115181f3b7869a924 GIT binary patch literal 408 zcmV;J0cZY+P)AM|I=DqPg{HV-)0g^G-HaHnVCwmCAFqZL?p(T5s8RIWQ@qTX3mQ-+lxJQ zepxTBcZd7qKF2xd=J^>-r)V-kPfzIa5sk-aG(y868Vpdsk9s}S?V?TxwcF_70o~uD zyE}Ayi&`zzY@$X3)$6EMLpL|5QbFZ1DwR;7fG#glE{C#NlujdF0o5wHzD8G9s8}=$ z^Lcb}@wPaVL8%lvKSyV0==2nwoS@@lbaaH0Nt8&S!$Wj%fcE!MJdR>96pf<2Jrs$c za2W0GqMe<0fLV9oL%^&$;C#SeZNUQYEkGz_^3^l2vVuIGc?N85qK%E81D2Of<_EB~ zWs3hc!0kp$OHKxCZ<~AuSYJnLYbL=U3It62e&q8Zuh(RC)fE2>@EVtE0dOL~`XO`- z!1_hx7=ZQ1$T0xxACmtGu>LK#2CzDsSshMoj^{5P(%r>&V2K?70000