Search found 1111 matches

by pgimeno
Wed Jun 20, 2018 9:08 am
Forum: Libraries and Tools
Topic: Öscillofun
Replies: 26
Views: 3871

Re: Öscillofun

Nice looking :)

That looks like a spectrogram! IMO spectrograms look sooo much nicer when the magnitude at each pixel is represented by a palette colour, preferably ranging from black through cold then warm colours, peaking at bright yellow or white e.g. https://www.youtube.com/watch?v=yzFit0nldf4
by pgimeno
Wed Jun 20, 2018 8:45 am
Forum: Support and Development
Topic: Prevent freezing while working with large files?
Replies: 25
Views: 493

Re: Prevent freezing while working with large files?

Strings in LuaJIT are slow to handle. Using string.byte tends to give much better performance than string.sub. Not sure if that's the issue here, but I thought it was worth noting.
by pgimeno
Tue Jun 19, 2018 11:27 pm
Forum: Support and Development
Topic: SSL, HTTPS in Love2D
Replies: 10
Views: 190

Re: SSL, HTTPS in Love2D

Spar wrote:
Tue Jun 19, 2018 10:24 pm
pgimeno wrote:
Tue Jun 19, 2018 8:10 pm
Googling for luasec binaries gives a thread in this forum. viewtopic.php?t=76728
They're too old.
LMGTFY:

https://github.com/pkulchenko/ZeroBrane ... /bin/clibs
by pgimeno
Tue Jun 19, 2018 11:17 pm
Forum: Support and Development
Topic: [somehow Solved] Moving platforms
Replies: 2
Views: 97

Re: Moving platforms

When the player is on a platform, it should move at a speed which is the player's "normal" speed (zero if stopped, or nonzero if it's walking) PLUS the platform's speed. That should do it.
by pgimeno
Tue Jun 19, 2018 8:10 pm
Forum: Support and Development
Topic: SSL, HTTPS in Love2D
Replies: 10
Views: 190

Re: SSL, HTTPS in Love2D

Googling for luasec binaries gives a thread in this forum. viewtopic.php?t=76728
by pgimeno
Tue Jun 19, 2018 2:17 pm
Forum: Support and Development
Topic: Love 11.1 Simple 3D Camera
Replies: 5
Views: 156

Re: Love 11.1 Simple 3D Camera

Maybe this mini-demo helps? viewtopic.php?p=219345#p219345 It implements a Wolfenstein-like camera, i.e. a camera that always looks horizontally and can have any Z rotation.

Note the demo doesn't activate depth buffers or backface culling.
by pgimeno
Tue Jun 19, 2018 10:54 am
Forum: Support and Development
Topic: Spine implementation help
Replies: 1
Views: 73

Re: Spine implementation help

I know nothing about that, but the name ringed some bells so I searched and found this: https://love2d.org/forums/viewtopic.php?t=15922 Pretty impressive. By changing love.graphics.triangle to love.graphics.polygon, the demo works in 0.9 and later, including 11.0. It has a couple bugs, but it's stil...
by pgimeno
Tue Jun 19, 2018 12:47 am
Forum: Support and Development
Topic: Weird Snake behavior
Replies: 2
Views: 91

Re: Weird Snake behavior

The reason is pretty clear. You're using the top left corner of the head as your reference position. That's part of your problem. While you are, say, half way east, the floor of dividing your X coordinate by 32 is still at the square you're leaving, because your top left corner hasn't left that squa...
by pgimeno
Mon Jun 18, 2018 12:00 pm
Forum: Support and Development
Topic: access to fonts directory
Replies: 5
Views: 152

Re: access to fonts directory

As I said, LÖVE is designed to encourage cross-platform compatibility, so these things are out of the scope of what it is designed to do. Still, you can do what you want, but it's not easy. You need to mount the folder using PhysFS via FFI. I believe zorg is working on a library to make that easier,...
by pgimeno
Sun Jun 17, 2018 10:48 pm
Forum: Support and Development
Topic: access to fonts directory
Replies: 5
Views: 152

Re: file system / path

You can copy the file to a subfolder in your application and reference it with a relative path. LÖVE is made to be cross platform. It is not Windows-specific. I use Linux and I would not be able to use a program that depends on Windows- or MacOS-specific directories, just as you wouldn't be able to ...