开发者

Integrate jQuery plugin with LimeJS game engine

I'm using the HTML5 game engine LimeJS and want to integrate a jQuery plugin for an isometric map. I added the tutorial script to a simple LimeJS program and there seems to be a conflict between LimeJS and jQuery. Both appear fine on the page, but the Lime script loses all interactivity when jQuery is included in the header.

Iso map plugin tutorial: http://www.pixel2life.com/publish/tutorials/1298/browsergames_creating_a_basic_isometric_map/page-1/

Directory of my files (look at source of HTML fi开发者_开发问答les - lime isn't installed on server so not functioning): http://notlaura.com/limefiles/

Thanks in advance


Have you tried to run jQuery in noConflict mode and create an own scope for jQuery' s $ variable?

Query.noConflict();
(function($) { 
  $(function() {
    // more code using $ as alias to jQuery
  });
})(jQuery);
// other code using $ as an alias to the other library

Full documentation is here jQuery.noConflict()

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