Using Thuon's bgacards

Game development with Board Game Arena Studio
Post Reply
c12h22o11_
Posts: 58
Joined: 03 June 2023, 03:26

Using Thuon's bgacards

Post 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.
User avatar
thoun
Posts: 1620
Joined: 10 December 2020, 22:25

Re: Using Thuon's bgacards

Post by thoun »

There is a demo folder in the project. You can also check one of my lastest games, like Mind Up, Knarr, ...
c12h22o11_
Posts: 58
Joined: 03 June 2023, 03:26

Re: Using Thuon's bgacards

Post 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.
User avatar
thoun
Posts: 1620
Joined: 10 December 2020, 22:25

Re: Using Thuon's bgacards

Post 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.
c12h22o11_
Posts: 58
Joined: 03 June 2023, 03:26

Re: Using Thuon's bgacards

Post 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.
Post Reply

Return to “Developers”