Ever made a card game?

Hello, does anyone has ever made a card game like magic or similar here on playcanvas?

I can’t find where I put it, but I had some deck shuffling code for a card wizard I could re-make or tell you how to make.

I don’t know a lot about magic, but I think if you have the shuffling code (which uses arrays) you just take object 0 in the array and ā€œdrawā€ it and use the action of that card. If you have ā€œattacksā€ like pokemon, you can just add buttons and conditions for attacks (like having a certain amount of energy.

I hope this helps!

1 Like

Not quite a card game but has cards in it. @moka has this prototype

Discord link: Discord

2 Likes

Making a card game is definitely on my bucket list. I already have some game ideas, but I need to work this out a lot more.

1 Like

Hello guys, thanks for the tips, I asked coz popped in my mind to make a battle cards game, to be honest i don’t know if i will have the clear mind to develop it on my own. Recently my mom passed away so I am not really present. Anyway the main idea would be to make fantasy battles card game, with different armies (orcs, humans, elves, dwarves, etc) and with random lands forming a battlefield. This same system can be easy modified to obtain many different scenarios like WW1 or WW2 or also applied to some sci fi scenario. Once the basic system is lay down the applications are endless. Since it would be better to make it as 1vs1 it would be nice to have a point system for Commanders to have a ranking. Let me know if that can be of your interest to develop that together.

1 Like

First of all, my condolences, I am sorry to hear about your mom. Second, I am at a weird little lull in game development, so I would love to help while I can. If you tell me something you want done, I can try and do it. I should be available for the next month or so to help.

1 Like

Thanks a lot. I am not sure about the roadmap yet, I guess we need the shuffling code, for the 3 decks, the two armies and the lands. the table positions. Each land must have a time value for the crossing, but more values are needed so it’s better if I lay down a sketch of database for lands and armies. We also need the code for 1vs1 multiplayer with turn based handler. Wizards and spells or magic items can be added in a second phase.
I will try to make a sketch of a card also and post it here. Thanks @Codeknight999

2 Likes

That sounds very similar to what I personally had in mind. At the moment, I’m tied up with unfinished masterpieces, but despite that, I’d love to participate in some way if you wish!

1 Like

I’ll work on the shuffling code and get back to you. I’ll make it easy to add cards to a deck and such. I’ll make a project and add you.

1 Like

https://playcanvas.com/editor/scene/2217810

You can add card names to the list with the addcard button, you can press S to shuffle the cards.

I can also add more data to these cards.


Thought of making something like this, what do you think?

That looks cool, ill work more on the card system today.
I plan on adding a lot and making it very easy to make new cards.

1 Like

Nice, the main point is to make separate decks. So it would be nice to have a ā€˜faction name’ that identify the cards for each army.
As well each faction should have some terrain cards favorable to the faction. That will be drawn when forming the terrain for the battle. In this way each battle will be different.
A value for attack, defence, movement will be needed for each unit. The flight option should be included if we want to add viverns or dragons or some other flying unit.
Heroes, spells, and magic items can wait.
Sorry I am a giving you too much inputs all together lol

1 Like

No its fine! Im actually on now. If you want I can add you to my project

1 Like

sure

Added

1 Like

Hello @Codeknight999 i just dropped an MP3 file that i made in the game that can be added to the game, it’s an original music so there is no problem using that.

Oh thanks. I’ll be working on it tomorrow a bit.

Im on right now.