Skip to content
This repository has been archived by the owner on Jul 9, 2023. It is now read-only.

Added marvelous #231

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/preload/images/unused/marvelous.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/shared/images/marvelous.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/shared/images/pixelUI/marvelous-pixel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions source/ClientPrefs.hx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class ClientPrefs
public static var sickWindow:Int = 45;
public static var goodWindow:Int = 90;
public static var badWindow:Int = 135;
public static var marvelousWindow:Int = 25;
public static var safeFrames:Float = 10;
public static var instantRespawn:Bool = false;

Expand Down Expand Up @@ -362,6 +363,9 @@ class ClientPrefs
{
badWindow = FlxG.save.data.badWindow;
}
if(FlxG.save.data.marvelousWindow != null)
marvelousWindow = FlxG.save.data.marvelousWindow;

if(FlxG.save.data.autoPause != null)
{
autoPause = FlxG.save.data.autoPause;
Expand Down
2 changes: 1 addition & 1 deletion source/Conductor.hx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class Rating
public var counter:String = '';
public var hitWindow:Null<Int> = 0; //ms
public var ratingMod:Float = 1;
public var score:Int = 350;
public var score:Int = 500;
public var noteSplash:Bool = true;

public function new(name:String)
Expand Down
12 changes: 9 additions & 3 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ class PlayState extends MusicBeatState
public var timeBar:FlxBar;

public var ratingsData:Array<Rating> = [];
public var marvelous:Int = 0;
public var sicks:Int = 0;
public var goods:Int = 0;
public var bads:Int = 0;
Expand Down Expand Up @@ -372,7 +373,12 @@ class PlayState extends MusicBeatState
];

//Ratings
ratingsData.push(new Rating('sick')); //default rating
ratingsData.push(new Rating('marvelous')); // default rating

var rating:Rating = new Rating('sick');
rating.score = 350;
rating.ratingMod = 0.9;
ratingsData.push(rating);

var rating:Rating = new Rating('good');
rating.ratingMod = 0.7;
Expand Down Expand Up @@ -1195,7 +1201,7 @@ class PlayState extends MusicBeatState
judgementCounter.scrollFactor.set();
judgementCounter.cameras = [camHUD];
judgementCounter.screenCenter(Y);
judgementCounter.text = 'Sicks: ${sicks}\nGoods: ${goods}\nBads: ${bads}\nShits: ${shits}\n';//\nTotal hit: ${totals}\n';
judgementCounter.text = 'Marvelous: ${marvelous}\nSicks: ${sicks}\nGoods: ${goods}\nBads: ${bads}\nShits: ${shits}\n';//\nTotal hit: ${totals}\n';
add(judgementCounter);
}

Expand Down Expand Up @@ -5769,7 +5775,7 @@ class PlayState extends MusicBeatState
setOnLuas('ratingName', ratingName);
setOnLuas('ratingFC', ratingFC);
if (ClientPrefs.crazycounter) {
judgementCounter.text = 'Sicks: ${sicks}\nGoods: ${goods}\nBads: ${bads}\nShits: ${shits}\n';//\nTotal hit: ${totals}\n;
judgementCounter.text = 'Marvelous: $marvelous\nSicks: $sicks\nGoods: $goods\nBads: $bads\nShits: $shits\n';//\nTotal hit: ${totals}\n;
}
}

Expand Down
13 changes: 12 additions & 1 deletion source/options/GameplaySettingsSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class GameplaySettingsSubState extends BaseOptionsMenu
'bool',
false);
addOption(option);

var option:Option = new Option('Rating Offset',
'Changes how late/early you have to hit for a "Sick!"\nHigher values mean you have to hit later.',
'ratingOffset',
Expand All @@ -118,6 +118,17 @@ class GameplaySettingsSubState extends BaseOptionsMenu
option.maxValue = 30;
addOption(option);

var option:Option = new Option('Marvelous! Hit Window',
'Changes the amount of time you have\nfor hitting a "Marvelous" in milliseconds.',
'marvelousWindow',
'int',
25);
option.displayFormat = '%vms';
option.scrollSpeed = 15;
option.minValue = 10;
option.maxValue = 20;
addOption(option);

var option:Option = new Option('Sick! Hit Window',
'Changes the amount of time you have\nfor hitting a "Sick!" in milliseconds.',
'sickWindow',
Expand Down