Search found 24 matches
- Fri Sep 19, 2008 9:19 pm
- Forum: Support and Development
- Topic: Pong paddle AI?
- Replies: 7
- Views: 16023
Re: Pong paddle AI?
Here's how I controled the AI paddle in my pong game: -- If ball is below paddle, move down local ComDelta_y = Bars["Computer"].y if Ball.y < Bars["Computer"].y+75 then -- 75 Was the height Bars["Computer"].y = Bars["Computer"].y - (Ball.Speed/2)*dt if Bars[&q...
- Wed Sep 17, 2008 6:56 pm
- Forum: Support and Development
- Topic: Reading files under Löve
- Replies: 5
- Views: 6086
Re: Reading files under Löve
Ahh, cool.
- Wed Sep 17, 2008 3:10 pm
- Forum: Support and Development
- Topic: Reading files under Löve
- Replies: 5
- Views: 6086
Re: Reading files under Löve
I believe it opens a buffer or some shit and the boolean is the success of it. Once you have opened it you then need to manually read line by line or a given string length. Maybe you have come from an unprofessional shit thing like Garry's Mod where everything is handed to you on a plate with a kni...
- Tue Sep 16, 2008 10:18 pm
- Forum: Support and Development
- Topic: Reading files under Löve
- Replies: 5
- Views: 6086
Reading files under Löve
I'm struggling to read a file under löve? I know love.filesystem.open( file ) but that returns a boolean? so how can that boolean be the file? I'm confused by that. Could someone provide an example of how to open a file and read it line by line? (The tutorials could do with one on reading files if I...
Re: Umlaut
Oooooh, thanks.
- Fri Sep 12, 2008 5:36 pm
- Forum: General
- Topic: How Did You Find (true) LÖVE?
- Replies: 55
- Views: 63074
Re: How Did You Find (true) LÖVE?
I can't remember but I know that it was the sexy site that made me download it. (I dribbled all over my favourite jeans when I saw the site)
Umlaut
I was reading the FAQ and the last question was asking about umlaut...
Wtf's umlaut??
Wtf's umlaut??
- Sat Aug 16, 2008 11:14 am
- Forum: Support and Development
- Topic: Calling a function from a string
- Replies: 2
- Views: 4373
- Fri Aug 15, 2008 11:32 am
- Forum: Support and Development
- Topic: Calling a function from a string
- Replies: 2
- Views: 4373
Calling a function from a string
How can I call a function from a string in LUA?
EG I had a string like this: "DoMath("1+1")" and I wanted to use that string to call DoMath("1+1")
EG I had a string like this: "DoMath("1+1")" and I wanted to use that string to call DoMath("1+1")
Re: collision
When can we expect the next update?