Search found 30 matches

by Мэтю
Thu Jul 26, 2018 1:18 pm
Forum: Libraries and Tools
Topic: sock.lua - A simple networking library for LÖVE
Replies: 80
Views: 20518

Re: sock.lua - A simple networking library for LÖVE

what am i doing wrong? I keep getting error during service and can;'t serialize message: serialize was not sent net = require "lib.sock" local id = "" local joined = false; local server = net.newServer("localhost", 50301) local client = net.newClient("localhost", 50302) local messages = {} local me...
by Мэтю
Tue Jul 24, 2018 2:02 am
Forum: Libraries and Tools
Topic: [11.1] Litte Menu Engine
Replies: 4
Views: 1539

Re: [11.1] Litte Menu Engine

Quick update:
I used it briefly, and something I missed was passing an argument to the entry function. So, I made a pull request to your repository on github
You might review if it's suitable for your library xD
by Мэтю
Mon Jul 23, 2018 2:24 pm
Forum: General
Topic: connection reffused
Replies: 3
Views: 612

Re: connection reffused

Silly question: Are you at least running a server at this port? You only wrote the client part, which connects to a server. If no server is running on the port of your desire then the connection will be refused
by Мэтю
Wed Jul 18, 2018 1:38 pm
Forum: Libraries and Tools
Topic: [11.1] Litte Menu Engine
Replies: 4
Views: 1539

Re: [11.1] Litte Menu Engine

Really cool and simple, nice work. Just took a brief look at your code, and I saw you made the table menuengine global. What are the reasons about this choice? Actually I'm not a very good programmer, I'm just used to use local variables almost all the time. I'm going to use your library and give a ...
by Мэтю
Tue Feb 13, 2018 11:33 am
Forum: General
Topic: Löve Game Hosting Site
Replies: 3
Views: 644

Re: Löve Game Hosting Site

Do it, would be awesome. Btw, I've done some stuff with nodejs at my work, nothing much, but if any help is needed, maybe I could help. Wish you luck!
by Мэтю
Sun Aug 06, 2017 11:30 pm
Forum: General
Topic: NooB Problem
Replies: 2
Views: 638

Re: NooB Problem

It's too fast because the speed love.update is called. It's very fast, here in my computer the time between each call is about to 0.017 ("rounded"), so that's much more than 1 time per second, so your player is going to walk 32 units everytime update is called, then it will be very fast. To get rid ...
by Мэтю
Sun Aug 06, 2017 6:15 pm
Forum: Support and Development
Topic: Collision by color
Replies: 7
Views: 1124

Re:

... So, problably, theres no way to call a color as collision, in Lua/Löve. :( There's a way, but maybe it has not a good performance. Btw, I was toying around with some code to try to satiate your doubt. Then I come to a code that tries to do a collision pixel-per-pixel for a certain color. I'll a...
by Мэтю
Sun Aug 06, 2017 12:15 am
Forum: Support and Development
Topic: Collision by color
Replies: 7
Views: 1124

Re: Collision by color

I suggest you to use some libraries that are made by community. A example is bump.lua by Kikito, which can be found here: https://github.com/kikito/bump.lua If you are willing to do your own collision system, you should read about AABB collision. Here are something that may help you: https://www.gam...
by Мэтю
Sun Aug 06, 2017 12:02 am
Forum: Support and Development
Topic: [SOLVED] for Smooth tile-based collision :D
Replies: 5
Views: 1005

Re: [Help] for Smooth tile-based collision

Talking a little 'bout your current code: - I think it might be better to each table inside your tilemap table to be all the same length or you may get some troubles or need to do some extra calculations ... - Try reading a bit about code and variable scope. Some nice articles: - http://blogs.love2d...
by Мэтю
Thu Aug 03, 2017 11:01 pm
Forum: Support and Development
Topic: [SOLVED] Help. Big memory leak. Not sure why.
Replies: 2
Views: 568

Re: Help. Big memory leak. Not sure why.

Well, the problem is: You are iterating over a table that stores the entities from that map, so for each entity, you add a new one to the table, but it's still iterating, then you got an endless loop. I made some modifications to your code so I think it works the way you intended. Also commented wha...