I'm learning to build a game using a Javascript library called propulsionjs.
(我正在学习使用名为propulsionjs的Javascript库构建游戏。)
(可以在http://www.propulsionjs.com/demos/balloons/game.html上访问演示游戏。)
(实际上,只要页面加载到浏览器中,游戏就会自动开始。)
(我想手动开始。)
(谁能帮我吗?)
(此处提供了游戏的工作代码: http : //pastie.org/2095519)
I think you can just remove the line at the end that says
(我认为您可以删除最后一行)
loop.room = rm.play;
and bind it to some button to start a new game
(并将其绑定到某个按钮以开始新游戏)
1.4m articles
1.4m replys
5 comments
57.0k users