Skip to content

Commit

Permalink
More shiz
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackx2 committed Jul 2, 2024
1 parent 25ac800 commit 541e880
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 14 deletions.
11 changes: 5 additions & 6 deletions Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,18 @@
<set name="BUILD_DIR" value="export/release" unless="debug" />
<set name="BUILD_DIR" value="export/32bit" if="32bits" />

<library name="videos" preload="true" />
<library name="songs" preload="true" />
<library name="shared" preload="true" />
<library name="week_assets" preload="true" />

<assets path="assets/videos" library="videos" if="VIDEOS_ALLOWED"/>
<assets path="assets/songs" library="songs" exclude="*.ogg" if="web"/>
<assets path="assets/songs" library="songs" exclude="*.mp3" unless="web"/>
<assets path="assets/shared" exclude="*.ogg" if="web"/>
<assets path="assets/shared" exclude="*.mp3" unless="web"/>
<assets path="assets/week_assets" library="week_assets" rename="assets" exclude="*.ogg" if="web"/>
<assets path="assets/week_assets" library="week_assets" rename="assets" exclude="*.mp3" unless="web"/>

<library name="videos" preload="true" />
<library name="songs" preload="true" />
<library name="shared" preload="true" />
<library name="week_assets" preload="true" />

<assets path='mods' if="MODS_ALLOWED" embed='false'/>


Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion source/funkin/game/editors/CharacterEditorState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class CharacterEditorState extends MusicBeatState

loadChar(!daAnim.startsWith('bf'), false);

healthBarBG = new FlxSprite(30, FlxG.height - 75).loadGraphic(Paths.image('healthBar'));
healthBarBG = new FlxSprite(30, FlxG.height - 75).loadGraphic(Paths.image('UI/healthBar'));
healthBarBG.scrollFactor.set();
add(healthBarBG);
healthBarBG.cameras = [camHUD];
Expand Down
8 changes: 4 additions & 4 deletions source/funkin/game/objects/Note.hx
Original file line number Diff line number Diff line change
Expand Up @@ -279,16 +279,16 @@ class Note extends FlxSprite
var blahblah:String = arraySkin.join('/');
if(PlayState.isPixelStage) {
if(isSustainNote) {
loadGraphic(Paths.image('pixelUI/' + blahblah + 'ENDS'));
loadGraphic(Paths.image('UI/pixel/notes/' + blahblah + 'ENDS'));
width = width / 4;
height = height / 2;
originalHeightForCalcs = height;
loadGraphic(Paths.image('pixelUI/' + blahblah + 'ENDS'), true, Math.floor(width), Math.floor(height));
loadGraphic(Paths.image('UI/pixel/notes/' + blahblah + 'ENDS'), true, Math.floor(width), Math.floor(height));
} else {
loadGraphic(Paths.image('pixelUI/' + blahblah));
loadGraphic(Paths.image('UI/pixel/notes/' + blahblah));
width = width / 4;
height = height / 5;
loadGraphic(Paths.image('pixelUI/' + blahblah), true, Math.floor(width), Math.floor(height));
loadGraphic(Paths.image('UI/pixel/notes/' + blahblah), true, Math.floor(width), Math.floor(height));
}
setGraphicSize(Std.int(width * PlayState.daPixelZoom));
loadPixelNoteAnims();
Expand Down
4 changes: 2 additions & 2 deletions source/funkin/game/objects/StrumNote.hx
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ class StrumNote extends FlxSprite

if(PlayState.isPixelStage)
{
loadGraphic(Paths.image('pixelUI/' + texture));
loadGraphic(Paths.image('UI/pixel/notes/' + texture));
width = width / 4;
height = height / 5;
loadGraphic(Paths.image('pixelUI/' + texture), true, Math.floor(width), Math.floor(height));
loadGraphic(Paths.image('UI/pixel/notes/' + texture), true, Math.floor(width), Math.floor(height));

antialiasing = false;
setGraphicSize(Std.int(width * PlayState.daPixelZoom));
Expand Down
2 changes: 1 addition & 1 deletion source/funkin/game/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,7 @@ class PlayState extends MusicBeatState
FlxG.fixedTimestep = false;
moveCameraSection();

healthBarBG = new AttachedSprite('healthBar');
healthBarBG = new AttachedSprite('UI/healthBar');
healthBarBG.y = FlxG.height * 0.89;
healthBarBG.screenCenter(X);
healthBarBG.scrollFactor.set();
Expand Down

0 comments on commit 541e880

Please sign in to comment.