2 Star 0 Fork 0

A新/Cocos2dx-Html

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.html 3.23 KB
一键复制 编辑 原始数据 按行查看 历史
A新 提交于 2014-06-19 16:19 . 添加了一些修改
<!DOCTYPE HTML>
<html>
<head>
<title>Cocos2d-HTML5</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="icon"
type="image/GIF"
href="samples/tests/res/Images/favicon.ico"/>
<link href='http://fonts.googleapis.com/css?family=Nunito:700,300' rel='stylesheet' type='text/css'>
<style type="text/css">
body {
margin: 0;
padding: 0 20px;
font-family: 'Nunito', sans-serif;
font-weight: 300;
}
H1 {
font-size: 68px;
font-weight: 700;
background: -webkit-gradient(linear, left top, left bottom, from(#29c9e2), to(#115e8b));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-family: impact;
}
ol {
font-size: 18px;
}
a:visited {
color: #2c4676;
}
a {
color: #1c8eb2;
}
a:hover {
color: #29c9e2;
}
.comment {
color: #4b4b4b;
}
</style>
</head>
<body style="background: #f2f6f8;">
<h1><a href="index.html"><img src="samples/tests/res/Images/cocos2dbanner.png"/></a>
</h1>
<hr/>
<ol>
<li><a href="HelloHTML5World/index.html">Hello World</a> <span
class="comment"> - Hello World for Cocos2d-HTML5</span></li>
<li><a href="samples/tests/index.html">Test cases</a> <span class="comment"> - Engine Testcases</span></li>
<li><a href="template/index.html">Template</a> <span class="comment"> - Cocos2d-html5 Template</span></li>
<li><a href="samples/games/MoonWarriors/index.html">MoonWarriors</a> <span class="comment"> - Game</span></li>
<li><a href="samples/games/FruitAttack/index.html">Fruit Attack</a> <span class="comment"> - Game</span></li>
<li><a href="samples/games/MoonWarriors/simulator.html">MoonWarriors Simulator</a> <span class="comment"> - Game runs on simulator</span></li>
</ol>
<hr/>
<h2>Note</h2>
<div style="width:800px">
<p>I am A_xin.I went to program game,use my mind!Yes I am While games written with Cocos2d-html5 should work offline, but some browsers won't allow this to happen.
Browsers that deny access to certain functions such as XMLHttpRequest that fails for "file:// " protocol, but
Cocos2d-html5 engine depend on this to read many files such as a .plist file.</p>
<p>Some versions of Firefox, Safari and Opera are notable exceptions.</p>
<p>If you wish to use other browsers, you need a webserver. It doesn't mean a seperate computer, you can download a
free webserver program to your computer. Here is some popular webserver program:
<ul>
<li><a href="http://www.apachefriends.org/en/xampp.html">XAMPP</a>: for windows, Mac, Linux</li>
<li><a href="http://www.wampserver.com/en/">WAMP</a>: for windows</li>
<li><a href="http://www.mamp.info/en/index.html">MAMP</a>: for Mac</li>
</ul>
Once you install a webserver, go to your installation directory, there should be a directory called "htdocs" or
"www", place Cocos2d-html5 files in there. Then point your browser to http://localhost/.</p>
<p>Cocos2d-html5 should now work without any errors</p>
</div>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/zhoutanxin/Cocos2dx-Html.git
git@gitee.com:zhoutanxin/Cocos2dx-Html.git
zhoutanxin
Cocos2dx-Html
Cocos2dx-Html
master

搜索帮助