You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.7 KiB
40 lines
1.7 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.2/p5.min.js" type="text/javascript"></script>
|
|
<script src="https://code.jquery.com/jquery-3.3.1.min.js" type="text/javascript"></script>
|
|
<script src="scripts/lib/BenjoLibrary.js" type="text/javascript"></script>
|
|
<script src="scripts/sketch.js" type="text/javascript"></script>
|
|
<script src="scripts/Cloud.js" type="text/javascript"></script>
|
|
<script src="scripts/Tree.js" type="text/javascript"></script>
|
|
<script src="scripts/Bird.js" type="text/javascript"></script>
|
|
<link href="styles.css" rel="stylesheet">
|
|
<title>2D Openworld</title>
|
|
</head>
|
|
<body>
|
|
<!-- Hide <a> and <input> -->
|
|
<a download="worldData.json" href="#" id="saveLink"></a>
|
|
<input id="fileBrowser" onchange="uploadWorld()" type="file"/>
|
|
|
|
<button id="createWorld" onclick="createWorld()">Neue Welt erstellen</button>
|
|
<button id="restoreWorld" onclick="$('#fileBrowser')[0].click()">Welt mit Datei wiederherstellen</button>
|
|
|
|
<button id="toolBarOpener" onclick="toggleToolBar(this)"></button>
|
|
<div id="toolBar">
|
|
<button class="toolBarEntry" id="downloadButton" onclick="downloadWorld()">⤓</button>
|
|
<button class="toolBarEntry" id="uploadButton" onclick="$('#fileBrowser')[0].click()">⤒</button>
|
|
<button class="toolBarEntry" id="pauseButton" onclick="togglePause(this)">||</button>
|
|
<button class="toolBarEntry" id="infoButton" onclick="toggleInfo()">i</button>
|
|
</div>
|
|
|
|
<div id="infoWrapper">
|
|
<div id="info">
|
|
<p>
|
|
//Hier stehen irgendwann mal Infos
|
|
</p>
|
|
<center><button onclick="toggleInfo()">OK</button></center>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |