Advertisement
Guest User

vue monster

a guest
Jul 19th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.79 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title>Monster Slayer</title>
  5.     <script src="https://npmcdn.com/vue/dist/vue.js"></script>
  6.     <script src="myscripts.Vue"></script>
  7.     <link rel="stylesheet" href="css/foundation.min.css">
  8.     <link rel="stylesheet" href="css/app.css">
  9. </head>
  10. <body>
  11. <div id="app">
  12.     <section class="row">
  13.         <div class="small-6 columns">
  14.             <h1 class="text-center">YOU</h1>
  15.             <div class="healthbar">
  16.                 <div class="healthbar text-center" style="background-color: green; margin: 0; color: white;">
  17.                     {{ playerHealth }}
  18.                 </div>
  19.             </div>
  20.         </div>
  21.         <div class="small-6 columns">
  22.             <h1 class="text-center">MONSTER</h1>
  23.             <div class="healthbar">
  24.                 <div class="healthbar text-center" style="background-color: green; margin: 0; color: white;">
  25.  
  26.                 </div>
  27.             </div>
  28.         </div>
  29.     </section>
  30.     <section class="row controls">
  31.         <div class="small-12 columns">
  32.             <button id="start-game">START NEW GAME</button>
  33.         </div>
  34.     </section>
  35.     <section class="row controls">
  36.         <div class="small-12 columns">
  37.             <button id="attack">ATTACK</button>
  38.             <button id="special-attack">SPECIAL ATTACK</button>
  39.             <button id="heal">HEAL</button>
  40.             <button id="give-up">GIVE UP</button>
  41.         </div>
  42.     </section>
  43.     <section class="row log">
  44.         <div class="small-12 columns">
  45.             <ul>
  46.                 <li>
  47.  
  48.                 </li>
  49.             </ul>
  50.         </div>
  51.     </section>
  52. </div>
  53. </body>
  54. </html>
  55.  
  56.  
  57.  
  58. new Vue({
  59.    el: "#app",
  60.    data: {
  61.        playerHealth: 100,
  62.        monsterHealth: 100,
  63.        gameIsRunning: false,
  64.    }
  65. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement