|
Feature introduction
Following up on the previous issue (U&C No. 129, Spring 2020), this article introduces the features of the Suite Chidori Engine.
1. Sound playback
The sound format supports both Wave and Ogg Vorbis data. The file extension for Wave format data is .wav. Because it is uncompressed, the file size will be larger when using a high-quality setting. The file extension for Ogg Vorbis data is .ogg. Due to its lossy compression, the file size is smaller, and it is generally considered to have better sound quality than MP3, which also uses lossy compression.
There are 2 ways to play back the sound:
- Playback of registered data
When playing back registered data, the sound data read from a file is registered in the program and then played. While looping playback is not possible, since only 1 file needs to be loaded, it is suitable for use as sound effects that are repeatedly played during gameplay.
- Streaming playback
When playing audio through streaming, the sound data is read from the file each time it is played. Because looping playback is possible, it is suitable for use as background music in games. The played sounds can be stopped, paused, and resumed. When stopping the playback, a fade-out effect can also be applied.
2. Font display
The Suite Chidori Engine includes a font rendering system that uses bitmap fonts. Bitmap fonts are fonts represented as collections of points.
The bitmap data used in the game will be in a proprietary format specific to the Suite Chidori Engine, and it can be created using tools included with the installer. The tool reads text files that describe the fonts you want to use in the game and then generates the corresponding bitmap data. You can choose from various font types and sizes. Font color and transparency can be specified within the game itself.
 |
 |
| Figure 1: Example of display using the tool |
Figure 2: Example of display during gameplay |
Document introduction
The installer includes documentation that is helpful for game development. Here, we will introduce the documents included with version 1.2.0
- Suite Chidori Engine Help
This is a help file. It contains information on license authentication procedures, precautions when distributing the game, how to use each feature, how to use the tools, the steps for setting up the environment during game creation, how to use the tutorial project and explanations of its code, and how to use the sample projects
- Suite Chidori Engine Reference Manual
This is a reference manual. It lists the classes and functions available for the Suite Chidori Engine.
Introduction to games using the Suite Chidori Engine
We are introducing a game called "Mole Brain Training! ~Instant Memory Mole Whacking~" developed using the Suite Chidori Engine. This game is a brain training game that strengthens instant memory by remembering the order in which moles pop out of holes and tapping them in that order. It is scheduled to be included in the FORUM8 launcher, and all product users will be able to play it.
We will introduce the flow of the game along with screenshots from the game itself.
When you start the game, the title screen will appear. From the title screen, you can also check how to play. The game offers 3 difficulty levels: "Easy," "Normal," and "Difficult."
 |
 |
| Figure 3: Title screen |
Figure 4: Gameplay screen |
When you select the difficulty level, the screen will change and the game will begin. The selected difficulty level and the current stage number are displayed at the top of the screen, while the current score is shown in the lower-left corner. First, learn the order in which the moles appear. The number of moles that appear changes depending on the difficulty level.
 |
 |
| Figure 5: Remember the order! |
Figure 6: Steps for memorizing the order |
When all the moles appear, you then tap them in the order they appeared by clicking on them. The number of moles remaining to be tapped is displayed in the lower right corner of the screen.
 |
 |
| Figure 7: Hit it exactly as you've learned! |
Figure 8: The procedure for striking as learned |
If you tap the mole, the result will be displayed. If you tap them in the correct order, you can advance to the next stage. If you get all 5 stages correct consecutively, you will clear the game and a results screen will appear. If you tap the moles in the wrong order, the game will end at that point, and a results screen will appear.
 |
 |
| Figure 9: Display when successful |
Figure 10: Display when an error occurs |
The result screen displays the score obtained in this game, as well as the previous high score and the rank of this score. You can choose to continue playing with the same difficulty level or return to the title screen and play with a different difficulty level.
 |
| Figure 11: Result screen |
Here's an introduction to the implementation details of the game.
In this game, the tasks primarily involve creating what is shown in the diagram below
 |
| Figure 12: Task configuration |
- Root task
This is the task that is initially called after the program starts. It has title tasks, game tasks, and result tasks as child tasks. Depending on the state of the game and the player's actions, one of the title task, game task, or result task is activated.
- Title: Task
Displays and controls the title image, gameplay instructions image, and the "Start Game" button
- Game tasks
The mole model controls the display of each panel and font within the game screen, as well as controlling the overall processing of the game.
- Result task
Displays and controls the panels and fonts on the result screen.
- Panel tasks, font tasks, and mole model tasks
These tasks are added as sub-tasks under the title task, game task, and result task. They respectively display a panel capable of showing 2-dimensional images, manage fonts, and display and control the mole model.
- Process tasks
It is added as a sub-task of the game task. It was created to separate the UI and model display from the processing, with the game task responsible for displaying elements and the process task handling the processing.
|