排位战菜单(只是菜单,没有功能)
This commit is contained in:
BIN
media/BGM/exploration.ogg
Normal file
BIN
media/BGM/exploration.ogg
Normal file
Binary file not shown.
36
parts/backgrounds/suitup.lua
Normal file
36
parts/backgrounds/suitup.lua
Normal file
@@ -0,0 +1,36 @@
|
||||
--Space with stars
|
||||
local gc=love.graphics
|
||||
local back={}
|
||||
|
||||
local upCover do
|
||||
local L={1,64}
|
||||
for i=0,63 do
|
||||
table.insert(L,{'setCL',.6,1,1,i*.01})
|
||||
table.insert(L,{'fRect',0,63-i,1,1})
|
||||
end
|
||||
upCover=DOGC(L)
|
||||
end
|
||||
local downCover do
|
||||
local L={1,64}
|
||||
for i=0,63 do
|
||||
table.insert(L,{'setCL',1,.5,.8,i*.01})
|
||||
table.insert(L,{'fRect',0,i,1,1})
|
||||
end
|
||||
downCover=DOGC(L)
|
||||
end
|
||||
|
||||
local W,H
|
||||
function back.init()
|
||||
BG.resize(SCR.w,SCR.h)
|
||||
end
|
||||
function back.resize(w,h)
|
||||
W,H=w,h
|
||||
end
|
||||
function back.update()
|
||||
end
|
||||
function back.draw()
|
||||
gc.clear(.1,.1,.1)
|
||||
gc.draw(upCover,0,0,0,W,H*.3/64)
|
||||
gc.draw(downCover,0,H*.7,0,W,H*.3/64)
|
||||
end
|
||||
return back
|
||||
@@ -253,10 +253,14 @@ return{
|
||||
quit="Quit (Q)",
|
||||
},
|
||||
net_menu={
|
||||
league="Tech League",
|
||||
ffa="FFA",
|
||||
rooms="Rooms",
|
||||
logout="Log out",
|
||||
},
|
||||
net_league={
|
||||
match="Find Match",
|
||||
},
|
||||
net_rooms={
|
||||
refreshing="Refreshing rooms",
|
||||
noRoom="There aren't any rooms right now...",
|
||||
|
||||
@@ -225,10 +225,14 @@ return{
|
||||
quit="Quitter (Q)",
|
||||
},
|
||||
net_menu={
|
||||
-- league="Tech League",
|
||||
ffa="FFA",
|
||||
rooms="Salons",
|
||||
-- logout="Log out",
|
||||
},
|
||||
net_league={
|
||||
-- match="Find Match",
|
||||
},
|
||||
net_rooms={
|
||||
-- refreshing="Refreshing Rooms",
|
||||
noRoom="Aucun salon actuellement",
|
||||
|
||||
@@ -252,10 +252,14 @@ return{
|
||||
quit="Sair (Q)",
|
||||
},
|
||||
net_menu={
|
||||
-- league="Tech League",
|
||||
ffa="FFA",
|
||||
rooms="Salas",
|
||||
-- logout="Log out",
|
||||
},
|
||||
net_league={
|
||||
-- match="Find Match",
|
||||
},
|
||||
net_rooms={
|
||||
-- refreshing="Refreshing Rooms",
|
||||
noRoom="Nenhuma sala agora",
|
||||
|
||||
@@ -230,10 +230,14 @@ return{
|
||||
quit="Finalizar (Q)",
|
||||
},
|
||||
net_menu={
|
||||
-- league="Tech League",
|
||||
ffa="FFA",
|
||||
rooms="Salas",
|
||||
-- logout="Log out",
|
||||
},
|
||||
net_league={
|
||||
-- match="Find Match",
|
||||
},
|
||||
net_rooms={
|
||||
-- refreshing="Refreshing Rooms",
|
||||
noRoom="No Hay Salas Actualmente",
|
||||
|
||||
@@ -253,10 +253,14 @@ return{
|
||||
quit="退出(Q)",
|
||||
},
|
||||
net_menu={
|
||||
league="Tech League",
|
||||
ffa="FFA",
|
||||
rooms="房间列表",
|
||||
logout="退出登录",
|
||||
},
|
||||
net_league={
|
||||
match="匹配对手",
|
||||
},
|
||||
net_rooms={
|
||||
refreshing="刷新房间列表中",
|
||||
noRoom="一个房间都没有哎...",
|
||||
|
||||
37
parts/scenes/net_league.lua
Normal file
37
parts/scenes/net_league.lua
Normal file
@@ -0,0 +1,37 @@
|
||||
local gc=love.graphics
|
||||
local leagueTitle=DOGC{600,110,
|
||||
{'setFT',100},
|
||||
{'origin'},{'shear',-.30,0},{'print',"T",27,-20},
|
||||
{'origin'},{'shear',-.25,0},{'print',"e",73,-20},
|
||||
{'origin'},{'shear',-.20,0},{'print',"c",127,-20},
|
||||
{'origin'},{'shear',-.15,0},{'print',"h",171,-20},
|
||||
{'origin'},{'shear',-.05,0},{'print',"L",268,-20},
|
||||
{'origin'},{'shear',.00,0},{'print',"e",313,-20},
|
||||
{'origin'},{'shear',.05,0},{'print',"a",363,-20},
|
||||
{'origin'},{'shear',.10,0},{'print',"g",414,-20},
|
||||
{'origin'},{'shear',.15,0},{'print',"u",466,-20},
|
||||
{'origin'},{'shear',.20,0},{'print',"e",518,-20},
|
||||
}
|
||||
|
||||
local scene={}
|
||||
|
||||
function scene.sceneInit()
|
||||
BG.set('suitup')
|
||||
BGM.play('exploration')
|
||||
end
|
||||
|
||||
function scene.draw()
|
||||
mDraw(leagueTitle,640,192,0,1.5)
|
||||
gc.setColor(1,1,1,.3)
|
||||
mDraw(leagueTitle,640,200,0,1.51,1.53)
|
||||
drawSelfProfile()
|
||||
drawOnlinePlayerCount()
|
||||
end
|
||||
|
||||
scene.widgetList={
|
||||
WIDGET.newKey{name="setting",fText=TEXTURE.setting,x=1200,y=160,w=90,h=90,code=goScene'setting_game'},
|
||||
WIDGET.newKey{name="match",x=640,y=500,w=760,h=140,font=60,code=NULL},
|
||||
WIDGET.newButton{name="back",x=1140,y=640,w=170,h=80,font=40,code=backScene},
|
||||
}
|
||||
|
||||
return scene
|
||||
@@ -16,9 +16,10 @@ function scene.draw()
|
||||
end
|
||||
|
||||
scene.widgetList={
|
||||
WIDGET.newKey{name="setting",fText=TEXTURE.setting,x=1200,y=160,w=90,h=90,code=goScene"setting_game"},
|
||||
WIDGET.newButton{name="ffa", x=640, y=260,w=350,h=120,font=40,code=function()NET.enterRoom({name="ffa"})end},
|
||||
WIDGET.newButton{name="rooms", x=640, y=460,w=350,h=120,font=40,code=goScene"net_rooms"},
|
||||
WIDGET.newKey{name="setting",fText=TEXTURE.setting,x=1200,y=160,w=90,h=90,code=goScene'setting_game'},
|
||||
WIDGET.newButton{name="league", x=640, y=180,w=350,h=120,font=40,color='dH',code=goScene'net_league'},
|
||||
WIDGET.newButton{name="ffa", x=640, y=360,w=350,h=120,font=40,color='dH',code=function()NET.enterRoom({name="ffa"})end},
|
||||
WIDGET.newButton{name="rooms", x=640, y=540,w=350,h=120,font=40,code=goScene'net_rooms'},
|
||||
WIDGET.newButton{name="logout", x=880, y=40,w=180,h=60,color='dR',
|
||||
code=function()
|
||||
if TIME()-lastLogoutTime<1 then
|
||||
|
||||
Reference in New Issue
Block a user