Re: Transplant love to iphone/ipad/android by learing Corona?
Posted: Sun Apr 25, 2010 4:39 pm
Well, in terms of a mouse, this is where OS detection comes in. It would detect if you have a Mac/PC (Use mouse), an iPad/iPod/iPhone (Use touch X and Y coordinates, the iDevices can detect a lot of fingers.) or an Android device. (Use touch again) Once it knows the OS, the games would be programmed to take advantage. Like an iPad will always be 1024x768, iPhone will always be (At least until the new ones come out in June) 480x320, a Mac/PC can be whatever. It's all about if...then...else with stuff like that. No big deal.
I'd settle for the Mac version of Löve being able to take advantage of the built-in accelerometer. I'd love to do cool things with physics when I can just tilt my MacBook. (Recieve the angle and turn it into gravity values then watch the blocks and circles fall all over the place.) I know it'd be limited to MacBook's, but who cares? It would still let Mac users with laptops do some cool stuff. It's my dream to program something that can take advantage of tilt detection. That and trackpad gestures. The MacBook trackpads can detect 10 fingers, maybe more. It'd be neat if Löve could take advantage of OS X's gesture recognition. There's a lot of them. Two finger scroll, three finger swipe, four finger, five finger, pinching, rotating. I know PC's wouldn't be able to utilize this stuff, but it would make the Mac versions of our games that much more attractive. Seems a shame to not at least utilize it.
In the case of tilt detection, the PC/Mac desktop version of the game could be setup to use arrow keys to change the "tilt" value so it could still work on a PC/Mac desktop. Just not with the same oomph.
I'd settle for the Mac version of Löve being able to take advantage of the built-in accelerometer. I'd love to do cool things with physics when I can just tilt my MacBook. (Recieve the angle and turn it into gravity values then watch the blocks and circles fall all over the place.) I know it'd be limited to MacBook's, but who cares? It would still let Mac users with laptops do some cool stuff. It's my dream to program something that can take advantage of tilt detection. That and trackpad gestures. The MacBook trackpads can detect 10 fingers, maybe more. It'd be neat if Löve could take advantage of OS X's gesture recognition. There's a lot of them. Two finger scroll, three finger swipe, four finger, five finger, pinching, rotating. I know PC's wouldn't be able to utilize this stuff, but it would make the Mac versions of our games that much more attractive. Seems a shame to not at least utilize it.
In the case of tilt detection, the PC/Mac desktop version of the game could be setup to use arrow keys to change the "tilt" value so it could still work on a PC/Mac desktop. Just not with the same oomph.