Game Development Reference
In-Depth Information
F
Classes
iMountPoint
,
clPhysicalMountPoint
,
clAliasMountPoint
,
and
clArchiveMountPoint
are used to route the access to the OS native
ilesystem and Android
.apk
archives in a portable multiplatform way.
The
sound
folder contains abstractions for our audio subsystem:
F
Class
clAudioSource
represents an audio source in a virtual environment. It can
be played, paused, or stopped.
F
Class
clAudioThread
updates the active sources and submits the data to the
underlying OpenAL API.
F
Class
iWaveDataProvider
abstracts the decoding of audio iles.
F
Class
clStreamingWaveDataProvider
streams the data from audio iles too
large to be decoded into memory at once.
F
Class
clDecodingProvider
provides common rewinding logic for streaming audio
providers. It is the base class for actual decoders.
F
Classes
clOggProvider
and
clModPlugProvider
handle the decoding of the
.ogg
iles with libogg/libvorbis and tracker music with libmodplug.
The
threading
folder contains portable implementations of different multithreading primitives:
F
Classes
clMutex
,
LMutex
, and
iThread
implement basic low-level multithreading
primitives in a portable way
F
Classes
clWorkerThread
and
iTask
are higher level abstractions based on
iThread
F
Classes
iAsyncQueue
and
iAsyncCapsule
are used to implement
asynchronous callbacks
The source code of out mini engine is located in the Engine folder within
the examples for the last chapter.
See also
F
Writing the match-3 game
F
Chapter 9
,
Writing a Picture Puzzle Game
Writing the match-3 game
Now it is time to start the development of a inished match-3 game. A match-3 is a type of
puzzle where a player needs to align tiles in order to make adjacent tiles disappear. Here,
3
stands for the number of same-color tiles that will disappear when put into adjacent positions.
The following screenshot is of the inal version of the game: