# Adventure Game Library (AGL)

**The Adventure Layer** includes a dedicated Solidity game library to empower developers to efficiently create fully onchain games(FOCGs). This library is rooted in classic MUD principles but extended with modern architectural patterns such as the Entity Component System (ECS), which supports a more modular and scalable approach to game development.

![](https://lh7-us.googleusercontent.com/docsz/AD_4nXeA663YfJkx3TxZTsEHpv2iSyQR1pfyupMvosWMxjqBFXweS1MK7gFR8AiZzCWflKif47rVc4Nmshc0raPsPPXso1dGeh4BLmH3_d0qRMBUCKkW-CATHw6lx3bSNDpfhBRzMbOqBdrgX-PABx3K?key=MX1cCxpr6-qyzTQezewHqQ)

**Components**:

* **ECS Framework**: This flexible structure allows game entities to be composed of separate components (data containers) and systems (logic processors) rather than inheriting from a monolithic class hierarchy. This design facilitates easier updates and better performance scalability.
* **Game Development Kits (GDKs)**: Pre-built templates and tools that help developers quickly start building games by providing common game mechanics and systems, such as inventory management, character progression, and real-time combat systems.
* **Smart Contract Templates**: Standardized contracts that can be used or extended for typical game functions, including tokenization of assets, handling of in-game purchases, and rules for player interactions.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://whitepaper.adventurelayer.xyz/core-components-and-mechanism-of-the-adventure-layer/adventure-game-library-agl.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
