4.2.4 迷路 チュートリアル: 小さなゲーム


4.2.4 迷路 チュートリアル: 小さなゲーム

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 Simple Tutorial 1: Basic Setup, World Creation). You can find the full source code of this tutorial in the `apps/tutorial/mazing' directory and you can build it in Crystal Space using `make mazing' or `jam mazing'.

このチュートリアルは、小さいですが、完成したゲームです。コードで迷路を生成し、ビームレーザーで打ち抜くための4つの球があります。シンプルチュートリアル1を読むことによって、あなたはすでに大抵の基礎を知っていると仮定します(4.2.1 シンプル チュートリアル 1: セットアップ基礎、ワールド作成をご覧下さい)。`apps/tutorial/mazing`ディレクトリに、このチュートリアルのすべてのソースコードがあります。`make mazing`または`jam mazing`を使用することで、Crystal Space内で、ソースコードをビルドすることができます。

This tutorial features (besides things mentioned in the previous tutorials):

このチュートリアルの項目です。(前のチュートリアルで言及したことに加え)

  • Creating a maze in code by using sectors (iEngine::CreateSector?(), filled with walls (iEngine::CreateSectorWallsMesh?()), and connected through portals (iEngine::CreatePortal?()).
  • Creating genmesh mesh objects for the adversaries and the laserbeam (see section Genmesh Mesh Object).
  • Creating particle mesh objects for explosions (see section Particle Systems in General).
  • Doing collision detection manually (csColliderWrapper? and csColliderHelper?).
  • Handling game objects attached to Crystal Space objects (see section Attaching User Objects to CS Objects).
  • And a lot more small tiny details that are nice to know.
  • セクタを使用し、コードで迷路を生成します。(iEngine::CreateSector?()、 壁を敷き詰めます(iEngine::CreateSectorWallsMesh?())、門を接続します(iEngine::CreatePortal?()。)
  • 敵とレーザービームのためのgenmeshオブジェクトを作成します。(see section Gemmesh Mesh Object)
  • 爆発のための、パーティクルメッシュオブジェクトを作成します。(see section Particle Systems in General)
  • 手動で衝突探知を行います。(csColliderWrapper? と csColliderHelper?)
  • Crystal Spaceオブジェクトに所属する、ゲームオブジェクトを操作します。(see section Attaching User Objects to CS Objects)
  • それと、知っておくと良い、とても多くの小さな細かい詳細。

4.2.4.1 Playing the Game
4.2.4.2 Class Distribution
4.2.4.3 Constants
4.2.4.4 RoomCoordinate Class
4.2.4.5 Maze Class
4.2.4.6 Player Class
4.2.4.7 Adversary Class?
4.2.4.8 Explosion Class?
4.2.4.9 Laser Class?
4.2.4.10 Game Class?
4.2.4.11 AppMazing Main Class?

4.2.4.1 ゲームをプレイ
4.2.4.2 クラス配分
4.2.4.3 定数?
4.2.4.4 部屋座標クラス?
4.2.4.5 迷路クラス?
4.2.4.6 プレイヤクラス?
4.2.4.7 敵クラス?
4.2.4.8 爆発クラス?
4.2.4.9 レーザークラス?
4.2.4.10 ゲームクラス?
4.2.4.11 迷路アプリケーション メインクラス?

最新の20件

2007-02-18 2007-02-12 2007-01-31 2007-02-12
  • 4.2.4 迷路 チュートリアル: 小さなゲーム
2007-01-14 2007-01-21 2007-02-12 2007-02-11 2007-01-15 2007-01-14 2007-02-12 2007-02-11 2007-02-01 2007-01-21 2007-01-19 2007-02-12 2007-01-19 2009-08-27 2007-01-10

今日の13件

  • counter: 143
  • today: 3
  • yesterday: 2
  • online: 1