Search found 98 matches
- Thu Jan 26, 2012 7:09 pm
- Forum: General
- Topic: I want to kown is there a love on ios
- Replies: 9
- Views: 6343
Re: I want to kown is there a love on ios
I just went through searching for alternatives to LÖVE on iOS. I wanted to be able to edit scripts directly on the device (in Vim, via SSH, mapped into my native file system via Expandrive) so I could have a very interactive development cycle. Corona SDK seems pretty well designed, but it's closed s...
- Sun May 01, 2011 7:29 am
- Forum: General
- Topic: The "I Love Lua, but..." post
- Replies: 57
- Views: 16213
Re: The "I Love Lua, but..." post
As for the "then" thing, I don't mind much, I prefer not typing it though. Ruby handles that one fine: if x == 3 code end I once patched Lua make then after if , and do after while and for , optional, just to see how invasive a patch it would be. Turns out it's a few lines of code, so I a...
- Mon Dec 27, 2010 8:10 pm
- Forum: Support and Development
- Topic: Scaling/translating/rotating mouse coordinates
- Replies: 8
- Views: 4369
Re: Scaling/translating/rotating mouse coordinates
Thanks for the feedback. I just started a new job today, so it'll be a while before I have a time to follow up on any of it, but I just wanted to acknowledge that I've seen and appreciate it!
Merry Christmas
Merry Christmas
- Mon Dec 27, 2010 4:05 am
- Forum: Support and Development
- Topic: Scaling/translating/rotating mouse coordinates
- Replies: 8
- Views: 4369
Scaling/translating/rotating mouse coordinates
Say you've got a map which clickable items at certain coordinates. You could store those as x,y coordinates, then check the mouse position to see if a click happened, but what if the map is rotated/translated/scaled? Do you translate the mouse coordinates at the "driver level" (i.e. before...
- Sun Dec 19, 2010 5:04 am
- Forum: Support and Development
- Topic: I can't find a quit() function
- Replies: 4
- Views: 2901
Re: I can't find a quit() function
Better not use functions from the os table, especially not if you want SELÖVE compatibility. I don't care about SELÖVE compatibility. I don't really understand the point, except perhaps for use on this forum, where we often run scripts from strangers in our local binaries. I feel the same way about...
- Sun Dec 19, 2010 3:48 am
- Forum: Support and Development
- Topic: I can't find a quit() function
- Replies: 4
- Views: 2901
Re: I can't find a quit() function
It's in the native Lua library 'os':
os.quit()
os.quit()
- Fri Dec 17, 2010 6:29 pm
- Forum: General
- Topic: Going to be on a plane for 9 hours:
- Replies: 2
- Views: 1947
Re: Going to be on a plane for 9 hours:
Should I buy the Learning Lua book? Is it THE best source there is for learning Lua rapidly? Well, you could just read the manual and start playing with it, but the book will give you a fast track to being a "Lua native" and writing idiomatic code. It's a great book. I already knew Lua wh...
- Thu Dec 16, 2010 4:13 pm
- Forum: Support and Development
- Topic: Using middleclass
- Replies: 14
- Views: 3889
Re: Using middleclass
There is no such function. Why don't you just post the code? That'll save us a lot of detective work.Ertain wrote:I'm just trying to get the function "Game:initialize(self)" to work.
- Thu Dec 16, 2010 3:24 pm
- Forum: Support and Development
- Topic: Using middleclass
- Replies: 14
- Views: 3889
Re: Using middleclass
That usually means you accidentally called a method like this 'myobject.method()' rather than this 'myobject:method()'Ertain wrote:I have been trying to use middleclass, but when I do the variable "self" isn't found when I use it.
- Thu Dec 16, 2010 12:44 am
- Forum: Support and Development
- Topic: multithreading love with love.thread
- Replies: 20
- Views: 14608
Re: multithreading love with love.thread
what are the advantages of love.thread over lua's built-in coroutines? Coroutines don't allow concurrent execution. If you resume a coroutine, the coroutine has to yield before control returns to the caller. You can do cooperative multitasking by cycling through coroutines and resuming them (each c...