Albert-Corson / arcade

A modular game launcher with hot-swappable graphic libraries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Key Management

  • IGame

    • Game
      • asks event to Core
  • Core

    • asks event to ILibGraph
  • ILibGraph

    • Sends events
    • LibGraph
      • Sends events
  • Core

    • receives event from ILibGraph
    • checks key to change the lib (game /graph)
    • sends event back to the IGame
  • IGame

    • Game
      • receives event from Core

Resource (Image / Audio)

Each resource has a type. Each resource has 2 filepath one for the graph and the other for the ascii.

An empty filepath will return true for a call to loadResource.

Resource type

            +---> Audio 
    Type ---|
            +---- Image
  • Core:

    • stores resource path

      core.hpp

      std::unordered_map<int, Resource>
      
      void loadResource(std::unordered_map<int, Resource>& resources);
  • ILibGraph:

    • LibGraph:
      • Store resource with an id
  • IGame

    • Game
      • when launch, loads resource into the core

About

A modular game launcher with hot-swappable graphic libraries


Languages

Language:C++ 95.4%Language:Makefile 4.6%