Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I really enjoyed this game, but I have to admit I have a soft spot for card games, especially for roguelike card games. The mechanics are fun, even though they are a it basic right now, and you can easily expand the later. Actually, I did try to make a card game myself in the past, but I wasn't unsure about how to manage the effect for each different card, since i didn't want to write a class for each one. How did you do it? There is another way or i should do as i said?

I just used a class for each card effect which I attached to an empty game object, then when I wanted to play the card i just instantiated the relevant game object. I'm sure that there is a better way to do it though.