diff --git a/TUTORIAL.md b/TUTORIAL.md index 40d3b08..3cd6d80 100644 --- a/TUTORIAL.md +++ b/TUTORIAL.md @@ -375,9 +375,11 @@ Lastly, one common issue people have with play-clj in a REPL is that it if you m (try (screen-fn) (catch Exception e (.printStackTrace e) - (set-screen! my-game blank-screen))))) + (set-screen! hello-world blank-screen))))) ``` +Note that this will only catch runtime errors, not compile errors such as misspelled symbols (which don't affect your game when they occur). After fixing the issue, you can switch back to `main-screen` from your REPL with `(on-gl (set-screen! hello-world main-screen))`. + ## Building for Android 1. Make sure you have JDK 7 installed (for Windows/OSX, you can get it from [Oracle](http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html), and for Linux you can get it from [apt-get](http://openjdk.java.net/install/)).