Skip to content

New FlxGameJolt System for FlxPongAPI Demo #377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Arcade/FlxPongApi/Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
<haxelib name="flixel" />

<!--In case you want to use the addons package-->
<haxelib name="flixel-addons" />
<haxelib name="flixel-addons" version="git"/>

<!--In case you want to use the ui package-->
<!--<haxelib name="flixel-ui" />-->
<haxelib name="flixel-ui" />

<!--In case you want to use nape with flixel-->
<!--<haxelib name="nape-haxe4" />-->
Expand Down
3 changes: 3 additions & 0 deletions Arcade/FlxPongApi/source/Main.hx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package;

import flixel.addons.api.gamejolt.FlxGameJoltRequest;
import flixel.FlxG;
import flixel.FlxGame;
import openfl.display.Sprite;

Expand All @@ -9,5 +11,6 @@ class Main extends Sprite
{
super();
addChild(new FlxGame(450, 150, MenuState));
FlxG.signals.postUpdate.add(() -> new FlxGameJoltRequest(SESSION_PING(true)).send(true));
}
}
Loading