Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
830f0ffbed |
@@ -160,7 +160,6 @@ function mouseDown.draw(x,y,k)
|
||||
end
|
||||
function mouseDown.setting3(x,y,k)
|
||||
if k==2 then back()end
|
||||
sel=nil
|
||||
for K=1,#virtualkey do
|
||||
local b=virtualkey[K]
|
||||
if (x-b[1])^2+(y-b[2])^2<b[3]then
|
||||
@@ -672,7 +671,7 @@ function love.resize(w,h)
|
||||
collectgarbage()
|
||||
end
|
||||
function love.focus(f)
|
||||
if not f and scene=="play"then pauseGame()end
|
||||
if not f and wd.isMinimized()and scene=="play"then pauseGame()end
|
||||
end
|
||||
function love.update(dt)
|
||||
--[[
|
||||
@@ -776,11 +775,11 @@ function love.run()
|
||||
readyDrawFrame=readyDrawFrame+setting.frameMul
|
||||
if readyDrawFrame>=100 then
|
||||
readyDrawFrame=readyDrawFrame-100
|
||||
gc.clear()
|
||||
love.draw()
|
||||
gc.present()
|
||||
end
|
||||
::L::if Timer()-frameT<1/60 then goto L end
|
||||
frameT=Timer()
|
||||
tm.sleep(.001)
|
||||
end
|
||||
end
|
||||
2
conf.lua
2
conf.lua
@@ -9,7 +9,7 @@ function love.conf(t)
|
||||
t.audio.mixwithsystem=true--Switch on to keep sysBGM
|
||||
|
||||
local W=t.window
|
||||
W.title="Techmino V0.7.15"
|
||||
W.title="Techmino V0.7.16"
|
||||
W.icon="/image/icon.png"
|
||||
W.width,W.height=1280,720
|
||||
W.minwidth,W.minheight=640,360
|
||||
|
||||
18
dataList.lua
18
dataList.lua
@@ -149,6 +149,7 @@ loadmode={
|
||||
modeEnv[k]=customRange[k][customSel[k]]
|
||||
end
|
||||
modeEnv._20G=modeEnv.drop==-1
|
||||
modeEnv.oncehold=customSel.hold==1
|
||||
createPlayer(1,340,15)
|
||||
if modeEnv.opponent==0 then
|
||||
else
|
||||
@@ -392,9 +393,6 @@ Event={
|
||||
Event_gameover.lose()
|
||||
elseif #P.clearing>0 then
|
||||
P.cstat.event=P.cstat.event+1
|
||||
if #P.field>11 and P.cstat.event%5~=1 then
|
||||
ins(P.clearing,1)
|
||||
end
|
||||
end
|
||||
end,
|
||||
tech_reach=function()
|
||||
@@ -444,7 +442,6 @@ Event_gameover={
|
||||
if modeEnv.royaleMode then
|
||||
P.rank=1
|
||||
P.result="WIN"
|
||||
showText(P,1,"appear",60,120,nil,true)
|
||||
changeAtk(P)
|
||||
BGM("end")
|
||||
end
|
||||
@@ -457,7 +454,7 @@ Event_gameover={
|
||||
P.visTime[i][j]=min(P.visTime[i][j],20)
|
||||
end
|
||||
end
|
||||
showText(P,text.win,"beat",90,nil,nil,true)
|
||||
showText(P,text.win,"beat",90,nil,.4,curMode.id~="custom")
|
||||
SFX("win")
|
||||
end,
|
||||
lose=function()
|
||||
@@ -574,7 +571,7 @@ Event_task={
|
||||
dig_normal=function(P)
|
||||
if not P.control then return end
|
||||
P.counter=P.counter+1
|
||||
if P.counter>=max(90,180-2*P.cstat.event)then
|
||||
if P.counter>=max(90,180-P.cstat.event)then
|
||||
garbageRise(10,1,rnd(10))
|
||||
P.counter=0
|
||||
P.cstat.event=P.cstat.event+1
|
||||
@@ -583,7 +580,7 @@ Event_task={
|
||||
dig_lunatic=function(P)
|
||||
if not P.control then return end
|
||||
P.counter=P.counter+1
|
||||
if P.counter>=max(45,80-.4*P.cstat.event)then
|
||||
if P.counter>=max(45,80-.3*P.cstat.event)then
|
||||
garbageRise(11+P.cstat.event%3,1,rnd(10))
|
||||
P.counter=0
|
||||
P.cstat.event=P.cstat.event+1
|
||||
@@ -671,11 +668,12 @@ Event_task={
|
||||
r[j]=PCbase[4*t+i][j]
|
||||
end
|
||||
ins(P.field,1,r)
|
||||
ins(P.visTime,1,getNewRow(P.showTime))
|
||||
ins(P.visTime,1,getNewRow(20))
|
||||
end
|
||||
P.fieldBeneath=P.fieldBeneath+120
|
||||
-- P.curY=P.curY+4
|
||||
P.y_img=P.y_img+4
|
||||
for i=1,#P.clearing do
|
||||
P.clearing[i]=P.clearing[i]+4
|
||||
end
|
||||
freshgho()
|
||||
return true
|
||||
end
|
||||
|
||||
@@ -1054,7 +1054,8 @@ act={
|
||||
if curMode.id=="custom"and curMode.lv==2 and#P.field>0 then
|
||||
for y=1,#P.field do
|
||||
for x=1,10 do
|
||||
if P.field[y][x]~=preField[y][x]then return end
|
||||
local a,b=preField[y][x],P.field[y][x]
|
||||
if a==0 and b>0 or a<8 and a~=b or a>7 and b==0 then return end
|
||||
end
|
||||
end
|
||||
Event_gameover.win()
|
||||
|
||||
@@ -43,7 +43,7 @@ return{
|
||||
wait=nil,
|
||||
fall=nil,
|
||||
next=nil,
|
||||
hold={"开","关"},
|
||||
hold={"开","关","无限"},
|
||||
sequence={"bag7","his4","随机"},
|
||||
visible={"可见","半隐","全隐","瞬隐"},
|
||||
target={10,20,40,100,200,500,1000,"∞"},
|
||||
@@ -90,15 +90,21 @@ return{
|
||||
"不是动画,真的在加载!",
|
||||
"整个游戏都是MrZ完成的!",
|
||||
"大满贯10连击消四全清!",
|
||||
"方块研究所有一个Nspire-CX版本!",
|
||||
"<方块研究所>有一个Nspire-CX版本!",
|
||||
"B2B2B2B存在吗?",
|
||||
"MrZ旋转消5!",
|
||||
"MEGACMB!",
|
||||
"ALLSPIN!",
|
||||
"O型回旋三清?",
|
||||
"只用一个输入设备就可以玩游戏啦~",
|
||||
"只用一个输入设备就可以游玩了",
|
||||
"Miya:喵!",
|
||||
"225238922,哔哩哔哩 干杯~",
|
||||
"适度游戏益脑,沉迷游戏伤身,合理安排时间,享受健康生活",
|
||||
"合群了就会消失,但是消失不代表没有意义",
|
||||
"学会使用两个旋转键,三个更好",
|
||||
"更小的DAS和ARR拥有更高的操作上限",
|
||||
"注意到\"旋转\"到底对方块做了些什么吗?",
|
||||
"20G是一套全新的游戏规则",
|
||||
"请勿在上课时游玩本游戏!",
|
||||
},
|
||||
stat={
|
||||
"游戏运行次数:",
|
||||
|
||||
@@ -43,7 +43,7 @@ return{
|
||||
wait=nil,
|
||||
fall=nil,
|
||||
next=nil,
|
||||
hold={"ON","OFF"},
|
||||
hold={"ON","OFF","FREE"},
|
||||
sequence={"bag7","his4","random"},
|
||||
visible={"normal","time","invisible","sudden"},
|
||||
target={10,20,40,100,200,500,1000,"∞"},
|
||||
@@ -92,13 +92,19 @@ return{
|
||||
"Back to Back 10 combo Techrash PC!",
|
||||
"Techmino has a Nspire-CX edition!",
|
||||
"Is B2B2B2B possible?",
|
||||
"MrZ spin Penta!",
|
||||
"MEGACMB!",
|
||||
"ALLSPIN!",
|
||||
"O spin triple?",
|
||||
"You can play with any input device!",
|
||||
"Miya:Nya!",
|
||||
"225238922,Bilibili cheers!",
|
||||
"Playing too much = taking drugs",
|
||||
"Disappearing doesn't mean useless",
|
||||
"Try to use two rotate button,three better",
|
||||
"Small DAS&ARR can make you faster,if you can adapt to it",
|
||||
"Have you noticed what does \"rotating\" do to block?",
|
||||
"20G is a brand new game rule",
|
||||
"Do not play this game in class!",
|
||||
},
|
||||
stat={
|
||||
"Games run:",
|
||||
@@ -114,7 +120,7 @@ return{
|
||||
},
|
||||
help={
|
||||
"I don't think you need \"help\".",
|
||||
"THIS IS ONLY A SMALL BLOCK GAME",
|
||||
"THIS IS ONLY A BLOCK GAME",
|
||||
"But just play like playing TOP/C2/KOS/TGM3",
|
||||
"Game is not public now,so DO NOT DISTIRBUTE",
|
||||
"",
|
||||
|
||||
@@ -288,7 +288,7 @@ function Pnt.main()
|
||||
gc.setColor(1,1,1)
|
||||
gc.draw(titleImage,300,30)
|
||||
setFont(30)
|
||||
gc.print("Alpha V0.7.15",290,140)
|
||||
gc.print("Alpha V0.7.16",290,140)
|
||||
gc.print(system,800,110)
|
||||
end
|
||||
function Pnt.mode()
|
||||
@@ -620,6 +620,7 @@ function Pnt.play()
|
||||
end
|
||||
end
|
||||
function Pnt.pause()
|
||||
Pnt.play()
|
||||
gc.setColor(0,0,0,pauseTime*.015)
|
||||
gc.rectangle("fill",0,0,1280,720)
|
||||
if system~="Android"then
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
local wd=love.window
|
||||
local Timer=love.timer.getTime
|
||||
|
||||
Tmr={}
|
||||
@@ -276,7 +277,7 @@ function Tmr.play(dt)
|
||||
if modeEnv.royaleMode and frame%120==0 then freshMostDangerous()end
|
||||
end
|
||||
function Tmr.pause(dt)
|
||||
if pauseTime<50 then
|
||||
if not wd.isMinimized()and pauseTime<50 then
|
||||
pauseTime=pauseTime+1
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user