Skip to content

Commit

Permalink
整理代码 框架跟进
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Oct 7, 2024
1 parent 29a355d commit 04a739a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Zenitha
15 changes: 9 additions & 6 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,18 @@ SFX.setVol(DATA.sound and 1 or 0)

BGM.load('naive', 'naive.ogg')
TASK.new(function()
DEBUG.yieldT(.626)
TASK.yieldT(.626)
if DATA.sound then
BGM.play('naive')
end
end)

SFX.load('tick', 'tick.ogg')
SFX.load('untick', 'untick.ogg')
SFX.load('solve', 'solve.ogg')
SFX.load({
untick='untick.ogg',
solve='solve.ogg',
copy='copy.ogg',
paste='paste.ogg',
})

FONT.load('unifont', 'unifont.otf')
FONT.setDefaultFont('unifont')
Expand Down Expand Up @@ -838,7 +841,7 @@ function scene.update(dt)
end
end

local tick = GC.load { 62, 62,
local tick = GC.load { w=62, h=62,
{ 'move', 4, 4 },
{ 'setLW', 10 },
{ 'setCL', 0, 0, 0 },
Expand All @@ -847,7 +850,7 @@ local tick = GC.load { 62, 62,
{ 'setCL', COLOR.L },
{ 'line', 2, 28, 26, 48, 50, 3 },
}
local cross = GC.load { 62, 62,
local cross = GC.load { w=62, h=62,
{ 'move', 4, 4 },
{ 'setLW', 8 },
{ 'setCL', 0, 0, 0 },
Expand Down

0 comments on commit 04a739a

Please sign in to comment.