diff --git a/CrunchThroughHell/resources/Scripts/scenes.lua b/CrunchThroughHell/resources/Scripts/scenes.lua index 8c3471b..3b39886 100644 --- a/CrunchThroughHell/resources/Scripts/scenes.lua +++ b/CrunchThroughHell/resources/Scripts/scenes.lua @@ -454,19 +454,17 @@ function scene3() -- Overworld de verdad speedIncrement: 30; ]]); + local images = {"corazon", "fuerza", "velocidad"} for i = 0, 2, 1 do local buttonwidth = 200; local margin = 100; local xpos = round((width() - buttonwidth) * 0.5 - buttonwidth - margin + (buttonwidth + margin) * i); - tiendaComp:sendComponent(i, menu:createButton('mainmenuButton', xpos, 500, 11, buttonwidth, 50)); + tiendaComp:sendComponent(i, menu:createButton(images[i+1], xpos, 500, 11, buttonwidth, 50)); end local currency = menu:createTextElement('Souls: 22' , 10, round(height() - 30), 11, 0.05, 0); tiendaComp:sendComponent(3, currency) - - - -- local tiendaMesh = scene:createObject("boss1") -- tiendaMesh:addComponent("Transform"):sendMsg([[ diff --git a/CrunchThroughHell/resources/materials/mainMenu.material b/CrunchThroughHell/resources/materials/mainMenu.material index a37ff54..38bfb22 100644 --- a/CrunchThroughHell/resources/materials/mainMenu.material +++ b/CrunchThroughHell/resources/materials/mainMenu.material @@ -396,4 +396,43 @@ material back{ } } } +} +material fuerza{ + technique{ + pass{ + lighting off + depth_check off + scene_blend alpha_blend + texture_unit { + texture fuerza.png + colour_op modulate + } + } + } +} +material velocidad{ + technique{ + pass{ + lighting off + depth_check off + scene_blend alpha_blend + texture_unit { + texture velocidad.png + colour_op modulate + } + } + } +} +material corazon{ + technique{ + pass{ + lighting off + depth_check off + scene_blend alpha_blend + texture_unit { + texture corazon.png + colour_op modulate + } + } + } } \ No newline at end of file diff --git a/CrunchThroughHell/resources/materials/textures/corazon.png b/CrunchThroughHell/resources/materials/textures/corazon.png new file mode 100644 index 0000000..ca5d6b0 Binary files /dev/null and b/CrunchThroughHell/resources/materials/textures/corazon.png differ diff --git a/CrunchThroughHell/resources/materials/textures/fuerza.png b/CrunchThroughHell/resources/materials/textures/fuerza.png new file mode 100644 index 0000000..5510c52 Binary files /dev/null and b/CrunchThroughHell/resources/materials/textures/fuerza.png differ diff --git a/CrunchThroughHell/resources/materials/textures/velocidad.png b/CrunchThroughHell/resources/materials/textures/velocidad.png new file mode 100644 index 0000000..9553bc4 Binary files /dev/null and b/CrunchThroughHell/resources/materials/textures/velocidad.png differ