免费素材网

免费素材网
http://www.aigei.com/game/

大图转小图
http://www.cocoachina.com/bbs/read.php?tid-297032.html

bmfont下载:
http://www.angelcode.com/products/bmfont/

许愿瓶:
许愿瓶h5游戏:http://easywith.com/portfolio_page/t-um-uall/

facebook:
switchGameAsync( )
请求客户端切换到另一个小游戏。切换失败时,API 将拒绝,否则客户端将加载新游戏。
FBInstant.switchGameAsync('12345678').catch(function (e) {
// Handle game change failure
});

quit( )
退出游戏。
示例
FBInstant.quit();

// creator震屏效果
// 参数:duration 震屏时间
    shakeEffect: function (duration) {
        this.node.runAction(
            cc.repeatForever(
                cc.sequence(
                    cc.moveTo(0.02, cc.p(5, 7)),
                    cc.moveTo(0.02, cc.p(-6, 7)),
                    cc.moveTo(0.02, cc.p(-13, 3)),
                    cc.moveTo(0.02, cc.p(3, -6)),
                    cc.moveTo(0.02, cc.p(-5, 5)),
                    cc.moveTo(0.02, cc.p(2, -8)),
                    cc.moveTo(0.02, cc.p(-8, -10)),
                    cc.moveTo(0.02, cc.p(3, 10)),
                    cc.moveTo(0.02, cc.p(0, 0))
                )
            )
        );

        setTimeout(() => {
            this.node.stopAllActions();
        }, duration*1000);
    },

你可能感兴趣的:(免费素材网)