mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-04 13:54:22 +00:00
Added new constants/defaults.
This commit is contained in:
parent
c9fb6bc51f
commit
123682dc69
|
@ -14,7 +14,7 @@ class Constants
|
|||
* The title of the game, for debug printing purposes.
|
||||
* Change this if you're making an engine.
|
||||
*/
|
||||
public static final TITLE = "Friday Night Funkin'";
|
||||
public static final TITLE:String = "Friday Night Funkin'";
|
||||
|
||||
/**
|
||||
* The current version number of the game.
|
||||
|
@ -26,7 +26,7 @@ class Constants
|
|||
* A suffix to add to the game version.
|
||||
* Add a suffix to prototype builds and remove it for releases.
|
||||
*/
|
||||
public static final VERSION_SUFFIX = ' PROTOTYPE';
|
||||
public static final VERSION_SUFFIX:String = ' PROTOTYPE';
|
||||
|
||||
#if debug
|
||||
static function get_VERSION():String
|
||||
|
@ -48,12 +48,12 @@ class Constants
|
|||
/**
|
||||
* Link to download the game on Itch.io.
|
||||
*/
|
||||
public static final URL_ITCH:String = "https://ninja-muffin24.itch.io/funkin/purchase";
|
||||
public static final URL_ITCH:String = 'https://ninja-muffin24.itch.io/funkin/purchase';
|
||||
|
||||
/**
|
||||
* Link to the game's page on Kickstarter.
|
||||
*/
|
||||
public static final URL_KICKSTARTER:String = "https://www.kickstarter.com/projects/funkin/friday-night-funkin-the-full-ass-game/";
|
||||
public static final URL_KICKSTARTER:String = 'https://www.kickstarter.com/projects/funkin/friday-night-funkin-the-full-ass-game/';
|
||||
|
||||
/**
|
||||
* GIT REPO DATA
|
||||
|
@ -64,12 +64,12 @@ class Constants
|
|||
/**
|
||||
* The current Git branch.
|
||||
*/
|
||||
public static final GIT_BRANCH = funkin.util.macro.GitCommit.getGitBranch();
|
||||
public static final GIT_BRANCH:String = funkin.util.macro.GitCommit.getGitBranch();
|
||||
|
||||
/**
|
||||
* The current Git commit hash.
|
||||
*/
|
||||
public static final GIT_HASH = funkin.util.macro.GitCommit.getGitCommitHash();
|
||||
public static final GIT_HASH:String = funkin.util.macro.GitCommit.getGitCommitHash();
|
||||
#end
|
||||
|
||||
/**
|
||||
|
@ -87,27 +87,70 @@ class Constants
|
|||
*/
|
||||
public static final COLOR_HEALTH_BAR_GREEN:FlxColor = 0xFF66FF33;
|
||||
|
||||
/**
|
||||
* Default variation for charts.
|
||||
*/
|
||||
public static final DEFAULT_VARIATION:String = 'default';
|
||||
|
||||
/**
|
||||
* STAGE DEFAULTS
|
||||
*/
|
||||
// ==============================
|
||||
|
||||
/**
|
||||
* Default difficulty for charts.
|
||||
*/
|
||||
public static final DEFAULT_DIFFICULTY:String = 'normal';
|
||||
|
||||
/**
|
||||
* Default player character for charts.
|
||||
*/
|
||||
public static final DEFAULT_CHARACTER:String = 'bf';
|
||||
|
||||
/**
|
||||
* Default stage for charts.
|
||||
*/
|
||||
public static final DEFAULT_STAGE:String = 'mainStage';
|
||||
|
||||
/**
|
||||
* Default song for if the PlayState messes up.
|
||||
*/
|
||||
public static final DEFAULT_SONG:String = 'tutorial';
|
||||
|
||||
/**
|
||||
* OTHER
|
||||
*/
|
||||
// ==============================
|
||||
|
||||
/**
|
||||
* All MP3 decoders introduce a playback delay of `528` samples,
|
||||
* which at 44,100 Hz (samples per second) is ~12 ms.
|
||||
*/
|
||||
public static final MP3_DELAY_MS:Float = 528 / 44100 * 1000;
|
||||
|
||||
/**
|
||||
* The scale factor to use when increasing the size of pixel art graphics.
|
||||
*/
|
||||
public static final PIXEL_ART_SCALE = 6;
|
||||
public static final PIXEL_ART_SCALE:Float = 6;
|
||||
|
||||
/**
|
||||
* The BPM of the title screen and menu music.
|
||||
* TODO: Move to metadata file.
|
||||
*/
|
||||
public static final FREAKY_MENU_BPM = 102;
|
||||
public static final FREAKY_MENU_BPM:Float = 102;
|
||||
|
||||
/**
|
||||
* The volume at which to play the countdown before the song starts.
|
||||
*/
|
||||
public static final COUNTDOWN_VOLUME = 0.6;
|
||||
public static final COUNTDOWN_VOLUME:Float = 0.6;
|
||||
|
||||
public static final DEFAULT_VARIATION = 'default';
|
||||
public static final DEFAULT_DIFFICULTY = 'normal';
|
||||
/**
|
||||
* The default intensity for camera zooms.
|
||||
*/
|
||||
public static final DEFAULT_ZOOM_INTENSITY:Float = 0.015;
|
||||
|
||||
/**
|
||||
* The default rate for camera zooms (in beats per zoom).
|
||||
*/
|
||||
public static final DEFAULT_ZOOM_RATE:Int = 4;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue