Skip to content

Commit 5f229e9

Browse files
committed
Clean up bg.lua and `fg.lua
1 parent 6c020a3 commit 5f229e9

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

lua/bg.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ local Node = import 'konko-node'
44

55

66
-- Variables
7-
local SW, SH = std.SW, std.SH
8-
local SCX, SCY = std.SCX, std.SCY
7+
SW, SH = std.SW, std.SH
8+
SCX, SCY = std.SCX, std.SCY
99

1010
-- Nodes
1111
Node.new('Quad'):AddToTree(1, 'HideEvent')
@@ -47,8 +47,8 @@ end
4747

4848

4949
-- Actors
50-
table.insert(FG, Def.ActorFrame {
50+
table.insert(Actors.BG, Def.ActorFrame {
5151

52-
Node.GetTree()
52+
Node.GetTree(),
5353

5454
})

lua/fg.lua

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ local Node = import 'konko-node'
44

55

66
-- Variables
7-
local SW, SH = std.SW, std.SH
8-
local SCX, SCY = std.SCX, std.SCY
7+
SW, SH = std.SW, std.SH
8+
SCX, SCY = std.SCX, std.SCY
9+
PL, BEAT = std.PL, std.BEAT
10+
HideOverlay = Node.HideOverlay
11+
PP, PJ, PC = {}, {}, {}
912

1013
-- Proxies
11-
local P, PL = {}, {}
12-
local PP, PJ, PC = {}, {}, {}
14+
local P = {}
1315
for pn = 1, #GAMESTATE:GetEnabledPlayers() do
1416
PP[pn] = Node.new('ActorProxy'):AddToTree('PP'..pn)
1517
PJ[pn] = Node.new('ActorProxy'):AddToTree('PJ'..pn)
@@ -25,9 +27,6 @@ end
2527
-- Called on ReadyCommand
2628
function ready()
2729

28-
-- Hide overlay
29-
Node.HideOverlay(true)
30-
3130
-- Player shorthand variables
3231
PL = std.PL
3332
PP, PJ, PC = table.unpack {
@@ -59,9 +58,10 @@ function draw()
5958

6059
end
6160

61+
6262
-- Actors
63-
table.insert(FG, Def.ActorFrame {
63+
table.insert(Actors.FG, Def.ActorFrame {
6464

6565
Node.GetTree()
6666

67-
})
67+
})

0 commit comments

Comments
 (0)