I hereby claim:
- I am shchvova on github.
- I am svoka (https://keybase.io/svoka) on keybase.
- I have a public key whose fingerprint is 9002 70DF 210E EB06 EE2B BE9D 5181 234B 6659 167C
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
settings = | |
{ | |
orientation = | |
{ | |
default = "portrait", | |
supported = { "portrait", "landscapeLeft", "landscapeRight", "portraitUpsideDown" } | |
}, | |
iphone = | |
{ | |
xcassets = "Images.xcassets", |
display.setStatusBar( display.HiddenStatusBar ) | |
local effect = { | |
language = "glsl", | |
category = "filter", | |
name = "graphDemo", | |
graph = | |
{ | |
nodes = { |
local iCloud = require "plugin.iCloud" | |
local json = require "json" | |
local composer = require( "composer" ) | |
local widget = require( "widget" ) | |
local scene = composer.newScene() | |
local FocusEngine = require( "FocusEngine" ) | |
local focusEngineObjects = {} |
-- | |
-- For more information on build.settings, see the Project Build Settings guide at: | |
-- https://docs.coronalabs.com/guide/distribution/buildSettings | |
-- | |
settings = | |
{ | |
orientation = | |
{ | |
-- Supported values for orientation: |
cmake_minimum_required(VERSION 2.8.4) | |
project(clue) | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") | |
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin/") | |
include("lua.cmake") | |
set(SOURCE_FILES main.cpp) | |
add_executable(clue ${SOURCE_FILES}) |
-- this code will introduce global function BenchmarkFPS | |
-- which would print out some statistics collected over 5 seconds | |
function BenchmarkFPS(duration, skip) | |
duration = duration or 5000 | |
skip = skip or 500 | |
local function mean( t ) | |
local sum , count = 0, 0 | |
for _,v in pairs(t) do | |
sum = sum + v | |
count = count + 1 |
#import "PluginMessages.h" | |
#include "CoronaRuntime.h" | |
#import <UIKit/UIKit.h> | |
#import <MessageUI/MessageUI.h> | |
class PluginMessages; |
Atlas.lua
introduces spine.Atlas.parse(atlasPath, baseDir)
funciton. This function can be use across Lua runtimes to implement their their own image sheet bindings. It will return Array of Page
s or nil
if error.
name
- filename of the page ("raptor.png"
)size
- dimmensions of original image ([1022,1022]
)format
- texture format ("RGBA8888"
)Loading images from Spine atlases instead of separate files.
Add spine-atlas-loader.lua
so you can require
it, and use as shown in spineboy-demo-atlas.lua
.
Make sure that directory has spineboy.json
, spineboy.atlas
and all spineboy.png
.
So far only basic features are supported. Cropped sheets aren't supported.
Update: this version requires at least 2016.2892