HTML5 画布游戏无法在 IE 中运行

发布于 2024-11-19 04:16:07 字数 710 浏览 4 评论 0原文

我正在使用名为 Propulsionjs.com 的 JavaScript 库开发 HTML5 画布游戏。可以在此处查看预览:http://druls.com/balloon/。为了在 IE 中启用画布元素,我添加了一些库,例如 extcanvas,但游戏的某些部分仍然无法正常工作。

<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<script type="text/javascript" src="excanvas.js"></script>

有人可以帮我吗?我发现精灵元素不起作用。谁能帮我解决这个问题?源代码在这里:http://druls.com/balloon/balloons.zip

I'm working on a HTML5 canvas game using a JavaScript library called Propulsionjs.com. The preview can be seen here: http://druls.com/balloon/. To enable the canvas element in IE I have included a few of libraries like extcanvas, still some part of the game is not working properly.

<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<script type="text/javascript" src="excanvas.js"></script>

Can anyone help me out? As I found out sprite elements are not working. Can anyone help me solving this issue? The source code here: http://druls.com/balloon/balloons.zip.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

随遇而安 2024-11-26 04:16:07

因为第 1567 行: value.call(value,value);

value 未定义,IE9 正在停止执行。

Because on line 1567: value.call(value,value);

value is undefined and IE9 is stopping execution.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文