# biancanathally/artemis-wwdc24 architecture

> Architecture diagram of the GitHub repository biancanathally/artemis-wwdc24, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/biancanathally/artemis-wwdc24
- Repository: https://github.com/biancanathally/artemis-wwdc24

## Overview

##### Main Components and Architecture

A. Scene Management Layer
- Scene controllers (LaunchScreen, MenuScreen, IntroScreen, etc.)

B. View Layer
- Corresponding views to scenes (e.g., LaunchScreenView → LaunchScreenScene)

C. Asset Management
- Images (organized by categories: buttons, crew, dialogBoxes, etc.)
- Sound Effects (rocket.m4a, star.m4a, etc.)
- SKS Files (SpriteKit Scene files)

D. Helper Components
- A "Utilities" section for NodeUtils.swift
- Relationships to other components

**[App Entry Point (MyApp.swift)]**
- ↓
**[Content View]**
- ↓

**[Scenes Layer] [Views Layer] [Assets]**

- LaunchScreen Scene/View  - Images
- MenuScreen Scene/View    - Sounds
- IntroScreen Scene/View   - SKS Files
- RocketScreen Scene/View
- MoonScreen Scene/View
- FinalScreen Scene/View
- CreditsScreen Scene/View

##### Implementation Details
- Swift and SwiftUI/SpriteKit as the primary frameworks
- Asset management system
- Scene transition system
- Interactive elements handling

##### Data Flow Indicators
- User input handling paths
- Scene transition paths
- Asset loading paths
- Audio playback paths

Remember to include:
- Version information
- Platform requirements (iOS/iPadOS)
- Framework dependencies
- Asset management flow
- User interaction flow
- Educational content delivery system

