notSafeForDev wrote: ↑Tue Nov 29, 2022 10:53 pm
Right, thanks for the info! I forgot that you would get cors errors from opening the html file directly. To run it, I use VSCode with the Live Server extension.
Yep, can confirm that works.
I have got a stable V2 now:
This adds a bunch more features:
- Card set selection options. Can choose between 30/45/60 cards from:
- - All cards
- - Random sets (it will gradually add sets to its collection until it has enough to meet the number of cards so you should tend to get most cards from any set you play with provided your sets are reasonably small)
- - Specific chosen sets only (it will list all your sets and you can select the ones you want to play with
- Exiling is now a thing, can do that from deck/hand/discard pile
- Can hold multiple cards in your hand - they appear behind it so you can work through them
- Field cards can now be selected (the larger one in the middle) - this card (and any behind it) can be returned to play by the button at the bottom. There is a tick box in the bottom left to swap which way round the arrows move things based on if you want to think of it as moving the row of cards or moving the selection
- Field cards can have cards put behind them. Either a random one or the selected one. Currently there's no indication of how many cards are behind a field card. I can reasonably easily add a display for that for the selected one if that would be useful.
- Discarded cards can be revived (back of the hand pile)
- There's a special button for barrier. This will draw a random card from the deck and put it at the front of your hand. You will then need to send it back to the deck after facing it. For barrier 2 or 3, just click the button multiple times.
- There are rotate and flip buttons for the hand card. These will maintain their affect when moved somewhere else (deck/discard/field). The only exception to this is that any that have been flipped that are drawn from the deck are flipped back over to save having to click the button again (it felt especially frustrating because you would have just seen it the right way up on the top of the draw pile)
- Some of the other things are probably new, I haven't really been keeping track
- Edit: Card files need to be .jfif or .png (because those are the 2 formats that have been used). It's easy for me to add more formats but each one needs to be done manually
Version 2 download
Known issues to be resolved for 2.1:
- It loads all the images it's randomising between, not just the ones in the random deck. If you have a lot of (or big) images, this can cause it to use lots of RAM
- Currently the window size is fixed at 1438x960 which is fine on a 1080p monitor but can cause issues on a smaller laptop screen so some form of scaling is needed