Coder Social home page Coder Social logo

hoovy-team / gamejolt-adaptation-for-fnf-and-haxeflixel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gamerpablito/haxegjclient

1.0 0.0 0.0 76 KB

An useful tool to work with GameJolt for FNF Mods or Haxe Games as well!

License: Apache License 2.0

Haxe 100.00%

gamejolt-adaptation-for-fnf-and-haxeflixel's Introduction

GameJolt Adaptation for FNF and Haxeflixel

Heya there! GamerPablito here!

Thanks for use this custom client for GameJolt, this has very useful functions for different purposes with a little better performance than the default libraries (such as the flixel file "FlxGameJolt" or the original "gamejoltAPI" library stuff).

This was originally made for some FNF mods, but it can be used for any game made with Haxeflixel as well.

The purpose of this project is to make everything the best way possible, using less space and complexity for a better performance (and by that I mean it can be useful for computers with a very slow processing speed) Hope this custom tool would come in handy to you :)

This & TentaRJ's gamejolt integration are NOT the same, they're both different in their own ways, don't get confused for one another

Special Features

  • Includes haxe libraries like:
    • Http (used to track info from the GameJolt API)
    • Json (used to cast specific information formats from the fetched data)
    • Md5 (used to encript a special signature to access the API in a safe way)
    • Sha1 (it's an alternative for Md5, works the same)
  • This client is totally independient, it doesn't requires any extra GameJolt libraries to work, cuz everything is written and composed here
  • This also contains some files with info formats about how some data has to be received like, this in order to let the user know how to use the data in their game
  • Has many extra features that can be fetched instantly without you have to code a lot for them
  • Every file is full of instructions for each command, in order to do the things right if you don't know so much about it

How to Use in Game

  1. Download this repository
  2. Copy the gamejolt folder into the source folder of your game
  3. Once copied, you must create a GJKeys.hx file into the gamejolt folder, where you'll put the Game GJ Data for the client, this will remain with yourself in order to avoid hackers. Here's a template:
package gamejolt;

class GJKeys
{
  public static var id:Int = 0; // Your Game ID
  public static var key:String = ''; // Your Game Private Key
}
  1. When you're about to upload the source code to GitHub, you must go first to the .gitignore file, this is where the ignored files are specified to GitHub for don't include them in commits, if you don't have one so create one, then add the directory of the GJKeys.hx file to it (this to make GitHub to don't upload that file). Example:
export/
.vscode/
APIStuff.hx
art/build_x32-officialrelease.bat
art/build_x64-officialrelease.bat
art/test_x64-debug-officialrelease.bat

## This is the file to add
source/gamejolt/GJKeys.hx

5.Go to the project.xml file and add the following line (this in order to make the GJ-related stuff you make in the mod to be toggled):

<define name="GAMEJOLT_ALLOWED" if="desktop" unless="ACHIEVEMENTS_ALLOWED" />
  1. Every time you insert a command from this in some part of your game, make sure its limited by the .xml conditional: #if GAMEJOLT_ALLOWED ... #end (cuz this client is made for computers only, and without the ACHIEVEMENTS_ALLOWED stuff getting in its way). Example:
#if GAMEJOLT_ALLOWED
import gamejolt.GJClient;
#end
  
class Example extends FlxUIState
{
  override function create()
  {
    super.create();

    #if GAMEJOLT_ALLOWED
    GJClient.initialize();
    #end
  }
}

Still have doubts about its use?

If you're still have questions about how to use this client correctly, you're free to talk to me by Twitter or Discord (GamerPablito#3132)

You can also check out my Youtube Channel, where I'll be uploading everything related to this project and more stuff :)

Special Thanks

  • EyeDaleHim : For suggest me about a better command for printing responses
  • MemeHoovy : For giving me a hand with clarification between this GameJolt Support and the one made by TentaRJ and Co.

gamejolt-adaptation-for-fnf-and-haxeflixel's People

Contributors

gamerpablito avatar wither362 avatar

Stargazers

 avatar

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.