O'Reilly logo

CRYENGINE Game Development Blueprints by Sam Howels, Riham Toulan, Chris Goodswen, Richard Gerard Marcoux III

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing a game menu system in C++

Now that we have all of the Flash UI content created and ready to go, it's time to connect it to the C++ layer of CRYENGINE via a game menu system. This system is very basic; however, it is quite powerful when communicating with ActionScript, such as when responding to events (fscommands). All we need is a small class that will listen to all of the events that Flash dispatched to us via fscommands. We will then use this listener mechanic to respond to various events, helping us develop a framework to display our various game menus.

So let's see how this is done:

  1. Create a new header file called CGameUIListener.h that will be used to declare our game's menu system (Flash UI listener). Create a class called

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required