Building an AI-Powered Web Game: Living Canvas with Angular, Gemini, and Imagen
Google for DevelopersMay 28, 20259 min7,654 views
23 connectionsΒ·30 entities in this videoβIntroducing Living Canvas
- π‘ Living Canvas is a web-based puzzle game that leverages Generative AI to create dynamic gameplay experiences.
- π― The core mechanic involves users drawing anything, which AI then analyzes to determine gameplay properties and integrate into the game world.
- π Users can also input text-based commands, which the AI interprets to trigger in-game functions.
AI-Powered Graphics Generation
- β¨ The game utilizes multiple AI models for graphics, including Gemini for image analysis and generation, and Imagen for higher-fidelity image creation.
- π¬ VEO is employed for generating full video sequences from static images, which are then used to create animated sprite objects.
- π¨ Players can choose from different artistic styles (realistic, cartoon, pixelated) for generated graphics.
Core Technologies and Integration
- π» The game is built using Angular for the front-end UI and PhaserJS as the web game engine.
- βοΈ Firebase App Hosting and Firebase Studio are used for prototyping, backend hosting, and code exploration.
- π§ Gemini plays a crucial role in image analysis, matching drawings to predefined properties, and dynamically assigning properties when images don't match.
Advanced AI Applications in Gameplay
- πͺ Gemini interprets free-form text commands, transforming them into JSON representations for game engine functions, enabling features like "douse all fires."
- π§© For puzzle design, AI generates background graphics by interpreting black and white visual masks, creating distinct level environments.
- π οΈ The integration of AI allows for novel gameplay experiences, such as dynamically attaching properties to any player-drawn image or enabling natural language interaction.
Technology Stack and Benefits
- β‘ The solution demonstrates how to combine Google's cutting-edge AI technologies like Gemini, Imagen, and VEO with web development frameworks.
- π Developers can explore trade-offs in cost and quality between different AI models for image and video generation.
- β The use of AI unlocks new creative possibilities in game design, going beyond enhancements to enable entirely new types of experiences.
Knowledge graph30 entities Β· 23 connections
How they connect
An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.
Hover Β· drag to explore
30 entities
Chapters5 moments
Key Moments
Transcript36 segments
Full Transcript
Topics13 themes
Whatβs Discussed
Generative AIWeb Game DevelopmentAngularPhaserJSGeminiImagenVEOFirebase App HostingAI Image GenerationAI Video GenerationGame DesignPuzzle GameVertex AI
Smart Objects30 Β· 23 links
ProductsΒ· 7
MediasΒ· 5
CompaniesΒ· 4
ConceptsΒ· 14