-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
60 lines (57 loc) · 2.07 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE html>
<html>
<head>
<title>Canavar Avı</title>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<link rel="stylesheet" href="css/foundation.min.css">
<link rel="stylesheet" href="css/app.css">
</head>
<body>
<div id="app">
<section class="row">
<div class="small-6 columns">
<h1 class="text-center">SEN</h1>
<div class="healthbar" :style="[platerHealthBar]">
<div class="healthbar text-center" style="background-color: green; margin: 0; color: white;">
{{player_heal}}
</div>
</div>
</div>
<div class="small-6 columns">
<h1 class="text-center">CANAVAR</h1>
<div class="healthbar" :style="[monsterHealthBar]">
<div class="healthbar text-center" style="background-color: green; margin: 0; color: white;">
{{monster_heal}}
</div>
</div>
</div>
</section>
<section class="row controls" v-show="!is_game_started">
<div class="small-12 columns">
<button id="start-game" @click="start_game">YENİ OYUN</button>
</div>
</section>
<section class="row controls" v-show="is_game_started">
<div class="small-12 columns">
<button id="attack" @click="attack">SALDIRI</button>
<button id="special-attack" @click="special_attack">ÖZEL SALDIRI</button>
<button id="heal" @click="health_up">İLK YARDIM</button>
<button id="give-up" @click="give_up">PES ET!</button>
</div>
</section>
<section class="row log" v-show="is_game_started">
<div class="small-12 columns">
<ul v-for="(text,index) in console_log">
<li v-if="index%2==1" :style="[playerClass]">
{{text}}
</li>
<li v-if="index%2==0" :style="[monsterClass]">
{{text}}
</li>
</ul>
</div>
</section>
</div>
<script src="app.js"></script>
</body>
</html>