Technical Breakdown
During the gameplay, using incense releases a scent that attracts ghosts. When a ghost is near a lit incense, its speed increases proportionally to the intensity of the incense’s scent. The ghost’s acceleration is calculated using a proprietary formula that considers the distance to the incense, its scent strength, and the ghost’s base speed.
Performance Insights
The ghost’s increased speed after incense can impact gameplay mechanics. Players must account for this acceleration when planning their movements and strategies. To mitigate the risk, players can use incense strategically, placing it away from areas they need to access quickly or when facing multiple ghosts.
Implementation Details
The incense’s scent intensity is simulated using a diffusion model that considers the room’s volume, air circulation, and the incense’s burn rate. The ghost’s acceleration is calculated every frame, allowing for smooth and responsive gameplay. The system also includes an anti-cheat mechanism to prevent players from exploiting the incense’s effects.