From 7ee2e7f0b33cd9e4b607560fabcb44850f728740 Mon Sep 17 00:00:00 2001 From: FajsiEx Date: Thu, 12 Aug 2021 21:26:31 +0200 Subject: [PATCH] + vf to gameplay --- scripts/gameplay.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/gameplay.lua b/scripts/gameplay.lua index 71cb800..37890f8 100644 --- a/scripts/gameplay.lua +++ b/scripts/gameplay.lua @@ -6,6 +6,8 @@ -- or behaviours of the default to better suit them. -- Skinning should be easy and fun! +local VolforceWindow = require('components.volforceWindow') + local RECT_FILL = "fill" local RECT_STROKE = "stroke" local RECT_FILL_STROKE = RECT_FILL .. RECT_STROKE @@ -956,7 +958,7 @@ end local statusBack = Image.skin("status_back.png") local apealCard = Image.skin("appeal_card.png") local dan = Image.skin("dan.png") -local volforce = Image.skin ("volforce.png") + function draw_status(deltaTime) -- Draw the background gfx.FillColor(255, 255, 255) @@ -969,7 +971,7 @@ function draw_status(deltaTime) dan:draw({ x = 164, y = desh / 2 - 117, w = dan.w * 0.32, h = dan.h * 0.32 }) -- Draw the Volforce - volforce:draw({ x = 240, y = desh / 2 - 119, w = volforce.w * 0.12, h = volforce.h * 0.12 }) + VolforceWindow.render(deltaTime, 220, desh / 2 - 140); -- Draw the best difference draw_best_diff(deltaTime, 145, desh / 2 - 174)