-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
now in a seperate folder, using haxeui, much better. oh and custom animation controller finally added from psych oh and this repo is gonna become the alleyway engine repo instead of vs foxa's but i cant get rid of the mod's folder itself cuz my computers being fucky rn, so uhhh just figure it out for now
- Loading branch information
1 parent
13a3ce6
commit 62b08fa
Showing
44 changed files
with
333 additions
and
2,097 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
{ | ||
"titlex":-150, | ||
"titley":-100, | ||
"startx":100, | ||
"starty":576, | ||
"gfx":545, | ||
"gfy":40, | ||
"gfscalex":1, | ||
"gfscaley":1, | ||
"gfantialiasing":true, | ||
"backgroundSprite":"", | ||
"bpm":102, | ||
"versiontext":"Friday Night Funkin': Vs. Foxa 3.0", | ||
"friday":"FNF", | ||
"night":"Vs", | ||
"funkin":"Foxa", | ||
"ngtext":"newgrounds", | ||
"noAssociate":true, | ||
"logoHover":true, | ||
"showThanks":true | ||
} | ||
{ | ||
"titlex": -150, | ||
"titley": -100, | ||
"startx": 100, | ||
"starty": 576, | ||
"gfx": 545, | ||
"gfy": 40, | ||
"gfscalex": 1, | ||
"gfscaley": 1, | ||
"gfantialiasing": true, | ||
"backgroundSprite": "", | ||
"bpm": 102, | ||
"versiontext": "Friday Night Funkin': Vs. Foxa 3.0", | ||
"friday": "FNF", | ||
"night": "Vs", | ||
"funkin": "Foxa", | ||
"ngtext": "newgrounds", | ||
"noAssociate": true, | ||
"logoHover": true, | ||
"showThanks": true | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"fridayAchieve":"friday_night_play", | ||
"discordLink":"https://www.youtube.com/@foxatheartist/featured", | ||
"checkboard":true, | ||
"versionText":"FNF Vs. Foxa 3.0" | ||
} | ||
{ | ||
"fridayAchieve": "friday_night_play", | ||
"discordLink": "https://www.youtube.com/@foxatheartist/featured", | ||
"checkboard": true, | ||
"showEditorsMenu": true, | ||
"versionText": "FNF Vs. Foxa 3.0" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<vbox width="500"> | ||
<!-- <box width="500" height="100" style="background-color: red; border:1px solid red; background-opacity: .5" /> --> | ||
<image resource="assets/banner.png" /> | ||
<vbox style="padding: 5px;" width="100%"> | ||
<label id="message-label" text="Message" width="100%" textAlign="center" /> | ||
<label text="Call stack:" /> | ||
<scrollview width="100%" height="200" contentWidth="100%"> | ||
<vbox style="padding: 2px;" width="100%"> | ||
<label text="Call Stack" id="call-stack-label" /> | ||
</vbox> | ||
</scrollview> | ||
<label text="Crash Reason" id="crash-reason-label" /> | ||
<box width="100%"> | ||
<button horizontalAlign="left" id="view-crash-dump-button" text="View Crash Dump" /> | ||
<button horizontalAlign="center" id="restart-button" text="Restart" /> | ||
<button horizontalAlign="right" id="close-button" text="Close" /> | ||
</box> | ||
</vbox> | ||
</vbox> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"lineEnds": { | ||
"leftCurly": "both", | ||
"rightCurly": "both", | ||
"objectLiteralCurly": { | ||
"leftCurly": "after" | ||
} | ||
}, | ||
"sameLine": { | ||
"ifElse": "next", | ||
"doWhile": "next", | ||
"tryBody": "next", | ||
"tryCatch": "next" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<project> | ||
<meta title="Alleyway Engine Crash Handler" package="CrashDialog" version="1.0.0" company="" /> | ||
<app main="CrashDialog" file="AlleywayCrashHandler" path="build/openfl" /> | ||
|
||
<window background="#FFFFFF" fps="60" resizable="false"/> | ||
<window width="500" height="466" if="desktop" /> | ||
<window width="0" height="0" if="html5" /> | ||
<!-- shouldn't ever compile to html5 but just in case --> | ||
|
||
<!-- classpath, haxe libs --> | ||
<source path="src" /> | ||
|
||
<haxelib name="openfl" /> | ||
<haxelib name="actuate" /> | ||
|
||
<haxelib name="haxeui-core" /> | ||
<haxelib name="haxeui-openfl" /> | ||
|
||
<icon path="assets/iconOG.png" /> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
package; | ||
|
||
import haxe.ui.HaxeUIApp; | ||
import haxe.ui.components.Button; | ||
import haxe.ui.components.Label; | ||
import haxe.ui.core.Component; | ||
import haxe.ui.macros.ComponentMacros; | ||
import sys.io.File; | ||
import sys.io.Process; | ||
|
||
class CrashDialog | ||
{ | ||
/* | ||
massive thanks to gedehari for the crash dialog code | ||
*/ | ||
static final quotes:Array<String> = [ | ||
"oops - CharlesCatYT", | ||
"Blueballed. - gedehari", | ||
"bruh lmfao - CharlesCatYT", | ||
"We have come for your errors- GET THE FUCK OUT OF MY CODE - CharlesCatYT", | ||
"i hope you go mooseing and get fucked by a campfire - cyborg henry stickmin", | ||
"Goodbye cruel world - ShadowMario", | ||
"old was better - TheAnimateMan", | ||
"what the actual fuck - cyborg henry stickmin", | ||
"L - Dark", | ||
"You did something, didn't you? - LightyStarOfficial", | ||
"HA! - Dark", | ||
"Ah bueno adios master - ShadowMario", | ||
"Skibidy bah mmm dada *explodes* - ShadowMario", | ||
"you aren't struggling, are you? - CharlesCatYT", | ||
"WHY - CharlesCatYT", | ||
"What have you done, you killed it! - crowplexus", | ||
"Have you checked if the variable exists? - crowplexus", | ||
"Have you even read the wiki before trying that? - crowplexus", | ||
"you like the new crash handler? - CharlesCatYT", | ||
"i love flixel - CharlesCatYT", | ||
"i love openfl - CharlesCatYT", | ||
"i love lime - CharlesCatYT", | ||
"i love lua - CharlesCatYT", | ||
"i love haxe - CharlesCatYT", | ||
"i love hscript - CharlesCatYT", | ||
"check for any semicolon, dude - CharlesCatYT", | ||
"more null object references, okay... - CharlesCatYT", | ||
"gedehari made the crash dialog but what happened? - CharlesCatYT" | ||
]; | ||
|
||
public static function main() | ||
{ | ||
var args:Array<String> = Sys.args(); | ||
|
||
if (args[0] == null) Sys.exit(1); | ||
else { | ||
var path:String = args[0]; | ||
var contents:String = File.getContent(path); | ||
var split:Array<String> = contents.split("\n"); | ||
|
||
var app = new HaxeUIApp(); | ||
|
||
app.ready(() -> { | ||
var mainView:Component = ComponentMacros.buildComponent("assets/main-view.xml"); | ||
app.addComponent(mainView); | ||
|
||
var messageLabel:Label = mainView.findComponent("message-label", Label); | ||
messageLabel.text = quotes[Std.random(quotes.length)] + '\nUnfortunately, Alleyway Engine has crashed hard enough that the in-game crash handler didn\'t catch it.\nSorry about that.'; | ||
messageLabel.percentWidth = 100; | ||
messageLabel.textAlign = "center"; | ||
|
||
var callStackLabel:Label = mainView.findComponent("call-stack-label", Label); | ||
callStackLabel.text = ""; | ||
for (i in 0...split.length - 4) | ||
{ | ||
if (i == split.length - 5) callStackLabel.text += split[i]; | ||
else callStackLabel.text += split[i] + "\n"; | ||
} | ||
|
||
var crashReasonLabel:Label = mainView.findComponent("crash-reason-label", Label); | ||
crashReasonLabel.text = ""; | ||
for (i in split.length - 3...split.length - 1) | ||
{ | ||
if (i == split.length - 2) crashReasonLabel.text += split[i]; | ||
else crashReasonLabel.text += split[i] + "\n"; | ||
} | ||
|
||
mainView.findComponent("view-crash-dump-button", Button).onClick = function(_) | ||
{ | ||
#if windows | ||
Sys.command("start", [path]); | ||
#elseif linux | ||
Sys.command("xdg-open", [path]); | ||
#end | ||
}; | ||
|
||
mainView.findComponent("restart-button", Button).onClick = function(_) | ||
{ | ||
new Process('${#if linux "./" #else "" #end}AlleywayEngine', []); | ||
Sys.exit(0); | ||
}; | ||
|
||
mainView.findComponent("close-button", Button).onClick = function(_) { | ||
Sys.exit(0); | ||
}; | ||
|
||
app.start(); | ||
}); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package; | ||
|
||
import haxe.macro.Expr; | ||
|
||
class EngineMacro { | ||
public static macro function getEngineVersion():ExprOf<String> { | ||
/*#if !display | ||
return macro $v{sys.io.File.getContent("../engineVersion.txt")}; | ||
#else*/ | ||
return macro $v{"1.0.0"} | ||
//#end | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
haxe.ui.hxwidgets.frame.fit=true | ||
haxe.ui.hxwidgets.frame.title=Alleyway Engine Handler | ||
haxe.ui.hxwidgets.frame.resizable=false | ||
haxe.ui.hxwidgets.frame.maximizable=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<module preload="all"> | ||
<resources> | ||
<resource path="assets"/> | ||
</resources> | ||
</module> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.