Search found 11 matches

by mön
Thu Nov 30, 2017 9:03 pm
Forum: Games and Creations
Topic: Snake in trap #GitHubGameOff
Replies: 1
Views: 816

Snake in trap #GitHubGameOff

you need to get out of the box! there's a door that opens as long as you touch a switch... https://insert-coin.itch.io/snake A quick go at one of many possible mechanics that could be added to the classic snake. And back to löve2D after 8 years!!! :cool: https://pbs.twimg.com/media/DP5skbMXUAEbwR0.j...
by mön
Fri Dec 12, 2008 4:05 am
Forum: Libraries and Tools
Topic: LUBE (Networking Library)
Replies: 332
Views: 116442

Re: LUBE (Networking Library) v0.01.1

hey, version 0.0001 worked great! here's the result http://people.zhdk.ch/simon.broggi/archaos/archaos.png basically its 2 independent games that are linked together. if the character in the left game hits a flower the seeds fly out of the screen to spawn some power ups in the space shooter game (ri...
by mön
Wed Nov 26, 2008 12:04 pm
Forum: Libraries and Tools
Topic: LUBE (Networking Library)
Replies: 332
Views: 116442

Re: LUBE (Networking Library)

is it normal for it show "Client has disconnected" when another client connects? probably you're trying to connect several times from the same ip. the Clients table in the Server.lua uses the ip as key and disconnects if an ip which is connected sends a handshake. it should work if youre clients ru...
by mön
Tue Nov 25, 2008 9:13 pm
Forum: Libraries and Tools
Topic: LUBE (Networking Library)
Replies: 332
Views: 116442

Re: LUBE (Networking Library)

this might help.... it might also be completly wrong... but it's how i did my first test with lube... the main.lua in a server.love love.filesystem.include("Server.lua") function load() server:Init(1234)--creates an udp server and listens on port 1234 server:setHandshake("testHS")--sets the handshak...
by mön
Mon Nov 24, 2008 5:01 pm
Forum: Libraries and Tools
Topic: LUBE (Networking Library)
Replies: 332
Views: 116442

Re: LUBE (Networking Library)

hmm, thanks the servers send function confused me a bit today: function server.udp:send(data, rcpt) if rcpt then return self.socket:sendto(data, rcpt, Clients[rcpt]) else for ip, port in pairs(Clients) do return self.socket:sendto(data, ip, port) end end end i expected send to send to every client i...
by mön
Mon Nov 24, 2008 12:32 pm
Forum: Support and Development
Topic: Physics help...
Replies: 7
Views: 3210

Re: Physics help...

i use set impuls to set the velocity function mySetVelocity(body, vx, vy) local x, y = body:getVelocity() local mass body:getMass() body:applyImpulse(mass * (vx - x), mass * (vy - y)) end its also important to make the bodies have some mass, otherwise they become static and don't collide with each o...
by mön
Tue Nov 18, 2008 9:49 pm
Forum: Libraries and Tools
Topic: LUBE (Networking Library)
Replies: 332
Views: 116442

Re: LUBE (Networking Library)

nice! i just tried and managed to connect and send some data :) and i'm confident that this will work much better the tcp server i tried to code some weeks ago. I'm gona use this for a school project which should be done in 10 days... i'll let you know how it worked out.
by mön
Wed Oct 01, 2008 10:45 pm
Forum: General
Topic: Avatars: OBEY!
Replies: 735
Views: 307643

Re: Avatars: OBEY!

having an obeying avatar makes it ok for me to say hello here right?
Hi
by mön
Fri Sep 19, 2008 9:11 pm
Forum: Support and Development
Topic: Feature Request: Sockets
Replies: 5
Views: 1827

Re: Feature Request: Sockets

hmm, ok, and how is it done?
i'm currently reading the LuaSocket introduction..
any hints on how to find löve on the lan would be great!

greets, simon
by mön
Thu Sep 18, 2008 10:42 pm
Forum: Support and Development
Topic: Odd setAngle problem
Replies: 3
Views: 1214

Re: Odd setAngle problem

hello math.atan2(y, x) is really useful to rotate things around other things because it gives you the right values even when x / y are negative. hope the example helps... -- Example: Rotating according to the mouse position function load() image = love.graphics.newImage("images/love-ball.png", love....