Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldelcore authored Oct 21, 2017
1 parent a0aa9e2 commit 8f553e1
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,25 @@ https://love2d.org/wiki/Getting_Started
## Mac OS X
On Mac OS X, a folder or .love file can be dropped onto the love application bundle. On the Mac Terminal (command line), you can use love like this (assuming it's installed to the Applications directory):

open -n -a love "~/path/to/mygame"
`open -n -a love "~/path/to/mygame"`
However, the above method will not output printed text to the terminal window. To do that, you will need to execute the love binary inside the application bundle directly:

/Applications/love.app/Contents/MacOS/love ~/path/to/mygame
`/Applications/love.app/Contents/MacOS/love ~/path/to/mygame`
You can set up an alias in your Terminal session to call the binary when you use love by adding an alias to your ~/.bash_profile.

Open the file with

open -a TextEdit ~/.bash_profile
`open -a TextEdit ~/.bash_profile`
You may have to run

touch ~/.bash_profile
`touch ~/.bash_profile`
first if the file does not yet exist.

Then paste in the following code and save the file:

\# alias to love
# alias to love

alias love="/Applications/love.app/Contents/MacOS/love"
`alias love="/Applications/love.app/Contents/MacOS/love"`
Now you can call love from the command line like Linux and Windows:

love "~/path/to/mygame"
Android
As long as you have the love app installed from the playstore or another source the following methods will work:

Method 1 Transfer your game folder to /sdcard/lovegame where main.lua is found at /sdcard/lovegame/main.lua. Then run the app.
Method 2 Transfer a .love of your game to the device and click on it. Most file explorers will run the .love using the love app. If it does not you can install ES File Explorer which will.
`love "~/path/to/mygame"`

0 comments on commit 8f553e1

Please sign in to comment.