From: jsancho Date: Fri, 20 May 2011 19:37:36 +0000 (+0000) Subject: (no commit message) X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=46487d7bdbf43bac830d5310ecdb8c07feb9163f;p=gacela.git --- diff --git a/src/gacela.c b/src/gacela.c index 1f80b76..e1e05aa 100644 --- a/src/gacela.c +++ b/src/gacela.c @@ -46,6 +46,7 @@ void load_scheme_files (char *path) { load_scheme_file (path, "gacela.scm"); + load_scheme_file (path, "gacela_ttf.scm"); } int diff --git a/src/gacela.scm b/src/gacela.scm index 5469156..d994394 100644 --- a/src/gacela.scm +++ b/src/gacela.scm @@ -208,7 +208,7 @@ (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?)) @@ -222,20 +222,22 @@ (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 ()