mom chart

This commit is contained in:
Cameron Taylor 2020-12-22 19:57:55 -05:00
parent 913602c639
commit 0524953b18
7 changed files with 137 additions and 5 deletions

BIN
art/Mom_Assets.fla Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

View File

@ -0,0 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<TextureAtlas imagePath="Mom_Assets.png">
<!-- Created with Adobe Animate version 20.0.0.17400 -->
<!-- http://www.adobe.com/products/animate.html -->
<SubTexture name="MOM DOWN POSE0000" x="0" y="0" width="410" height="613" frameX="-4" frameY="0" frameWidth="414" frameHeight="613"/>
<SubTexture name="MOM DOWN POSE0001" x="0" y="0" width="410" height="613" frameX="-4" frameY="0" frameWidth="414" frameHeight="613"/>
<SubTexture name="MOM DOWN POSE0002" x="420" y="0" width="403" height="597" frameX="0" frameY="-16" frameWidth="414" frameHeight="613"/>
<SubTexture name="MOM DOWN POSE0003" x="420" y="0" width="403" height="597" frameX="0" frameY="-16" frameWidth="414" frameHeight="613"/>
<SubTexture name="MOM DOWN POSE0004" x="833" y="0" width="403" height="600" frameX="0" frameY="-13" frameWidth="414" frameHeight="613"/>
<SubTexture name="MOM DOWN POSE0005" x="833" y="0" width="403" height="600" frameX="0" frameY="-13" frameWidth="414" frameHeight="613"/>
<SubTexture name="MOM DOWN POSE0006" x="1246" y="0" width="403" height="600" frameX="0" frameY="-13" frameWidth="414" frameHeight="613"/>
<SubTexture name="MOM DOWN POSE0007" x="1246" y="0" width="403" height="600" frameX="0" frameY="-13" frameWidth="414" frameHeight="613"/>
<SubTexture name="MOM DOWN POSE0008" x="833" y="0" width="403" height="600" frameX="0" frameY="-13" frameWidth="414" frameHeight="613"/>
<SubTexture name="MOM DOWN POSE0009" x="833" y="0" width="403" height="600" frameX="0" frameY="-13" frameWidth="414" frameHeight="613"/>
<SubTexture name="MOM DOWN POSE0010" x="1246" y="0" width="403" height="600" frameX="0" frameY="-13" frameWidth="414" frameHeight="613"/>
<SubTexture name="MOM DOWN POSE0011" x="1246" y="0" width="403" height="600" frameX="0" frameY="-13" frameWidth="414" frameHeight="613"/>
<SubTexture name="MOM DOWN POSE0012" x="833" y="0" width="403" height="600" frameX="0" frameY="-13" frameWidth="414" frameHeight="613"/>
<SubTexture name="MOM DOWN POSE0013" x="1659" y="0" width="403" height="600" frameX="0" frameY="-13" frameWidth="414" frameHeight="613"/>
<SubTexture name="MOM DOWN POSE0014" x="1659" y="0" width="403" height="600" frameX="0" frameY="-13" frameWidth="414" frameHeight="613"/>
<SubTexture name="Mom Idle0000" x="2072" y="0" width="386" height="826" frameX="-4" frameY="-2" frameWidth="390" frameHeight="829"/>
<SubTexture name="Mom Idle0001" x="2072" y="0" width="386" height="826" frameX="-4" frameY="-2" frameWidth="390" frameHeight="829"/>
<SubTexture name="Mom Idle0002" x="2468" y="0" width="386" height="815" frameX="-4" frameY="-14" frameWidth="390" frameHeight="829"/>
<SubTexture name="Mom Idle0003" x="2468" y="0" width="386" height="815" frameX="-4" frameY="-14" frameWidth="390" frameHeight="829"/>
<SubTexture name="Mom Idle0004" x="2864" y="0" width="386" height="822" frameX="-1" frameY="-7" frameWidth="390" frameHeight="829"/>
<SubTexture name="Mom Idle0005" x="2864" y="0" width="386" height="822" frameX="-1" frameY="-7" frameWidth="390" frameHeight="829"/>
<SubTexture name="Mom Idle0006" x="3260" y="0" width="386" height="824" frameX="0" frameY="-5" frameWidth="390" frameHeight="829"/>
<SubTexture name="Mom Idle0007" x="3260" y="0" width="386" height="824" frameX="0" frameY="-5" frameWidth="390" frameHeight="829"/>
<SubTexture name="Mom Idle0008" x="3656" y="0" width="386" height="828" frameX="0" frameY="-1" frameWidth="390" frameHeight="829"/>
<SubTexture name="Mom Idle0009" x="3656" y="0" width="386" height="828" frameX="0" frameY="-1" frameWidth="390" frameHeight="829"/>
<SubTexture name="Mom Idle0010" x="0" y="838" width="386" height="829" frameX="0" frameY="0" frameWidth="390" frameHeight="829"/>
<SubTexture name="Mom Idle0011" x="0" y="838" width="386" height="829" frameX="0" frameY="0" frameWidth="390" frameHeight="829"/>
<SubTexture name="Mom Idle0012" x="396" y="838" width="386" height="829" frameX="0" frameY="0" frameWidth="390" frameHeight="829"/>
<SubTexture name="Mom Idle0013" x="396" y="838" width="386" height="829" frameX="0" frameY="0" frameWidth="390" frameHeight="829"/>
<SubTexture name="Mom Left Pose0000" x="792" y="838" width="602" height="818" frameX="0" frameY="0" frameWidth="607" frameHeight="818"/>
<SubTexture name="Mom Left Pose0001" x="792" y="838" width="602" height="818" frameX="0" frameY="0" frameWidth="607" frameHeight="818"/>
<SubTexture name="Mom Left Pose0002" x="1404" y="838" width="596" height="803" frameX="-11" frameY="-15" frameWidth="607" frameHeight="818"/>
<SubTexture name="Mom Left Pose0003" x="1404" y="838" width="596" height="803" frameX="-11" frameY="-15" frameWidth="607" frameHeight="818"/>
<SubTexture name="Mom Left Pose0004" x="2010" y="838" width="596" height="807" frameX="-11" frameY="-11" frameWidth="607" frameHeight="818"/>
<SubTexture name="Mom Left Pose0005" x="2010" y="838" width="596" height="807" frameX="-11" frameY="-11" frameWidth="607" frameHeight="818"/>
<SubTexture name="Mom Left Pose0006" x="2616" y="838" width="596" height="807" frameX="-11" frameY="-11" frameWidth="607" frameHeight="818"/>
<SubTexture name="Mom Left Pose0007" x="2616" y="838" width="596" height="807" frameX="-11" frameY="-11" frameWidth="607" frameHeight="818"/>
<SubTexture name="Mom Left Pose0008" x="2010" y="838" width="596" height="807" frameX="-11" frameY="-11" frameWidth="607" frameHeight="818"/>
<SubTexture name="Mom Left Pose0009" x="2010" y="838" width="596" height="807" frameX="-11" frameY="-11" frameWidth="607" frameHeight="818"/>
<SubTexture name="Mom Pose Left0000" x="3222" y="838" width="578" height="771"/>
<SubTexture name="Mom Pose Left0001" x="3222" y="838" width="578" height="771"/>
<SubTexture name="Mom Pose Left0002" x="0" y="1677" width="564" height="762" frameX="0" frameY="-9" frameWidth="578" frameHeight="771"/>
<SubTexture name="Mom Pose Left0003" x="0" y="1677" width="564" height="762" frameX="0" frameY="-9" frameWidth="578" frameHeight="771"/>
<SubTexture name="Mom Pose Left0004" x="574" y="1677" width="564" height="764" frameX="0" frameY="-7" frameWidth="578" frameHeight="771"/>
<SubTexture name="Mom Pose Left0005" x="574" y="1677" width="564" height="764" frameX="0" frameY="-7" frameWidth="578" frameHeight="771"/>
<SubTexture name="Mom Pose Left0006" x="1148" y="1677" width="564" height="764" frameX="0" frameY="-7" frameWidth="578" frameHeight="771"/>
<SubTexture name="Mom Pose Left0007" x="1148" y="1677" width="564" height="764" frameX="0" frameY="-7" frameWidth="578" frameHeight="771"/>
<SubTexture name="Mom Pose Left0008" x="574" y="1677" width="564" height="764" frameX="0" frameY="-7" frameWidth="578" frameHeight="771"/>
<SubTexture name="Mom Pose Left0009" x="574" y="1677" width="564" height="764" frameX="0" frameY="-7" frameWidth="578" frameHeight="771"/>
<SubTexture name="Mom Up Pose0000" x="1722" y="1677" width="392" height="846" frameX="0" frameY="-9" frameWidth="395" frameHeight="862"/>
<SubTexture name="Mom Up Pose0001" x="1722" y="1677" width="392" height="846" frameX="0" frameY="-9" frameWidth="395" frameHeight="862"/>
<SubTexture name="Mom Up Pose0002" x="2124" y="1677" width="388" height="862" frameX="-7" frameY="0" frameWidth="395" frameHeight="862"/>
<SubTexture name="Mom Up Pose0003" x="2124" y="1677" width="388" height="862" frameX="-7" frameY="0" frameWidth="395" frameHeight="862"/>
<SubTexture name="Mom Up Pose0004" x="2522" y="1677" width="388" height="861" frameX="-7" frameY="-1" frameWidth="395" frameHeight="862"/>
<SubTexture name="Mom Up Pose0005" x="2522" y="1677" width="388" height="861" frameX="-7" frameY="-1" frameWidth="395" frameHeight="862"/>
<SubTexture name="Mom Up Pose0006" x="2920" y="1677" width="388" height="861" frameX="-7" frameY="-1" frameWidth="395" frameHeight="862"/>
<SubTexture name="Mom Up Pose0007" x="2920" y="1677" width="388" height="861" frameX="-7" frameY="-1" frameWidth="395" frameHeight="862"/>
<SubTexture name="Mom Up Pose0008" x="2522" y="1677" width="388" height="861" frameX="-7" frameY="-1" frameWidth="395" frameHeight="862"/>
<SubTexture name="Mom Up Pose0009" x="2522" y="1677" width="388" height="861" frameX="-7" frameY="-1" frameWidth="395" frameHeight="862"/>
<SubTexture name="Mom Up Pose0010" x="2920" y="1677" width="388" height="861" frameX="-7" frameY="-1" frameWidth="395" frameHeight="862"/>
<SubTexture name="Mom Up Pose0011" x="2920" y="1677" width="388" height="861" frameX="-7" frameY="-1" frameWidth="395" frameHeight="862"/>
<SubTexture name="Mom Up Pose0012" x="2522" y="1677" width="388" height="861" frameX="-7" frameY="-1" frameWidth="395" frameHeight="862"/>
<SubTexture name="Mom Up Pose0013" x="2522" y="1677" width="388" height="861" frameX="-7" frameY="-1" frameWidth="395" frameHeight="862"/>
<SubTexture name="Mom Up Pose0014" x="2920" y="1677" width="388" height="861" frameX="-7" frameY="-1" frameWidth="395" frameHeight="862"/>
</TextureAtlas>

