Page 1 of 1

Using Thuon's bgacards

Posted: 10 October 2023, 08:18
by c12h22o11_
I am trying to use thuon's bgacards. I am new to javascript and css so it's very difficult for me to figure this out. I have a SlotStock that I'm using, and all I'm trying to do is flip a card in my slot stock. Does anyone have any ideas what might be happening here? I am happy to copy paste code, but I dont feel like copy/pasting the whole js file would be very useful.

I would love to get more examples of people using thuon's bgacards implementation so I can pull from them.

Re: Using Thuon's bgacards

Posted: 10 October 2023, 10:39
by thoun
There is a demo folder in the project. You can also check one of my lastest games, like Mind Up, Knarr, ...

Re: Using Thuon's bgacards

Posted: 11 October 2023, 00:15
by c12h22o11_
The demo folder shows how to set up the stocks, but I have a feeling the problem is with the card manager or the animations manager.

I'll check out your other games, if I push up code on github would you be willing to take a look to see if I'm doing something obviously dumb? The stocks are working but i can't get animations to work

Thanks for responding - I really appreciate it.

Re: Using Thuon's bgacards

Posted: 11 October 2023, 09:50
by thoun
I have a lot of work and can't spend much time looking other projects... but if you look mines, you should see a lot of common use cases.

Re: Using Thuon's bgacards

Posted: 17 October 2023, 06:36
by c12h22o11_
I figured out that the reason it wasnt working is that you were relying on a CSS class called .card that I had overridden in my css file. After de-conflicting, animations are working as expected. In future iterations of your work, I might recommend that you use a more specific css class name or call it out in the documentation.

Thank you for the amazing library.