headskeron.blogg.se

Staxel mods not loading
Staxel mods not loading










staxel mods not loading
  1. #Staxel mods not loading update#
  2. #Staxel mods not loading Patch#
  3. #Staxel mods not loading code#

Create a file within the same folder as the executable called "nfig" and fill it with the following to enable ui (and mini-game) debugging: Mini-games can be debugged via a Chrome debugger.

  • complete - True if the translations have been loaded.
  • This will be in the same order as the translation codes given to getTranslations.
  • translations - The resulting translation strings returned as an array.
  • False otherwise.Ī TranslationsFuture is an Object with two members:
  • complete - True if the image has finished loading.
  • element - The resulting image element loaded.
  • Called when the player releases the Right interface key/button.Īn ImageFuture is an Object with two members: Called when the player releases the Left interface key/button. Called when the player releases the Down interface key/button. Called when the player releases the Up interface key/button. Called when the player presses the Right interface key/button. Called when the player presses the Left interface key/button. Called when the player presses the Down interface key/button. Called when the player presses the Up interface key/button. Called when the player presses the Next interface key/button. Called when the player presses the Previous interface key/button. Called when the player presses the TabNext interface key/button. Called when the player presses the TabPrevious interface key/button. Called when the player presses the Accept interface key/button. Used externally and should not be used to pause a mini-game manually.
  • resume() - Called when Staxel gets resumed or if the player presses the Continue button in the pause menu.
  • pause() - Called when Staxel gets paused or if the player presses the Back interface key/button (Esc by default on keyboards).
  • #Staxel mods not loading update#

    Use this function to update mini-game logic and render to the canvas. Gets called as often as possible (approximately 60 times per second). update() - Called when Staxel is ready to render a frame for the mini-game.Use this function to clean up any resources. stop() - Called during a call to exit().Use this to initialise any required state. start() - Called when the game is ready to start.Return "pixelated" for pixelated rendering, or an empty string to default rendering. renderingType() - Called before the call to start().The following members must be defined (or may be optional): Also called automatically if the mini-game needs to be closed externally. exit() - Call this function if you would like to close the mini-game.Returns a future Object that can be used to get the resulting translations. getTranslations(codes) - Loads translations from the Staxel Client specified by their codes from codes (String Array).Returns a future Object that can be used to get the resulting image. width and height specify the size of the image. loadImage(imagePath, width, height) - Loads an image from disk specified by imagePath (String), or from the cache if available.playSound(soundCode) - Plays a sound specified by soundCode (String).defaultFontSize - The current font size in use by the current language.Defaults to "Arial" if no font is currently in use. defaultFont - The current font name in use by the current language.canvas - The canvas element used to render to.The following members are initialised automatically and can be used immediately: Additionally, if an icon was specified, an image should be added as well.Īll API functions are called from an object that must be named MiniGameHandler. In this example, the file should be called "myMiniGame.js" inside the "mods/myMod" folder.

    #Staxel mods not loading Patch#

    Once the patch file is created the game itself can be added to the source file mentioned in "gameSource" above. the miniGamesList from nfig will be merged with our one here "file": "nfig", // name of the file to "patch"

    staxel mods not loading

    patch file with contents similar to the following: To add your own mini-game without modifying nfig (recommended for public mods), first, create a. png image that will be displayed in the mini-game selection list.

  • icon - (optional) The local path to a.
  • #Staxel mods not loading code#

    js file containing the source code for the mini-game. code - The code used to refer to a particular mini-game.All mini-games are referenced through the nfig file located in the root content folder.












    Staxel mods not loading