我正在用 javascript 编写游戏,我的世界生成器运行良好,但是当我创建一个启动函数来一次运行多个东西时,我的代码根本不再运行。谁能看到我的问题?
<head>
<title>Project Rust</title>
<!-- <link href="/YOUR_PATH/favicon.ico" rel="icon" type="image/x-icon" /> -->
<script src="Scripts/startup.js"></script>
<script src="Scripts/drawmap.js"></script>
<script src="Scripts/maps.js"></script>
<script src="Scripts/mapread.js"></script>
<script src="Scripts/mainchar.js"></script>
</head>
<body bgcolor="#BFE3FF" onload="startup()">
</body>
启动.js:
startup(){
alert("start");
drawmap(Screen[0]);
mainchar();
}