What problem does it solve?
This Skill enables game developers to access and utilize system and platform information within LÖVE applications, allowing adaptive behavior based on the user's environment.
Core Features & Use Cases
- OS and platform detection: Determine the current operating system to tailor platform-specific logic.
- Hardware and system info: Retrieve processor count, power state, and other capabilities for resource-aware design.
- Utility access: Read and set the clipboard text, open URLs, and detect if background music is playing to avoid conflicts.
- Vibration and notifications: Trigger vibration on supported devices to enhance UX.
- Use Case: Build a cross-platform game that adapts graphics quality and input handling based on detected device.
Quick Start
Call local platform = love.system.getOS() to detect the current platform, then branch logic accordingly. Retrieve processor count with local cores = love.system.getProcessorCount(), and get power info using local power = love.system.getPowerInfo().