diff options
author | David Thompson <dthompson2@worcester.edu> | 2021-04-13 11:30:50 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2021-04-13 11:30:50 -0400 |
commit | ce9d6e8ad28b2d84d1a292a871c23b66a4654b54 (patch) | |
tree | ade44e7bb7b891c9ae0ceba18633ef4b2a911a7c /manuals/chickadee/The-Game-Loop.html | |
parent | 2a30eb2a2d5472be3df1254d5d4d04310314e628 (diff) |
Add new guile-sdl2 and chickadee releases.
Diffstat (limited to 'manuals/chickadee/The-Game-Loop.html')
-rw-r--r-- | manuals/chickadee/The-Game-Loop.html | 14 |
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 "Chickadee!"] [#: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 "Chickadee!"] [#: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 “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. -</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> |