aboutsummaryrefslogtreecommitdiffstats
path: root/Gamestates/Multiplayer.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Gamestates/Multiplayer.lua')
-rw-r--r--Gamestates/Multiplayer.lua18
1 files changed, 13 insertions, 5 deletions
diff --git a/Gamestates/Multiplayer.lua b/Gamestates/Multiplayer.lua
index 879a100..0347238 100644
--- a/Gamestates/Multiplayer.lua
+++ b/Gamestates/Multiplayer.lua
@@ -1,18 +1,26 @@
+--[[
+ Gamestates/Multiplayer.lua
+ Multiplayer menu
+ by piernov
+
+ Comment: created for an hypothetical Internet mode.
+]]--
+
local Multiplayer = {
- Local = require "Gamestates/Multiplayer/Local",
- Internet = require "Gamestates/Multiplayer/Internet"}
+ 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
- if Gui.Button{text = "Internet", size = {Utils.percentCoordinates(80, 20)}} then
- Gamestate.switch(Multiplayer.Internet)
- end
end}
end