-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
62 lines (57 loc) · 2.06 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
61
62
<!DOCTYPE html>
<html lang="pr-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" type="image/png" href="./favicon.png"/>
<script src="https://unpkg.com/vue"></script>
<title>Matador de Monstro</title>
</head>
<body>
<div id="app">
<div class="container">
<h2 class="center">Matador de Monstro</h2>
<div class="box box-players">
<div class="player">
<h3>Jogador</h3>
<div class="progress-bar">
<div class="progress" :style='healthStylePlayer'></div>
</div>
{{ currentPlayerLife }}%
</div>
<div class="player">
<h3>Monstro</h3>
<div class="progress-bar">
<div class="progress" :style='healthStyleMonster'></div>
</div>
{{ currentMonsterLife }}%
</div>
</div>
<div class="box box-winner" v-show="hasWinner">
<div class="green" v-if="winner == 'player'">Você Ganhou!!</div>
<div class="red" v-else-if="winner == 'monster'">Você Perdeu!!</div>
<div v-else>Empate!!</div>
</div>
<div class="box box-actions">
<template v-if="!playing">
<button class="btn btn-primary" @click="startGame">INICIAR JOGO</button>
</template>
<template v-else>
<button class="btn btn-danger" @click="attack(false)">ATAQUE</button>
<button class="btn btn-warning" @click="attack(true)">ATAQUE ESPECIAL</button>
<button class="btn btn-success" @click="heal" :disabled="disable">CURAR</button>
<button class="btn btn-default" @click="playing = false">DESISTIR</button>
</template>
</div>
<div class="box box-logs">
<template v-for="log in actionsLogs">
<div class="alert alert-primary">{{ log.playerAttack }}</div>
<div class="alert alert-danger">{{ log.monsterAttack }}</div>
</template>
</div>
</div>
</div>
<script src="app.js"></script>
</body>
</html>