Skip to content

Commit

Permalink
修之前不小心删了finish时丢弃hand
Browse files Browse the repository at this point in the history
框架跟进
  • Loading branch information
MrZ626 committed May 12, 2024
1 parent 802228b commit 9b1fc26
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Zenitha
Submodule Zenitha updated 1 files
+32 −31 init.lua
1 change: 1 addition & 0 deletions assets/game/basePlayer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ function P:finish(reason)
if self.finished then return end
self.timing=false
self.finished=reason
self.hand=false
self.spawnTimer=1e99

self:triggerEvent('gameOver',reason)
Expand Down
26 changes: 25 additions & 1 deletion main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ ZENITHA.setMaxFPS(260)
ZENITHA.setDebugInfo{
{"Cache", gcinfo},
{"Tasks", TASK.getCount},
{"Mouse", function() local x,y=SCR.xOy:inverseTransformPoint(love.mouse.getPosition()) return math.floor(x+.5)..' '..math.floor(y+.5) end},
{"Mouse", function() return ("%d %d"):format(SCR.xOy:inverseTransformPoint(love.mouse.getPosition())) end},
-- {"FMOD", function() local a,b,c=FMOD.studio:getMemoryUsage() return a..","..b..","..c end}, -- Only available in logging builds Fmod
}

Expand Down Expand Up @@ -214,8 +214,30 @@ IMG.init{
},
title_techmino='assets/image/title_techmino.png',
logo_fmod='assets/image/logo_fmod.png',
-- touhou=(function()
-- local path='assets/image/touhou/'
-- local L={}
-- for _,v in next,love.filesystem.getDirectoryItems(path) do
-- if FILE.isSafe(path..v) then
-- L[tonumber(v:match("%d+"))]=path..v
-- end
-- end
-- return L
-- end)(),
touhou={
ball='assets/image/touhou/ball.png',
reimu='assets/image/touhou/001.png',
marisa='assets/image/touhou/002.png',
},
heart={
'assets/image/heart/1.png',
'assets/image/heart/2.png',
'assets/image/heart/3.png',
'assets/image/heart/4.png',
},
}

Text=nil---@type Techmino.I18N
LANG.add{
en='assets/language/lang_en.lua',
zh='assets/language/lang_zh.lua',
Expand Down Expand Up @@ -417,6 +439,8 @@ for _,v in next,{
'gela_jelly',

'acry_template',

'touhou.brik_reimu',
} do
if FILE.isSafe('assets/skin/'..v..'.lua') then
SKIN.add(v,require('assets/skin/'..v))
Expand Down

0 comments on commit 9b1fc26

Please sign in to comment.