diff --git a/public/img/mascot/defeated.svg b/public/img/mascot/defeated.svg deleted file mode 100644 index 5779833..0000000 --- a/public/img/mascot/defeated.svg +++ /dev/null @@ -1,324 +0,0 @@ - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public/img/mascot/pointing.svg b/public/img/mascot/pointing.svg deleted file mode 100644 index a82f434..0000000 --- a/public/img/mascot/pointing.svg +++ /dev/null @@ -1,308 +0,0 @@ - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/views/Home.vue b/src/views/Home.vue index f0737a5..4a6ef4b 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -274,14 +274,24 @@ }, data () { + // TODO: need to resize some of them + var array = [ + 'mascot/default.png', + 'mascot/arguing.png', + 'mascot/defeated.png', + 'mascot/oh.png', + 'mascot/happy.png', + 'mascot/pointing.png' + ] + for (let i = array.length - 1; i > 0; i--) { + const j = Math.floor(Math.random() * i) + const temp = array[i] + array[i] = array[j] + array[j] = temp + } return { - mascotPaths: [ - 'mascot/default.png', - 'mascot/arguing.png', - 'mascot/oh.png', - 'mascot/happy.png' - ], - currentMascot: Math.floor(Math.random() * 4) + mascotPaths: array, + currentMascot: 0 } },