Search found 1911 matches

by ivan
Tue Dec 16, 2014 7:17 am
Forum: Support and Development
Topic: How to rename dir / move file?
Replies: 20
Views: 11598

Re: How to rename dir / move file?

One option could be to iterate all files in the source directory, read each file and write it (in binary mode) out to the destination folder. Then (optionally) delete the old source folder. This is probably much slower though although I've used this approach and works pretty well. Note that file acc...
by ivan
Mon Dec 15, 2014 11:19 am
Forum: Support and Development
Topic: Common game translations
Replies: 93
Views: 63161

Re: Common game translations

Thanks so much for the help, Admicos.
Any help if much appreciated, including new languages or terms that you want to have translated.
PS. I think we should add Czech, Danish and possibly Vietnamese too.
by ivan
Sun Dec 14, 2014 5:15 pm
Forum: Support and Development
Topic: Common game translations
Replies: 93
Views: 63161

Re: Common game translations

Sounds good although it might be better to add IPA as a "language" column since it's recommended for the keys to be plain *non-UTF8*.
Either way, it's a good idea :)
by ivan
Sun Dec 14, 2014 4:54 pm
Forum: Support and Development
Topic: Common game translations
Replies: 93
Views: 63161

Re: Common game translations

How about IPA characters -> per-language characters that (closely enough) represent those sounds? That would at least allow people to know how to pronounce stuff from other languages; Usage cases... maybe used like furigana, in subtitles in games; maybe i'll do a demo of this...? I'm not too famili...
by ivan
Sun Dec 14, 2014 4:26 pm
Forum: Support and Development
Topic: Common game translations
Replies: 93
Views: 63161

Re: Common game translations

I'd like to share my localization lib, which works pretty well with this project. Here is the example usage: lang = require("lang.localize") function love.load() lang.set_locale("en") lang.set_text("text1", "this is the first string") lang.set_text("text2...
by ivan
Sun Dec 14, 2014 6:56 am
Forum: Libraries and Tools
Topic: Locale - A simple localization system for LOVE
Replies: 1
Views: 3056

Re: Locale - A simple localization system for LOVE

Not a bad start. Although I believe it could be improved in a few ways. In terms of the implementation "lib.getLocalized" might be kind of slow. I would suggest parsing the entire localization file into a lookup table instead of iterating all lines. Next, you may want to add support for ar...
by ivan
Fri Dec 12, 2014 4:01 pm
Forum: Libraries and Tools
Topic: change var depending on a beat of a song
Replies: 3
Views: 1051

Re: change var depending on a beat of a song

how would i go about changing a variable depending on a beat of a song? Seems like a simple problem, right? :) I'm not too experienced with audio programming but from what I know, you would either need: 1.access to raw data of the audio buffer while it's playing 2.parse the song file ahead of time ...
by ivan
Fri Dec 12, 2014 12:50 pm
Forum: Libraries and Tools
Topic: [Tutorials] Making a simple 2D physics engine
Replies: 33
Views: 28048

Re: [Tutorials] Making a simple 2D physics engine

Great work on the tutorials, I can see that you put in a lot of effort there. :) Just have a small suggestion regarding the following piece of code: obj1.speedx = math.min( math.max(obj1.speedx, -maxspeed), maxspeed) obj1.speedy = math.min( math.max(obj1.speedy, -maxspeed), maxspeed) It clamps each ...
by ivan
Wed Dec 10, 2014 4:36 am
Forum: General
Topic: My attempt at Hit Detection... is it Efficient?
Replies: 6
Views: 3109

Re: My attempt at Hit Detection... is it Efficient?

Good description by Kikito. To sum it up, if you have two moving shapes A and B: 1.Continuous collision detection: you want to find the time of impact (like in Kikito's bump) 2.Non-continuous collision detection: you check if the shapes intersect and find the shortest separation vector (like in Fizz...
by ivan
Wed Dec 10, 2014 4:19 am
Forum: Support and Development
Topic: Platformer Help/Maybe a tutorial?
Replies: 3
Views: 2164

Re: Platformer Help/Maybe a tutorial?

Not bad, but the names of some of the variables are a little confusing.
"player.speed" is actually "acceleration"
"player.friction" is "damping"