comparison org/games.org @ 66:1381a6ebd08b

updated org files to work with latest org changes
author Robert McIntyre <rlm@mit.edu>
date Wed, 07 Dec 2011 12:16:48 -0600
parents b1b90c4ab0bf
children 7e7f8d6d9ec5
comparison
equal deleted inserted replaced
65:4b5f00110d8c 66:1381a6ebd08b
18 18
19 Of note is the fact that since we don't have access to the 19 Of note is the fact that since we don't have access to the
20 =AssetManager= via extendig =SimpleApplication=, we have to build one 20 =AssetManager= via extendig =SimpleApplication=, we have to build one
21 ourselves. 21 ourselves.
22 22
23 #+srcname: hello-simple-app 23 #+name: hello-simple-app
24 #+begin_src clojure :results silent 24 #+begin_src clojure :results silent
25 (ns hello.hello-simple-app 25 (ns hello.hello-simple-app
26 (:use cortex.world) 26 (:use cortex.world)
27 (:import com.jme3.math.Vector3f) 27 (:import com.jme3.math.Vector3f)
28 (:import com.jme3.material.Material) 28 (:import com.jme3.material.Material)
65 #+caption: the simplest JME game. 65 #+caption: the simplest JME game.
66 [[../images/simple-app.jpg]] 66 [[../images/simple-app.jpg]]
67 67
68 * Simpler HelloSimpleApp 68 * Simpler HelloSimpleApp
69 69
70 #+srcname: hello-simpler-app 70 #+name: hello-simpler-app
71 #+begin_src clojure 71 #+begin_src clojure
72 (ns hello.hello-simpler-app 72 (ns hello.hello-simpler-app
73 (:use cortex.world) 73 (:use cortex.world)
74 (:use cortex.util) 74 (:use cortex.util)
75 (:import com.jme3.math.ColorRGBA) 75 (:import com.jme3.math.ColorRGBA)
90 found [[http://jmonkeyengine.org/wiki/doku.php/starter:hello_world][here]]. 90 found [[http://jmonkeyengine.org/wiki/doku.php/starter:hello_world][here]].
91 91
92 * COMMENT Hello Physics 92 * COMMENT Hello Physics
93 From http://jmonkeyengine.org/wiki/doku.php/jme3:beginner:hello_physics 93 From http://jmonkeyengine.org/wiki/doku.php/jme3:beginner:hello_physics
94 94
95 #+srcname: brick-wall-header 95 #+name: brick-wall-header
96 #+begin_src clojure :results silent 96 #+begin_src clojure :results silent
97 (ns hello.brick-wall) 97 (ns hello.brick-wall)
98 (require 'cortex.import) 98 (require 'cortex.import)
99 (use 'clojure.contrib.def) 99 (use 'clojure.contrib.def)
100 (rlm.rlm-commands/help) 100 (rlm.rlm-commands/help)
102 (use '[pokemon [lpsolve :only [constant-map]]]) 102 (use '[pokemon [lpsolve :only [constant-map]]])
103 (use 'cortex.world) 103 (use 'cortex.world)
104 (use 'cortex.util) 104 (use 'cortex.util)
105 #+end_src 105 #+end_src
106 106
107 #+srcname: brick-wall-body 107 #+name: brick-wall-body
108 #+begin_src clojure :results silent 108 #+begin_src clojure :results silent
109 (in-ns 'hello.brick-wall) 109 (in-ns 'hello.brick-wall)
110 110
111 (defn floor 111 (defn floor
112 "make a sturdy, unmovable physical floor" 112 "make a sturdy, unmovable physical floor"
219 219
220 #+caption: the brick wall after it has been knocked over by a "pok\eacute{}ball" 220 #+caption: the brick wall after it has been knocked over by a "pok\eacute{}ball"
221 [[../images/brick-wall-knocked-down.jpg]] 221 [[../images/brick-wall-knocked-down.jpg]]
222 222
223 * COMMENT Other Brick Games 223 * COMMENT Other Brick Games
224 #+srcname: other-games 224 #+name: other-games
225 #+begin_src clojure :results silent 225 #+begin_src clojure :results silent
226 (ns hello.other-games 226 (ns hello.other-games
227 {:author "Dylan Holmes"}) 227 {:author "Dylan Holmes"})
228 (use 'cortex.world) 228 (use 'cortex.world)
229 (use 'hello.brick-wall) 229 (use 'hello.brick-wall)
367 367
368 #+caption: floating dominos 368 #+caption: floating dominos
369 [[../images/dominos.jpg]] 369 [[../images/dominos.jpg]]
370 370
371 * Hello Loop 371 * Hello Loop
372 #+srcname: hello-loop 372 #+name: hello-loop
373 #+begin_src clojure :results silent 373 #+begin_src clojure :results silent
374 (ns hello.loop 374 (ns hello.loop
375 (:use cortex.world) 375 (:use cortex.world)
376 (:use cortex.util) 376 (:use cortex.util)
377 (:import com.jme3.math.ColorRGBA) 377 (:import com.jme3.math.ColorRGBA)
395 (.rotate cube 0.0 (* 2 tpf) 0.0))))) 395 (.rotate cube 0.0 (* 2 tpf) 0.0)))))
396 #+end_src 396 #+end_src
397 397
398 * COMMENT Hello Collision 398 * COMMENT Hello Collision
399 399
400 #+srcname: hello-collision 400 #+name: hello-collision
401 #+begin_src clojure :results silent 401 #+begin_src clojure :results silent
402 (ns hello.collision) 402 (ns hello.collision)
403 (use 'cortex.world) 403 (use 'cortex.world)
404 (use 'cortex.import) 404 (use 'cortex.import)
405 (use 'clojure.contrib.def) 405 (use 'clojure.contrib.def)
516 setup-fn 516 setup-fn
517 update-fn))) 517 update-fn)))
518 #+end_src 518 #+end_src
519 519
520 * COMMENT Hello Terrain 520 * COMMENT Hello Terrain
521 #+srcname: hello-terrain 521 #+name: hello-terrain
522 #+begin_src clojure :results silent 522 #+begin_src clojure :results silent
523 (ns hello.terrain) 523 (ns hello.terrain)
524 (use 'cortex.world) 524 (use 'cortex.world)
525 (use 'cortex.import) 525 (use 'cortex.import)
526 (use 'clojure.contrib.def) 526 (use 'clojure.contrib.def)
593 no-op))) 593 no-op)))
594 #+end_src 594 #+end_src
595 595
596 596
597 597
598 #+srcname: hello-animation 598 #+name: hello-animation
599 #+begin_src clojure :results silent 599 #+begin_src clojure :results silent
600 (ns hello.animation) 600 (ns hello.animation)
601 (use 'cortex.world) 601 (use 'cortex.world)
602 (use 'cortex.import) 602 (use 'cortex.import)
603 (use 'clojure.contrib.def) 603 (use 'clojure.contrib.def)
666 (partial setup-fn channel) 666 (partial setup-fn channel)
667 no-op)))) 667 no-op))))
668 #+end_src 668 #+end_src
669 669
670 * COMMENT Hello Materials 670 * COMMENT Hello Materials
671 #+srcname: material 671 #+name: material
672 #+begin_src clojure :results silent 672 #+begin_src clojure :results silent
673 (ns hello.material) 673 (ns hello.material)
674 (use 'cortex.world) 674 (use 'cortex.world)
675 (use 'cortex.import) 675 (use 'cortex.import)
676 (use 'cortex.util) 676 (use 'cortex.util)