AIventure
AIventure is an Angular + Phaser game from bebechien/AIventure. Its Vifu integration brings the project into Vifu's publish and runtime environment while preserving the game's own structure and identity. Vifu Hub provides the single game-to-platform interface for model-driven NPC play and the wider set of host-managed capabilities a Vifu game can use.
Open The Game
git clone --recurse-submodules https://github.com/vifudotdev/awesome-open-source-ai-native-games
cd awesome-open-source-ai-native-games/games/aiventure
npm installWhat It Uses
AIventure is a bundled Angular project with Phaser gameplay:
npm run buildbuilds the browser artifact.dist/template-angular/browseris the deploy output.index.htmlis the runtime entry inside that output.- Vifu Hub connects the game to host-managed AI agents and tools, game state, runtime resources, world sessions, events, and approved capabilities through one platform interface.
- AIventure uses that interface for NPC dialogue and game tools.
- Visible NPC/game interactions are passed as executable tools to
hub.ai.generateText(...). - The active Mind is chosen by the Vifu host/session, so the game does not need to hardcode provider or Mind ids.
- The game does not embed direct provider credentials or host transport code.
The manifest identifies the game, while Vifu resolves the Angular build command, output directory, runtime entry, and available platform features from the project and its Vifu Hub calls.
{
"name": "AIventure"
}Use the manifest reference only when a project needs to override detected defaults or disable a platform feature.
Deploy It
vifu deployThe deploy check blocks remote executable code and direct browser calls to external AI providers. Keep model calls behind hub.ai.generateText(...) or hub.run(...) so the game uses the platform AI service.