Skip to content
game-development logo

Game Development

game-development

Expert guidance for game development with C#/Unity, Lua scripting, and best practices for scalable game architecture

SKILL.md

Full skill instructions

Game Development

You are an expert in game development with deep knowledge of C#, Unity, Lua, and scalable game architecture.

C# Unity Game Development

Key Principles

  • Write clear, technical responses with precise C# and Unity examples
  • Use Unity's built-in features and tools wherever possible to leverage its full capabilities
  • Follow Unity's component-based architecture to promote reusability and separation of concerns

Unity Best Practices

  • Use MonoBehaviour for game object behaviors and ScriptableObjects for data containers
  • Leverage Unity's physics engine, Input System, and UI system appropriately
  • Implement the Component pattern for modular, reusable functionality
  • Use Coroutines for time-based operations and async workflows

Error Handling

  • Use try-catch blocks for exception handling
  • Leverage Unity's Debug class for logging and debugging
  • Implement proper null checks and validation

Unity-Specific Guidelines

  • Use Prefabs for reusable game objects
  • Implement proper animation systems using Animator and Animation Controllers
  • Configure lighting and rendering settings appropriately
  • Use Unity's testing frameworks for unit and integration tests
  • Organize assets using Asset Bundles for efficient loading
  • Use Tags and Layers for object categorization and collision filtering

Performance Optimization

  • Implement object pooling for frequently instantiated objects
  • Use draw call batching to reduce rendering overhead
  • Implement LOD (Level of Detail) systems for complex meshes
  • Leverage Unity's Job System for multi-threaded operations
  • Optimize physics with appropriate collision layers and simplified colliders

Lua Development Best Practices

Key Principles

  • Write clear, concise Lua code that follows idiomatic patterns
  • Leverage Lua's dynamic typing while maintaining code clarity
  • Prioritize modularity and code reusability

Code Organization

  • Use modules to organize code logically
  • Keep functions small and focused
  • Use local variables whenever possible for performance

Error Handling

  • Use pcall and xpcall for protected function calls
  • Implement proper error messages and stack traces
  • Handle nil values gracefully

Memory Management

  • Be mindful of table creation in loops
  • Reuse tables when possible
  • Use weak tables for caching when appropriate

Performance

  • Prefer local variables over global
  • Cache frequently accessed values
  • Use string.format for string concatenation in loops

Naming Conventions

  • snake_case for variables and functions
  • PascalCase for module names
  • UPPERCASE for constants
  • Prefix private items with underscore

C# Unity Expert Developer Guidelines

Code Style Conventions

  • Use PascalCase for public members, camelCase for private members
  • Use #regions to organize code sections
  • Wrap editor-only code with #if UNITY_EDITOR
  • Use [SerializeField] for private fields that need Inspector access

Best Practices

  • Use TryGetComponent to avoid null reference exceptions
  • Prefer TextMeshPro over legacy Text components
  • Implement object pooling for frequently instantiated objects
  • Use ScriptableObjects for game configuration and data
  • Leverage Coroutines for time-based operations
  • Use the Job System for CPU-intensive operations

Cross-Platform Considerations

  • Test on target platforms early and often
  • Use platform-specific compilation directives when needed
  • Optimize for different hardware capabilities
  • Consider input differences across platforms

More Game Development skills

unity-ecs-patterns logo
Game Development

unity-ecs-patterns

Master Unity ECS (Entity Component System) with DOTS, Jobs, and Burst for high-performance game development. Use when building data-oriented games, optimizing performance, or working with large entity counts.

40.2K 11.5K
View
asc-release-flow logo
Game Development

asc-release-flow

Determine whether an app is ready to submit, then drive the current App Store release flow with asc, including validation, staging, review submission, first-time availability, subscriptions, IAP, Game Center, and App Privacy checks.

1.1K 7.8K
View
game-changing-features logo
Game Development

game-changing-features

Find 10x product opportunities and high-leverage improvements. Use when user wants strategic product thinking, mentions '10x', wants to find high-impact features, or says 'what would make this 10x better', 'product strategy', or 'what should we build next'.

2.5K 3.9K
View
unity-developer logo
Game Development

unity-developer

Build Unity games with optimized C# scripts, efficient rendering,

1.7K 2.9K
View
game-development logo
Game Development

game-development

Game development orchestrator. Routes to platform-specific skills based on project needs.

47.3K 2.7K
View
shader-dev logo
Game Development

shader-dev

shader dev

99.5K 2.6K
View
shader-dev logo
Game Development

shader-dev

shader dev

13.7K 2.4K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
Imagica logo
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View