在线版的超级马里奥 Super Mario HTML5

原本是在csdn资源找个代码学习的,无奈下载了几份都是垃圾代码(下载了几份都是)

废话不多说,直接上干活。代码、音效、图片、样式都包含

html 复制代码
<!doctype html>
<html>
<head>
<meta charset=utf-8 />
<title>Super Mario HTML5 Test</title>
<link href="Content/style.css" rel="stylesheet" />
</head>
<body>
<div id="game">
<div id="world">
</div>
<div id="coinNumber" class="gauge">0</div>
<div id="coin" class="gaugeSprite"></div>
<div id="liveNumber" class="gauge">0</div>
<div id="live" class="gaugeSprite"></div>
</div>
<script>window.jQuery || document.write('<script src="Scripts/jquery.js"><\/script>')</script>
<script src="Scripts/testlevels.js"></script>
<script src="Scripts/oop.js"></script>
<script src="Scripts/keys.js"></script>
<script src="Scripts/constants.js"></script>
<script src="Scripts/sounds.js"></script>
<script src="Scripts/main.js"></script>
<!-- Game Musik -->
<audio id="GameMusic" preload="auto" autoplay loop>
    <source src="audio/Overworld.ogg" type="audio/ogg" />
</audio>
</body>
</html>

代码下载链接:https://download.csdn.net/download/mawendong/89053157

代码也是从Github上下载大神的

相关推荐
nuIl2 分钟前
实现一个 Coding Agent(4):ReAct 循环
前端·agent·cursor
nuIl3 分钟前
实现一个 Coding Agent(1):一次 LLM 调用
前端·agent·cursor
nuIl3 分钟前
实现一个 Coding Agent(2):让 LLM 流式响应
前端·agent·cursor
copyer_xyf5 分钟前
Python 异常处理
前端·后端·python
sugar__salt12 分钟前
从栈队列数据结构到JS原型面向对象全解
前端·javascript·数据结构
独特的螺狮粉24 分钟前
篮球集训班器具管理系统 - 鸿蒙PC Electron框架完整技术实现指南
前端·javascript·华为·electron·前端框架·开源·鸿蒙
pusheng202525 分钟前
IFSJ全英文专访:中国创新力量重塑先进气体感知技术,赋能全球关键基础设施安全
前端·网络·人工智能·物联网·安全
AI_零食1 小时前
番茄钟鸿蒙PC Electron框架完成:状态机、定时器管理与专注力工具设计
前端·javascript·华为·electron·开源·鸿蒙·鸿蒙系统
提子拌饭1331 小时前
逛三园游戏——基于鸿蒙PC Electron框架实现
前端·javascript·游戏·华为·electron·鸿蒙
llz_1121 小时前
web-第三次课后作业
前端·后端·web