Search found 2819 matches

by pgimeno
Tue Oct 19, 2021 8:14 pm
Forum: General
Topic: How to generate clumps of minerals?
Replies: 10
Views: 199

Re: How to generate clumps of minerals?

Have you tried thinking instead of asking?
  1. Pick a random coordinate
  2. Pick two random numbers for offset.
  3. If coordinate + offset is dirt, replace it with mineral.
  4. Repeat steps 2 and 3 as many times as desired.
by pgimeno
Sun Oct 17, 2021 1:48 pm
Forum: Support and Development
Topic: How to make bitser more robust
Replies: 3
Views: 396

Re: How to make bitser more robust

MrFariator is pretty much spot-on. I'd like to add that since a userdata type is opaque to Lua (it can come from a number of sources, usually from Löve objects but also others like files), Lua doesn't know what to do with it. It might be possible to write a Löve-specific serializer that takes into a...
by pgimeno
Sat Oct 16, 2021 9:55 pm
Forum: Support and Development
Topic: extra white lines in top left corser
Replies: 3
Views: 348

Re: extra white lines in top left corser

Is there an objects layer in Tiled? Maybe STI is rendering one of those.
by pgimeno
Sat Oct 16, 2021 8:37 pm
Forum: Support and Development
Topic: How are C libraries for LÖVE handled?
Replies: 2
Views: 383

Re: How are C libraries for LÖVE handled?

Dynamic libraries linked at run time are typically handled via FFI, see http://luajit.org/ext_ffi_api.html (especially ffi.load). Making it cross-platform is not too difficult, but it requires a bit of work (apart from the binaries of course). There are LuaJIT bindings for SQLite already available, ...
by pgimeno
Sat Oct 16, 2021 7:43 pm
Forum: General
Topic: Favourite inspiring/unique games
Replies: 29
Views: 32821

Re: Favourite inspiring/unique games

To blow your mind, like, REALLY blow your mind, try Catacombs of Solaris . It's written in a framework somewhat similar to Löve, but with a built-in scene graph, called Amulet. It's more of an interactive kind of caleidoscope than a game, but still. It takes a while to understand what's going on. A ...
by pgimeno
Tue Oct 12, 2021 12:56 am
Forum: Support and Development
Topic: Having issues fading things out gradually
Replies: 5
Views: 1222

Re: Having issues fading things out gradually

You can't have it constantly darkening. You can make it fade with an inverse exponential curve, that is, multiply fadealpha by a factor every frame, and then it will never reach zero; but it will eventually be under 1/255, and then everything will be black.

Well, unless you draw something else.
by pgimeno
Sun Oct 10, 2021 6:28 am
Forum: Support and Development
Topic: Having issues fading things out gradually
Replies: 5
Views: 1222

Re: Having issues fading things out gradually

Since Zorg already explained the reason while I was typing, I'll go into more details for possible solutions. Yes, there are other ways to make a fade out effect. Have the alpha controlled by dt, like this: local fadealpha = 1.0 local fading = false -- set to true to start fading local fadespeed = 1...
by pgimeno
Sun Oct 10, 2021 12:32 am
Forum: Support and Development
Topic: [Solved]Löve performance issues on Ubuntu/Linux ?
Replies: 9
Views: 1976

Re: [Solved]Löve performance issues on Ubuntu/Linux ?

In fact, the optimizer has no information on what love.graphics.draw does, and can't assume that it has no side effects that alter an external state. And it would be right to not assume that, because two love.graphics.draw calls with the same parameters don't always produce the same results as just ...
by pgimeno
Fri Oct 08, 2021 1:29 am
Forum: Support and Development
Topic: Camera problem
Replies: 5
Views: 1810

Re: Camera problem

That's something that you should ask the library author about, but I can say that setting camera:setFollowLerp(0.2) solves it for me for these zoom levels.
by pgimeno
Thu Oct 07, 2021 1:25 pm
Forum: Support and Development
Topic: What sites do you recommend for hosting your screenshots and game? [RESOLVED]
Replies: 13
Views: 2947

Re: What sites do you recommend for hosting your screenshots and game? [RESOLVED]

I don't think forum attachments expire, and much less in a question of months. But apparently some very old stuff (2009 or so) did get lost at some point; I speculate it happened during a forum migration or something like that. See this thread where an attachment from march 2009 got lost, someone co...