Skip to content

Commit

Permalink
Revert "Revert "tried to port whitty""
Browse files Browse the repository at this point in the history
This reverts commit 816ae91.
  • Loading branch information
EyeDaleHim committed Dec 4, 2023
1 parent 816ae91 commit 00393ee
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 10 deletions.
4 changes: 4 additions & 0 deletions Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
<library name="week5" preload="true"/>
<library name="week6" preload="true"/>
<library name="week7" preload="true"/>
<library name="backalley" preload="true"/>
</section>

<section if="NO_PRELOAD_ALL">
Expand All @@ -93,6 +94,7 @@
<library name="week5" preload="false"/>
<library name="week6" preload="false"/>
<library name="week7" preload="false"/>
<library name="backalley" preload="false"/>
</section>

<!-- def not needed especially because of week 1
Expand All @@ -113,6 +115,8 @@
<assets path="assets/week6" library="week6" exclude="*.mp3" unless="web"/>
<assets path="assets/week7" library="week7" exclude="*.ogg" if="web"/>
<assets path="assets/week7" library="week7" exclude="*.mp3" unless="web"/>
<assets path="assets/backalley" library="backalley" exclude="*.ogg" if="web"/>
<assets path="assets/backalley" library="backalley" exclude="*.mp3" unless="web"/>

<!-- _______________________________ Libraries ______________________________ -->

Expand Down
Binary file added assets/backalley/images/backalley/whittyBack.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 added assets/backalley/images/backalley/whittyFront.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/data/charts/lo-fight/lo-fight-hard.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions assets/data/charts/lo-fight/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"format": "crow",
"overrideCountdownStory": false
}
11 changes: 11 additions & 0 deletions assets/data/weeks/backalley.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "backalley",
"description": "DADDY DEAREST",
"songs": ["Lo Fight"],
"defaultIcons": ["dad"],
"defaultColors": [-4621347],

"defaultDifficulty": "Normal",
"difficulties": ["Hard"],
"displayCharacters": ["dad", "boyfriend", "gf"]
}
Binary file added assets/music/songs/lo-fight/Inst.ogg
Binary file not shown.
Binary file added assets/music/songs/lo-fight/Voices.ogg
Binary file not shown.
10 changes: 0 additions & 10 deletions source/music/Song.hx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ class Song
{*/
var fixData:String->String = function(str:String)
{
while (!str.endsWith("}"))
{
str = str.substr(0, str.length - 1);
}

return str;
};

Expand All @@ -39,11 +34,6 @@ class Song

metaData = meta;

currentSong.noteLength = 0;

for (section in currentSong.sectionList)
currentSong.noteLength += section.length;

if (metaData.comboSkin == null)
metaData.comboSkin = 'default';
if (metaData.countdownSkin == null)
Expand Down
16 changes: 16 additions & 0 deletions source/objects/Stage.hx
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,22 @@ class Stage
stageInstance.attributes.set('tankAngle', FlxG.random.int(-90, 45));
stageInstance.attributes.set('tankSpeed', FlxG.random.float(5, 7));
}
case 'backalley':
{
stageInstance.defaultZoom = 0.90;

stageInstance.camPosList.opponentPositions = [{x: 100, y: -100}];

var background:BGSprite = new BGSprite({path: 'whittyBack', library: 'backalley'}, {x: -600, y: -200}, {x: 0.9, y: 0.9});
background.ID = 0;
group.set('back', background);

var front:BGSprite = new BGSprite({path: 'whittyFront', library: 'backalley'}, {x: -650, y: 600}, {x: 0.9, y: 0.9});
front.scale.set(1.1, 1.1);
front.updateHitbox();
front.ID = 1;
group.set('front', front);
}
default:
{
stageInstance.defaultZoom = 0.90;
Expand Down
2 changes: 2 additions & 0 deletions source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,8 @@ class PlayState extends MusicBeatState
'dark-school';
case 'ugh' | 'guns' | 'stress':
'warzone';
case 'lo-fight':
'backalley';
default:
'stage-error';
};
Expand Down

0 comments on commit 00393ee

Please sign in to comment.