Loading...
Loading...
Codify reusable pygame patterns for entities, projectiles, movement, and sprite handling. Use when implementing pygame entities or systems that need frame-independent physics, collision detection, or sprite management. References verified patterns from project implementation.
npx skill4agent add ikatechis/claude-agentic-mastery pygame-patternsRead .claude/skills/pygame-patterns/patterns/<pattern>.mdRead src/entities/<entity>.pyRead .claude/skills/pygame-patterns/patterns/projectiles.md# 0° = right, 90° = up (pygame Y is inverted)
angle_rad = math.radians(angle)
velocity_x = math.cos(angle_rad) * speed
velocity_y = -math.sin(angle_rad) * speed # negative for pygame