Search found 74 matches

by Tenoch
Thu Jul 23, 2009 5:18 am
Forum: Games and Creations
Topic: NONAME 0.0.0.0.1
Replies: 14
Views: 14347

Re: NONAME 0.0.0.0.1

Oah, that *is* nice.
Now just turn it into a game :)
by Tenoch
Thu Jul 23, 2009 5:12 am
Forum: General
Topic: drawing comparison algorithm
Replies: 13
Views: 8378

Re: drawing comparison algorithm

Heh, I know the feeling. Fortunately, experimenting stuff is not time lost. Be aware though that love.native is a C compiler. The example given was C++. But in this case, I'd try Lua anyway. Some of the stuff in the algorithm may be easier to write, and might run quite fast enough. And love.native i...
by Tenoch
Wed Jul 22, 2009 5:40 pm
Forum: General
Topic: drawing comparison algorithm
Replies: 13
Views: 8378

Re: drawing comparison algorithm

It's unfortunately a quite complex problem. There are many ways to solve it. I remember reading a very good tutorial on GameDev, but the site is down. It was rather similar to http://www.gskinner.com/blog/assets/GRalgorithm.html. However, the decision was made by using the cross product of the vecto...
by Tenoch
Wed Jul 22, 2009 3:11 pm
Forum: Support and Development
Topic: Gravity well in Love?
Replies: 6
Views: 5065

Re: Gravity well in Love?

Everything is possible :megagrin: You can either code it yourself if you know basic physics, or use the love.physics module, which will require you to know basic physics too, since you'll have to compute the forces yourself. But in any case, LÖVE is mainly an input/output engine. It notifies you of ...
by Tenoch
Wed Jul 22, 2009 8:53 am
Forum: Support and Development
Topic: How draw chinese word?
Replies: 7
Views: 4475

Re: How draw chinese word?

Many non-US chars are in ascii. Mmm, I'm sorry but that is not entirely correct. ASCII is on 7 bits only, and has 128 characters only: some nonprintable stuff and 123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ I suppose you meant any of the 8 bits encodings that uses...
by Tenoch
Tue Jul 21, 2009 9:53 pm
Forum: Support and Development
Topic: How draw chinese word?
Replies: 7
Views: 4475

Re: How draw chinese word?

Does "one day" mean 0.6? Because now that we have unicode input (well, at least locale translated input), it's be rather useless if we couldn't draw inputed text on screen...

EDIT: I suppose we don't use SDL_ttf then, since unicode works fine with it.
by Tenoch
Tue Jul 21, 2009 8:08 am
Forum: Support and Development
Topic: Can't load image
Replies: 3
Views: 5096

Re: Can't load image

Heh don't worry about it :)
by Tenoch
Tue Jul 21, 2009 8:04 am
Forum: Support and Development
Topic: Nonphysical translated movement
Replies: 5
Views: 4782

Re: Nonphysical translated movement

One possibility is to have, for the wanted object, one variable holding the current position, and one for the target position. Then at each update(), you make the current position closer to the target position: x = x + (targetx - x) * coeff * dt (and same on y coord of course) This is equivalent to ...
by Tenoch
Mon Jul 20, 2009 8:24 am
Forum: Support and Development
Topic: Nonphysical translated movement
Replies: 5
Views: 4782

Re: Nonphysical translated movement

To draw an image multiplied by a color, you can use love.graphics.setColorMode(love.color_modulate), it will then use the current color to, well, modulate each sprite drawing. I'm not sure what you mean with your other question. There is no function to "move" a sprite. LÖVE does not rememb...
by Tenoch
Sun Jul 19, 2009 8:44 pm
Forum: Support and Development
Topic: Can't load image
Replies: 3
Views: 5096

Re: Can't load image

You can't load stuff from anywhere you want actually. It has to be in the same folder as your main.lua (or a subfolder), and to use the filename only: love.graphics.newImage("blah.png") love.graphics.newImage("subfolder/blah.png") This way, when you zip up your game folder into a...