Search found 1873 matches

by pgimeno
Wed Nov 13, 2019 11:15 pm
Forum: Support and Development
Topic: Why won't this very simple UDP networking work?
Replies: 1
Views: 77

Re: Why won't this very simple UDP networking work?

The semantics of not using setsockname() on the server are not clear to me, as there's no port defined. The LuaSocket manual says: "To associate an UDP socket with a local address, an application calls the setsockname method before sending any datagrams. Otherwise, the socket is automatically bound ...
by pgimeno
Wed Nov 13, 2019 3:34 am
Forum: Support and Development
Topic: How can I close window if game has thrown error?
Replies: 1
Views: 105

Re: How can I close window if game has thrown error?

Code: Select all

function love.errorhandler(msg)
  -- doing nothing here will just exit quietly
end
See docs here: love.errorhandler
by pgimeno
Tue Nov 12, 2019 2:18 pm
Forum: Games and Creations
Topic: Do Console Dream of Romeo - Cyberpunk Strategy Chess
Replies: 3
Views: 1442

Re: Do Console Dream of Romeo - Cyberpunk Strategy Chess

Sounds like the "using isDown instead of isScancodeDown syndrome". Or the "using first instead of second parameter of keypressed" symdrome. Or both. Or none.
by pgimeno
Mon Nov 11, 2019 10:09 pm
Forum: Libraries and Tools
Topic: cam11 - Yet another camera library
Replies: 4
Views: 170

Re: cam11 - Yet another camera library

Yeah, sure thing. Feel free to grab any ideas you find interesting. I've updated the library to make the speed be more on par with gamera. I had to disable hump testing, as it seems to interrupt tracing (because of the love.graphics.getWidth/Height call I presume). JIT off: Screen to World coords co...
by pgimeno
Mon Nov 11, 2019 12:40 pm
Forum: Libraries and Tools
Topic: cam11 - Yet another camera library
Replies: 4
Views: 170

Re: cam11 - Yet another camera library

Thanks zorg, that's a false friend that slipped in :) "ángulo" also means "corner" in Spanish. To be honest, I hadn't tested them. Now I have. Here's the test program: local cam11 = require 'cam11' local stalker = require 'stalker-x' local gamera = require 'gamera' local humpcamera = require 'hump_c...
by pgimeno
Mon Nov 11, 2019 1:06 am
Forum: Libraries and Tools
Topic: cam11 - Yet another camera library
Replies: 4
Views: 170

cam11 - Yet another camera library

Having gamera, hump.camera and STALKER-X around, one may wonder, does the world really need yet another camera library? No, it really doesn't. Unless... ok, ok, not that either. Or, well, maybe a little, if you are like me, and prefer that the guts of your libraries are as optimal as they can be. An...
by pgimeno
Sun Nov 10, 2019 5:34 pm
Forum: Support and Development
Topic: Can we store 3d vertices in GPU memory?
Replies: 7
Views: 223

Re: Can we store 3d vertices in GPU memory?

Note I meant Mesh:setVertexMap. But now that I think about it, you probably can't use that, since the UVs need to be different depending on the face the vertex belongs to.
by pgimeno
Sun Nov 10, 2019 11:32 am
Forum: Support and Development
Topic: Can we store 3d vertices in GPU memory?
Replies: 7
Views: 223

Re: Can we store 3d vertices in GPU memory?

My problem is each block face is generating 2 triangles, 6 vertices so 36 total vertices. Using a vertex list should reduce that to 8, adding the overhead of the list of course which is 36 single numbers. If you manage to share them between blocks, the 8 would be reduced even further, to 1 per bloc...
by pgimeno
Sat Nov 09, 2019 6:00 pm
Forum: Support and Development
Topic: [SOLVED] How is the mouse coordinates in love2d calculated? My problem with camera and mouse.
Replies: 2
Views: 115

Re: How is the mouse coordinates in love2d calculated? My problem with camera and mouse.

Every good camera library has functions to convert from screen to world and vice versa. Try this: https://github.com/adnzzzzZ/STALKER-X#u ... dcoordsx-y

If you still have problems after trying that, I'll take a look.
by pgimeno
Fri Nov 08, 2019 12:17 am
Forum: Support and Development
Topic: How to check if a keypress is associated with text input?
Replies: 15
Views: 1498

Re: How to check if a keypress is associated with text input?

I know this is very old, and some people will probably want to kill me for necroposting, but just in case it turns up in some search, here's my solution: https://love2d.org/forums/viewtopic.php?f=4&t=87628 Maybe airstruck is still interested in implementing this in Luigi, after all :nyu: Pinging, ju...