began fight system
This commit is contained in:
13
index.html
13
index.html
@@ -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>)
|
||||
|
||||
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>
|
||||
|
Reference in New Issue
Block a user