Skip to content

Commit

Permalink
v1.5.2 98%
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackx2 committed Apr 19, 2023
1 parent 90d9bd2 commit 2faf1e5
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 4 deletions.
Binary file added assets/preload/images/credits/nullObj.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion source/TitleState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ class TitleState extends MusicBeatState
new FlxTimer().start(1, function(tmr:FlxTimer)
{
if (mustUpdate) {
MusicBeatState.switchState(new OutdatedState());
MusicBeatState.switchState(new states.OutdatedState());
} else {
MusicBeatState.switchState(new menus.MainMenuState());
}
Expand Down
12 changes: 11 additions & 1 deletion source/menus/CreditsState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ class CreditsState extends MusicBeatState
#end

var pisspoop:Array<Array<String>> = [ //Name - Icon name - Description - Link - BG Color
['Psy Engine Team'],
['Hackx2', '', 'Main Programmer of Psy Engine', 'https://twitter.com/AnimatesHack', '444444'],
[''],
['Psych Engine Team'],
['Shadow Mario', 'shadowmario', 'Main Programmer of Psych Engine', 'https://twitter.com/Shadow_Mario_', '444444'],
['RiverOaken', 'river', 'Main Artist/Animator of Psych Engine', 'https://twitter.com/RiverOaken', 'B42F71'],
Expand Down Expand Up @@ -126,7 +129,14 @@ class CreditsState extends MusicBeatState
Paths.currentModDirectory = creditsStuff[i][5];
}

var icon:AttachedSprite = new AttachedSprite('credits/' + creditsStuff[i][1]);
//var icon:AttachedSprite = new AttachedSprite('credits/' + creditsStuff[i][1]);

// i stole from shadowmario
var str:String = 'credits/nullObj';
if (Paths.image('credits/' + creditsStuff[i][1]) != null)
str = 'credits/' + creditsStuff[i][1];

var icon:AttachedSprite = new AttachedSprite(str);
icon.xAdd = optionText.width + 10;
icon.sprTracker = optionText;

Expand Down
1 change: 1 addition & 0 deletions source/menus/FreeplayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ class FreeplayState extends MusicBeatState

Paths.currentModDirectory = songs[i].folder;
var icon:HealthIcon = new HealthIcon(songs[i].songCharacter);
icon.animation.curAnim.curFrame = 1;
icon.sprTracker = songText;

// using a FlxGroup is too much fuss!
Expand Down
15 changes: 14 additions & 1 deletion source/menus/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import flixel.FlxSprite;
import flixel.FlxCamera;
import flixel.addons.transition.FlxTransitionableState;
import flixel.effects.FlxFlicker;
import flixel.util.FlxTimer;
import flixel.group.FlxSpriteGroup.FlxTypedSpriteGroup;
import flixel.graphics.frames.FlxAtlasFrames;
import flixel.group.FlxGroup.FlxTypedGroup;
Expand Down Expand Up @@ -53,6 +54,7 @@ class MainMenuState extends MusicBeatState
["Psych Engine v", psych.CorePsych.psychVersion, null, null],
["Friday Night Funkin' v", Application.current.meta.get('version'), null, null]
];
private var selectedSomethinAnal:Bool = true;


var magenta:FlxSprite;
Expand Down Expand Up @@ -138,10 +140,15 @@ class MainMenuState extends MusicBeatState
menuItem.updateHitbox();
if (Core.mouseEvents)
{

#if (flixel >= "5.0.0") // update your fucking haxeflixel version
FlxMouseEvent.add(menuItem, null, function(e) stateChangeThing(), function(e)
{
if (!selectedSomethin)
new FlxTimer().start(0.2, function (tmr:FlxTimer) {
selectedSomethinAnal = true;
});

if (!selectedSomethin && selectedSomethinAnal)
{
curSelected = i;
changeItem();
Expand Down Expand Up @@ -220,12 +227,14 @@ class MainMenuState extends MusicBeatState
{
FlxG.sound.play(Paths.sound('scrollMenu'));
changeItem(-1);
susOWO();
}

if (controls.UI_DOWN_P)
{
FlxG.sound.play(Paths.sound('scrollMenu'));
changeItem(1);
susOWO();
}

if (controls.BACK)
Expand Down Expand Up @@ -256,6 +265,10 @@ class MainMenuState extends MusicBeatState
});
}

function susOWO() {
selectedSomethinAnal = false;
}

function stateChangeThing(){
if (optionShit[curSelected] == 'donate')
{
Expand Down
2 changes: 1 addition & 1 deletion source/OutdatedState.hx → source/states/OutdatedState.hx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package;
package states;

import flixel.FlxG;
import flixel.FlxSprite;
Expand Down

0 comments on commit 2faf1e5

Please sign in to comment.