Files
cocos/web-template/index.html
刘宇飞 cba5105908 Initial Cocos Creator port of main-site Unity WebGL game.
Includes core gameplay, 600 exported levels, visual assets, web bridge, and bootstrap scene.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-22 14:57:46 +08:00

25 lines
922 B
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<title>主站 Cocos Web</title>
<style>
html, body { margin: 0; padding: 0; height: 100%; background: #1a1a2e; }
#GameDiv { width: 100%; height: 100%; }
#bar { color: #fff; font-family: sans-serif; padding: 8px; }
</style>
</head>
<body>
<div id="bar">加载中…</div>
<div id="GameDiv"></div>
<script>
function processData(json) { console.log('processData', JSON.parse(json)); }
function processVehicleData(json) { console.log('processVehicleData', JSON.parse(json)); }
function externalResult(json) { console.log('externalResult', JSON.parse(json)); }
function externalLevelInfo(json) { console.log('externalLevelInfo', JSON.parse(json)); }
function coinsData(json) { console.log('coinsData', JSON.parse(json)); }
</script>
<!-- 构建后将 Cocos 生成的 index.js 引入此页 -->
</body>
</html>