View File

@ -87,6 +87,11 @@ class MainMenuState extends MusicBeatState
versionShit.setFormat("VCR OSD Mono", 16, FlxColor.WHITE, LEFT, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
add(versionShit);
if (versionShit.text != NGio.GAME_VER)
{
openSubState(new OutdatedSubState());
}
NG.core.calls.event.logEvent('swag').send();
changeItem();

View File

@ -7,6 +7,10 @@ import io.newgrounds.components.ScoreBoardComponent.Period;
import io.newgrounds.objects.Medal;
import io.newgrounds.objects.Score;
import io.newgrounds.objects.ScoreBoard;
import io.newgrounds.objects.events.Response;
import io.newgrounds.objects.events.Result.GetCurrentVersionResult;
import io.newgrounds.objects.events.Result.GetVersionResult;
import lime.app.Application;
import openfl.display.Stage;
/**
@ -22,9 +26,26 @@ class NGio
public static var ngDataLoaded(default, null):FlxSignal = new FlxSignal();
public static var ngScoresLoaded(default, null):FlxSignal = new FlxSignal();
public static var GAME_VER:String = "";
public static function noLogin(api:String)
{
trace('INIT NOLOGIN');
GAME_VER = "v" + Application.current.meta.get('version');
NG.create(api);
NG.onCoreReady.add(function()
{
trace('READY SHIT??');
var call = NG.core.calls.gateway.getVersion().addDataHandler(function(response:Response<GetVersionResult>)
{
GAME_VER = response.result.data.version;
trace('CURRENT NG VERSION: ' + GAME_VER);
});
call.send();
});
}
public function new(api:String, encKey:String, ?sessionId:String)
@ -153,11 +174,8 @@ class NGio
inline static public function logEvent(event:String)
{
if (isLoggedIn)
{
NG.core.calls.event.logEvent(event);
trace('should have logged: ' + event);
}
NG.core.calls.event.logEvent(event).send();
trace('should have logged: ' + event);
}
inline static public function unlockMedal(id:Int)

View File

@ -0,0 +1,39 @@
package;
import flixel.FlxG;
import flixel.FlxSubState;
import flixel.text.FlxText;
import flixel.util.FlxColor;
import lime.app.Application;
class OutdatedSubState extends MusicBeatSubstate
{
public function new()
{
super();
var ver = "v" + Application.current.meta.get('version');
var txt:FlxText = new FlxText(0, 0, 0,
"HEY! You're running an outdated version of the game!\nCurrent version is "
+ ver
+ " while the current version is "
+ NGio.GAME_VER
+ " ! Press Space to go to itch.io, or ESCAPE to ignore this!!",
32);
txt.setFormat("VCR OSD Mono", 32, FlxColor.WHITE, CENTER);
txt.screenCenter();
add(txt);
}
override function update(elapsed:Float)
{
if (controls.ACCEPT)
{
FlxG.openURL("https://ninja-muffin24.itch.io/funkin");
}
if (controls.BACK)
{
close();
}
super.update(elapsed);
}
}