Skip to content

Instantly share code, notes, and snippets.

@bassarisse
bassarisse / zwoptex-phaser.template
Created September 26, 2013 03:46
Template for Zwoptex for generating Phaser compatible JSON
{
"frames":
[
{% for sprite in spritesAndAliases %}{% if currentLoop.currentIndex > 0 %},{% /if %}
{
"filename": "{{ sprite.name }}",
"frame": {"x":{{ sprite.textureRectX }},"y":{{ sprite.textureRectY }},"w":{{ sprite.textureRectWidth }},"h":{{ sprite.textureRectHeight }}},
"rotated": {% if sprite.isRotated %}true{% else %}false{% /if %},
"trimmed": {% if sprite.isTrimmed %}true{% else %}false{% /if %},
@bassarisse
bassarisse / song-backup-abundant-music.js
Last active August 29, 2015 13:57
Song backup - abundant-music.com
/**
*
* UPDATE 2014-07-19: No longer works :-(
*
* This code enables you to backup ALL the settings from your song on
* abundant-music.com.
*
* This tool (which is awesome, btw) already offers preset saving
* functionality, but I prefer to save everything related to a song
* at once, mostly for the trouble of maintaining several presets, but
@bassarisse
bassarisse / patch.diff
Created August 23, 2014 19:43
cocos2d-html5 2.2.2 modification for CocoonJS
From b271f48c28604fde5b2562e2ecfd17aaaff0d74c Mon Sep 17 00:00:00 2001
From: Bruno Assarisse <bruno@assarisse.com.br>
Date: Sat, 21 Jun 2014 18:53:01 -0300
Subject: [PATCH] Modifications on cocos2d for CocoonJS.
---
cocos2d/core/platform/CCApplication.js | 97 +++++++++++++++++----------
cocos2d/core/platform/CCEGLView.js | 47 +++++++++----
cocos2d/core/platform/Sys.js | 2 +-
cocos2d/core/platform/miniFramework.js | 2 +-