整 理 代 码

(应该没有改到字符串里面的东西吧…)起码不直接影响运行
This commit is contained in:
MrZ_26
2022-10-01 11:32:11 +08:00
parent 6e00ff96ec
commit 06f4bb4e1a
236 changed files with 2087 additions and 2114 deletions

View File

@@ -24,19 +24,19 @@ end
scene.mouseDown=scene.touchDown
function scene.keyDown(key,isRep)
if not isRep and keys[key]then
if not isRep and keys[key] then
local note=keys[key]+offset
if kb.isDown('lshift','rshift')then note=note+1 end
if kb.isDown('lctrl','rctrl')then note=note-1 end
if kb.isDown('lshift','rshift') then note=note+1 end
if kb.isDown('lctrl','rctrl') then note=note-1 end
SFX.playSample(inst,note)
TEXT.show(SFX.getNoteName(note),math.random(150,1130),math.random(140,500),60,'score',.8)
elseif key=='tab'then
elseif key=='tab' then
inst=TABLE.next(instList,inst)
elseif key=='lalt'then
elseif key=='lalt' then
offset=math.max(offset-1,-12)
elseif key=='ralt'then
elseif key=='ralt' then
offset=math.min(offset+1,12)
elseif key=='escape'then
elseif key=='escape' then
SCN.back()
end
end