[Tutorial] Code your games using iPhone

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
IndieKid
Citizen
Posts: 80
Joined: Sat Dec 22, 2012 7:05 pm
Contact:

[Tutorial] Code your games using iPhone

Post by IndieKid »

Good day, as topic says I will show you how you can simply code using iPhone or any other iOS device. I found this interesting for myself because I always think of coding. So here is my short tutorial.
Okay, so you can do this in several ways. Jailbreak will certanly help you. BUT(!) I'm not going to explain(or maybe I will but later) how you can do this using jailbroken iOS device. For those of you who use jailbreak I can tell that it will help you to get better software for coding.

You should have Dropbox account. If you don't click here. http://db.tt/B9nRNdEY
Let's begin. You need to download 2 apps for iOS:
-Dropbox(Free)
-iLuaBox(This is Code Editor. You can use other but I'm not sure if that will work. I use iLuaBox Pro)
Again you can try another code editor but I hardly recommend you using this one.
And you should have Dropbox on your PC.

[1st Step]
Set up Dropbox on PC where your code is. You will get "Dropbox" folder. Make a new folder inside it and call it "LÖVE"(or anything). Copy your project folder(which has main.lua) to "Dropbox/LÖVE". F.e. "Dropbox/LÖVE/My Game".

[2nd Step]
From iPhone's Dropbox app login to your Dropbox account. You should see "Dropbox" tab. In this tab there will be a previously created folder "LÖVE". Here we go.

[3rd Step]
In iLuaBox app tap "Input" -> "Open In..." -> "Open in Dropbox". Dropbox should open. You will see your file. Tap "Destination" -> "LÖVE" and you can choose wherever you'd like to put this .lua file.

DONE. Now you are be able to access this file from PC.

Bad is that you can't directly edit files in "LÖVE" folder on iPhone(with jailbreak I belive this is possible). The way you transfer files from PC to iPhone's Code Editor is copying text via E-Mail or something. Also there is no syntax for LÖVE functions in iLuaBox app, so you can't run scripts on iPhone. But you can code and this is good.

That's all. Thanks :nyu:

---------
P.S. I use Mac OS. So if something described wrong please tell me. Also feel free to ask whatever you misunderstood.
User avatar
ejmr
Party member
Posts: 302
Joined: Fri Jun 01, 2012 7:45 am
Location: South Carolina, U.S.A.
Contact:

Re: [Tutorial] Code your games using iPhone

Post by ejmr »

Nice info, thank you for sharing. How about running LÖVE on an iPhone? Any success there?
ejmr :: Programming and Game-Dev Blog, GitHub
南無妙法蓮華經
User avatar
Ubermann
Party member
Posts: 146
Joined: Mon Nov 05, 2012 4:00 pm

Re: [Tutorial] Code your games using iPhone

Post by Ubermann »

And you can also code directly on your Android device.

You will need:

1.- Any terminal emulator where you can run "zip -r -u myGame.love *lua"
2.- A text editor. I recommend Jota Editor
3.- LÖVE for Droid


Also I recommend having a better keyboard such as Hacker's Keyboard since it have mus more functionalities and allows the use of tab key and arrow keys in the terminal emulator.
User avatar
IndieKid
Citizen
Posts: 80
Joined: Sat Dec 22, 2012 7:05 pm
Contact:

Re: [Tutorial] Code your games using iPhone

Post by IndieKid »

ejmr wrote:Nice info, thank you for sharing. How about running LÖVE on an iPhone? Any success there?
You can't run LÖVE on iPhone for now. It's interesting that it is possible to write an engine LÖVE for iOS(for jailbroken devices of course).

This may be interesting: there is an engine for iOS called Corona that uses Lua as well. http://www.coronalabs.com/
User avatar
IndieKid
Citizen
Posts: 80
Joined: Sat Dec 22, 2012 7:05 pm
Contact:

Re: [Tutorial] Code your games using iPhone

Post by IndieKid »

Ubermann wrote:And you can also code directly on your Android device.

You will need:

1.- Any terminal emulator where you can run "zip -r -u myGame.love *lua"
2.- A text editor. I recommend Jota Editor
3.- LÖVE for Droid


Also I recommend having a better keyboard such as Hacker's Keyboard since it have mus more functionalities and allows the use of tab key and arrow keys in the terminal emulator.
Android users are more lucky. Android is much more open OS than iOS. Apple's policy doesn't allow developers to access the file system.
User avatar
master both
Party member
Posts: 262
Joined: Tue Nov 08, 2011 12:39 am
Location: Chile

Re: [Tutorial] Code your games using iPhone

Post by master both »

have anybody try DroidEdit? it even have Lua highlights

EDIT
Image
Last edited by master both on Tue Jan 15, 2013 8:37 pm, edited 2 times in total.
User avatar
Ubermann
Party member
Posts: 146
Joined: Mon Nov 05, 2012 4:00 pm

Re: [Tutorial] Code your games using iPhone

Post by Ubermann »

IndieKid wrote: Android users are more lucky. Android is much more open OS than iOS. Apple's policy doesn't allow developers to access the file system.
Isn't there any custom firmware for iPhones or iPads ? That allows root permission and such.
User avatar
IndieKid
Citizen
Posts: 80
Joined: Sat Dec 22, 2012 7:05 pm
Contact:

Re: [Tutorial] Code your games using iPhone

Post by IndieKid »

Ubermann wrote:Isn't there any custom firmware for iPhones or iPads ? That allows root permission and such.
There is. "Jailbreak". It allows iOS(iPhones, iPods, iPads) users to fully access file system. There is a huge universe of jailbreak. And by the way it is legal in USA, Canada and most european countries.
For more info: http://en.wikipedia.org/wiki/IOS_jailbreaking
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 97 guests