2022-03-11 06:30:01 +00:00
|
|
|
package funkin.util;
|
|
|
|
|
2024-03-28 08:34:43 +00:00
|
|
|
import flixel.system.FlxBasePreloader;
|
2022-03-11 06:30:01 +00:00
|
|
|
import flixel.util.FlxColor;
|
2023-09-26 03:24:07 +00:00
|
|
|
import funkin.data.song.SongData.SongTimeFormat;
|
2024-03-28 08:34:43 +00:00
|
|
|
import lime.app.Application;
|
2022-03-11 06:30:01 +00:00
|
|
|
|
2023-10-04 15:40:55 +00:00
|
|
|
/**
|
|
|
|
* A store of unchanging, globally relevant values.
|
|
|
|
*/
|
2022-03-11 06:30:01 +00:00
|
|
|
class Constants
|
|
|
|
{
|
2023-01-23 03:25:45 +00:00
|
|
|
/**
|
|
|
|
* ENGINE AND VERSION DATA
|
|
|
|
*/
|
|
|
|
// ==============================
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The title of the game, for debug printing purposes.
|
|
|
|
* Change this if you're making an engine.
|
|
|
|
*/
|
2023-06-02 19:25:28 +00:00
|
|
|
public static final TITLE:String = "Friday Night Funkin'";
|
2023-01-23 03:25:45 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The current version number of the game.
|
|
|
|
* Modify this in the `project.xml` file.
|
|
|
|
*/
|
2023-08-31 22:47:23 +00:00
|
|
|
public static var VERSION(get, never):String;
|
2023-01-23 03:25:45 +00:00
|
|
|
|
2023-09-26 03:24:07 +00:00
|
|
|
/**
|
|
|
|
* The generatedBy string embedded in the chart files made by this application.
|
|
|
|
*/
|
|
|
|
public static var GENERATED_BY(get, never):String;
|
|
|
|
|
|
|
|
static function get_GENERATED_BY():String
|
|
|
|
{
|
|
|
|
return '${Constants.TITLE} - ${Constants.VERSION}';
|
|
|
|
}
|
|
|
|
|
2023-01-23 03:25:45 +00:00
|
|
|
/**
|
|
|
|
* A suffix to add to the game version.
|
|
|
|
* Add a suffix to prototype builds and remove it for releases.
|
|
|
|
*/
|
2023-06-02 19:25:28 +00:00
|
|
|
public static final VERSION_SUFFIX:String = ' PROTOTYPE';
|
2023-01-23 03:25:45 +00:00
|
|
|
|
2023-10-12 17:22:59 +00:00
|
|
|
#if (debug || FORCE_DEBUG_VERSION)
|
2023-01-23 03:25:45 +00:00
|
|
|
static function get_VERSION():String
|
|
|
|
{
|
|
|
|
return 'v${Application.current.meta.get('version')} (${GIT_BRANCH} : ${GIT_HASH})' + VERSION_SUFFIX;
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static function get_VERSION():String
|
|
|
|
{
|
|
|
|
return 'v${Application.current.meta.get('version')}' + VERSION_SUFFIX;
|
|
|
|
}
|
|
|
|
#end
|
|
|
|
|
|
|
|
/**
|
|
|
|
* URL DATA
|
|
|
|
*/
|
|
|
|
// ==============================
|
|
|
|
|
2024-03-28 08:34:43 +00:00
|
|
|
/**
|
|
|
|
* Preloader sitelock.
|
|
|
|
* Matching is done by `FlxStringUtil.getDomain`, so any URL on the domain will work.
|
|
|
|
* The first link in this list is the one users will be redirected to if they try to access the game from a different URL.
|
|
|
|
*/
|
|
|
|
public static final SITE_LOCK:Array<String> = [
|
|
|
|
"https://www.newgrounds.com/portal/view/770371", // Newgrounds, baybee!
|
|
|
|
FlxBasePreloader.LOCAL // localhost for dev stuff
|
|
|
|
];
|
|
|
|
|
2023-01-23 03:25:45 +00:00
|
|
|
/**
|
|
|
|
* Link to download the game on Itch.io.
|
|
|
|
*/
|
2023-06-02 19:25:28 +00:00
|
|
|
public static final URL_ITCH:String = 'https://ninja-muffin24.itch.io/funkin/purchase';
|
2023-01-23 03:25:45 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Link to the game's page on Kickstarter.
|
|
|
|
*/
|
2023-06-02 19:25:28 +00:00
|
|
|
public static final URL_KICKSTARTER:String = 'https://www.kickstarter.com/projects/funkin/friday-night-funkin-the-full-ass-game/';
|
2023-01-23 03:25:45 +00:00
|
|
|
|
|
|
|
/**
|
2024-01-09 19:48:20 +00:00
|
|
|
* REPOSITORY DATA
|
2023-01-23 03:25:45 +00:00
|
|
|
*/
|
|
|
|
// ==============================
|
|
|
|
|
2023-10-12 23:57:16 +00:00
|
|
|
#if (debug || FORCE_DEBUG_VERSION)
|
2023-01-23 03:25:45 +00:00
|
|
|
/**
|
|
|
|
* The current Git branch.
|
|
|
|
*/
|
2023-06-02 19:25:28 +00:00
|
|
|
public static final GIT_BRANCH:String = funkin.util.macro.GitCommit.getGitBranch();
|
2023-01-23 03:25:45 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The current Git commit hash.
|
|
|
|
*/
|
2023-06-02 19:25:28 +00:00
|
|
|
public static final GIT_HASH:String = funkin.util.macro.GitCommit.getGitCommitHash();
|
2023-01-23 03:25:45 +00:00
|
|
|
#end
|
|
|
|
|
2024-01-09 19:48:20 +00:00
|
|
|
/**
|
|
|
|
* The current library versions, as provided by hmm.
|
|
|
|
*/
|
|
|
|
public static final LIBRARY_VERSIONS:Array<String> = funkin.util.macro.HaxelibVersions.getLibraryVersions();
|
|
|
|
|
2023-01-23 03:25:45 +00:00
|
|
|
/**
|
|
|
|
* COLORS
|
|
|
|
*/
|
|
|
|
// ==============================
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The color used by the enemy health bar.
|
|
|
|
*/
|
|
|
|
public static final COLOR_HEALTH_BAR_RED:FlxColor = 0xFFFF0000;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The color used by the player health bar.
|
|
|
|
*/
|
|
|
|
public static final COLOR_HEALTH_BAR_GREEN:FlxColor = 0xFF66FF33;
|
|
|
|
|
2023-06-02 19:25:28 +00:00
|
|
|
/**
|
2023-08-22 08:27:30 +00:00
|
|
|
* The base colors used by notes.
|
2023-06-02 19:25:28 +00:00
|
|
|
*/
|
2023-08-22 08:27:30 +00:00
|
|
|
public static var COLOR_NOTES:Array<FlxColor> = [
|
|
|
|
0xFFFF22AA, // left (0)
|
|
|
|
0xFF00EEFF, // down (1)
|
|
|
|
0xFF00CC00, // up (2)
|
|
|
|
0xFFCC1111 // right (3)
|
|
|
|
];
|
2023-06-02 19:25:28 +00:00
|
|
|
|
2024-03-28 08:34:43 +00:00
|
|
|
/**
|
|
|
|
* Color for the preloader background
|
|
|
|
*/
|
|
|
|
public static final COLOR_PRELOADER_BG:FlxColor = 0xFF000000;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Color for the preloader progress bar
|
|
|
|
*/
|
|
|
|
public static final COLOR_PRELOADER_BAR:FlxColor = 0xFF00FF00;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Color for the preloader site lock background
|
|
|
|
*/
|
|
|
|
public static final COLOR_PRELOADER_LOCK_BG:FlxColor = 0xFF1B1717;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Color for the preloader site lock foreground
|
|
|
|
*/
|
|
|
|
public static final COLOR_PRELOADER_LOCK_FG:FlxColor = 0xB96F10;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Color for the preloader site lock text
|
|
|
|
*/
|
|
|
|
public static final COLOR_PRELOADER_LOCK_FONT:FlxColor = 0xCCCCCC;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Color for the preloader site lock link
|
|
|
|
*/
|
|
|
|
public static final COLOR_PRELOADER_LOCK_LINK:FlxColor = 0xEEB211;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* LANGUAGE
|
|
|
|
*/
|
|
|
|
// ==============================
|
|
|
|
public static final SITE_LOCK_TITLE:String = "You Loser!";
|
|
|
|
|
|
|
|
public static final SITE_LOCK_DESC:String = "This isn't Newgrounds!\nGo play Friday Night Funkin' on Newgrounds:";
|
|
|
|
|
2023-06-02 19:25:28 +00:00
|
|
|
/**
|
2023-08-22 08:27:30 +00:00
|
|
|
* GAME DEFAULTS
|
2023-06-02 19:25:28 +00:00
|
|
|
*/
|
|
|
|
// ==============================
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Default difficulty for charts.
|
|
|
|
*/
|
|
|
|
public static final DEFAULT_DIFFICULTY:String = 'normal';
|
|
|
|
|
2023-10-17 21:27:11 +00:00
|
|
|
/**
|
|
|
|
* Default list of difficulties for charts.
|
2023-12-19 06:27:58 +00:00
|
|
|
* Assumes no Erect mode, etc.
|
2023-10-17 21:27:11 +00:00
|
|
|
*/
|
|
|
|
public static final DEFAULT_DIFFICULTY_LIST:Array<String> = ['easy', 'normal', 'hard'];
|
|
|
|
|
2023-06-02 19:25:28 +00:00
|
|
|
/**
|
|
|
|
* Default player character for charts.
|
|
|
|
*/
|
|
|
|
public static final DEFAULT_CHARACTER:String = 'bf';
|
|
|
|
|
2023-10-17 06:42:52 +00:00
|
|
|
/**
|
|
|
|
* Default player character for health icons.
|
|
|
|
*/
|
|
|
|
public static final DEFAULT_HEALTH_ICON:String = 'face';
|
|
|
|
|
2023-06-02 19:25:28 +00:00
|
|
|
/**
|
|
|
|
* 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';
|
|
|
|
|
2023-01-23 03:25:45 +00:00
|
|
|
/**
|
2023-06-22 05:41:01 +00:00
|
|
|
* Default variation for charts.
|
|
|
|
*/
|
|
|
|
public static final DEFAULT_VARIATION:String = 'default';
|
|
|
|
|
2024-03-23 02:17:34 +00:00
|
|
|
/**
|
|
|
|
* Standard variations used by the game.
|
|
|
|
*/
|
|
|
|
public static final DEFAULT_VARIATION_LIST:Array<String> = ['default', 'erect', 'pico'];
|
|
|
|
|
2023-07-23 00:16:43 +00:00
|
|
|
/**
|
|
|
|
* 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;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The default BPM for charts, so things don't break if none is specified.
|
|
|
|
*/
|
2023-09-26 03:24:07 +00:00
|
|
|
public static final DEFAULT_BPM:Float = 100.0;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The default name for songs.
|
|
|
|
*/
|
2024-03-20 18:37:24 +00:00
|
|
|
public static final DEFAULT_SONGNAME:String = 'Unknown';
|
2023-09-26 03:24:07 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The default artist for songs.
|
|
|
|
*/
|
2024-03-20 18:37:24 +00:00
|
|
|
public static final DEFAULT_ARTIST:String = 'Unknown';
|
2023-09-26 03:24:07 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The default note style for songs.
|
|
|
|
*/
|
2024-03-20 18:37:24 +00:00
|
|
|
public static final DEFAULT_NOTE_STYLE:String = 'funkin';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The default album for songs in Freeplay.
|
|
|
|
*/
|
|
|
|
public static final DEFAULT_ALBUM_ID:String = 'volume1';
|
2023-09-26 03:24:07 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The default timing format for songs.
|
|
|
|
*/
|
|
|
|
public static final DEFAULT_TIMEFORMAT:SongTimeFormat = SongTimeFormat.MILLISECONDS;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The default scroll speed for songs.
|
|
|
|
*/
|
|
|
|
public static final DEFAULT_SCROLLSPEED:Float = 1.0;
|
2023-07-23 00:16:43 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Default numerator for the time signature.
|
|
|
|
*/
|
|
|
|
public static final DEFAULT_TIME_SIGNATURE_NUM:Int = 4;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Default denominator for the time signature.
|
|
|
|
*/
|
|
|
|
public static final DEFAULT_TIME_SIGNATURE_DEN:Int = 4;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* TIMING
|
|
|
|
*/
|
|
|
|
// ==============================
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A magic number used when calculating scroll speed and note distances.
|
|
|
|
*/
|
|
|
|
public static final PIXELS_PER_MS:Float = 0.45;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The maximum interval within which a note can be hit, in milliseconds.
|
|
|
|
*/
|
2023-08-01 19:29:17 +00:00
|
|
|
public static final HIT_WINDOW_MS:Float = 160.0;
|
2023-07-23 00:16:43 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Constant for the number of seconds in a minute.
|
|
|
|
*/
|
2023-08-01 19:29:17 +00:00
|
|
|
public static final SECS_PER_MIN:Int = 60;
|
2023-07-23 00:16:43 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Constant for the number of milliseconds in a second.
|
|
|
|
*/
|
2023-08-01 19:29:17 +00:00
|
|
|
public static final MS_PER_SEC:Int = 1000;
|
2023-07-23 00:16:43 +00:00
|
|
|
|
|
|
|
/**
|
2023-08-01 18:08:41 +00:00
|
|
|
* The number of microseconds in a millisecond.
|
2023-06-27 17:43:42 +00:00
|
|
|
*/
|
2023-08-01 18:08:41 +00:00
|
|
|
public static final US_PER_MS:Int = 1000;
|
2023-06-27 17:43:42 +00:00
|
|
|
|
|
|
|
/**
|
2023-08-01 18:08:41 +00:00
|
|
|
* The number of microseconds in a second.
|
2023-06-27 17:43:42 +00:00
|
|
|
*/
|
2023-08-01 18:08:41 +00:00
|
|
|
public static final US_PER_SEC:Int = US_PER_MS * MS_PER_SEC;
|
2023-06-27 17:43:42 +00:00
|
|
|
|
|
|
|
/**
|
2023-08-01 18:08:41 +00:00
|
|
|
* The number of nanoseconds in a microsecond.
|
2023-06-27 17:43:42 +00:00
|
|
|
*/
|
2023-08-01 18:08:41 +00:00
|
|
|
public static final NS_PER_US:Int = 1000;
|
2023-06-27 17:43:42 +00:00
|
|
|
|
|
|
|
/**
|
2023-08-01 18:08:41 +00:00
|
|
|
* The number of nanoseconds in a millisecond.
|
2023-06-27 17:43:42 +00:00
|
|
|
*/
|
2023-08-01 18:08:41 +00:00
|
|
|
public static final NS_PER_MS:Int = NS_PER_US * US_PER_MS;
|
2023-06-27 17:43:42 +00:00
|
|
|
|
|
|
|
/**
|
2023-08-01 18:08:41 +00:00
|
|
|
* The number of nanoseconds in a second.
|
2023-06-27 17:43:42 +00:00
|
|
|
*/
|
2023-08-01 18:08:41 +00:00
|
|
|
public static final NS_PER_SEC:Int = NS_PER_US * US_PER_MS * MS_PER_SEC;
|
2023-06-27 17:43:42 +00:00
|
|
|
|
2023-10-26 09:46:22 +00:00
|
|
|
/**
|
|
|
|
* Duration, in milliseconds, until toast notifications are automatically hidden.
|
|
|
|
*/
|
|
|
|
public static final NOTIFICATION_DISMISS_TIME:Int = 5 * MS_PER_SEC;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Duration to wait before autosaving the chart.
|
|
|
|
*/
|
|
|
|
public static final AUTOSAVE_TIMER_DELAY_SEC:Float = 5.0 * SECS_PER_MIN;
|
|
|
|
|
2023-06-27 17:43:42 +00:00
|
|
|
/**
|
2023-08-01 18:08:41 +00:00
|
|
|
* Number of steps in a beat.
|
|
|
|
* One step is one 16th note and one beat is one quarter note.
|
2023-07-23 00:16:43 +00:00
|
|
|
*/
|
|
|
|
public static final STEPS_PER_BEAT:Int = 4;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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 * Constants.MS_PER_SEC;
|
|
|
|
|
2024-03-28 08:34:43 +00:00
|
|
|
/**
|
|
|
|
* Each step of the preloader has to be on screen at least this long.
|
|
|
|
*
|
|
|
|
* 0 = The preloader immediately moves to the next step when it's ready.
|
|
|
|
* 1 = The preloader waits for 1 second before moving to the next step.
|
|
|
|
* The progress bare is automatically rescaled to match.
|
|
|
|
*/
|
|
|
|
#if debug
|
|
|
|
public static final PRELOADER_MIN_STAGE_TIME:Float = 1.0;
|
|
|
|
#else
|
|
|
|
public static final PRELOADER_MIN_STAGE_TIME:Float = 0.1;
|
|
|
|
#end
|
|
|
|
|
2023-01-23 03:25:45 +00:00
|
|
|
/**
|
2023-06-27 17:43:42 +00:00
|
|
|
* HEALTH VALUES
|
2023-01-23 03:25:45 +00:00
|
|
|
*/
|
|
|
|
// ==============================
|
|
|
|
|
2023-06-27 17:43:42 +00:00
|
|
|
/**
|
|
|
|
* The player's maximum health.
|
|
|
|
* If the player is at this value, they can't gain any more health.
|
|
|
|
*/
|
|
|
|
public static final HEALTH_MAX:Float = 2.0;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The player's starting health.
|
|
|
|
*/
|
|
|
|
public static final HEALTH_STARTING = HEALTH_MAX / 2.0;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The player's minimum health.
|
|
|
|
* If the player is at or below this value, they lose.
|
|
|
|
*/
|
|
|
|
public static final HEALTH_MIN:Float = 0.0;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The amount of health the player gains when hitting a note with the KILLER rating.
|
|
|
|
*/
|
2023-06-27 21:22:51 +00:00
|
|
|
public static final HEALTH_KILLER_BONUS:Float = 2.0 / 100.0 * HEALTH_MAX; // +2.0%
|
2023-06-27 17:43:42 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The amount of health the player gains when hitting a note with the SICK rating.
|
|
|
|
*/
|
2023-06-27 21:22:51 +00:00
|
|
|
public static final HEALTH_SICK_BONUS:Float = 1.5 / 100.0 * HEALTH_MAX; // +1.0%
|
2023-06-27 17:43:42 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The amount of health the player gains when hitting a note with the GOOD rating.
|
|
|
|
*/
|
2023-06-27 21:22:51 +00:00
|
|
|
public static final HEALTH_GOOD_BONUS:Float = 0.75 / 100.0 * HEALTH_MAX; // +0.75%
|
2023-06-27 17:43:42 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The amount of health the player gains when hitting a note with the BAD rating.
|
|
|
|
*/
|
2023-06-27 21:22:51 +00:00
|
|
|
public static final HEALTH_BAD_BONUS:Float = 0.0 / 100.0 * HEALTH_MAX; // +0.0%
|
2023-06-27 17:43:42 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The amount of health the player gains when hitting a note with the SHIT rating.
|
|
|
|
* If negative, the player will actually lose health.
|
|
|
|
*/
|
2023-06-27 21:22:51 +00:00
|
|
|
public static final HEALTH_SHIT_BONUS:Float = -1.0 / 100.0 * HEALTH_MAX; // -1.0%
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The amount of health the player gains, while holding a hold note, per second.
|
|
|
|
*/
|
|
|
|
public static final HEALTH_HOLD_BONUS_PER_SECOND:Float = 7.5 / 100.0 * HEALTH_MAX; // +7.5% / second
|
2023-06-27 17:43:42 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The amount of health the player loses upon missing a note.
|
|
|
|
*/
|
2023-06-27 21:22:51 +00:00
|
|
|
public static final HEALTH_MISS_PENALTY:Float = 4.0 / 100.0 * HEALTH_MAX; // 4.0%
|
2023-06-27 17:43:42 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The amount of health the player loses upon pressing a key when no note is there.
|
|
|
|
*/
|
2023-06-27 21:22:51 +00:00
|
|
|
public static final HEALTH_GHOST_MISS_PENALTY:Float = 2.0 / 100.0 * HEALTH_MAX; // 2.0%
|
2023-06-27 17:43:42 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The amount of health the player loses upon letting go of a hold note while it is still going.
|
|
|
|
*/
|
|
|
|
public static final HEALTH_HOLD_DROP_PENALTY:Float = 0.0; // 0.0%
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The amount of health the player loses upon hitting a mine.
|
|
|
|
*/
|
2023-06-27 21:22:51 +00:00
|
|
|
public static final HEALTH_MINE_PENALTY:Float = 15.0 / 100.0 * HEALTH_MAX; // 15.0%
|
2023-06-27 17:43:42 +00:00
|
|
|
|
|
|
|
/**
|
2023-10-06 15:42:39 +00:00
|
|
|
* SCORE VALUES
|
2023-06-27 17:43:42 +00:00
|
|
|
*/
|
2023-10-06 15:42:39 +00:00
|
|
|
// ==============================
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The amount of score the player gains for every send they hold a hold note.
|
|
|
|
* A fraction of this value is granted every frame.
|
|
|
|
*/
|
|
|
|
public static final SCORE_HOLD_BONUS_PER_SECOND:Float = 250.0;
|
2023-06-27 17:43:42 +00:00
|
|
|
|
2024-01-16 03:10:42 +00:00
|
|
|
public static final JUDGEMENT_KILLER_COMBO_BREAK:Bool = false;
|
|
|
|
public static final JUDGEMENT_SICK_COMBO_BREAK:Bool = false;
|
|
|
|
public static final JUDGEMENT_GOOD_COMBO_BREAK:Bool = false;
|
|
|
|
public static final JUDGEMENT_BAD_COMBO_BREAK:Bool = true;
|
|
|
|
public static final JUDGEMENT_SHIT_COMBO_BREAK:Bool = true;
|
|
|
|
|
2023-09-26 03:24:07 +00:00
|
|
|
/**
|
|
|
|
* FILE EXTENSIONS
|
|
|
|
*/
|
|
|
|
// ==============================
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The file extension used when exporting chart files.
|
|
|
|
*
|
|
|
|
* - "I made a new file format"
|
|
|
|
* - "Actually new or just a renamed ZIP?"
|
|
|
|
*/
|
|
|
|
public static final EXT_CHART = "fnfc";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The file extension used when loading audio files.
|
|
|
|
*/
|
|
|
|
public static final EXT_SOUND = #if web "mp3" #else "ogg" #end;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The file extension used when loading video files.
|
|
|
|
*/
|
|
|
|
public static final EXT_VIDEO = "mp4";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The file extension used when loading image files.
|
|
|
|
*/
|
|
|
|
public static final EXT_IMAGE = "png";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The file extension used when loading data files.
|
|
|
|
*/
|
|
|
|
public static final EXT_DATA = "json";
|
2023-06-27 17:43:42 +00:00
|
|
|
|
|
|
|
/**
|
2023-01-23 03:25:45 +00:00
|
|
|
* OTHER
|
|
|
|
*/
|
|
|
|
// ==============================
|
|
|
|
|
2023-10-06 15:42:39 +00:00
|
|
|
/**
|
|
|
|
* If true, the player will not receive the ghost miss penalty if there are no notes within the hit window.
|
|
|
|
* This is the thing people have been begging for forever lolol.
|
|
|
|
*/
|
|
|
|
public static final GHOST_TAPPING:Bool = false;
|
|
|
|
|
2023-10-22 19:43:39 +00:00
|
|
|
/**
|
|
|
|
* The maximum number of previous file paths for the Chart Editor to remember.
|
|
|
|
*/
|
|
|
|
public static final MAX_PREVIOUS_WORKING_FILES:Int = 10;
|
|
|
|
|
2023-07-02 19:33:12 +00:00
|
|
|
/**
|
2023-07-23 00:16:43 +00:00
|
|
|
* The separator between an asset library and the asset path.
|
2023-07-02 19:33:12 +00:00
|
|
|
*/
|
2023-07-23 00:16:43 +00:00
|
|
|
public static final LIBRARY_SEPARATOR:String = ':';
|
2023-01-23 03:25:45 +00:00
|
|
|
|
|
|
|
/**
|
2023-07-02 19:33:12 +00:00
|
|
|
* The scale factor to use when increasing the size of pixel art graphics.
|
2023-01-23 03:25:45 +00:00
|
|
|
*/
|
2023-07-02 19:33:12 +00:00
|
|
|
public static final PIXEL_ART_SCALE:Float = 6;
|
2023-01-23 03:25:45 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The volume at which to play the countdown before the song starts.
|
|
|
|
*/
|
2023-06-02 19:25:28 +00:00
|
|
|
public static final COUNTDOWN_VOLUME:Float = 0.6;
|
|
|
|
|
|
|
|
/**
|
2023-08-01 18:08:41 +00:00
|
|
|
* The horizontal offset of the strumline from the left edge of the screen.
|
2023-06-02 19:25:28 +00:00
|
|
|
*/
|
2023-06-22 05:41:01 +00:00
|
|
|
public static final STRUMLINE_X_OFFSET:Float = 48;
|
2023-01-23 03:25:45 +00:00
|
|
|
|
2023-06-02 19:25:28 +00:00
|
|
|
/**
|
2023-08-01 18:08:41 +00:00
|
|
|
* The vertical offset of the strumline from the top edge of the screen.
|
2023-06-02 19:25:28 +00:00
|
|
|
*/
|
2023-06-22 05:41:01 +00:00
|
|
|
public static final STRUMLINE_Y_OFFSET:Float = 24;
|
2022-03-11 06:30:01 +00:00
|
|
|
}
|