began fight system

This commit is contained in:
Yannik
2023-06-23 00:31:51 +02:00
parent 36a3fd54a8
commit 0dd2675c91
5 changed files with 89 additions and 4 deletions

View File

@@ -11,7 +11,7 @@
</head>
<body onpageshow="load()">
<div id="bubble" onclick="nextDlg()">
<div class="box" id="bubble" onclick="nextDlg()">
<p id="title"></p>
<p id="dlg-text"></p>
</div>
@@ -21,6 +21,17 @@
<p class="answer" id="2" onclick="answered(this.id)"></p>
<p class="answer" id="3" onclick="answered(this.id)"></p>
</div>
<div hidden="true" class="box" id="fight">
<img id="enemy-texture"><br>
<p><span id="enemy-name"></span> Leben: <span id="enemy-health"></span></p>
<img onclick="fight()" src="text_horror\assets\sword.png" width="100px">
<br><br><br>
<p><span id="weapon"></span>
(<span id="weapon-damage"></span>)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Leben:<span id="health"></span>
</p>
</div>
<img draggable="false" hidden="true" id="triangle" src="text_horror/assets/triangle.png">
<p class="thx-for-playing">Danke fürs spielen!</p>
</body>