Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Networked Game Test
- --]]
- local netGames = {} --object that contains all games
- local addGame = function(cfg)
- return {
- screen = {"","",""} --to be term.blit()'d
- player = {
- [1] = {
- name = cfg.p1name
- x = -3,
- y = 0,
- col = cfg.p1col,
- dir = 0,
- trail = {},
- },
- [2] = {
- cfg.p2name
- x = 3,
- y = 0,
- col = cfg.p2col,
- dir = 0,
- trail = {}
- }
- }
- }
- end
- netGames.fart = addGame({p1name="Player 1",p2name="Player 2",p1col=colors.blue,p2col=colors.red})
- --to be finished!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement