Skip to content

Instantly share code, notes, and snippets.

View vsergeyev's full-sized avatar
🏠
Working from home

Vova Sergeyev vsergeyev

🏠
Working from home
View GitHub Profile
@vsergeyev
vsergeyev / modal.lua
Created February 25, 2012 22:08
Modal dialog module to use with Corona SDK
-----------------------------------------------------------------------------------------
--
-- modal.lua
--
-- Modal dialog for Corona SDK
-- V. Sergeyev
--
-- Usage:
-- showDialog("You completed the level. \n1st place.", "Next level", "level2", beforeNext)
--
@vsergeyev
vsergeyev / gist:1875375
Created February 21, 2012 09:20
Multitouch handler for "Chpok!" iOS game
this.addEventListener('touchstart', function(e) {
for(var i in e.touches) {
var touch = e.touches[i];
var node = touch.target;
if (node.className == 'bubble') {
node.className = 'bubble done';
PhoneGap.exec("SoundPlug.play", "sound.m4a");
}
}