整理代码,回放时按住空格可以三倍速播放
This commit is contained in:
@@ -2,7 +2,6 @@ local C=COLOR
|
|||||||
return{
|
return{
|
||||||
anykey="Press a key!",
|
anykey="Press a key!",
|
||||||
sureQuit="Press again to exit",
|
sureQuit="Press again to exit",
|
||||||
httpTimeout="Connection error: Timed out",
|
|
||||||
newDay="A new day, a new beginning!",
|
newDay="A new day, a new beginning!",
|
||||||
playedLong="You have been playing for a long time. Make sure to rest well!",
|
playedLong="You have been playing for a long time. Make sure to rest well!",
|
||||||
playedTooMuch="You have been playing for too long! Playing a block game is fun, but it's time to take a break.",
|
playedTooMuch="You have been playing for too long! Playing a block game is fun, but it's time to take a break.",
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ return{
|
|||||||
fallback=4,
|
fallback=4,
|
||||||
anykey="Pulsa cualquier tecla",
|
anykey="Pulsa cualquier tecla",
|
||||||
sureQuit="Pulsa de nuevo para salir",
|
sureQuit="Pulsa de nuevo para salir",
|
||||||
httpTimeout="¡Tiempo de espera de conexión agotado!",
|
|
||||||
newDay="[Anti-adicción] ¡Nuevo día, nuevo comienzo!",
|
newDay="[Anti-adicción] ¡Nuevo día, nuevo comienzo!",
|
||||||
playedLong="[Anti-adicción] Estuviste jugando un buen rato hoy. Recuerda descansar de vez en cuando.",
|
playedLong="[Anti-adicción] Estuviste jugando un buen rato hoy. Recuerda descansar de vez en cuando.",
|
||||||
playedTooMuch="[Anti-adicción] ¡Has jugado mucho por hoy! No puedes jugar más.",
|
playedTooMuch="[Anti-adicción] ¡Has jugado mucho por hoy! No puedes jugar más.",
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ return{
|
|||||||
fallback=4,
|
fallback=4,
|
||||||
anykey="Appuyez sur n'importe quelle touche",
|
anykey="Appuyez sur n'importe quelle touche",
|
||||||
sureQuit="Appuyez à nouveau pour sortir",
|
sureQuit="Appuyez à nouveau pour sortir",
|
||||||
httpTimeout="La connexion au réseau ne s'est pas faite à temps.",
|
|
||||||
newDay="[Anti-addiction] Nouveau jour, nouveau commencement !",
|
newDay="[Anti-addiction] Nouveau jour, nouveau commencement !",
|
||||||
playedLong="[Anti-addiction] Vous avez joué pendant un bon bout de temps aujourd'hui. Faites des pauses.",
|
playedLong="[Anti-addiction] Vous avez joué pendant un bon bout de temps aujourd'hui. Faites des pauses.",
|
||||||
playedTooMuch="[Anti-addiction] Vous avez joué trop longtemps ! Vous ne pouvez plus jouer.",
|
playedTooMuch="[Anti-addiction] Vous avez joué trop longtemps ! Vous ne pouvez plus jouer.",
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ return{
|
|||||||
fallback=4,
|
fallback=4,
|
||||||
anykey="Pressione qualquer tecla",
|
anykey="Pressione qualquer tecla",
|
||||||
sureQuit="Aparte novamente para sair",
|
sureQuit="Aparte novamente para sair",
|
||||||
httpTimeout="Conexão de rede expirou",
|
|
||||||
newDay="[Anti-vício] Novo dia, um começo novo!",
|
newDay="[Anti-vício] Novo dia, um começo novo!",
|
||||||
playedLong="[Anti-vício] Você andou jogando bastante hoje. Certifique-se de fazer pausas.",
|
playedLong="[Anti-vício] Você andou jogando bastante hoje. Certifique-se de fazer pausas.",
|
||||||
playedTooMuch="[Anti-vício] Você esteve jogando demais hoje! Você não pode jogar mais.",
|
playedTooMuch="[Anti-vício] Você esteve jogando demais hoje! Você não pode jogar mais.",
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
return{
|
return{
|
||||||
fallback=4,
|
fallback=4,
|
||||||
anykey="↓□↓",
|
anykey="↓□↓",
|
||||||
httpTimeout="e??????x",
|
|
||||||
|
|
||||||
atkModeName={"?","( )","!","←→"},
|
atkModeName={"?","( )","!","←→"},
|
||||||
royale_remain="$1 ~",
|
royale_remain="$1 ~",
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
return{
|
return{
|
||||||
anykey="您开始了",
|
anykey="您开始了",
|
||||||
httpTimeout="没网或者网不好?",
|
|
||||||
playedLong="今天玩很久了,给我注意点",
|
playedLong="今天玩很久了,给我注意点",
|
||||||
playedTooMuch="特么再玩小心眼睛瞎掉,爬",
|
playedTooMuch="特么再玩小心眼睛瞎掉,爬",
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ local C=COLOR
|
|||||||
return{
|
return{
|
||||||
anykey="按任意键继续",
|
anykey="按任意键继续",
|
||||||
sureQuit="再按一次退出",
|
sureQuit="再按一次退出",
|
||||||
httpTimeout="网络连接超时!",
|
|
||||||
newDay="新的一天,新的开始~",
|
newDay="新的一天,新的开始~",
|
||||||
playedLong="已经玩很久了!注意休息!",
|
playedLong="已经玩很久了!注意休息!",
|
||||||
playedTooMuch="今天玩太久啦!打块好玩但也要适可而止哦~",
|
playedTooMuch="今天玩太久啦!打块好玩但也要适可而止哦~",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
local gc,tc=love.graphics,love.touch
|
local gc,kb,tc=love.graphics,love.keyboard,love.touch
|
||||||
local sin=math.sin
|
local sin=math.sin
|
||||||
local SCR,VK=SCR,VK
|
local SCR,VK=SCR,VK
|
||||||
local GAME=GAME
|
local GAME=GAME
|
||||||
@@ -117,42 +117,48 @@ function scene.gamepadUp(key)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function scene.update(dt)
|
local function update_common(dt)
|
||||||
local _
|
--Update control
|
||||||
|
|
||||||
--Replay
|
|
||||||
if GAME.replaying then
|
|
||||||
_=GAME.replaying
|
|
||||||
local P1=PLAYERS[1]
|
|
||||||
local L=GAME.rep
|
|
||||||
while P1.frameRun==L[_]do
|
|
||||||
local key=L[_+1]
|
|
||||||
if key==0 then--Just wait
|
|
||||||
elseif key<=32 then--Press key
|
|
||||||
P1:pressKey(key)
|
|
||||||
VK.press(key)
|
|
||||||
elseif key<=64 then--Release key
|
|
||||||
P1:releaseKey(key-32)
|
|
||||||
VK.release(key-32)
|
|
||||||
end
|
|
||||||
_=_+2
|
|
||||||
end
|
|
||||||
GAME.replaying=_
|
|
||||||
end
|
|
||||||
|
|
||||||
touchMoveLastFrame=false
|
touchMoveLastFrame=false
|
||||||
VK.update()
|
VK.update()
|
||||||
|
|
||||||
--Update players
|
--Update players
|
||||||
for p=1,#PLAYERS do PLAYERS[p]:update(dt)end
|
for p=1,#PLAYERS do PLAYERS[p]:update(dt)end
|
||||||
|
|
||||||
--Warning check
|
|
||||||
checkWarning()
|
|
||||||
|
|
||||||
--Fresh royale target
|
--Fresh royale target
|
||||||
if GAME.modeEnv.royaleMode and PLAYERS[1].frameRun%120==0 then
|
if GAME.modeEnv.royaleMode and PLAYERS[1].frameRun%120==0 then
|
||||||
freshMostDangerous()
|
freshMostDangerous()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--Warning check
|
||||||
|
checkWarning()
|
||||||
|
end
|
||||||
|
function scene.update(dt)
|
||||||
|
local repPtr=GAME.replaying
|
||||||
|
if repPtr then
|
||||||
|
for _=1,kb.isDown("space")and 3 or 1 do
|
||||||
|
if repPtr then
|
||||||
|
local P1=PLAYERS[1]
|
||||||
|
local L=GAME.rep
|
||||||
|
while P1.frameRun==L[repPtr]do
|
||||||
|
local key=L[repPtr+1]
|
||||||
|
if key==0 then--Just wait
|
||||||
|
elseif key<=32 then--Press key
|
||||||
|
P1:pressKey(key)
|
||||||
|
VK.press(key)
|
||||||
|
elseif key<=64 then--Release key
|
||||||
|
P1:releaseKey(key-32)
|
||||||
|
VK.release(key-32)
|
||||||
|
end
|
||||||
|
repPtr=repPtr+2
|
||||||
|
end
|
||||||
|
GAME.replaying=repPtr
|
||||||
|
end
|
||||||
|
update_common(dt)
|
||||||
|
end
|
||||||
|
else
|
||||||
|
update_common(dt)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function drawAtkPointer(x,y)
|
local function drawAtkPointer(x,y)
|
||||||
|
|||||||
Reference in New Issue
Block a user