]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/terrain/terrain.factor
game.worlds overhaul: add optional support for integrating audio.engine and make...
[factor.git] / extra / terrain / terrain.factor
index f28e685c6680199f16cbf61c06b98544a8879996..27bd7df403550bf3c98d0519d223bf4fbcc587ac 100644 (file)
@@ -217,7 +217,7 @@ terrain-world H{
     [ tick-player-reverse ]
     [ tick-player-forward ] if ;
 
-M: terrain-world tick*
+M: terrain-world tick-game-world
     [ dup focused?>> [ handle-input ] [ drop ] if ]
     [ dup player>> tick-player ] bi ;
 
@@ -295,6 +295,7 @@ GAME: terrain-game {
             double-buffered
             T{ depth-bits { value 24 } }
         } }
+        { use-game-input? t }
         { grab-input? t }
         { pref-dim { 1024 768 } }
         { tick-interval-micros $[ 60 fps ] }