I've made it possible to create custom weeks by extending the Week Class.
Example:
// assets/data/weeks/SupersecretWeek.hxc
class SupersecretWeek extends Week
{
override function create() {
name = "Tutorial"; //Text displayed in the upper left corner such as "Hating Simulator ft. Moawling"
short = "Tutorial"; //Short version of "name" (Optional)
songs = ['Tutorial']; //Songs on this week
characters = ['dad', 'bf', 'gf']; //Menu Characters
locked = true; //Is week Locked by default (Optional)
}
}
To support classes that don't start with "week", the keys for the week scores are also stored as Strings.
This should be compatible with previous saves and should save normally, but there may be issues with Weekend (Because Weekend was previously managed as 10x).
The sticker set is still hardcoded until a suitable implementation can be found.
Custom weeks can cause confusion because I don't know how to use sort. (At least the base game weeks will be properly organized)
Did a quick overview of this and this looks pretty good but I think I'll take a closer look tomorrow and maybe make a few adjustments on this branch before pulling. 👍
I've made it possible to create custom weeks by extending the
Week
Class. Example: