Phaser 音频处理
拙风 2016-05-29 20:36:45 116
1声音的加载 vargame=newPhaser.Game(800,500,Phaser.AUTO,container,state);functionstate(){this.init=function(){game.scale.pageAlignHorizontally=true;//水平居中game.scale.pageAlignVertically=true;//垂直居中}this.preload=function()...
第二部分 显示对象(粒子 瓦片地图)
拙风 2016-05-29 09:39:06 83
1 粒子系统 效果 代码: vargame=newPhaser.Game(800,500,Phaser.AUTO,container,state);functionstate(){this.init=function(){game.scale.pageAlignHorizontally=true;//水平居中game.scale.pageAlignVertically=true;//垂直居中}this.pre...
第二部分 显示对象(文字动画)
拙风 2016-05-28 21:28:57 126
1 文字 vargame=newPhaser.Game(300,630,Phaser.AUTO,container,state);functionstate(){this.create=function(){vartext=game.add.text(0,0,你好\n世界);//vartext=game.add.text(X,Y,文字,样式,组);样式可以是对象形式{a:b;},也可以...
第二部分 显示对象(图片图形按钮精灵)
拙风 2016-05-27 17:30:58 143
Phaser 中的显示对象是我们构建绚丽多彩的游戏世界的基础,本笔记记录关于显示对象的学习。 首先:了解一下Phaser中的显示对象种类 然后:了解一下游戏运行流程 接下来,开始一个一...