随笔 - 60  文章 - 5  trackbacks - 0
<2011年4月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

常用链接

留言簿(2)

随笔分类(42)

随笔档案(60)

文章档案(2)

我收藏的博客

搜索

  •  

最新评论

阅读排行榜

评论排行榜

研究一下google pacman的代码
https://github.com/macek/google_pacman
insertCoin()投币,开始初始化游戏
newGame(),初始化单人游戏。
  g.newGame = function () {
    g.playerCount = 1;//玩家数
    g.createChrome();
    g.createPlayfield();//创建地图
    g.createActors();//创建玩家
    g.startGameplay()
  };

g.keyPressed//键盘响应函数
posted on 2011-04-17 08:37 黄剑父 阅读(1677) 评论(0)  编辑 收藏 引用 所属分类: html5

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理