blob: 879a1003fa0933141331d7524a0253de10afc42e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
local Multiplayer = {
Local = require "Gamestates/Multiplayer/Local",
Internet = require "Gamestates/Multiplayer/Internet"}
local Gui = require "Quickie"
local Utils = require "Utils"
function Multiplayer:update(dt)
Gui.group{grow = "down", pos = {Utils.percentCoordinates(10, 10)}, function()
if Gui.Button{text = "Local", size = {Utils.percentCoordinates(80, 20)}} then
Gamestate.switch(Multiplayer.Local)
end
if Gui.Button{text = "Internet", size = {Utils.percentCoordinates(80, 20)}} then
Gamestate.switch(Multiplayer.Internet)
end
end}
end
function Multiplayer:draw()
Gui.core.draw()
end
return Multiplayer
|