* reintroduce the gameplay rewrite & + crit line and console as accuratelly as possible

This commit is contained in:
FajsiEx 2021-08-31 18:24:48 +02:00
parent cd3cd4e4a5
commit e444354f32
26 changed files with 1138 additions and 1062 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,35 @@
local consoleBaseImage = gfx.CreateSkinImage("gameplay/console/base.png", 0)
local CONSOLE_W = 1352;
local CONSOLE_H = 712;
-- Similar to crit line transforms, since the console needs to follow the lane rotation
local setUpTransforms = function (x,y,rotation)
gfx.Translate(x, y)
gfx.Rotate(rotation)
end
local render = function (deltaTime, critLineCenterX, critLineCenterY, critLineRotation)
setUpTransforms(
critLineCenterX,
critLineCenterY+350,
critLineRotation
)
gfx.BeginPath();
gfx.ImageRect(
-CONSOLE_W/2,
-CONSOLE_H/2,
CONSOLE_W,
CONSOLE_H,
consoleBaseImage,
1,
0
);
end
return {
render=render
}

View File

@ -0,0 +1,37 @@
local baseImage = gfx.CreateSkinImage("gameplay/crit_line/base.png", 0)
local textImage = gfx.CreateSkinImage("gameplay/crit_line/text.png", 0)
local CRITBAR_W = 1496
local CRITBAR_H = 348
local setUpTransforms = function (x,y,rotation)
gfx.Translate(x, y)
gfx.Rotate(rotation)
end
local renderBase = function (deltaTime, centerX, centerY, rotation)
setUpTransforms(centerX, centerY, rotation)
gfx.BeginPath();
gfx.ImageRect(
-CRITBAR_W/2,
-CRITBAR_H/2,
CRITBAR_W,
CRITBAR_H,
baseImage,
1,
0
);
gfx.ResetTransform()
end
local renderOverlay = function (deltaTime)
end
return {
renderBase=renderBase,
renderOverlay=renderOverlay
}

1016
scripts/gameplay_old.lua Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,71 +0,0 @@
local VolforceWindow = require('components.volforceWindow')
local resx, resy = game.GetResolution()
local desw, desh;
local scale;
function resetLayoutInformation()
resx, resy = game.GetResolution()
desw = 1080
desh = 1920
scale = resx / desw
end
function render(deltaTime)
resetLayoutInformation();
gfx.Scale(scale, scale);
end
function render_crit_base(deltaTime)
end
function render_crit_overlay(deltaTime)
end
function render_intro(deltaTime)
return true
end
function render_outro(deltaTime, clearState)
return true, 1
end
function update_score(newScore)
end
function update_combo(newCombo)
end
function near_hit(wasLate)
end
function button_hit(button, rating, delta)
end
function laser_slam_hit(slamLength, startPos, endPost, index)
end
function laser_alert(isRight)
end
function practice_start(mission_type, mission_threshold, mission_description)
end
function practice_end_run(playCount, successCount, isSuccessful, scoring)
end
function practice_end(playCount, successCount)
end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 67 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

Before

Width:  |  Height:  |  Size: 134 KiB

After

Width:  |  Height:  |  Size: 134 KiB

View File

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 80 KiB

View File

Before

Width:  |  Height:  |  Size: 7.8 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB

View File

Before

Width:  |  Height:  |  Size: 7.9 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB