Gde-x Design game-driven tasks and temporary task Concepts _ Tasks

Source: Internet
Author: User

The general game is based on "scene-driven".

The so-called scene drive is the player in the game specific position, specific state, specific behavior triggers the game logic.

As in a map, enter a door, to the next map;

If you choose to talk to someone in a map, it triggers a fight ...

Take a look at the following screenshot from the martial arts Group biography:

Drives subtasks (battles, games, menus) by driver-level tasks (RPG scenarios, Grow-out mode scenarios).

This design concept is also used in our Gde-x engine.

Consider fighting, games, other menus, etc. as temporary tasks. can be loaded independently each time it is needed.

The scene as a background-driven task, always exists, only need to maintain the current scene information.

Then our game engine state machine can be completely based on the current scene

while (not exit)

{

Scene behavior xxx (current scene);

}

And then to block in the scene behavior to start temporary tasks, such as combat startbattle (this. combat information);

After the battle was completed and returned to the scene behavior.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.