Solar2D Template

Project Template

you can check out App/book folder from github instead of using Kwik UXP plugin to publish a book folder.

// TODO github url

The checked out book folder has page1 folder without any *.lua nor image files. If you want to rename the page name, just use Finder or File Explorerer, and change the table value in index.lua

  • assets/images/page1

  • commands/page1

  • components/page1

  • index.lua

    local scenes = {"page1"}
    return scenes
  • components/page1/index.lua

    empty layers

    local sceneName = ...
      --
      local scene = require('controller.scene').new(sceneName, {
          components = {
            layers = {},
            audios = {
                long={ },
                short={ }
            },
            groups = { },
            timers = { },
            variables = { },
            page = { }
          },
          commands = { },
          onInit = function(scene) print("onInit") end
      })
      --
      return scene