Skip to content

Instantly share code, notes, and snippets.

View Shchvova's full-sized avatar

Vlad Svoka Shchvova

View GitHub Profile
@Shchvova
Shchvova / keybase.md
Created August 15, 2018 14:47
keybase.md

Keybase proof

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:

@Shchvova
Shchvova / build.settings
Created November 13, 2017 15:32
safe area demo
settings =
{
orientation =
{
default = "portrait",
supported = { "portrait", "landscapeLeft", "landscapeRight", "portraitUpsideDown" }
},
iphone =
{
xcassets = "Images.xcassets",
@Shchvova
Shchvova / main.lua
Created September 8, 2017 18:06
Graph Filter Demo
display.setStatusBar( display.HiddenStatusBar )
local effect = {
language = "glsl",
category = "filter",
name = "graphDemo",
graph =
{
nodes = {
@Shchvova
Shchvova / CloudKit.lua
Created October 5, 2016 15:17
iCloud sample
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 = {}
@Shchvova
Shchvova / build.settings
Last active August 15, 2017 16:37
Corona Batching
--
-- 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:
@Shchvova
Shchvova / CMakeLists.txt
Last active January 3, 2017 04:49
Simple Lua + C++ template
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})
@Shchvova
Shchvova / mail.lua
Last active July 14, 2016 17:30
Corona FPS Benchmark
-- 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;
@Shchvova
Shchvova / Atlas.md
Created June 23, 2016 15:14
Atlas spine-runtime documentation.

Documentation:

Lua runtime: spine.Atlas.parse

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 Pages or nil if error.

Page properties:

  • name - filename of the page ("raptor.png")
  • size - dimmensions of original image ([1022,1022])
  • format - texture format ("RGBA8888")
@Shchvova
Shchvova / Readme.md
Last active June 6, 2016 01:45
Loading Spine atlases into Corona

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