Raylib Bubbles
C++11 Raylib bubble shooter game.
Game Class Reference

Main game singleton class, combining all game components with the main game loop. More...

#include <game.hpp>

Public Member Functions

Main game loop methods.
void loop ()
 Run the main game loop. More...
 

Detailed Description

Main game singleton class, combining all game components with the main game loop.

This class handles the main game loop and uses all of the other modules to create the final game. The responsibilities of the components are as follows:

  • GameWindow: Handles the game window and provides all primitives for rendering and frame timing.
  • GameHUD: Unifies HUD drawing with a single interface.
  • GameBoard: Manages the game board state and provides methods for manipulating it.
  • PlacedBoard: A thin struct wrapper around the GameBoard that provides additional information for rendering.
  • GameActionMgr: Manages game actions (event-based animations) and their execution.
See also
GameWindow, GameHUD, GameBoard, PlacedBoard, GameActionMgr

Member Function Documentation

◆ loop()

void Game::loop ( )

Run the main game loop.

Todo:
Reduce complexity by moving logic to helper methods.

The documentation for this class was generated from the following files: