Adding Custom Weeks - kadedevteam/Kade-Engine-Offical GitHub Wiki

Adding Custom Weeks

To add custom weeks you will need to have the ability to compile the game from the source code! Info for compiling the game can be found here!

go to 'source/StoryMenuState.hx' and go to line 26 you should find a case labeled "weekData"

static function weekData():Array<Dynamic>
{
  return [
    ['Tutorial'],	
    ['Bopeebo', 'Fresh', 'Dadbattle'],	
    ['Spookeez', 'South', "Monster"],
    ['Pico', 'Philly', "Blammed"],
    ['Satin-Panties', "High", "Milf"],	
    ['Cocoa', 'Eggnog', 'Winter-Horrorland'],	
    ['Senpai', 'Roses', 'Thorns']
  ];
}

Copy the code ['Senpai', 'Roses', 'Thorns'] onto the next line and rename "Senpai, Roses, and Thorns" into the name of your songs! ex:

static function weekData():Array<Dynamic>
{
  return [
    ['Tutorial'],	
    ['Bopeebo', 'Fresh', 'Dadbattle'],	
    ['Spookeez', 'South', "Monster"],
    ['Pico', 'Philly', "Blammed"],
    ['Satin-Panties', "High", "Milf"],	
    ['Cocoa', 'Eggnog', 'Winter-Horrorland'],	
    ['Senpai', 'Roses', 'Thorns']
    ['Ugh', 'Guns', 'Stress']
  ];
}

make sure to add a "true" statement to line 38 public static var weekUnlocked:Array<Bool> = [true, true, true, true, true, true, true, true];

next scroll down a bit until you see a array called weekCharacters. This array tells the game what characters to display in the top yellow bar when a certain week is selected. It’s not very useful unless you followed the Characters guide (will link to it once it’s actually done). If you have, though, you can insert the name of your character into the first pair of quotes in a new “week”. Example:

var weekCharacters:Array<Dynamic> = [	
    ['', 'bf', 'gf'],	
    ['dad', 'bf', 'gf'],	
    ['spooky', 'bf', 'gf'],	
    ['pico', 'bf', 'gf'],	
    ['mom', 'bf', 'gf'],	
    ['parents-christmas', 'bf', 'gf'],	
    ['senpai', 'bf', 'gf'],
    ['tankman', 'bf', 'gf']
  ];

Now scroll down again until you see an array labeled 'weekNames'. this array just adds a string of text on the top of the week select screen that represents the name of the week! ex:

var weekNames:Array<String> = [
	"",
	"Daddy Dearest",
	"Spooky Month",
	"PICO",
	"MOMMY MUST MURDER",
	"RED SNOW",
	"Hating Simulator ft. Moawling"
];

now add a line that will represent the name of your weekname ex: "vs. tankman"

Now Lets add a little week graphic so that that its not just showing the HaxeFlixel Logo go to 'assets/preload/images/storymenu/' then add your week graphic and call it "week7"

now lets go to MenuCharacter.hx and add a line for your character’s black line animation in the story mode menu screen.

The name of your character is the first part, the name of the black line animation is the second and the frames is the third.

To create new black lines animations go to ‘art/flashFiles’ folder and open ‘campain_menu_UI_assets’. From there you can create the new animation and export it as a sprite sheet along with all the other character animations needed and done. You could also draw on the already made sprite sheet and add lines to the xml file by hand.

class MenuCharacter extends FlxSprite
{
  private static var settings:Map<String, CharacterSetting> = [
	'bf' => new CharacterSetting(0, -20, 1.0, true),
	'gf' => new CharacterSetting(50, 80, 1.5, true),
	'dad' => new CharacterSetting(-15, 130),
	'spooky' => new CharacterSetting(20, 30),
	'pico' => new CharacterSetting(0, 0, 1.0, true),
	'mom' => new CharacterSetting(-30, 140, 0.85),
	'parents-christmas' => new CharacterSetting(100, 130, 1.8),
	'senpai' => new CharacterSetting(-40, -45, 1.4)
  ];

Then replace the new sprite sheet and xml to ‘assets\preload\images’

Now, compile the game, and if all goes correctly, the Story Mode menu shouldn’t crash your game. If you make your way to the bottom of the list, there’s your custom week!

IF I MISSED ANYTHING PLEASE FIX IT IT PULL REQUESTS

⚠️ **GitHub.com Fallback** ⚠️