Search found 215 matches

by osuf oboys
Fri Feb 06, 2009 8:30 am
Forum: General
Topic: Reading from, displaying, and parsing a text file
Replies: 10
Views: 10998

Re: 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 seem...
by osuf oboys
Thu Feb 05, 2009 4:36 am
Forum: Support and Development
Topic: Physics, applyImpulse, dt and other things
Replies: 26
Views: 21741

Re: Physics, applyImpulse, dt and other things

Wow, that is a hefty amount of code just to make it so I don't keep jumping. Shouldn't it be something simple like collision detection and not 12 lines? Chris016's solution works fine if you don't have platforms that you can fall off of. There will probably/hopefully be a better solution by the nex...
by osuf oboys
Thu Feb 05, 2009 4:28 am
Forum: General
Topic: lua tables
Replies: 6
Views: 5641

Re: lua tables

This is a lua question, but I assume it will be of use to new love2d people, also. In PHP (the language I am most familiar with) I can, for example, create an multidimentional arrays like this: array[1]['field'] = "a value" , and then simply refer to it as array[1]['field'] in order to ge...
by osuf oboys
Wed Feb 04, 2009 10:48 pm
Forum: Support and Development
Topic: Physics, applyImpulse, dt and other things
Replies: 26
Views: 21741

Re: Physics, applyImpulse, dt and other things

Hi, another way to deal with jumping is to check the distance between objects - which gives excellent results. A platformer demo featuring this should appear at the end of this week. I paste parts of the code in case you wish to use it nevertheless. Note that the exact polygon-polygon collision isn'...
by osuf oboys
Wed Feb 04, 2009 1:38 pm
Forum: General
Topic: Can I require "package.file" instead of "package/file.lua"?
Replies: 16
Views: 12363

Re: Can I require "package.file" instead of "package/file.lua"?

You could write a require method which does what you want - either by overloading the existing require method or by the function a name of your choice, e.g. just 'require'.
by osuf oboys
Wed Feb 04, 2009 9:15 am
Forum: Support and Development
Topic: Physics, applyImpulse, dt and other things
Replies: 26
Views: 21741

Re: Physics, applyImpulse, dt and other things

To get a smoother turning, you may want to use love.keyboard.isDown in the update instead. Regarding the impulse - yes, you need that much because a 40 by 40 pixels body is huge in box2d.
by osuf oboys
Wed Feb 04, 2009 9:13 am
Forum: General
Topic: API Wars
Replies: 39
Views: 25306

Re: API Wars

Question. Are there any plans to include some support for Tiled 's map files? The LOVE way of doing things seems to be via mostly opaque objects (full userdata tables?), so I can see why the time investment there necessary would make it unlikely. But, would there be any utility methods for getting ...
by osuf oboys
Tue Feb 03, 2009 10:26 am
Forum: General
Topic: good seeding for math.random
Replies: 21
Views: 13361

Re: good seeding for math.random

It's not weird because changing the seed by 1 changes the first random number only by a little as well. The ranom number is 32 bits or the like and is scaled to the given range (although modulus would have been better) and hence a change in a minute results in no change in the random number 1 to 9. ...
by osuf oboys
Mon Feb 02, 2009 9:02 pm
Forum: Libraries and Tools
Topic: ËNVY (LÖVE Framework)
Replies: 86
Views: 67386

Re: ËNVY (LÖVE Framework)

Hi, I've been playing around with the phases for drawing and find that I'm not satisfied with the current ËNVY design in the sense that the best solution to my problem depends a great deal on ËNVY's design. I would like the drawing scheme to be separated from the world - like in the Model-View-Contr...
by osuf oboys
Mon Feb 02, 2009 4:12 pm
Forum: Libraries and Tools
Topic: Basic dialog boxes (another wheel reinvented)
Replies: 2
Views: 5624

Re: Basic dialog boxes (another wheel reinvented)

It's a good start! American English is the usual naming convention though, e.g. initialising -> initializing. I believe that you may want to write a class for dialogs and write the system so that multiple ones can be active at once. e.g. by having the draw function call the draw of every active dial...