Skip to main content
Glama
creative-functions-md.md11.6 kB
# Creative Functions Guide **Build games, art, and interactive experiences whilst learning advanced techniques** The creative functions unlock your artistic and experimental side. These tools help you create games, visual art, and interactive experiences whilst learning advanced techniques in CSS, game development, and interactive storytelling. ## Quick Start Examples Start creating immediately with these simple prompts: ``` Create a space-themed CSS art with neon colours using houtini-lm ``` ``` Generate a playable platformer game with retro graphics using houtini-lm ``` ``` Use houtini-lm to create a sci-fi text adventure with inventory system ``` ``` Make a CSS logo animation with smooth transitions using houtini-lm ``` ``` Build a Snake game with high scores using houtini-lm ``` ## Creative Functions ### 1. `css_art_generator` - Pure CSS Art Creation **Purpose**: Create sophisticated CSS art using only code - no images required **Simple usage**: ``` Create a CSS robot character with animations using houtini-lm ``` **What you get**: - Complete HTML file with embedded CSS art - Sophisticated visual effects using only CSS - Responsive design that works across devices - Comments explaining advanced techniques used - Animation effects that enhance the visual impact **Advanced usage**: ```json { "name": "houtini-lm:css_art_generator", "parameters": { "artType": "character", "theme": "space", "colorScheme": "neon", "complexity": "advanced", "animationStyle": "dramatic", "responsive": true } } ``` **Art Types Available**: - **Drawing**: Static CSS illustrations and designs - **Animation**: Moving elements with CSS keyframes - **Interactive**: Hover effects and user interaction - **Logo**: Brand elements and company graphics - **Character**: People, animals, and creatures - **Landscape**: Scenes, environments, and backgrounds **Learning Opportunities**: - Advanced CSS selectors and pseudo-elements - Animation principles and timing functions - Geometric shape creation with CSS - Responsive design techniques - Visual composition and color theory ### 2. `arcade_game` - Complete Playable Games **Purpose**: Generate fully playable 2D arcade games using HTML5 Canvas **Simple usage**: ``` Create a space shooter game with power-ups using houtini-lm ``` **What you get**: - Complete playable game in single HTML file - Smooth animations and responsive controls - Progressive difficulty and engaging gameplay - Sound effects and visual feedback - Clean, commented code for learning **Advanced usage**: ```json { "name": "houtini-lm:arcade_game", "parameters": { "gameType": "platformer", "theme": "pixel", "controls": "wasd", "difficulty": "medium", "features": ["score", "lives", "powerups", "sound"] } } ``` **Game Types Available**: - **Shooter**: Space Invaders-style action with enemies and projectiles - **Platformer**: Mario-style jumping with obstacles and collection - **Puzzle**: Tetris-style block manipulation and pattern matching - **Snake**: Classic snake growth gameplay with food collection - **Breakout**: Paddle and ball brick-breaking physics - **Asteroids**: Space navigation with momentum and rotation **Game Features**: - **Score Systems**: Points, high scores, and achievements - **Lives/Health**: Player progression and challenge - **Power-ups**: Temporary abilities and enhancements - **Sound Effects**: Audio feedback for actions - **Progressive Difficulty**: Increasing challenge over time **Learning Opportunities**: - HTML5 Canvas API and graphics programming - Game loop architecture (update/render cycles) - Collision detection algorithms - State management and transitions - Performance optimization for real-time applications ### 3. `create_text_adventure` - Interactive Fiction **Purpose**: Generate complex text adventure games with branching narratives **Simple usage**: ``` Create a mystery text adventure in Victorian London using houtini-lm ``` **What you get**: - Complete interactive fiction game - Branching narrative with meaningful choices - Character progression and inventory system - Multiple paths and endings - Save/load game functionality **Advanced usage**: ```json { "name": "houtini-lm:create_text_adventure", "parameters": { "theme": "sci-fi", "complexity": "advanced", "length": "long", "playerClass": "explorer", "features": ["inventory", "stats", "save_game", "multiple_endings"] } } ``` **Story Themes Available**: - **Fantasy**: Magic systems, quests, and mythical creatures - **Sci-Fi**: Space exploration, technology, and future scenarios - **Mystery**: Detective work, puzzles, and investigation - **Horror**: Atmospheric tension and supernatural elements - **Historical**: Real historical settings and characters - **Modern**: Contemporary scenarios and technology **Player Classes**: - **Warrior**: Combat-focused with strength and weapon skills - **Mage**: Magic-focused with spells and arcane knowledge - **Rogue**: Stealth and agility with lockpicking and sneaking - **Detective**: Investigation skills with deduction and interrogation - **Explorer**: Survival skills with navigation and discovery - **Custom**: Define your own class with unique abilities **Advanced Features**: - **Inventory System**: Collect, use, and combine items - **Character Stats**: Attributes that affect story outcomes - **Save/Load**: Continue your adventure across sessions - **Multiple Endings**: Different conclusions based on your choices - **Dynamic Events**: Randomized encounters and outcomes **Learning Opportunities**: - State machine design and implementation - Complex data structure management - User interface design for text-based interaction - Narrative design and player agency - Local storage and data persistence ## Creative Workflow Patterns ### Learning Progressive Web Development 1. `css_art_generator` - Master advanced CSS techniques 2. `arcade_game` - Learn Canvas API and game development 3. `create_text_adventure` - Understand state management 4. Strategic concept discussion with Claude ### Portfolio Project Development 1. `css_art_generator` - Create visual centerpieces 2. `arcade_game` - Demonstrate interactive skills 3. `create_text_adventure` - Show narrative and logic abilities 4. Portfolio presentation strategy with Claude ### Educational Content Creation 1. `css_art_generator` - Visual examples for tutorials 2. `arcade_game` - Interactive learning tools 3. `create_text_adventure` - Engagement through storytelling 4. Curriculum development with Claude ## Customization and Themes ### Visual Styles for Each Function **CSS Art Themes**: - **Nature**: Organic shapes, earth tones, natural movement - **Geometric**: Clean lines, mathematical precision, bold shapes - **Space**: Cosmic themes, starfields, planetary designs - **Retro**: 80s aesthetics, neon colors, vintage computing - **Character**: People, animals, robots, and creatures - **Modern**: Contemporary design with clean aesthetics **Game Themes**: - **Retro**: Classic arcade aesthetics with pixel art - **Neon**: Cyberpunk styling with glowing elements - **Pixel**: Detailed pixel art with retro gaming feel - **Minimal**: Clean, modern design with subtle effects - **Space**: Cosmic backgrounds with starfields - **Nature**: Organic environments and earth tones **Text Adventure Themes**: - **Fantasy**: Medieval settings with magic and adventure - **Sci-Fi**: Futuristic technology and space exploration - **Mystery**: Investigation and puzzle-solving - **Horror**: Suspense and supernatural elements - **Historical**: Real-world historical periods - **Modern**: Contemporary settings and situations ### Complexity Levels Choose the right complexity for your skill level and goals: - **Simple**: Great for beginners, focuses on core concepts - **Intermediate**: Balanced complexity with good learning value - **Advanced**: Complex implementations with professional techniques - **Masterpiece**: Showcase-quality creations with cutting-edge techniques ## Technical Implementation Details ### CSS Art Generation - **Pure CSS**: No images, SVG, or external assets required - **Advanced Techniques**: Transforms, gradients, shadows, and pseudo-elements - **Responsive Design**: Scales beautifully across all device sizes - **Performance Optimized**: Efficient CSS with minimal resource usage ### Game Development - **HTML5 Canvas**: Modern graphics API for smooth animations - **Vanilla JavaScript**: No framework dependencies for pure performance - **Modular Code**: Well-structured, commented code for learning - **Cross-Platform**: Works on desktop, tablet, and mobile devices ### Interactive Fiction - **State Management**: Sophisticated game state handling - **Data Persistence**: Save/load functionality using localStorage - **Dynamic Content**: Procedural text generation and branching narratives - **User Experience**: Intuitive text-based interface design ## Educational Value ### Professional Skills You'll Learn **From CSS Art**: - Advanced CSS selectors and pseudo-elements - Animation principles and timing functions - Responsive design patterns and techniques - Visual composition and color theory - Performance optimization for visual effects **From Arcade Games**: - JavaScript Canvas API and graphics programming - Game development concepts and design patterns - Event handling and user input management - Performance optimization for real-time applications - Mathematical concepts (physics, collision detection) **From Text Adventures**: - Complex state management patterns - Data structure design and implementation - User experience design for text interfaces - Narrative design and interactive storytelling - Local storage and data persistence techniques ### Professional Applications **Web Design**: Advanced CSS techniques for modern interfaces and engaging user experiences **Frontend Development**: Interactive and animated user experiences that enhance engagement **Game Development**: Foundational concepts for larger projects and understanding game architecture **User Experience**: Creating engagement through interactivity, storytelling, and visual appeal ## Best Practices ### Getting the Best Creative Output 1. **Be specific about themes**: Clear visual direction improves results significantly 2. **Match complexity to purpose**: Simple for learning, advanced for showcase pieces 3. **Consider your audience**: Educational vs. entertainment vs. portfolio requirements 4. **Iterate and customize**: Use generated code as starting point for your own refinement ### Learning Approach 1. **Study the generated code**: Understand how effects and mechanics are achieved 2. **Experiment with parameters**: Try different combinations to see various results 3. **Modify and extend**: Use generated projects as foundation for your own creative work 4. **Combine techniques**: Mix concepts from different creative functions for unique results ### Performance Considerations - **CSS animations**: Generated code is optimized for smooth 60fps performance - **Game frame rates**: Games target 60fps with efficient rendering techniques - **Memory usage**: Text adventures manage state efficiently to prevent memory leaks - **Mobile compatibility**: All creative functions work well on mobile devices --- *These creative functions are your playground for learning advanced web technologies whilst building genuinely enjoyable and impressive projects. Use them to explore, experiment, and create whilst mastering valuable development skills.*

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/houtini-ai/lm'

If you have feedback or need assistance with the MCP directory API, please join our Discord server