Search found 50 matches

by pauls313
Fri Jun 26, 2020 6:51 pm
Forum: Support and Development
Topic: Is it possible to open a file on android using the file manager?
Replies: 1
Views: 1708

Is it possible to open a file on android using the file manager?

Suppose the player wants to load one image as his player sprite, is it possible to open it with the android file manager? And how would I do that?
by pauls313
Wed Nov 13, 2019 7:56 pm
Forum: Support and Development
Topic: Why won't this very simple UDP networking work?
Replies: 1
Views: 2373

Why won't this very simple UDP networking work?

This is a very very simple attempt at networking with unconnected UDP objects, but I don't understand why it won't work.

Client = sends information
Server = receives information

Press t to change type
by pauls313
Mon Nov 04, 2019 7:08 pm
Forum: Support and Development
Topic: Objects should collide only with one category
Replies: 3
Views: 3126

Re: Objects should collide only with one category

You don't need separate bodies, you can set the category and mask PER fixture. Also, you can solve this without using "groups". You need at least 3 categories "head", "feet" and "ball", correspondingly: 0x1, 0x2 and 0x4. The trick would be setting the collisi...
by pauls313
Mon Nov 04, 2019 4:26 pm
Forum: Support and Development
Topic: Objects should collide only with one category
Replies: 3
Views: 3126

Objects should collide only with one category

I'm making a 2D soccer game, and the players are made of 2 objects: Head and feet. I managed to, using groups, stop the feet and head from colliding with each other. But after adding a second player, I realized that the feet should actually ONLY collide with the ball and nothing else. How can this b...
by pauls313
Sun Apr 14, 2019 6:56 am
Forum: Support and Development
Topic: Cannot create image (OpenGL error: invalid operation)
Replies: 2
Views: 12970

Cannot create image (OpenGL error: invalid operation)

On Android (no problem on Windows), I get this error every time I try to load the attached image file which was made using photoshop. It's quite a low resolution. Why am I getting this error?
by pauls313
Sat Apr 13, 2019 6:51 pm
Forum: Support and Development
Topic: Networking between devices on the same wifi connection
Replies: 7
Views: 10781

Re: Networking between devices on the same wifi connection

Try changing your server code to this: local socket = require "socket" local udp = socket.udp() udp:settimeout(0) udp:setsockname('0.0.0.0', 12345) local data, ip, port function love.update(dt) local msg msg, ip, port = udp:receivefrom() if msg then data = msg end end function love.draw()...
by pauls313
Fri Apr 12, 2019 2:20 am
Forum: Support and Development
Topic: Networking between devices on the same wifi connection
Replies: 7
Views: 10781

Re: Networking between devices on the same wifi connection

Server: local socket = require "socket" local udp = socket.udp() udp:settimeout(0) udp:setsockname('*', 12345) local data, ip, port function love.update(dt) data, ip, port = udp:receivefrom() end function love.draw() if data then love.graphics.print(data, 300, 300) end end Client: local so...
by pauls313
Thu Apr 11, 2019 8:59 pm
Forum: Support and Development
Topic: Networking between devices on the same wifi connection
Replies: 7
Views: 10781

Re: Networking between devices on the same wifi connection

You either need to make a note of your phone and laptop's IP addresses or use the broadcast address "255.255.255.255". "localhost" and "127.0.0.1" both refer to the local machine (your phone in this example). Neither of these work. I've opened the 8090 port on my route...
by pauls313
Thu Apr 11, 2019 7:26 pm
Forum: Support and Development
Topic: Networking between devices on the same wifi connection
Replies: 7
Views: 10781

Networking between devices on the same wifi connection

Using LuaSocket Tutorial:Networking_with_UDP, how can I send packets from, say, my phone to my laptop? I've tried using 'localhost', ''127.0.0.1", "192.168.1.0" as addresses but none of these seem to work.
by pauls313
Thu Apr 11, 2019 5:52 pm
Forum: Support and Development
Topic: Löve for Android runs on a different resolution than the native one
Replies: 3
Views: 6662

Re: Löve for Android runs on a different resolution than the native one

I'm not sure if I understand? Using getPixelDimensions I got the actual resolution of my display, but from the looks of it I'm still limited to only 731x411 pixels on the screen (I see some pixel rounding errors). I'm used to making my games adaptive to all screen sizes so making it DPI scalable doe...