Git Product home page Git Product logo

hxgamejolt-api's Introduction

hxgamejolt-api

Haxe bindings for GameJolt API.

Installation

You can install it through Haxelib

haxelib install hxgamejolt-api

Or through Git, if you want the latest updates

haxelib git hxgamejolt-api https://github.com/MAJigsaw77/hxgamejolt-api.git

Basic Usage Example

import hxgamejolt.GameJolt; // be sure you import this.

GameJolt.init('game id', 'private key');

GameJolt.authUser('user name', 'user token', {
	onSucceed: function(data:Dynamic):Void
	{
		// your code
	},
	onFail: function(message:String):Void
	{
		trace(message);
	}
});

GameJolt.fetchUser('user name', [], {
	onSucceed: function(data:Dynamic):Void
	{
		// your code
	},
	onFail: function(message:String):Void
	{
		trace(message);
	}
});

Licensing

hxgamejolt-api is made available under the MIT License. Check LICENSE for more information.

hxgamejolt-api's People

Contributors

bushtrain460615 avatar majigsaw77 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hxgamejolt-api's Issues

performance issues when pinging for an acitve session

Whenever i try and ping for an active session I'm experiencing a little bit of performance drops.
Is this normal?

if(Options.getData("gjUsername") != ""){
				var pingTimer:FlxTimer = new FlxTimer();
				pingTimer.start(30, function(_:FlxTimer){	
				trace("pinging..");		
				GJClient.pingSessions(Options.getData("gjUsername"), Options.getData("gjUserToken"), 'active', function(json:Dynamic){
					trace("found session!");
					}, 
					function(message:String){
						trace("No session found for: " + Options.getData("gjUsername"));
						trace("Retrying!...");
						GJClient.openSessions(Options.getData("gjUsername"), Options.getData("gjUserToken"), function(json:Dynamic){
							trace("Made a new session");
						}, function(message:String) // on Failure
						{
							trace("could not open a new session");
						});
					});
				},0);
			}

here is the code im using for checking for a session

when ever I try to put it into my game I get a error

Error: Could not find haxelib "gamejolt-integration", does it need to be installed?

after I changed it to the githubs name
Error: Could not find haxelib "Haxe-GameJolt-Integration", does it need to be installed?

also this isn't FNF incase you needed to know

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.