1
True Messiah / Re: End of the World sale
« on: November 02, 2020, 05:53:32 AM »
Again, you only need to believe that it is satisfying!

Welcome to the new Sinister Design forums!
[...}
-- 2D particle effects now have an optional "enforce minimum distance" attribute that prevents them from randomly spawning clustered too close together
[...]
[...]I recalled that I learned in school the rule to round to the nearest number, with ties going to the even number. I used it in Physics, Chemistry and Statistics.
-- fixed: Unity was rounding 0.5 down to 0 instead of up to 1, which is apparently because Mathf.RoundToInt() just uses C#'s default rounding, which was designed for banks and not for games.
[...]I was wondering out of curiosity: how easy would it be to have custom durations for "months" and "weeks"?
-- new special character: -DAYOFTHEWEEK-. Returns an integer value between 0 and 6 representing whatever day of the week it currently is in-game.
[...]
[...]
-- wrote new event: Sick (a character comes down with an illness for 1-3 weeks).
[...]
[...]
-- came up with a calendar system (the game world features a 10-month calendar, with each month 36 days in length)
[...]
At the start of a player's turn, the game now finds the average of all coordinates for characters on that player's army, finds all such characters within 6 spaces of there, and then pans to the coordinates closest to the average of those characters' coordinates. (In short, it pans to a group of characters that are close to the average point of all characters in the army.) If the game can't find such a group (i.e. because the units are spread out exclusively in various far-flung corners of the map), it just picks the first character in that player's roster and pans over to him or her.