Search Results for

    Show / Hide Table of Contents

    Getting Started — AmoyFeels Engine

    AmoyFeels Engine is a 2D game engine for offline single-player games, built for every 2D art style: visual novels (painted high-resolution art, text-heavy), top-down adventures, pixel art (pixel-perfect), platformers — often mixed in the same game. It runs on the BRUTAL framework and is delivered as AmoyFeels.* .NET packages.

    Who it's for: game developers and studios shipping offline 2D games who want gamepad-first input, crisp pixel art and smooth hi-res art in one renderer, and native compiled game binaries (fast startup, no decompilable IL — see SUPPORT-MATRIX.md).

    What you get: window + game loop · ECS · style-agnostic sprite renderer (pixel-perfect and hi-res filtering in one frame) · gamepads/keyboard/mouse with rebinding and UI navigation · player UI widgets (buttons, sliders, lists — gamepad-navigable) · FreeType text · dialogue/typewriter primitives · Box2D physics · save/load with versioned slots · multi-clock time system (pause, slow-mo, fixed-step physics) · audio · asset containers · crash reporting · OS permission seam · tilemaps + flipbook animation · tweening and a game-feel toolkit (camera follow, screen shake, parallax, particles) · a developer console and HUD overlay.

    Docs site: guides and the full API reference are published at https://engine.amoyfeels.com — the API reference is generated from the engine's XML comments (build the site locally per engine/docfx/README.md).

    Prerequisites

    • .NET 10 SDK
    • A GPU with Vulkan 1.3 support:
      • Windows / Linux: the Vulkan loader ships with GPU drivers.
      • macOS (Apple silicon): Vulkan runs through MoltenVK. Install the LunarG Vulkan SDK or brew install vulkan-loader molten-vk. One macOS quirk (GLFW cannot find Homebrew's loader via the default library search path) is handled by the engine's launcher helper — see SUPPORT-MATRIX.md for the exact note.
    • Windows x64, Linux x64, or macOS Apple silicon (see SUPPORT-MATRIX.md)

    Getting the packages

    ⚠️ TODO(THE BUSINESS DECISION): package feed location and acquisition flow (public NuGet vs. private feed vs. licensed download) are not decided yet. Placeholder command shape once the feed exists:

    dotnet add package AmoyFeels.Render
    dotnet add package AmoyFeels.Physics2D
    

    Until the feed exists, the engine is used from source: the repository's engine/src/ holds one AmoyFeels.* project per package.

    Your first game

    The fastest orientation is the two built-in demo scenes, which together prove the "every art style" promise:

    # from the repository root
    ./with-vulkan.sh dotnet run --project engine/src/AmoyFeels.DemoGame
    
    • The demo starts at the main menu (gamepad/keyboard/mouse navigable)
    • Press 1 for the 🎭 visual novel card — hi-res art, typewriter text, gamepad-navigable choices
    • Press 2 for the 🗺️ pixel sandbox — a tilemap world (480 tiles) with pixel-perfect camera, gamepad movement, sensor pickups and coin juice
    • Esc / gamepad B opens the pause menu — Resume, Save Game, Load Game (3 slots), Quit
    • ` console (try save 0, load 0, time 0.5, panic test) · F1 HUD

    A minimal game skeleton looks like this (illustrative — the demo scenes are the complete, working reference):

    using AmoyFeels.Core;
    using AmoyFeels.Render;
    using Brutal.Numerics;
    
    using var window = new AppWindow("My Game", new int2(1280, 720), resizable: true);
    using var renderer = new Renderer(window.Native);
    
    var camera = new OrthoCamera2D { Position = new float2(0, 0), Zoom = 1, ViewSize = new float2(320, 180) };
    var background = new Texture2D(renderer, 256, 256, pixels); // your art
    renderer.SetFilter(background, TextureFilter.Nearest);      // or Linear for painted art
    
    while (!window.ShouldClose)
    {
        window.PollEvents();
        renderer.BeginFrame(float4x4.Identity);
        renderer.Begin2D(camera);
        renderer.DrawSprite(background, new Sprite2D { Position = new float2(0, 0), Size = new float2(320, 180) });
        renderer.End2D();
        renderer.EndFrame();
    }
    

    Health checks

    Every subsystem ships a small smoke program under engine/smoke/ (one per area: core/ECS, rendering, input, UI, text/story, physics, assets, audio, packs, save, time, crash log, permissions). They are headless where possible and exit 0 on success — run them after any environment change to confirm your machine is healthy:

    dotnet run engine/smoke/CoreEcsSmoke.cs     # …and the rest of the suite
    

    Next steps

    • LICENSING-AND-ATTRIBUTION.md — read this before you ship
    • PERMISSIONS.md — macOS TCC: required Info.plist keys, signing rules
    • SUPPORT-MATRIX.md — what is supported, proven where, known limits
    • VERSIONING.md — API stability and the upstream compatibility promise
    • ENGINE_LICENSE.md (in the engine root of the repository) — terms for the engine itself
    • Edit this page
    In this article
    Back to top Generated by DocFX