1
0
mirror of synced 2025-01-19 09:27:26 +01:00

タワーの背景を更新 (#440)

This commit is contained in:
Takkkom 2023-02-27 04:14:15 +09:00 committed by GitHub
parent ea39ed3739
commit 66fbbd2a7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 11 additions and 11 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

After

Width:  |  Height:  |  Size: 218 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.3 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View File

@ -1,8 +1,8 @@
local bgWidth_1 = 1323
local bgWidth_2 = 1280
local bgWidth_3 = 1280
local bgWidth_4 = 641
local bgWidth_5 = 639
local bgWidth_1 = 1984
local bgWidth_2 = 1920
local bgWidth_3 = 1920
local bgWidth_4 = 961
local bgWidth_5 = 958
local bgScrollX_1 = 0
local bgScrollX_2 = 0
local bgScrollX_3 = 0
@ -27,27 +27,27 @@ function init()
end
function update()
bgScrollX_1 = bgScrollX_1 + (59.1 * deltaTime);
bgScrollX_1 = bgScrollX_1 + (88.65 * deltaTime);
if bgScrollX_1 > bgWidth_1 then
bgScrollX_1 = 0;
end
bgScrollX_2 = bgScrollX_2 + (45.9 * deltaTime);
bgScrollX_2 = bgScrollX_2 + (68.85 * deltaTime);
if bgScrollX_2 > bgWidth_2 then
bgScrollX_2 = 0;
end
bgScrollX_3 = bgScrollX_3 + (43.8 * deltaTime);
bgScrollX_3 = bgScrollX_3 + (65.7 * deltaTime);
if bgScrollX_3 > bgWidth_3 then
bgScrollX_3 = 0;
end
bgScrollX_4 = bgScrollX_4 + (100 * deltaTime);
bgScrollX_4 = bgScrollX_4 + (150 * deltaTime);
if bgScrollX_4 > bgWidth_4 + 200 then
bgScrollX_4 = 0;
end
bgScrollX_5 = bgScrollX_5 + (45.9 * deltaTime);
bgScrollX_5 = bgScrollX_5 + (68.85 * deltaTime);
if bgScrollX_5 > bgWidth_5 then
bgScrollX_5 = 0;
end
@ -76,7 +76,7 @@ function draw()
end
func:DrawGraph(0, 0, "6.png");
for i = 0, 4 do
func:DrawGraph((i * bgWidth_4) - bgScrollX_4, -200 + bgScrollX_4, "4.png");
func:DrawGraph((i * bgWidth_4) - bgScrollX_4, -300 + bgScrollX_4, "4.png");
func:DrawGraph((i * bgWidth_5) - bgScrollX_5, 0, "5.png");
end
end