aboutsummaryrefslogtreecommitdiffstats
path: root/Gamestates/Multiplayer.lua
blob: 0347238a18780599b4b8f3d0c20c54e43244438c (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
25
26
27
28
29
30
31
32
--[[
	Gamestates/Multiplayer.lua
	Multiplayer menu
	by piernov

	Comment: created for an hypothetical Internet mode.
]]--

local Multiplayer = {
	Local = require "Gamestates/Multiplayer/Local"}

local Gui = require "Quickie"
local Utils = require "Utils"

function Multiplayer:enter()
	Previous = "Gamestates/Menu"
end

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
	end}
end

function Multiplayer:draw()
	Gui.core.draw()
end


return Multiplayer