GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - luluworlds/luluworlds: teeworlds 0.7 client written in lua

BranchesTags
Open more actions menu

Latest commit

 

History

60 Commits
60 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
rockspecs
rockspecs
 
 
scripts
scripts
 
 
spec
spec
 
 
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
client.lua
client.lua
 
 
luluworlds-scm-0.rockspec
luluworlds-scm-0.rockspec
 
 

Repository files navigation

luluworlds

A teeworlds 0.7 client written in lua.

sudo apt-get install luarocks
luarocks install luluworlds-scm-0.rockspec
lua client.lua "connect localhost:8303"

Example usage

local signal = require("posix.signal")

local client = require("luluworlds.teeworlds_client")
local connection = require("luluworlds.connection")
local network = require("luluworlds.network")

client:connect("127.0.0.1", 8303)

local function on_shutdown()
	io.write("Quitting. Sending disconnect ...\n")
	xpcall(
		function ()
			client.socket:send(connection.build_packet(client, {string.char(network.CTRL_CLOSE)}, true))
		end,
		function (err)
			print("failed to disconnect: ", err)
		end
	)
end

signal.signal(signal.SIGINT, function(signum)
	on_shutdown()
	os.exit(128 + signum)
end)

while true do
	local data = client.socket:receive()
	if data ~= nil then
		client:on_data(data)
	end
end

Tests

lua spec/*.lua

About

teeworlds 0.7 client written in lua

Topics

ddnetddnet-clientteeworldsteeworlds-clientteeworlds-protocol

Resources

Readme
Zlib license
Activity
Custom properties

Stars

3 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.