From ce9d6e8ad28b2d84d1a292a871c23b66a4654b54 Mon Sep 17 00:00:00 2001
From: David Thompson
Date: Tue, 13 Apr 2021 11:30:50 -0400
Subject: Add new guile-sdl2 and chickadee releases.
---
manuals/chickadee/The-Game-Loop.html | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
(limited to 'manuals/chickadee/The-Game-Loop.html')
diff --git a/manuals/chickadee/The-Game-Loop.html b/manuals/chickadee/The-Game-Loop.html
index a562c8b..1cb6e48 100644
--- a/manuals/chickadee/The-Game-Loop.html
+++ b/manuals/chickadee/The-Game-Loop.html
@@ -99,14 +99,15 @@ styles of game loops. The appropriately named run-game
and
Chickadee game loop.
-- Procedure: run-game [#:window-title "Chickadee!"] [#:window-width 640] [#:window-height 480] [#:window-fullscreen?
#f
] [#:update-hz 60] [#:load] [#:update] [#:draw] [#:quit] [#:key-press] [#:key-release] [#:text-input] [#:mouse-press] [#:mouse-release] [#:mouse-move] [#:controller-add] [#:controller-remove] [#:controller-press] [#:controller-release] [#:controller-move] [#:error]
+- Procedure: run-game [#:window-title "Chickadee!"] [#:window-width 640] [#:window-height 480] [#:window-fullscreen?
#f
] [#:window-resizable? #f
] [#:update-hz 60] [#:load] [#:update] [#:draw] [#:quit] [#:key-press] [#:key-release] [#:text-input] [#:mouse-press] [#:mouse-release] [#:mouse-move] [#:controller-add] [#:controller-remove] [#:controller-press] [#:controller-release] [#:controller-move] [#:error]
-
Run the Chickadee game loop.
A new graphical window will be opened with window-width x
window-height as its dimensions, window-title as its
title, and in fullscreen mode if window-fullscreen? is
-#t
.
+#t
. If window-resizable? is #t
then the window
+can be resized by the user.
- load: Called with zero arguments when the game window has opened
@@ -119,7 +120,7 @@ argument: The amount of time to advance the game simulation.
- draw: Called each time a frame should be rendered with a single
argument known as the
alpha
value. See the documentation for
-run-game
for an explanation of this value.
+run-game*
for an explanation of this value.
- quit: Called with zero arguments when the user tries to close
the game window. The default behavior is to exit the game.
@@ -328,8 +329,8 @@ animation appear rough or “choppy”. To counter this, the
moving object between its current position and its previous position.
This odd trick has the pleasing result of making the animation look
smooth again, but requires keeping track of previous state.
-
- time: Called to get the current time in milliseconds. This
-procedure is called with no arguments.
+
- time: Called to get the current time in seconds. This procedure
+is called with no arguments.
- error: Called when an error from the update or
render procedures reaches the game loop. This procedure is
called with three arguments: The call stack, the error key, and the
@@ -341,8 +342,7 @@ behavior is to simply re-throw the error.
- Procedure: elapsed-time
-Return the number of milliseconds that have passed since the game loop
-was started.
+
Return the current value of the system timer in seconds.
--
cgit v1.2.3