Card Decks with images? #31
Replies: 5 comments 10 replies
-
Neat idea!
As for picking the cards, the logic could be similar to the shortcut-file "notepick", specifically the "notepick pickFromFolder" shortcut. Edit: I just updated the "notepick" shortcut-file so that it could be used for randomly picking collections of files of ANY file type, not just notes. This means that you could use "notepick" to randomly pick from a folder of card images. |
Beta Was this translation helpful? Give feedback.
-
I just pushed a release that includes shortcuts to do this. It's included in the library as "cards.sfile". You can check out the tutorial video here. |
Beta Was this translation helpful? Give feedback.
-
Hey, sorry. I forgot to switch the branch over on github before. They should be up now. |
Beta Was this translation helpful? Give feedback.
-
Is there any chance that the rotation support could be added for 90 and 270 degree rotations? :) I have a couple decks of cards (the Story Engine and the Deck of Worlds) that have four different orientations, and I'd love to use this for that. (I'd also love a way to edit the rotation of a particular card - there's lots of choice-making about card orientation when using those - but I may be able to figure out something for that part myself.) I really appreciate this - I had been hacking together something with templater and this works much more smoothly! |
Beta Was this translation helpful? Give feedback.
-
I've made an official discussion post for talking about changes to the next, pending release of the Cards system: I encourage any further feedback to help avoid needing to add further breaking changes after the next release. @apollooakwood , I've already included your idea for 0,90,180,270 degree rotations for square cards as part of the plans for the next release. |
Beta Was this translation helpful? Give feedback.
-
Just some ramblings about using Inline Scripts to implement card decks.
My assumption would be that all images would need to be in the vault's attachment folder.
You would hardcode an array with this list of files so that when it is used, it would provide a link to show the image.
Shortcuts to start/reset a session, shuffle, draw X cards and output the links to the images...
Another array could be used to hold the hand or discard or drawn list of cards.
I have not looked into using the state to save this information while currently in Obsidian but how could someone save the state between sessions? Output some sort of passcode that when passed to a setup function would be able to restore everything?
Beta Was this translation helpful? Give feedback.
All reactions