Search found 39 matches

by IMP1
Fri Jul 18, 2014 8:45 pm
Forum: Support and Development
Topic: Using dt - [SOLVED]
Replies: 3
Views: 694

Re: Using dt - [SOLVED]

dt is in seconds, so you need to think about how much things should move (in pixels generally) per second and have that as the speed.
by IMP1
Mon Dec 30, 2013 6:21 pm
Forum: Support and Development
Topic: [0.9.0] Executing with Notepad++ (nppexec)
Replies: 11
Views: 4795

Re: [0.9.0] Executing with Notepad++ (nppexec)

The quoting of $(CURRENT_DIRECTORY) is needed if the filepath has a space in it (which mine does) so I assume yours doesn't. I moved the LOVE folder to the Program Files (86x) and changed the path to the love.exe it still doesn't work. I'm copying and pasting the path from the love.exe properties (w...
by IMP1
Sun Dec 29, 2013 7:52 pm
Forum: Support and Development
Topic: [0.9.0] Executing with Notepad++ (nppexec)
Replies: 11
Views: 4795

Re: [0.9.0] Executing with Notepad++ (nppexec)

Okay, that still doesn't work.
And the command line doesn't need the ending backslash.
And it worked for previous versions of LOVE without the ending backslash.
by IMP1
Sat Dec 28, 2013 7:28 pm
Forum: Support and Development
Topic: [0.9.0] Executing with Notepad++ (nppexec)
Replies: 11
Views: 4795

Re: [0.9.0] Executing with Notepad++ (nppexec)

Add a "\" to what?

And the line you've given seems to be identical to the one I'm using... unless I'm being blind
by IMP1
Sat Dec 28, 2013 2:40 pm
Forum: Support and Development
Topic: [0.9.0] Executing with Notepad++ (nppexec)
Replies: 11
Views: 4795

[0.9.0] Executing with Notepad++ (nppexec)

I used to run LÖVE stuff directly from notepad++ by executing the following (by use of the nppexec plugin): "C:\Program Files\LOVE\love.exe" "$(CURRENT_DIRECTORY)" But since 0.9.0, this has stopped working. The bult-in console for NPP says: "C:\Program Files\LOVE\love.exe" "C:\Users\IMP1\Documents\L...
by IMP1
Sun Oct 13, 2013 12:43 pm
Forum: Support and Development
Topic: Vector Rotation
Replies: 3
Views: 1247

Re: Vector Rotation

Ah, of course, that makes perfect sense.
Thank you very much for pointing out my mistake.
by IMP1
Sat Oct 12, 2013 5:14 pm
Forum: Support and Development
Topic: Vector Rotation
Replies: 3
Views: 1247

Vector Rotation

I'm trying to make my own vector module, and for the most part it works (as far as I know), but in trying to add rotation I'm getting unexpected results. I'm not 100% sure whether the results are right, and my expectations are wrong, or vice versa. I'm rotating a 3D vector by an angle 'a', and then ...
by IMP1
Thu Sep 26, 2013 4:10 pm
Forum: General
Topic: Make an object appear on the other side of the screen
Replies: 4
Views: 1245

Re: Make an object appear on the other side of the screen

Alternatively, you could use the modulo (https://en.wikipedia.org/wiki/Modulo_operation) operator.

Code: Select all

x = x % love.graphics.getWidth()
by IMP1
Wed Aug 28, 2013 9:54 am
Forum: Support and Development
Topic: table[key] when it's the actual table
Replies: 5
Views: 1004

table[key] when it's the actual table

So why can I do this:

Code: Select all

local b = true
local t = { [true] = "1", [false] = "2" }
print(t[b])
But not this:

Code: Select all

print( { [true] = "1", [false] = "2" }[true] )
I can replace the b with the value it holds, but I can't replace t with the value it holds? Is this just a feature of tables in lua?