GitXplorerGitXplorer
E

inari

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
e114ca376868ebfde084a9036e170a42788903f7

Version 0.0.0

EEnet4 committed 4 months ago
Unverified
8ff681032108cdc2ef97fdaafab35cc3e9839263

Extend definitions

EEnet4 committed 4 months ago
Unverified
5d236398a63e7d10db657caf01230001b9ce8c12

1

EEnet4 committed 4 months ago

README

The README file for this repository.

Inari API (Lua Addon)

This is the Lua specification of Inari API, the Lua interface for writing minigames for Kitsune Tails.

Coupling this with a Lua Language Server will automatically grant you auto-complete, information about global declarations, and type checking against the API.

Screenshot from Visual Studio Code: auto-complete of sprite types Screenshot from Visual Studio Code: auto-complete of global function names Screenshot from Visual Studio Code: presentation of drawtext function signature

How to use

  1. Install a Lua Language Server to your IDE of preference. For Visual Studio Code, install the Lua extension.

  2. Checkout this repo to some place, e.g. /home/to/my/lua-addons/.

  3. In your minigame project (e.g. at KitsuneTails/scripts/myminigame/), add a .luarc.json file which includes the addon and the globals:

    {
       "$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
       "Lua.workspace.userThirdParty": [
          "/home/to/my/lua-addons"
       ],
       "Lua.workspace.library": [
          "/home/to/my/lua-addons/inari"
       ],
       "Lua.diagnostics.globals": [
          "accept",
          "cancel",
          "init",
          "loadresources",
          "menu3",
          "navigate",
          "render",
          "update"
       ]
    }

Alternatively, you can copy config.json and library to your minigame project directly (e.g. you would have KitsuneTails/scripts/myminigame/config.json and KitsuneTails/scripts/myminigame/library/inari.lua). The former approach is a bit cleaner because you do not have to replicate library and config.json on every new minigame.

Attribution and Licensing

This work is licensed under CC BY-NC 4.0 . Permission is granted to use, distribute, and make further adaptations for non-commercial purposes, retaining the reference to the repository of origin.

This work was derived from the Inari API documentation by Kitsune Games LLC, with permission.