1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-22 14:53:53 +00:00

NGio bootleg API bullshit

This commit is contained in:
Cameron Taylor 2020-12-15 22:00:22 -05:00
parent 2ff2d57540
commit aedac402cf
4 changed files with 18 additions and 8 deletions

View file

@ -1,10 +1,10 @@
name: learn-github-actions
on: [push]
jobs:
check-bats-version:
runs-on: ubuntu-latest
build:
runs-on: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- run: npm install -g bats
- run: bats -v
- uses: krdlab/setup-haxe@v1
with:
haxe-version: 4.0.5
- run: |
haxe -version
haxelib install hxnodejs

View file

@ -10,6 +10,7 @@ import flixel.text.FlxText;
import flixel.tweens.FlxEase;
import flixel.tweens.FlxTween;
import flixel.util.FlxColor;
import io.newgrounds.NG;
import lime.app.Application;
class MainMenuState extends MusicBeatState
@ -86,6 +87,8 @@ class MainMenuState extends MusicBeatState
versionShit.setFormat("VCR OSD Mono", 16, FlxColor.WHITE, LEFT, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
add(versionShit);
NG.core.calls.event.logEvent('swag').send();
changeItem();
super.create();

View file

@ -22,6 +22,11 @@ class NGio
public static var ngDataLoaded(default, null):FlxSignal = new FlxSignal();
public static var ngScoresLoaded(default, null):FlxSignal = new FlxSignal();
public static function noLogin(api:String)
{
NG.create(api);
}
public function new(api:String, encKey:String, ?sessionId:String)
{
trace("connecting to newgrounds");

View file

@ -51,6 +51,8 @@ class TitleState extends MusicBeatState
super.create();
NGio.noLogin(APIStuff.API);
#if ng
var ng:NGio = new NGio(APIStuff.API, APIStuff.EncKey);
trace('NEWGROUNDS LOL');