ExperimentalGear/scripts/gameplay/console.lua

36 lines
687 B
Lua
Raw Normal View History

2024-02-02 02:50:48 +01:00
local Display = require 'scripts.graphics.display'
local consoleBaseImage = gfx.CreateSkinImage("gameplay/console/base.png", 0)
local CONSOLE_W = 1352;
local CONSOLE_H = 712;
local render = function (deltaTime, critLineCenterX, critLineCenterY, critLineRotation)
2021-11-25 18:49:50 +01:00
local resx, resy = game.GetResolution();
if (resx > resy) then
return
end
2024-02-02 02:50:48 +01:00
Display.setUpTransforms(
critLineCenterX,
2021-10-28 17:27:26 +02:00
critLineCenterY,
critLineRotation
)
gfx.BeginPath();
gfx.ImageRect(
-CONSOLE_W/2,
2021-10-28 17:27:26 +02:00
-CONSOLE_H/2+350,
CONSOLE_W,
CONSOLE_H,
consoleBaseImage,
1,
0
);
end
return {
render=render
2023-08-19 04:48:46 +02:00
}