Search found 2553 matches

by pgimeno
Tue Apr 13, 2021 2:31 am
Forum: Support and Development
Topic: Multidimentional arrays/Tables
Replies: 12
Views: 295

Re: Multidimentional arrays/Tables

It depends, even in LuaJIT. Undefined is the right word.

Code: Select all

$ luajit -e 'print(#{1,2,nil,4})'
4
by pgimeno
Mon Apr 12, 2021 9:59 am
Forum: Support and Development
Topic: How much C++ really improves Love?
Replies: 4
Views: 153

Re: How much C++ really improves Love?

There are modules wrote in C/C++ that can be loaded simply by require(), since they implement functions that can be exposed directly to Lua. I tried that and it's pretty easy, but I can't compile the code of the library into a dll so that Love can require it. So my question is: Is there any guideli...
by pgimeno
Mon Apr 12, 2021 1:37 am
Forum: Support and Development
Topic: How much C++ really improves Love?
Replies: 4
Views: 153

Re: How much C++ really improves Love?

Assuming I have not been rickrolled... :D 1. Is it really worthy to write a module in C++, instead of Lua in the context of Love? If so, any good suggestions on how to actually do it? Hard to say whether it's worth or not. Probably not, at least from the perspective of the multi-platform compilation...
by pgimeno
Sun Apr 11, 2021 1:18 pm
Forum: Support and Development
Topic: If statement and Goto
Replies: 27
Views: 852

Re: If statement and Goto

darkfrei wrote: Sun Apr 11, 2021 11:39 am
pgimeno wrote: Sun Apr 11, 2021 11:04 am I wrote about one way of dealing with states, starting here: https://love2d.org/forums/viewtopic.php ... 26#p194226

Take a look, see if that helps you wrap around your head around it.
How I can understand which stete is enabled?
Do you mean for debugging? You can add a 'name' field.
by pgimeno
Sun Apr 11, 2021 11:04 am
Forum: Support and Development
Topic: If statement and Goto
Replies: 27
Views: 852

Re: If statement and Goto

I wrote about one way of dealing with states, starting here: https://love2d.org/forums/viewtopic.php ... 26#p194226

Take a look, see if that helps you wrap around your head around it.
by pgimeno
Sat Apr 10, 2021 4:37 pm
Forum: Games and Creations
Topic: SnowFlakes
Replies: 4
Views: 139

Re: SnowFlakes

Brings memories of Track & Field, hehe. Nice. Level 14 might be the maximum humanly possible in a decent graphics card (I got there too; my spacebar is going to sue me for abuse), but by setting love.keyboard.setKeyRepeat(true) it can be shown that it's not the maximum level attainable. In my de...
by pgimeno
Sat Apr 10, 2021 3:15 pm
Forum: General
Topic: Physics and dt
Replies: 1
Views: 125

Re: Physics and dt

The force applied by applyForce should not be multiplied by dt in principle. It lasts the duration of dt that you pass to world:update(); if you want it to be applied for longer, you have to apply it multiple times.
by pgimeno
Sat Apr 10, 2021 2:40 pm
Forum: General
Topic: Checking if anyone has got JUMPER to work recently?
Replies: 8
Views: 255

Re: Checking if anyone has got JUMPER to work recently?

The original source was started in 2012; by comparison, Löve was started in 2007, so by that standard, Jumper is 5 years more modern than Löve. Last commit to Jumper is from October 2019, less than 2 years ago. For comparison, Löve 11.0 was released in April 2018, three years ago. Even more, Jumper ...
by pgimeno
Sat Apr 10, 2021 11:30 am
Forum: General
Topic: Checking if anyone has got JUMPER to work recently?
Replies: 8
Views: 255

Re: Checking if anyone has got JUMPER to work recently?

Doesn't change the fact that all the githubs, forks and blogs are outdated except for LOVE Wiki. :) What? The Löve Wiki for Jumper points to the author's repository, which is the only authoritative source, unless it was forked because it was abandoned, which I don't think is the case for this proje...