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 0000000..0a75567 Binary files /dev/null and b/sprites/images/i_stomping_h_l_0.png differ 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 0000000..01c549c Binary files /dev/null and b/sprites/images/i_stomping_h_r_0.png differ