This will provide a comprehensive view of how the app delivers its educational content about the Artemis III mission while maintaining technical accuracy in representing the system's architecture.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "App Entry"
        MyApp["MyApp.swift"]
        ContentView["ContentView.swift"]
    end

    subgraph "Scene Management"
        LaunchScene["LaunchScreenScene"]:::scene
        MenuScene["MenuScreenScene"]:::scene
        IntroScene["IntroScreenScene"]:::scene
        RocketScene["RocketScreenScene"]:::scene
        MoonScene["MoonScreenScene"]:::scene
        FinalScene["FinalScreenScene"]:::scene
        CreditsScene["CreditsScreenScene"]:::scene
    end

    subgraph "View Layer"
        LaunchView["LaunchScreenView"]:::view
        MenuView["MenuScreenView"]:::view
        IntroView["IntroScreenView"]:::view
        RocketView["RocketScreenView"]:::view
        MoonView["MoonScreenView"]:::view
        FinalView["FinalScreenView"]:::view
        CreditsView["CreditsScreenView"]:::view
    end

    subgraph "Asset Management"
        Images["Images"]:::asset
        Sounds["Sound Effects"]:::asset
        SKSFiles["SKS Files"]:::asset
    end

    subgraph "Utilities"
        NodeUtils["NodeUtils"]:::utility
    end

    MyApp --> ContentView
    ContentView --> LaunchScene

    LaunchScene --> MenuScene
    MenuScene --> IntroScene
    IntroScene --> RocketScene
    RocketScene --> MoonScene
    MoonScene --> FinalScene
    MenuScene --> CreditsScene

    LaunchScene <--> LaunchView
    MenuScene <--> MenuView
    IntroScene <--> IntroView
    RocketScene <--> RocketView
    MoonScene <--> MoonView
    FinalScene <--> FinalView
    CreditsScene <--> CreditsView

    NodeUtils -.-> LaunchScene
    NodeUtils -.-> MenuScene
    NodeUtils -.-> IntroScene
    NodeUtils -.-> RocketScene
    NodeUtils -.-> MoonScene
    NodeUtils -.-> FinalScene
    NodeUtils -.-> CreditsScene

    Images -.-> LaunchView
    Images -.-> MenuView
    Images -.-> IntroView
    Images -.-> RocketView
    Images -.-> MoonView
    Images -.-> FinalView
    Images -.-> CreditsView

    Sounds -.-> LaunchScene
    Sounds -.-> MenuScene
    Sounds -.-> IntroScene
    Sounds -.-> RocketScene
    Sounds -.-> MoonScene
    Sounds -.-> FinalScene
    
    SKSFiles -.-> LaunchScene
    SKSFiles -.-> MenuScene
    SKSFiles -.-> IntroScene
    SKSFiles -.-> RocketScene
    SKSFiles -.-> MoonScene
    SKSFiles -.-> FinalScene

    %% Click events for component mapping
    click MyApp "https://github.com/biancanathally/Artemis-WWDC24/blob/master/Artemis.swiftpm/MyApp.swift"
    click ContentView "https://github.com/biancanathally/Artemis-WWDC24/blob/master/Artemis.swiftpm/ContentView.swift"
    click LaunchScene "https://github.com/biancanathally/Artemis-WWDC24/blob/master/Artemis.swiftpm/Artemis/Scenes/LaunchScreenScene.swift"
    click MenuScene "https://github.com/biancanathally/Artemis-WWDC24/blob/master/Artemis.swiftpm/Artemis/Scenes/MenuScreenScene.swift"
    click IntroScene "https://github.com/biancanathally/Artemis-WWDC24/blob/master/Artemis.swiftpm/Artemis/Scenes/IntroScreenScene.swift"
    click RocketScene "https://github.com/biancanathally/Artemis-WWDC24/blob/master/Artemis.swiftpm/Artemis/Scenes/RocketScreenScene.swift"
    click MoonScene "https://github.com/biancanathally/Artemis-WWDC24/blob/master/Artemis.swiftpm/Artemis/Scenes/MoonScreenScene.swift"
    click FinalScene "https://github.com/biancanathally/Artemis-WWDC24/blob/master/Artemis.swiftpm/Artemis/Scenes/FinalScreenScene.swift"
    click CreditsScene "https://github.com/biancanathally/Artemis-WWDC24/blob/master/Artemis.swiftpm/Artemis/Scenes/CreditsScreenScene.swift"
    click LaunchView "https://github.com/biancanathally/Artemis-WWDC24/blob/master/Artemis.swiftpm/Artemis/Views/LaunchScreenView.swift"
    click MenuView "https://github.com/biancanathally/Artemis-WWDC24/blob/master/Artemis.swiftpm/Artemis/Views/MenuScreenView.swift"
    click IntroView "https://github.com/biancanathally/Artemis-WWDC24/blob/master/Artemis.swiftpm/Artemis/Views/IntroScreenView.swift"
    click RocketView "https://github.com/biancanathally/Artemis-WWDC24/blob/master/Artemis.swiftpm/Artemis/Views/RocketScreenView.swift"
    click MoonView "https://github.com/biancanathally/Artemis-WWDC24/blob/master/Artemis.swiftpm/Artemis/Views/MoonScreenView.swift"
    click FinalView "https://github.com/biancanathally/Artemis-WWDC24/blob/master/Artemis.swiftpm/Artemis/Views/FinalScreenView.swift"
    click CreditsView "https://github.com/biancanathally/Artemis-WWDC24/blob/master/Artemis.swiftpm/Artemis/Views/CreditsScreenView.swift"
    click Images "https://github.com/biancanathally/Artemis-WWDC24/blob/master/Artemis.swiftpm/Assets.xcassets"
    click Sounds "https://github.com/biancanathally/Artemis-WWDC24/tree/master/Artemis.swiftpm/Resources/sounds"
    click SKSFiles "https://github.com/biancanathally/Artemis-WWDC24/tree/master/Artemis.swiftpm/Resources"
    click NodeUtils "https://github.com/biancanathally/Artemis-WWDC24/blob/master/Artemis.swiftpm/Artemis/Helpers/NodeUtils.swift"

    %% Styling
    classDef scene fill:#a8d1f0,stroke:#333,stroke-width:2px
    classDef view fill:#90EE90,stroke:#333,stroke-width:2px
    classDef asset fill:#FFB347,stroke:#333,stroke-width:2px
    classDef utility fill:#DDA0DD,stroke:#333,stroke-width:2px
    
    %% Legend
    subgraph Legend
        SceneLegend["Scene"]:::scene
        ViewLegend["View"]:::view
        AssetLegend["Asset"]:::asset
        UtilityLegend["Utility"]:::utility
    end
```
