Place SVG in card definitions and load from those
This commit is contained in:
parent
fe0ec3a2c7
commit
ff787f7e64
5 changed files with 63 additions and 61 deletions
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
function Card_Shield (sym, value, type, name = 'Unknown') {
|
||||
Card.call(this, sym, value, type, name)
|
||||
function Card_Shield (sym, value, type, name = 'Unknown', svg = '') {
|
||||
Card.call(this, sym, value, type, name, svg)
|
||||
|
||||
this.touch = function () {
|
||||
if (this.is_flipped == true) { console.log('Card is already flipped'); return }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue