]> git.jsancho.org Git - gacela.git/commitdiff
(no commit message)
authorjsancho <devnull@localhost>
Fri, 20 May 2011 19:37:36 +0000 (19:37 +0000)
committerjsancho <devnull@localhost>
Fri, 20 May 2011 19:37:36 +0000 (19:37 +0000)
src/gacela.c
src/gacela.scm

index 1f80b76b34fcd130a06a4a58ae2f73ff495c78a4..e1e05aa2a66d7d9acf5633dc476d7a5d46852de5 100644 (file)
@@ -46,6 +46,7 @@ void
 load_scheme_files (char *path)
 {
   load_scheme_file (path, "gacela.scm");
+  load_scheme_file (path, "gacela_ttf.scm");
 }
 
 int
index 54691562bfe46ca5fa977c3111e617ef384bc0a5..d99439488d28d7d34695de8c3b5e4bf4532864b5 100644 (file)
 
 
 (define-macro (run-game . code)
-  `(let ((game-function (lambda () ,@code)))
+  `(let ((game-function (lambda () (begin ,@code))))
      (init-video-mode)
      (set-game-code game-function)
      (cond ((not (game-running?))
   (set! game-loop
        (lambda ()
          (set! running #t)
-         (do () ((quit?))
+;        (do () ((quit?))
+         (do () (#f)
            (init-frame-time)
-           (check-connections)
-           (eval-from-clients)
-           (process-events)
-           (cond ((not (quit?))
-                  (glClear (+ GL_COLOR_BUFFER_BIT GL_DEPTH_BUFFER_BIT))
-                  (to-origin)
-                  (refresh-active-objects)
-                  (if (functionp game-code) (funcall game-code))
-                  (render-objects)
-                  (SDL_GL_SwapBuffers)
-                  (delay-frame))))
-         (set! running #f)))
+;          (check-connections)
+;          (eval-from-clients)
+;          (process-events)
+;          (cond ((not (quit?))
+           (cond ((not #f))
+;                (glClear (+ GL_COLOR_BUFFER_BIT GL_DEPTH_BUFFER_BIT))
+;                (to-origin)
+;                (refresh-active-objects)
+;                (if (functionp game-code) (funcall game-code))
+;                (render-objects)
+                 (SDL_GL_SwapBuffers)
+                 (delay-frame))))
+       (set! running #f)))
 
   (set! game-running?
        (lambda ()