Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > bad97183153701b09df5fae1052b1c30 > files > 4340

crystalspace-doc-1.2.1-5mdv2010.0.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
<html>
<!-- Created by texi2html 1.76 -->
<!--
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
            Karl Berry  <karl@freefriends.org>
            Olaf Bachmann <obachman@mathematik.uni-kl.de>
            and many others.
Maintained by: Many creative people <dev@texi2html.cvshome.org>
Send bugs and suggestions to <users@texi2html.cvshome.org>

-->
<head>
<title>Crystal Space 1.2.1: 4.2.4 Mazing Tutorial: Small Game</title>

<meta name="description" content="Crystal Space 1.2.1: 4.2.4 Mazing Tutorial: Small Game">
<meta name="keywords" content="Crystal Space 1.2.1: 4.2.4 Mazing Tutorial: Small Game">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="texi2html 1.76">
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
pre.display {font-family: serif}
pre.format {font-family: serif}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: serif; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: serif; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.sansserif {font-family:sans-serif; font-weight:normal;}
ul.toc {list-style: none}
-->
</style>


</head>

<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">

<a name="Tutorial-Mazing"></a>
<a name="0"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="Simple-Locating-the-Camera.html#0" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="Mazing-Playing.html#0" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="Using-Crystal-Space.html#0" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="Tutorials.html#0" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="Working-with-Engine-Content.html#0" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="index.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="cs_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="cs_Index.html#0" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="cs_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<hr size="1">
<h3 class="subsection"> 4.2.4 Mazing Tutorial: Small Game </h3>

<p>This tutorial is a small but complete game with a maze generated by
code and four spheres that you have to shoot with your laser beam.
It is assumed you already know most of the basics by reading the Simple
Tutorial first (see section <a href="Tutorial-Simple.html#0">Simple Tutorial 1: Basic Setup, World Creation</a>). You can find the full source code
of this tutorial in the <tt>&lsquo;apps/tutorial/mazing&rsquo;</tt> directory and you can
build it in Crystal Space using <samp>&lsquo;make mazing&rsquo;</samp> or <samp>&lsquo;jam mazing&rsquo;</samp>.
</p>
<p>This tutorial features (besides things mentioned in the previous tutorials):
</p><ul>
<li>
Creating a maze in code by using sectors (<code>iEngine::CreateSector()</code>, filled
with walls (<code>iEngine::CreateSectorWallsMesh()</code>), and connected through
portals (<code>iEngine::CreatePortal()</code>).
</li><li>
Creating genmesh mesh objects for the adversaries and the laserbeam
(see section <a href="MeshObject-Genmesh.html#0">Genmesh Mesh Object</a>).
</li><li>
Creating particle mesh objects for explosions (see section <a href="MeshObject-Particles.html#0">Particles Mesh Object</a>).
</li><li>
Doing collision detection manually (<code>csColliderWrapper</code> and
<code>csColliderHelper</code>).
</li><li>
Handling game objects attached to Crystal Space objects (see section <a href="User-Objects.html#0">Attaching User Objects to CS Objects</a>).
</li><li>
And a lot more small tiny details that are nice to know.
</li></ul>

<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top"><a href="Mazing-Playing.html#0">4.2.4.1 Playing the Game</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"></td></tr>
<tr><td align="left" valign="top"><a href="Mazing-Classes.html#0">4.2.4.2 Class Distribution</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"></td></tr>
<tr><td align="left" valign="top"><a href="Mazing-Constants.html#0">4.2.4.3 Constants</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"></td></tr>
<tr><td align="left" valign="top"><a href="Mazing-RoomCoordinate-Class.html#0">4.2.4.4 RoomCoordinate Class</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"></td></tr>
<tr><td align="left" valign="top"><a href="Mazing-Maze-Class.html#0">4.2.4.5 Maze Class</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"></td></tr>
<tr><td align="left" valign="top"><a href="Mazing-Player-Class.html#0">4.2.4.6 Player Class</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"></td></tr>
<tr><td align="left" valign="top"><a href="Mazing-Adversary-Class.html#0">4.2.4.7 Adversary Class</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"></td></tr>
<tr><td align="left" valign="top"><a href="Mazing-Explosion-Class.html#0">4.2.4.8 Explosion Class</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"></td></tr>
<tr><td align="left" valign="top"><a href="Mazing-Laser-Class.html#0">4.2.4.9 Laser Class</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"></td></tr>
<tr><td align="left" valign="top"><a href="Mazing-Game-Class.html#0">4.2.4.10 Game Class</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"></td></tr>
<tr><td align="left" valign="top"><a href="Mazing-AppMazing-Class.html#0">4.2.4.11 AppMazing Main Class</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top"></td></tr>
</table>

<hr size="1">
<p>
 <font size="-1">
  This document was generated using <a href="http://texi2html.cvshome.org/"><em>texi2html 1.76</em></a>.
 </font>
 <br>

</p>
</body>
</html>