Phaser.js开发-星星狗游戏(上)
星星狗PS(个人兴趣爱好,不是游戏开发专业,不喜勿喷), 转载请命名出处: http://my.oschina.net/8946a/blog/edit/738388 试玩下载地址 : http://git.oschina.net/8946a/star_dog 简单介绍下写的小玩意儿,游戏世界有碰撞,刚体,摩擦,重力,阻力,速度,加速度,分数统计等,操作简单,玩家控制单身狗键盘可以上下左右控制,吃星星+10分, 吃钻石+20分,碰撞到敌人时候会死亡。就像这样 。。。。 我是故意碰到敌人的,为了给大家演示结果、 当吃掉所有的星星与钻石会这样 麻雀虽小,五脏俱全,今天就跟大家一起聊聊这个游戏是怎么写的 具体怎么搭建环境,我就不墨迹了。在上个博客“开发愤怒的小鸟里面有提到” 直接上代码 <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="Generator" content="EditPlus®"> <meta name="Author" content=""> <meta name="Keywords" content=""> <meta name="Description" content=""> <title>星星狗</title> <script src="js/phaser.min