Click or drag to resize

Game Framework

Particle System EditorManual / Content Creation / Game Framework2D Game Engine

Game Framework

Contents
Overview

The Game framework is a set of functionality for general control of the scene and the Player App, and also includes a set of commonly used specialized classes.

Screenshot999999999842.png

It includes the ability to control the camera during the simulation, process messages from input devices, ensure the player interacts with the scene and objects in it.

Screenshot999999999858 2.png
Processing messages from a player

Processing messages is as follows. First, messages from the engine are sent to the PlayScreen class (PlayScreen.cs). They can be processed there. Next, PlayScreen redirects messages to the Game Mode class, if there is one in the scene. Messages can be processed using the InputMessageEvent event.

Game Mode forwards input messages to other objects in the scene. If the Object Controlled By Player property is configured, then incoming messages will be forwarded to it. The object must be of type Input Processing or contain such an object. Input Processing is designed to process player messages.

Screenshot999999999849 2.png
Pathfinding
Character

The framework includes the implementation of character.

Screenshot999999999843.png
Camera control on the example of a character

In order to configure character control by a player, you need to configure the properties of the Game Mode object. This object is in the scene. The Object Controlled By Player property should point to the character. You also need to configure the type of camera using the Use Built In Camera property (for example, select First Person).

Screenshot999999999849 2.png

Now by launching the Player App, you can control the character in a first-person view.

Screenshot999999999852.png
Interactive objects

The framework includes a set of features for player interaction with scene objects.

Button.

Screenshot999999999999106.png

Regulator Switch.

Screenshot999999999999107.png

Render Target In Space.

Screenshot999999999999234.png

Weapon.

Screenshot999999999999130.png
See also
Particle System Editor2D Game Engine