Search found 28 matches

by nunix
Mon Feb 09, 2009 5:34 am
Forum: Support and Development
Topic: Distributing your games (making a .love file)
Replies: 278
Views: 947235

Re: Distributing your games (making a .love file)

(also on OSX) Actually all we do is rename the directory .love, and then double-click the resulting icon (so /user/Game becomes /user/Game.love). You can still navigate into the folder itself, it just changes the double-click (and the icon) action to "run with this program" rather than &qu...
by nunix
Fri Feb 06, 2009 10:25 pm
Forum: General
Topic: Reading from, displaying, and parsing a text file
Replies: 10
Views: 10996

Re: Reading from, displaying, and parsing a text file

Ah, so I'll have to go at it from a LUA angle.. okay, fair enough. Thanks for the assist.
by nunix
Fri Feb 06, 2009 2:48 am
Forum: General
Topic: Reading from, displaying, and parsing a text file
Replies: 10
Views: 10996

Re: Reading from, displaying, and parsing a text file

Yeah, I need more than that. I'm staring at the Strings and Patterns sections of the manual and cannot find what I'm looking for. I can get a set word pattern, but how do I get, say, the third character? And how do I feed that back so I can do something with it? EDIT: Ah, string.sub is (one of) the ...
by nunix
Fri Feb 06, 2009 1:52 am
Forum: General
Topic: Reading from, displaying, and parsing a text file
Replies: 10
Views: 10996

Reading from, displaying, and parsing a text file

Yay newbie questions. Irritation: I actually tried searching the forum for this, but a phrase like "text file" was rejected because the words are too common. -.- Issue: I'm trying to read from a configuration file. I have no idea how to do this. I've done a bunch of googlin' but this seems...
by nunix
Tue Feb 03, 2009 3:23 am
Forum: General
Topic: good seeding for math.random
Replies: 21
Views: 13350

Re: good seeding for math.random

I'm working with the OP on some of this stuff. function load() math.randomseed(os.time()) font = love.graphics.newFont(love.default_font, 12) love.graphics.setFont(font) message = math.random(1,9) end function draw() love.graphics.draw(message, 100, 100) end This returns 8 every time . Why?!
by nunix
Mon Feb 02, 2009 1:20 am
Forum: Support and Development
Topic: Running start-up options?
Replies: 0
Views: 3126

Running start-up options?

I wouldn't even know how to go about doing this. Basic "file.love -option". Like:

platformer.love -level10

...to start at level 10 of the game, as opposed to going to the title screen.
by nunix
Fri Jan 30, 2009 5:05 pm
Forum: General
Topic: Differences between this and Torque2D?
Replies: 5
Views: 4445

Re: Differences between this and Torque2D?

Hah hah! No, that's all good. I'm pretty dang bitter about t2d, so I wasn't spoilin' for a fight, just looking for a reference point. Thanks a bunch. =D
by nunix
Fri Jan 30, 2009 4:42 am
Forum: General
Topic: Differences between this and Torque2D?
Replies: 5
Views: 4445

Differences between this and Torque2D?

Or whatever it is they're calling it now... I've messed with t2d a few years ago and finally gave up on it due to terrible developer support. Been looking for something similar ever since.