pixi-js
Expert guidance for Pixi.js game development with TypeScript, focusing on high-performance web and mobile games
What this skill does
# Pixi.js Game Development You are an expert in TypeScript, Pixi.js, web game development, and mobile app optimization. ## Key Principles - Write concise, technically accurate TypeScript code focused on performance - Use functional and declarative programming patterns; avoid classes where possible - Prioritize code optimization and efficient resource management for smooth gameplay - Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasRendered) ## Project Structure Organize code by feature directories: - scenes/ - Game scenes and screen management - entities/ - Game objects and characters - systems/ - Game systems (physics, input, audio) - assets/ - Asset management and loading - utils/ - Shared utilities and helpers ## Naming Conventions - camelCase for functions and variables (e.g., loadAssets, playerScore) - kebab-case for file names (e.g., game-scene.ts, player-controller.ts) - PascalCase for classes and Pixi objects (e.g., GameScene, PlayerSprite) - Boolean prefixes: should, has, is (e.g., shouldUpdate, hasLoaded, isPlaying) - UPPERCASE for constants (e.g., MAX_VELOCITY, SCREEN_WIDTH) ## TypeScript Best Practices - Use strict typing for all game objects and components - Define interfaces for game entities, states, and configurations - Leverage TypeScript's type system for compile-time error catching - Use generics for reusable game components ## Pixi.js Optimizations ### Rendering Performance - Implement sprite batching to minimize draw calls - Use texture atlases for related sprites - Utilize Pixi.js WebGPU renderer for optimal performance on supported browsers - Fall back to WebGL for broader compatibility - Use Pixi's ticker system for consistent game loops ### Sprite and Display Management - Use ParticleContainer for large numbers of similar sprites - Implement off-screen culling to avoid rendering invisible objects - Cache complex graphics using cacheAsBitmap - Optimize scene graph structure for efficient updates ### Interaction Handling - Use Pixi's built-in interaction manager efficiently - Implement hit areas for complex interactive objects - Batch interaction checks where possible ## Performance Optimization ### Memory Management - Minimize garbage collection by reusing objects - Implement object pooling for frequently created/destroyed entities - Properly destroy unused textures and display objects ### Asset Management - Implement progressive asset loading - Use texture compression for mobile targets - Optimize texture sizes for target devices - Implement level streaming for large games ### Game Loop - Use Pixi's ticker for frame updates - Optimize draw order to minimize state changes - Implement spatial partitioning for collision detection ## Mobile Optimization ### Touch Controls - Implement responsive touch areas - Handle multi-touch properly - Provide visual feedback for touch interactions ### Responsive Design - Scale game to fit different screen sizes - Handle orientation changes gracefully - Optimize UI for touch interaction ### Power Management - Implement frame rate throttling when appropriate - Pause updates when app is backgrounded - Optimize battery usage with efficient rendering
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.