Search found 1459 matches

by T-Bone
Sun Mar 20, 2016 10:52 am
Forum: General
Topic: Modules and scope
Replies: 9
Views: 5340

Re: Modules and scope

If you're going to use those constants pretty much everywhere, why not make them globals? That's what globals are meant for, aren't they? If I has lots of global constants, I'd create a file called "constants.lua" where I'd define a global table called "constants" and just requir...
by T-Bone
Thu Mar 17, 2016 12:24 pm
Forum: General
Topic: New Icons
Replies: 77
Views: 63295

Re: New Icons

I'm currently making a real version of LöveFTW (a port of Löve to Windows 10 UWP apps). Can I use the new icons as default icons for LöveFTW, or do I need to come up with my own icons? I want to treat LöveFTW similarly to if it was an official port, but I can understand if the Löve developers don't ...
by T-Bone
Thu Mar 17, 2016 12:21 pm
Forum: Ports
Topic: LöveFTW - preview release
Replies: 81
Views: 199462

Re: LöveFTW - preview release

Great News, how far are you with actually adding Löve? So far, nothing. Last time I did this, I added Löve when I had Lua, SDL, ANGLE and PhysFS (because that's all you need to run a really basic, stripped-down version of Löve that you can still verify that it works). But since adding Löve itself w...
by T-Bone
Thu Mar 17, 2016 8:57 am
Forum: Ports
Topic: LöveFTW - preview release
Replies: 81
Views: 199462

Re: LöveFTW - preview release

I THINK I've gotten PhysFS to work now, had to report it to WinRT because the old one I did last time refused to compile for some reason. Another piece of great news is that UWP apps are officially coming to the Xbox One this summer! This means that LöveFTW will be Löve's first generally available p...
by T-Bone
Wed Mar 16, 2016 8:39 am
Forum: General
Topic: On Screen Joysticks
Replies: 2
Views: 2196

Re: On Screen Joysticks

Doesn't sound too difficult to implement yourself. You'd need to keep track of where the user touches the screen, and from there find the closest virtual joystick center. If the distance is too far, you should probably discard the input. If not, then calculate the distance and direction (probably as...
by T-Bone
Mon Mar 14, 2016 11:29 am
Forum: Support and Development
Topic: Pygame Rect in Love?
Replies: 16
Views: 7273

Re: Pygame Rect in Love?

I just realized something. If I change "bottom" to a larger value, should that mean that the rectangle moves down, or that it becomes taller? That's not obvious to me. Maybe functions like "moveToBottom" and "expandToBottom" are better for clarity.
by T-Bone
Mon Mar 14, 2016 8:01 am
Forum: Support and Development
Topic: Pygame Rect in Love?
Replies: 16
Views: 7273

Re: Pygame Rect in Love?

Wasn't one of the big features of Pygame's Rect, that if you modify some variable on it, like bottom, the rect itself would change accordingly? That's totally doable in Lua, but a bit messy (you'd need to overwrite the __index with a custom function, I guess)
by T-Bone
Sat Mar 12, 2016 1:25 pm
Forum: Support and Development
Topic: request. IMAGE instead of USERDATA
Replies: 10
Views: 8087

Re: request. IMAGE instead of USERDATA

One thing that would be useful however, was if Lua's error messages would say the Löve type name it was expecting. So if you did love.graphics.draw("cat.png", 10, 10) You'd get an error saying "expected Drawable, got string" instead of the current "expected Userdata, got str...
by T-Bone
Thu Mar 10, 2016 10:48 am
Forum: Ports
Topic: Love2D WebPlayer (WebGL)
Replies: 203
Views: 185272

Re: Love2D WebPlayer (WebGL)

Wouldn't love.js be a better and more modern Löve-to-web tool to use? I think this one is pretty outdated.
by T-Bone
Wed Mar 09, 2016 12:51 pm
Forum: General
Topic: paralyzed by engine architecture problems
Replies: 16
Views: 6931

Re: paralyzed by engine architecture problems

While this might not be the solution you're looking for, do you know that it's possible to reference variables in functions that don't exist when the function is created? So you could keep things as global variables, and have as many references back and forth as you like, and require them in any ord...