title screen stuff? (doesnt work yet)
This commit is contained in:
+7
-2
@@ -7,6 +7,9 @@
|
||||
<!--Switch Export with Unique ApplicationID and Icon-->
|
||||
<set name="APP_ID" value="0x0100f6c013bbc000" />
|
||||
|
||||
<!-- DO NOT REMOVE!! ALLOWS ME TO DO REGIONS LIKE IN C# AND KEEP CODE ORGANIZED. REMOVING IT WOULD BREAK THE ENGINE -->
|
||||
<haxedef name="REGION" />
|
||||
|
||||
<!--The flixel preloader is not accurate in Chrome. You can use it regularly if you embed the swf into a html file
|
||||
or you can set the actual size of your file manually at "FlxPreloaderBase-onUpdate-bytesTotal"-->
|
||||
<!-- <app preloader="Preloader" resizable="true" /> -->
|
||||
@@ -147,6 +150,8 @@
|
||||
<haxedef name="HXCPP_DEBUG_LINK" if="release" />
|
||||
<haxedef name="hscriptPos" /> <!-- for logging -->
|
||||
|
||||
<!-- DO NOT REMOVE!! ALLOWS ME TO DO REGIONS LIKE IN C# AND KEEP CODE ORGANIZED. REMOVING IT WOULD BREAK THE ENGINE -->
|
||||
<haxedef name="REGION" />
|
||||
<!-- ENGINE SETTINGS !-->
|
||||
|
||||
<!-- Comment this out to disable titlescreen.xml !-->
|
||||
<haxedef name="TITLESCREEN_XML" />
|
||||
</project>
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
<!DOCTYPE codename-config >
|
||||
<mod name="Codename Engine" desc="New FNF engine designed to make mod making easier, both in source and via softcoding!">
|
||||
<!-- This line is ignored if in source assets. Use the project.xml to change settings. !-->
|
||||
<window icon="icon.ico" title="Friday Night Funkin' - Codename Engine" width="1280" height="720" />
|
||||
|
||||
|
||||
</mod>
|
||||
@@ -40,3 +40,17 @@ updates each friday--on time every time
|
||||
shoutouts to mason--for da homies
|
||||
bonk--get in the discord call
|
||||
github exclusive intro text--open source forever
|
||||
|
||||
still waiting--for the stage editor
|
||||
its millions--to one
|
||||
make mods--not malware
|
||||
yoshi engine--never heard of it
|
||||
cant add ndlls--its a haxe feature
|
||||
xml is--too powerful
|
||||
its only been--a week
|
||||
his name is evilsk8er--dumb alphabet
|
||||
you should play--soulles dx demo
|
||||
do you yield--i do not
|
||||
funk funk--revolution
|
||||
null object--reference
|
||||
hi--how are you
|
||||
@@ -0,0 +1,65 @@
|
||||
<!DOCTYPE codename-titlestate >
|
||||
<titlestate>
|
||||
<sprites folder="titlescreen">
|
||||
|
||||
</sprites>
|
||||
|
||||
<intro length="16">
|
||||
<text beat="1">
|
||||
<line text="ninjamuffin99" />
|
||||
<line text="phantomArcade" />
|
||||
<line text="kawaisprite" />
|
||||
<line text="evilsk8er" />
|
||||
</text>
|
||||
|
||||
<text beat="3">
|
||||
<line text="ninjamuffin99" />
|
||||
<line text="phantomArcade" />
|
||||
<line text="kawaisprite" />
|
||||
<line text="evilsk8er" />
|
||||
<line text="presents" />
|
||||
</text>
|
||||
|
||||
<text beat="4" /> <!-- clears the screen !-->
|
||||
|
||||
<text beat="5">
|
||||
<line text="In association" />
|
||||
<line text="with" />
|
||||
</text>
|
||||
|
||||
<text beat="7">
|
||||
<line text="In association" />
|
||||
<line text="with" />
|
||||
<line text="Newgrounds" />
|
||||
<sprite path="titlescreen/newgrounds_logo" scale="0.8"/>
|
||||
</text>
|
||||
|
||||
<text beat="8" /> <!-- clears the screen !-->
|
||||
|
||||
<text beat="9">
|
||||
<introtext line="1" />
|
||||
</text>
|
||||
|
||||
<text beat="11">
|
||||
<introtext line="1" />
|
||||
<introtext line="2" />
|
||||
</text>
|
||||
|
||||
<text beat="12"/>
|
||||
|
||||
<text beat="13">
|
||||
<line text="Friday" />
|
||||
</text>
|
||||
|
||||
<text beat="14">
|
||||
<line text="Friday" />
|
||||
<line text="Night" />
|
||||
</text>
|
||||
|
||||
<text beat="15">
|
||||
<line text="Friday" />
|
||||
<line text="Night" />
|
||||
<line text="Funkin'" />
|
||||
</text>
|
||||
</intro>
|
||||
</titlestate>
|
||||
|
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 579 KiB After Width: | Height: | Size: 579 KiB |
|
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.4 MiB |
+1
-1
@@ -1 +1 @@
|
||||
495
|
||||
496
|
||||
@@ -35,8 +35,6 @@ class TitleState extends MusicBeatState
|
||||
static var initialized:Bool = false;
|
||||
|
||||
var blackScreen:FlxSprite;
|
||||
var credGroup:FlxGroup;
|
||||
var credTextShit:Alphabet;
|
||||
var textGroup:FlxGroup;
|
||||
var ngSpr:FlxSprite;
|
||||
|
||||
@@ -106,27 +104,10 @@ class TitleState extends MusicBeatState
|
||||
titleText.updateHitbox();
|
||||
add(titleText);
|
||||
|
||||
var logo:FlxSprite = new FlxSprite().loadGraphic(Paths.image('logo'));
|
||||
logo.screenCenter();
|
||||
logo.antialiasing = true;
|
||||
// add(logo);
|
||||
|
||||
// FlxTween.tween(logoBl, {y: logoBl.y + 50}, 0.6, {ease: FlxEase.quadInOut, type: PINGPONG});
|
||||
// FlxTween.tween(logo, {y: logoBl.y + 50}, 0.6, {ease: FlxEase.quadInOut, type: PINGPONG, startDelay: 0.1});
|
||||
|
||||
credGroup = new FlxGroup();
|
||||
add(credGroup);
|
||||
textGroup = new FlxGroup();
|
||||
|
||||
blackScreen = new FlxSprite().makeGraphic(FlxG.width, FlxG.height, FlxColor.BLACK);
|
||||
credGroup.add(blackScreen);
|
||||
|
||||
credTextShit = new Alphabet(0, 0, "ninjamuffin99\nPhantomArcade\nkawaisprite\nevilsk8er", true);
|
||||
credTextShit.screenCenter();
|
||||
|
||||
// credTextShit.alignment = CENTER;
|
||||
|
||||
credTextShit.visible = false;
|
||||
add(blackScreen);
|
||||
|
||||
ngSpr = new FlxSprite(0, FlxG.height * 0.52).loadGraphic(Paths.image('newgrounds_logo'));
|
||||
add(ngSpr);
|
||||
@@ -136,21 +117,17 @@ class TitleState extends MusicBeatState
|
||||
ngSpr.screenCenter(X);
|
||||
ngSpr.antialiasing = true;
|
||||
|
||||
FlxTween.tween(credTextShit, {y: credTextShit.y + 20}, 2.9, {ease: FlxEase.quadInOut, type: PINGPONG});
|
||||
|
||||
FlxG.mouse.visible = false;
|
||||
|
||||
if (initialized)
|
||||
skipIntro();
|
||||
else
|
||||
initialized = true;
|
||||
|
||||
// credGroup.add(credTextShit);
|
||||
}
|
||||
|
||||
function getIntroTextShit():Array<Array<String>>
|
||||
{
|
||||
var fullText:String = Assets.getText(Paths.txt('introText'));
|
||||
var fullText:String = Assets.getText(Paths.txt('titlescreen/introText'));
|
||||
|
||||
var firstArray:Array<String> = fullText.split('\n');
|
||||
var swagGoodArray:Array<Array<String>> = [];
|
||||
@@ -220,32 +197,25 @@ class TitleState extends MusicBeatState
|
||||
|
||||
function createCoolText(textArray:Array<String>)
|
||||
{
|
||||
for (i in 0...textArray.length)
|
||||
for (i=>text in textArray)
|
||||
{
|
||||
var money:Alphabet = new Alphabet(0, 0, textArray[i], true, false);
|
||||
if (text == "" || text == null) continue;
|
||||
var money:Alphabet = new Alphabet(0, (i * 60) + 200, text, true, false);
|
||||
money.screenCenter(X);
|
||||
money.y += (i * 60) + 200;
|
||||
credGroup.add(money);
|
||||
textGroup.add(money);
|
||||
}
|
||||
}
|
||||
|
||||
function addMoreText(text:String)
|
||||
{
|
||||
var coolText:Alphabet = new Alphabet(0, 0, text, true, false);
|
||||
var coolText:Alphabet = new Alphabet(0, (textGroup.length * 60) + 200, text, true, false);
|
||||
coolText.screenCenter(X);
|
||||
coolText.y += (textGroup.length * 60) + 200;
|
||||
credGroup.add(coolText);
|
||||
textGroup.add(coolText);
|
||||
}
|
||||
|
||||
function deleteCoolText()
|
||||
{
|
||||
while (textGroup.members.length > 0)
|
||||
{
|
||||
credGroup.remove(textGroup.members[0], true);
|
||||
textGroup.remove(textGroup.members[0], true);
|
||||
}
|
||||
while (textGroup.members.length > 0) textGroup.remove(textGroup.members[0], true);
|
||||
}
|
||||
|
||||
override function beatHit()
|
||||
@@ -260,8 +230,9 @@ class TitleState extends MusicBeatState
|
||||
else
|
||||
gfDance.animation.play('danceLeft');
|
||||
|
||||
FlxG.log.add(curBeat);
|
||||
#if TITLESCREEN_XML
|
||||
|
||||
#else
|
||||
switch (curBeat)
|
||||
{
|
||||
case 1: createCoolText(['ninjamuffin99', 'phantomArcade', 'kawaisprite', 'evilsk8er']);
|
||||
@@ -278,6 +249,7 @@ class TitleState extends MusicBeatState
|
||||
case 15: addMoreText('Funkin');
|
||||
case 16: skipIntro();
|
||||
}
|
||||
#end
|
||||
}
|
||||
|
||||
var skippedIntro:Bool = false;
|
||||
@@ -289,7 +261,8 @@ class TitleState extends MusicBeatState
|
||||
remove(ngSpr);
|
||||
|
||||
FlxG.camera.flash(FlxColor.WHITE, 4);
|
||||
remove(credGroup);
|
||||
remove(blackScreen);
|
||||
blackScreen.destroy();
|
||||
skippedIntro = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user