jivanjyoteayurved-arch/cat-love2d-engine
حول
Cat Love2D Engine: Modular Love2D Framework with Three Architectural Tiers
الألعاب والمحاكاةما يمكنك فعله
- Non-binding architecture: Every facility is opt-in. The engine supplies infrastructure without mandating a scene graph, entity model, or update loop; developers retain full control over program structure and may adopt individual subsystems in isolation.
- Modular subsystem design: Core facilities — input handling, resource management, state transitions, and rendering helpers — are exposed as independent modules with explicit interfaces, enabling selective integration and straightforward substitution.
- Love2D-native compatibility: Built directly atop the Love2D runtime, the engine preserves access to the complete underlying API. Existing Love2D codebases integrate without modification, and engine facilities coexist with direct framework calls.
- Input layer: Unified handling for keyboard, mouse, gamepad, and touch input behind a consistent query interface, with configurable bindings and per-device state tracking.
النمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- جارٍ جمع السجل
- خلال 15 يومًا
- جارٍ جمع السجل
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلCat Love2D Engine is a framework built on top of Love2D that provides three distinct of, allowing developers to adopt as much or as little structure as their project requires. Each layer exposes focused facilities for rendering, input, and scene management while preserving direct access to the underlying Love2D API. The engine imposes no predetermined architecture, so teams can integrate its components selectively into existing codebases or combine them into a cohesive foundation for new projects. This design supports incremental adoption, from lightweight utilities to a full retained-mode interface layer, without requiring architectural lock-in at any stage.
✅ Requirements
- Windows 10 or Windows 11
- PowerShell 5.1 or newer (already available on Windows)
- Active network connection
- No admin rights needed
Features
Three-tier model: Select from three distinct of — from low-level primitives that mirror Love2D's native API to higher-level convenience layers — and switch between them per module as project requirements evolve. No single tier imposes its conventions on the rest of the codebase.
Non-binding architecture: Every facility is opt-in. The engine supplies infrastructure without mandating a scene graph, entity model, or update loop; developers retain full control over program structure and may adopt individual subsystems in isolation.
Modular subsystem design: Core facilities — input handling, resource management, state transitions, and rendering helpers — are exposed as independent modules with explicit interfaces, enabling selective integration and straightforward substitution.
Love2D-native compatibility: Built directly atop the Love2D runtime, the engine preserves access to the complete underlying API. Existing Love2D codebases integrate without modification, and engine facilities coexist with direct framework calls.
Input layer: Unified handling for keyboard, mouse, gamepad, and touch input behind a consistent query interface, with configurable bindings and per-device state tracking.
Retained-mode interface toolkit: A widget system supporting buttons, layout containers, and themeable UI elements, including grid-based and responsive layout primitives suitable for menus, HUDs, and in panels.
Scene and state management: Lightweight mechanisms for organizing application states and transitions, with lifecycle hooks that remain optional and composable with custom control flow.
Grid and responsive layout facilities: Declarative layout computation for UI and spatial arrangement, supporting fixed and proportional sizing, alignment rules, and adaptation across window dimensions.
Resource pipeline utilities: Centralized loading, caching, and lifetime management for assets, reducing redundant I/O while remaining transparent to callers.
Scene editor tooling: Auxiliary tooling for composing and inspecting scenes, intended to complement rather than replace hand-written code.
Extensible theming system: Centralized theme definitions for UI components, supporting custom palettes and per-widget overrides without forking engine internals.
Permissive licensing: Distributed under the MIT License, permitting commercial and non-commercial use, modification, and redistribution with minimal obligations.
How It Works
Cat Love2D Engine operates as a layered framework built directly on top of the Love2D runtime. Rather than enforcing a fixed project structure, it exposes three distinct tiers that developers select between on a per-module basis. The lowest tier wraps core Love2D callbacks and state management, the middle tier introduces reusable systems such as input handling, scene transitions, and asset pipelines, and the highest tier provides ready-made components for UI, layout, and entity coordination. Each tier remains independently addressable, so adopting a higher level of convenience never removes access to the underlying Love2D API.
At its core, the engine maintains a lightweight lifecycle manager that sequences initialization, update, and render passes without imposing a scene graph or component model. Systems register themselves against this lifecycle and communicate through a shared event bus, which decouples modules while preserving deterministic execution order. The event bus supports both synchronous dispatch for frame-critical operations and deferred dispatch for state changes that should resolve at defined synchronization points.
The three layers are designed to interoperate. A project can use the highest-level UI components alongside raw Love2D drawing calls in the same frame, because the engine routes all rendering through a unified command buffer that preserves submission order. Resource management is centralized: textures, fonts, and audio handles are loaded once and reference-counted, with automatic release when no tier retains a reference. Configuration is declarative and read at startup, allowing behavior to be tuned without modifying engine internals.
For extensibility, the engine exposes registration hooks at every tier. Custom systems can be inserted into the lifecycle, custom render passes can be appended to the command buffer, and the event bus accepts user-defined channels. This design keeps the engine additive: developers extend functionality by registering new modules rather than forking or patching existing ones, and any module can be omitted entirely if a project prefers to manage that concern directly through Love2D.
Compatibility
Cat Love2D Engine targets Love2D 11.x (Mysterious Mysteries) and later, and runs on every platform the underlying runtime supports: Windows, macOS, Linux, and Android. The engine imposes no additional runtime dependencies beyond Love2D itself, so any environment capable of executing a standard Love2D application can host the engine unchanged.
Because the engine is layered rather than prescriptive, compatibility extends across all three tiers. Projects may adopt the lowest-level utilities in isolation, combine the mid-level facilities selectively, or use the highest-level interface in full — each tier operates independently and does not require the others. Existing Love2D projects can integrate individual modules without restructuring their current architecture, since the engine does not override or claim ownership of Love2D callbacks.
Input compatibility covers keyboard, mouse, gamepad, and touch, with the latter relevant for Android deployments and touch-enabled desktop hardware. Rendering relies on Love2D's graphics pipeline, so supported resolutions and display configurations follow the host runtime's capabilities rather than engine-specific constraints.
Module loading follows standard Love2D conventions and works alongside third-party Love2D libraries, provided those libraries do not conflict at the callback level. The engine ships as plain Lua source with no compiled artifacts, keeping it portable across architectures and compatible with common Lua tooling. Version pinning is recommended for production use: consult the project's release notes to confirm the engine revision matches your Love2D runtime before upgrading either component.
FAQ
Is Cat Love2D Engine bound to a specific architecture? No. The engine provides three distinct of, and each layer is optional. You can adopt the full framework for structured projects or use only the individual facilities you need while retaining complete control over your own architecture. Nothing in the engine enforces a particular scene graph, entity model, or update loop.
What are the three of? The are designed to be adopted incrementally: a low-level facility layer that wraps common Love2D operations, a mid-level component layer for reusable behaviors and UI elements, and a high-level integration layer that coordinates modules such as input handling, grid layout, and retained-mode interfaces. You may mix and match across within the same project.
Does the engine replace Love2D? No. Cat Love2D Engine runs on top of Love2D and depends on it as the underlying runtime. The engine extends the standard callbacks and modules rather than substituting them, so existing Love2D knowledge and code remain applicable.
Which Love2D versions are supported? Compatibility is aligned with current Love2D releases. Because the engine hooks into standard Love2D modules, projects targeting older runtimes should verify behavior against the compatibility notes before upgrading.
Can I integrate the engine into an existing project? Yes. The engine is designed for gradual adoption. Individual modules — such as the grid layout system, gamepad and touch input support, or the themed UI elements — can be pulled into an existing codebase without restructuring it. There is no requirement to migrate to a new project layout.
How does input handling work across devices? Input is normalized across keyboard, mouse, gamepad, and touch. The engine exposes a unified input facility so that UI elements and gameplay code can respond to actions rather than raw device events, while still permitting direct access to Love2D input callbacks when finer control is required.
Is the scene editor required to use the engine? No. The scene editor is an optional authoring facility. Projects can be built entirely in code, and any scene data produced by the editor is consumed through the same runtime APIs available to hand-written code.
What license governs use of the engine? The project is released under the MIT License, which permits use, modification, and redistribution in both private and commercial projects, provided the copyright and permission notices are retained.
Disclaimer
Cat Love2D Engine is provided as a framework for building and interactive applications on top of Love2D. It is supplied in its current state of, and while every effort is made to keep its three consistent and reliable, no assurance is given regarding fitness for any particular production scenario. Users are responsible for evaluating the engine against their project requirements and for testing their applications thoroughly before distribution.
The engine is offered under the terms of the MIT License, which permits modification, redistribution, and commercial use, provided the original copyright and permission notice are preserved. Redistributions of modified engine code should clearly indicate the changes made so that downstream users can distinguish the original distribution from derivative builds. The Cat Love2D Engine name and any associated branding remain the identity of the original project and should not be presented as the origin of altered distributions.
No warranty of any kind is expressed or implied, including but not limited to warranties of merchantability, satisfactory quality, or suitability for a specific purpose. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability arising from, out of, or in connection with the engine or its use. This limitation applies to direct, indirect, incidental, special, exemplary, and consequential damages, whether in an action of contract, tort, or otherwise.
The engine is designed to remain unopinionated about application architecture. Its layers are available as optional facilities; developers may adopt them selectively or bypass them entirely. Consequently, behavior that depends on a specific project structure, rendering order, or update loop is the responsibility of the integrating application rather than of the engine itself.
Compatibility is maintained against documented Love2D versions, and the engine may rely on platform-specific capabilities for input, rendering, and windowing. Users are advised to verify behavior on each target platform and to account for differences in graphics drivers, display scaling, and input hardware. Features that depend on host capabilities may degrade gracefully or be unavailable where those capabilities are absent.
The engine does not include networking, content delivery, or account systems, and it does not collect telemetry by default. Any data handling performed by an application built with the engine is governed by that application's own policies.
For inquiries regarding licensing, redistribution, or attribution, refer to the project's license terms and the accompanying documentation.
License
Cat Love2D Engine is distributed under the MIT License, a permissive and OSI-approved open-source license. It grants unrestricted rights to use, copy, modify, merge, publish, distribute, sublicense, and sell copies of the engine and its accompanying documentation, subject to the inclusion of the original copyright notice and this permission notice in all copies or substantial portions of the software.
The MIT License imposes no architectural constraints on derivative works. You may integrate the engine into proprietary projects, redistribute modified builds, or embed it within larger toolchains without obligation to disclose your own source code. Attribution is satisfied solely through retention of the copyright and permission notice.
The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or its use.
For complete terms, consult the LICENSE file included with the distribution.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…

