# allbinary/allbinary-platform-game-with-gdevelop architecture

> Architecture diagram of the GitHub repository allbinary/allbinary-platform-game-with-gdevelop, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-02-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/allbinary/allbinary-platform-game-with-gdevelop
- Repository: https://github.com/allbinary/allbinary-platform-game-with-gdevelop

## Overview

Main Components and Architecture:

##### Core Components
- GDGame Base Library (GDGameBaseJavaLibraryM)
- GD Java Library (GDJavaLibraryM)
- GD Game Generated Library (GDGameGeneratedJavaLibraryM)
- Platform-specific implementations (Android, HTML, J2SE, J2ME)

##### Resource Management
- Multiple resource factories for different platforms
- Image animation interfaces
- Sound resources
- OpenGL/3D resources

##### Top Level
a) Input Layer (GDevelop JSON)
b) Processing Layer (Code Generation & Platform-Specific Adaptation)
c) Output Layer (Platform Builds)

##### Processing Layer Details
- JSON Parser/Loader
- Code Generator
- Resource Managers
- Platform-Specific Adapters

##### Platform Support
- Android
- HTML5
- J2SE
- J2ME

##### Resource Management
- Image Resources
- Animation Resources
- Sound Resources
- 3D Resources
To both the processing layer and platform-specific implementations

Use the following visual elements:

- Blue: Core components
- Green: Platform-specific code
- Orange: Resource management
- Gray: External systems/inputs

##### Labels
- Clear component names
- Brief descriptions of key interfaces
- Version information where relevant

Key Relationships to Show:

##### Platform-Specific Implementations → Final Builds

- Any abbreviations used

Special Considerations:

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph Input
        GDJson[GDevelop JSON]
    end

    subgraph Processing
        Parser["JSON Parser"]:::core
        CodeGen["Code Generator"]:::core
        ResMan["Resource Management"]:::resource
    end

    subgraph "Core Libraries"
        GDBase["GDGame Base Library"]:::core
        GDJava["GD Java Library"]:::core
        GDGen["GD Game Generated Library"]:::core
    end

    subgraph "Resource Management"
        ResFact["Resource Factories"]:::resource
        ImgAnim["Image Animation Resources"]:::resource
        Sound["Sound Resources"]:::resource
    end

    subgraph "Platform Implementations"
        Android["Android"]:::platform
        HTML["HTML5"]:::platform
        J2SE["J2SE"]:::platform
        J2ME["J2ME"]:::platform
    end

    subgraph "Game Components"
        GameLayer["Game Layer Management"]:::game
        GameCanvas["Game Canvas"]:::game
        GameBehavior["Game Behaviors"]:::game
    end

    GDJson --> Parser
    Parser --> CodeGen
    Parser --> ResMan

    ResMan --> ResFact
    ResMan --> ImgAnim
    ResMan --> Sound

    CodeGen --> GDBase
    CodeGen --> GDJava
    CodeGen --> GDGen

    GDBase --> Android
    GDBase --> HTML
    GDBase --> J2SE
    GDBase --> J2ME

    ResFact --> GameLayer
    ImgAnim --> GameCanvas
    Sound --> GameBehavior

    %% Click events for component mapping
    click GDBase "https://github.com/AllBinary/AllBinary-Platform-Game-With-GDevelop/tree/master/GDGameBaseJavaLibraryM/"
    click GDJava "https://github.com/AllBinary/AllBinary-Platform-Game-With-GDevelop/tree/master/GDJavaLibraryM/"
    click GDGen "https://github.com/AllBinary/AllBinary-Platform-Game-With-GDevelop/tree/master/GDGameGeneratedJavaLibraryM/"
    click ResFact "https://github.com/AllBinary/AllBinary-Platform-Game-With-GDevelop/tree/master/resource/GDGameResourceJavaLibraryM/"
    click ImgAnim "https://github.com/AllBinary/AllBinary-Platform-Game-With-GDevelop/tree/master/resource/GDGameImageAnimationInterfaceResourceFactoryJavaLibraryM/"
    click Sound "https://github.com/AllBinary/AllBinary-Platform-Game-With-GDevelop/tree/master/GDGameWavSoundsJavaLibraryM/"
    click Android "https://github.com/AllBinary/AllBinary-Platform-Game-With-GDevelop/tree/master/platform/android/"
    click HTML "https://github.com/AllBinary/AllBinary-Platform-Game-With-GDevelop/tree/master/platform/html/"
    click J2SE "https://github.com/AllBinary/AllBinary-Platform-Game-With-GDevelop/tree/master/platform/j2se/"
    click J2ME "https://github.com/AllBinary/AllBinary-Platform-Game-With-GDevelop/tree/master/platform/j2me/"
    click Parser "https://github.com/AllBinary/AllBinary-Platform-Game-With-GDevelop/tree/master/GDJavaLibraryM/src/main/java/org/allbinary/gdevelop/json/"
    click CodeGen "https://github.com/AllBinary/AllBinary-Platform-Game-With-GDevelop/tree/master/GDGameGeneratedJavaLibraryM/src/main/java/org/allbinary/game/canvas/"
    click ResMan "https://github.com/AllBinary/AllBinary-Platform-Game-With-GDevelop/tree/master/GDJavaLibraryM/src/main/java/org/allbinary/gdevelop/json/resource/"
    click GameLayer "https://github.com/AllBinary/AllBinary-Platform-Game-With-GDevelop/tree/master/GDGameJavaLibraryM/src/main/java/org/allbinary/game/layer/"
    click GameCanvas "https://github.com/AllBinary/AllBinary-Platform-Game-With-GDevelop/tree/master/GDGameBaseJavaLibraryM/src/main/java/org/allbinary/game/canvas/"
    click GameBehavior "https://github.com/AllBinary/AllBinary-Platform-Game-With-GDevelop/tree/master/GDGameGeneratedJavaLibraryM/src/main/java/org/allbinary/game/behavior/"

    classDef core fill:#2374ab
    classDef resource fill:#ff7f50
    classDef platform fill:#4caf50
    classDef game fill:#9c27b0

    %% Legend
    subgraph Legend
        L1[Core Components]:::core
        L2[Resource Components]:::resource
        L3[Platform Specific]:::platform
        L4[Game Components]:::game
    end
```
