Skip to content

Instantly share code, notes, and snippets.

@bassarisse
bassarisse / patch.diff
Created Aug 23, 2014
cocos2d-html5 2.2.2 modification for CocoonJS
View patch.diff
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 +-
@bassarisse
bassarisse / song-backup-abundant-music.js
Last active Aug 29, 2015
Song backup - abundant-music.com
View song-backup-abundant-music.js
/**
*
* 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 / zwoptex-phaser.template
Created Sep 26, 2013
Template for Zwoptex for generating Phaser compatible JSON
View zwoptex-phaser.template
{
"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 %},
You can’t perform that action at this time.