Search found 2 matches

by ditas
Thu Jan 21, 2021 12:46 am
Forum: Support and Development
Topic: Weird stuff with udp socket and keyboard
Replies: 3
Views: 5963

Re: Weird stuff with udp socket and keyboard

here's the full main.lua code: -- network test local socket = require("socket") local address, port = "127.0.0.1", 5555 local timeStamp local updateRate = 0.1 -- 1/10 of sec local client local t --------------- function love.load() require("staticClass") obstacles = {} ...
by ditas
Wed Jan 20, 2021 11:40 pm
Forum: Support and Development
Topic: Weird stuff with udp socket and keyboard
Replies: 3
Views: 5963

Weird stuff with udp socket and keyboard

Hello there, I'm working on online game and using love2d 11.3 (on Mac OS Catalina and Ubuntu 20.04). So I'm facing really strange issue: on update, when I'm using udp:receivefrom() I got my love.keypressed(key) function messed up. So, I'm pressing UP and my object is going down etc. Here's the code:...