Feast 2.0!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

67 lines
1.1 KiB

  1. <template>
  2. <div class="hello">
  3. <h1>VORE TIME</h1>
  4. <p>
  5. {{ meme }}
  6. </p>
  7. <button v-on:click="dab">VORE</button>
  8. </div>
  9. </template>
  10. <script lang="ts">
  11. import { Component, Prop, Vue, Watch, Emit } from 'vue-property-decorator'
  12. import { Creature } from '@/game/entity'
  13. import { Wolf } from '@/game/creatures/wolf'
  14. /// <reference path="game/feast.ts" />
  15. /// <reference path="game/creatures.ts" />
  16. @Component
  17. export default class HelloWorld extends Vue {
  18. @Prop() private msg!: string;
  19. @Prop() public seen!: boolean;
  20. private player: Creature;
  21. private enemy: Creature;
  22. private meme = 'hm';
  23. mounted () {
  24. this.meme = 'Yeet'
  25. }
  26. @Emit()
  27. dab () {
  28. this.meme = 'Yeeeeet'
  29. }
  30. @Watch('meme')
  31. onPropertyChanged (value: string, oldValue: string) {
  32. this.msg = value + oldValue
  33. }
  34. constructor () {
  35. super()
  36. this.player = new Wolf()
  37. this.enemy = new Wolf()
  38. }
  39. }
  40. </script>
  41. <!-- Add "scoped" attribute to limit CSS to this component only -->
  42. <style scoped>
  43. h3 {
  44. margin: 40px 0 0;
  45. }
  46. ul {
  47. list-style-type: none;
  48. padding: 0;
  49. }
  50. li {
  51. display: inline-block;
  52. margin: 0 10px;
  53. }
  54. a {
  55. color: #42b983;
  56. }
  57. </style>