Malevolent Planet Unity2d Day1 To Day3 Public Fixed -
This guide covers the essential progression for the early days of Malevolent Planet 2D
2. The "Malevolent Glow" Shader Fix
The public shader used _Time incorrectly, causing a flicker on Day 3.
Solution: In your MalevolentGlow.shader, replace all _Time.y with frac(_Time.y) to prevent overflow. malevolent planet unity2d day1 to day3 public fixed
Day 1: Exposing Hostility with Public Variables
Goal: Establish core planetary hostility—e.g., gradual gravity increase or periodic ground shakes. This guide covers the essential progression for the
- Add debug log to check day change:
Debug.Log("Day changed to: " + currentDay); - Public fix: Force boss spawn with a flag:
- Recalculated the
TimeOfDaycycle in Unity’sUpdate()loop, clamping malevolence gain to a max of 5% per in-game hour. - Added a public debug overlay (now optional) so players can see the actual corruption curve.
- Fixed a null reference that caused the planet’s "eye" shader to flicker on WebGL builds.
Tasks
Dialogue: There is a significant increase in dialogue branches. Choices made here often lead to the "Cult Dream" sequence. Major Boss: You will likely encounter the Sharnah-thing. Add debug log to check day change: Debug