mirror of
https://github.com/LDDestroier/CC/
synced 2024-12-14 12:10:29 +00:00
Update tron
This commit is contained in:
parent
81b28e6015
commit
9218b030ab
28
tron
28
tron
@ -461,6 +461,21 @@ local moveTick = function()
|
||||
ageTrails()
|
||||
end
|
||||
|
||||
local modem = peripheral.find("modem")
|
||||
|
||||
if modem then
|
||||
modem.open(modemID)
|
||||
else
|
||||
error("You need a modem.")
|
||||
end
|
||||
|
||||
local sendInfo = function(gameID)
|
||||
modem.transmit(modemID, modemID, {
|
||||
player = player,
|
||||
gameID = gameID
|
||||
})
|
||||
end
|
||||
|
||||
local game = function()
|
||||
local p = player[you]
|
||||
local outcome
|
||||
@ -509,19 +524,6 @@ local game = function()
|
||||
end
|
||||
|
||||
local decision
|
||||
local modem = peripheral.find("modem")
|
||||
if modem then
|
||||
modem.open(modemID)
|
||||
else
|
||||
error("You need a modem.")
|
||||
end
|
||||
|
||||
local sendInfo = function(gameID)
|
||||
modem.transmit(modemID, modemID, {
|
||||
player = player,
|
||||
gameID = gameID
|
||||
})
|
||||
end
|
||||
|
||||
local networking = function()
|
||||
local evt, side, channel, repchannel, msg, distance
|
||||
|
Loading…
Reference in New Issue
Block a user