From 8f553e1a49478f06118e6e1fcafc3f3a0f0c4669 Mon Sep 17 00:00:00 2001 From: Daniel Del Core Date: Sat, 21 Oct 2017 11:36:02 +1100 Subject: [PATCH] Update README.md --- README.md | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 9ed03e2..3a69797 100644 --- a/README.md +++ b/README.md @@ -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"`