From d4268ef219abe41bae102294ad2ecd0758458e71 Mon Sep 17 00:00:00 2001 From: oakes Date: Wed, 2 Apr 2014 00:40:06 -0400 Subject: [PATCH] Update tutorial to reflect new version --- TUTORIAL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TUTORIAL.md b/TUTORIAL.md index 04d5fc2..823c525 100644 --- a/TUTORIAL.md +++ b/TUTORIAL.md @@ -351,9 +351,9 @@ Now save the file and hit _Reload_ in the build pane. Now try it out! The key bi Keep in mind that the `:on-show` function only runs when the screen first shows. Therefore, if you want to modify something there and see the result, after you hit _Reload_ you'll need to restart the screen. -First, switch the REPL into the right namespace by typing `(in-ns 'hello-world.core)` and hitting enter. Then, type the following command, which runs the `set-screen!` function on the render thread in order to restart `main-screen`: +First, switch the REPL into the right namespace by typing `(in-ns 'hello-world.core)` and hitting enter. Then, type the following command, which runs the `set-screen!` function on the GL thread in order to restart `main-screen`: -`(app! :post-runnable #(set-screen! hello-world main-screen))` +`(on-gl (set-screen! hello-world main-screen))` The next thing to try is reading and modifying state. Let's peek into the entities vector by typing the following into the REPL: