summaryrefslogtreecommitdiff
path: root/manuals/chickadee/The-Game-Loop.html
diff options
context:
space:
mode:
Diffstat (limited to 'manuals/chickadee/The-Game-Loop.html')
-rw-r--r--manuals/chickadee/The-Game-Loop.html14
1 files changed, 7 insertions, 7 deletions
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 <code>run-game</code> and
Chickadee game loop.
</p>
<dl>
-<dt id="index-run_002dgame">Procedure: <strong>run-game</strong> <em>[#:window-title &quot;Chickadee!&quot;] [#:window-width 640] [#:window-height 480] [#:window-fullscreen? <code>#f</code>] [#: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]</em></dt>
+<dt id="index-run_002dgame">Procedure: <strong>run-game</strong> <em>[#:window-title &quot;Chickadee!&quot;] [#:window-width 640] [#:window-height 480] [#:window-fullscreen? <code>#f</code>] [#:window-resizable? <code>#f</code>] [#: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]</em></dt>
<dd>
<p>Run the Chickadee game loop.
</p>
<p>A new graphical window will be opened with <var>window-width</var> x
<var>window-height</var> as its dimensions, <var>window-title</var> as its
title, and in fullscreen mode if <var>window-fullscreen?</var> is
-<code>#t</code>.
+<code>#t</code>. If <var>window-resizable?</var> is <code>#t</code> then the window
+can be resized by the user.
</p>
<ul>
<li> <var>load</var>: Called with zero arguments when the game window has opened
@@ -119,7 +120,7 @@ argument: The amount of time to advance the game simulation.
</li><li> <var>draw</var>: Called each time a frame should be rendered with a single
argument known as the <code>alpha</code> value. See the documentation for
-<code>run-game</code> for an explanation of this value.
+<code>run-game*</code> for an explanation of this value.
</li><li> <var>quit</var>: 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 &ldquo;choppy&rdquo;. 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.
-</li><li> <var>time</var>: Called to get the current time in milliseconds. This
-procedure is called with no arguments.
+</li><li> <var>time</var>: Called to get the current time in seconds. This procedure
+is called with no arguments.
</li><li> <var>error</var>: Called when an error from the <var>update</var> or
<var>render</var> 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.
<dl>
<dt id="index-elapsed_002dtime">Procedure: <strong>elapsed-time</strong></dt>
-<dd><p>Return the number of milliseconds that have passed since the game loop
-was started.
+<dd><p>Return the current value of the system timer in seconds.
</p></dd></dl>
<hr>