Anyone know sources and tutorials for a trading card game

Hi, i was searching online for something that can help me code the basics of a trading card game, but all i found were tutorials for a regular deck of cards. I have a general idea of how to do it, creating a card class , deck class, player hand class, and a playing board.

what i want to have on screen is:
-a deck of cards represented by and image I did of a deck.

-for the deck to have the cards I made in its array. I have unique cards, don’t know if i need a class for each card. or have a plain card class, with parameters such as character, attack, defense, but i mostly want just the image to appear on screen when drawn from the deck.

  • to be able to click the deck and select draw, shuffle, and to be able to put cards back on top of the deck.

any and all help is greatly appreciated.

Which part of this is giving you trouble?

It’s hard to answer general “how do I do this whole thing” type questions, which is probably why you aren’t finding tutorials teaching you how to do everything from start to finish.

Instead, you have to break your problem down into much smaller steps, then approach each small step one at a time. That’s where you’ll find tutorials- on one small thing, not on the large project.

It looks like you’ve started breaking things down into steps, but you have to go further- instead of asking how to click a deck, figure out how to click a rectangular area. Then figure out how to draw an image in that location. After that’s working, then think about the data structures you might need. Break everything you can into as small a piece as possible, then take on the pieces one at a time.

What are you writing this in? Swing? LWJGL? LibGDX? Something else?

i was thinking about using libgdx, but then decided not to use it, and just do it plain without extra libraries. I am fairly new to java. i know how to draw sprites with libdgx. so would it be good to make a card class that takes in sprite as a parameter? but then to draw it I would need a sprite batch, how would i make it draw the next card in the deck onto the table.

In all honesty i would take any direction as to where to start. what to start off with. I’m kinda lost. I have all these concepts but don’t quite know how all of them will fit together.

This a mockup of what i want. All graphics are not the ones ill use, just the layout of things.

http://s30.postimg.org/fq2q4ito1/BOARD_MOCKUP_720_pixels_smaller.png

First off, you need to decide what you want to use, since that’s going to impact how you proceed.

But it honestly sounds like maybe you should start out quite a bit smaller: have you created Pong yet? How about adding images to your Pong game?

You’re starting out by asking how to build a car, when really what you need to start with is a bicycle. Once you have the bicycle built, then add a third wheel, then a windshield, then maybe a 4th wheel, then an engine, etc.

Start out with a much smaller project and work your way towards your end goal of creating a card game. A card game like this has a lot of different pieces that you need to focus on one at a time, and the best way to do that is by starting much smaller.