Skip to content

Commit

Permalink
改背景动图素材名
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Jan 3, 2025
1 parent e3f4fc5 commit 0597df4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion assets/background/play.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function back.draw()
gc.translate(SCR.w/2,SCR.h/2)
gc.setColor(1,1,1)
gc.setShader(SHADER.gaussianBlur)
local tex=TEX.menu[floor(love.timer.getTime()*8%6+1)]
local tex=TEX.bg_anim[floor(love.timer.getTime()*8%6+1)]
GC.mDraw(
tex,0,0,0,
min(SCR.w/tex:getWidth(),SCR.h/tex:getHeight())
Expand Down
2 changes: 1 addition & 1 deletion assets/background/title.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function back.draw()
gc.replaceTransform(SCR.origin)
gc.translate(SCR.w/2,SCR.h/2)
gc.setColor(1,1,1)
local tex=TEX.menu[floor(love.timer.getTime()*12%6+1)]
local tex=TEX.bg_anim[floor(love.timer.getTime()*12%6+1)]
GC.mDraw(
tex,0,0,0,
min(SCR.w/tex:getWidth(),SCR.h/tex:getHeight())
Expand Down
3 changes: 2 additions & 1 deletion assets/game.lua
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function Game.new(data)
-- decoSB:add(
pathSB:add(
item,
cell.x-.3,cell.y-.3,
cell.x-.26,cell.y-.26,
nil,0.004,nil,
-- cell.x,cell.y,
-- nil,0.01,nil,
Expand Down Expand Up @@ -225,6 +225,7 @@ function Game.new(data)
addQ('deco',cell,prop,QUAD.world.warn)
elseif prop[1]=='reverse' then
addQ('text',cell,prop,"R")
addQ('deco',cell,prop,QUAD.world.warn)
end

if Prop[prop[1]].tag then
Expand Down
14 changes: 7 additions & 7 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ do -- Image & Texture & Quad
world={
default=path('world_default.png'),
},
menu={
path('menu_anim/1.png'),
path('menu_anim/2.png'),
path('menu_anim/3.png'),
path('menu_anim/4.png'),
path('menu_anim/5.png'),
path('menu_anim/6.png'),
bg_anim={
path('bg_anim/1.png'),
path('bg_anim/2.png'),
path('bg_anim/3.png'),
path('bg_anim/4.png'),
path('bg_anim/5.png'),
path('bg_anim/6.png'),
},
},true)

Expand Down

0 comments on commit 0597df4

Please sign in to comment.