# HG changeset patch # User Robert McIntyre # Date 1319486044 25200 # Node ID f0562b9bde9466c6a02785d6828cbc1478390dac # Parent 0206878c28b4af2dc72d2d70d4a2e8e8a821129f fixed picture links diff -r 0206878c28b4 -r f0562b9bde94 images/brick-wall-knocked-down.jpg Binary file images/brick-wall-knocked-down.jpg has changed diff -r 0206878c28b4 -r f0562b9bde94 images/brick-wall-standing.jpg Binary file images/brick-wall-standing.jpg has changed diff -r 0206878c28b4 -r f0562b9bde94 images/dominos.jpg Binary file images/dominos.jpg has changed diff -r 0206878c28b4 -r f0562b9bde94 images/simple-app.jpg Binary file images/simple-app.jpg has changed diff -r 0206878c28b4 -r f0562b9bde94 org/games.org --- a/org/games.org Mon Oct 24 12:43:58 2011 -0700 +++ b/org/games.org Mon Oct 24 12:54:04 2011 -0700 @@ -1,4 +1,4 @@ -#+title: Simulated Senses +#+title: Games! Games! Games! <3 #+author: Robert McIntyre #+email: rlm@mit.edu #+description: Simulating senses for AI research using JMonkeyEngine3 @@ -7,12 +7,10 @@ #+babel: :mkdirp yes :noweb yes :exports both -* Simulation Base - +* Games! -** Hello -Here are the jmonkeyengine "Hello" programs translated to clojure. -*** Hello Simple App +Here are the jMonkeyEngine "Hello" programs translated to clojure. +** Hello Simple App Here is the hello world example for jme3 in clojure. It's a more or less direct translation from the java source [[http://jmonkeyengine.org/wiki/doku.php/jme3:beginner:hello_simpleapplication][here]]. @@ -62,11 +60,10 @@ #+end_src #+caption: the simplest JME game. -[[./images/simple-app.jpg]] +[[../images/simple-app.jpg]] - -*** Hello Physics +** Hello Physics From http://jmonkeyengine.org/wiki/doku.php/jme3:beginner:hello_physics #+srcname: brick-wall-header @@ -214,12 +211,12 @@ #+end_src #+caption: the brick wall standing -[[./images/brick-wall-standing.jpg]] +[[../images/brick-wall-standing.jpg]] #+caption: the brick wall after it has been knocked over by a "pok\eacute{}ball" -[[./images/brick-wall-knocked-down.jpg]] +[[../images/brick-wall-knocked-down.jpg]] -*** Other Brick Games +** Other Brick Games #+srcname: other-games #+begin_src clojure :results silent (ns cortex.other-games @@ -365,9 +362,9 @@ #+end_src #+caption: floating dominos -[[./images/dominos.jpg]] +[[../images/dominos.jpg]] -*** Hello Loop +** Hello Loop #+srcname: hello-loop #+begin_src clojure :results silent (ns hello.loop) @@ -393,8 +390,8 @@ (fn [game tpf] (.rotate cube 0.0 (* 2 tpf) 0.0))))) #+end_src - -*** Hello Collision + +** Hello Collision #+srcname: hello-collision #+begin_src clojure :results silent @@ -516,7 +513,7 @@ update-fn))) #+end_src -*** Hello Terrain +** Hello Terrain #+srcname: hello-terrain #+begin_src clojure :results silent (ns hello.terrain) @@ -666,7 +663,7 @@ no-op)))) #+end_src -*** Hello Materials +** Hello Materials #+srcname: material #+begin_src clojure :results silent (ns hello.material) @@ -718,10 +715,12 @@ (TangentBinormalGenerator/generate))) (-> (.getMaterial) (doto - (.setTexture "DiffuseMap" (.loadTexture (asset-manager) - "Textures/Terrain/Pond/Pond.png")) - (.setTexture "NormalMap" (.loadTexture (asset-manager) - "Textures/Terrain/Pond/Pond_normal.png")) + (.setTexture "DiffuseMap" + (.loadTexture (asset-manager) + "Textures/Terrain/Pond/Pond.png")) + (.setTexture "NormalMap" + (.loadTexture (asset-manager) + "Textures/Terrain/Pond/Pond_normal.png")) (.setFloat "Shininess" (float 5)))) (.rotate (float 1.6) 0 0))) @@ -787,3 +786,4 @@ +