My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
BejewelGame  
這是以javascript搭配jquery寫出來的寶石方塊遊戲
Featured
Updated Dec 30, 2011 by rexkimta

遊戲方法

進行遊戲的方法分為三種:

  • 下載全部三個檔案,再由瀏覽器開啟html檔執行。
  • 嵌入html到您的網站。
  • 也可以到我的網誌去玩!
  • 上面的因為換了網誌的範本而不能用,請到我的jsfiddle來玩。

嵌入html

將以下html code複製貼上到</head>之前

<link rel="stylesheet" type="text/css" href="http://jquerybejewel.googlecode.com/svn/trunk/jewel.css"" />
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.3.2");
google.load("jqueryui", "1.7.2");
</script>

並將以下的html code貼到<body></body>之間,任何您想要遊戲畫面出現的地方:

<div id="gamearea"></div>
<div id="msg"></div>
<script type="http://jquerybejewel.googlecode.com/svn/trunk/jewel.js"></script>

最後用瀏覽器打開以上html所在的頁面即可進行遊戲。

關於compiled js

用google closure compiler編的。不過不知道為什麼不能用。


Sign in to add a comment
Powered by Google Project Hosting