O
Olmar
Hi,
I am trying to write a version of the Hears card game. I can't figue
out what is the best way to detect clicks on the cards. Using the
cards.dll interface as described in tutorials like
http://www.publicjoe.f9.co.uk/csharp/card00.html . Can anyone give me
suggestions how to detect which card is clicked and how to redraw it
at the center of the sceen. For now all i know is that I have to
detect the X and Y coordinates of the mouse. But then what, I have to
go through the location of each card to get which one is actually
clicked. That seems kinda tedious since in the beginning of the game a
card in the middle is only slighly exposed, then when a card nex to it
is played, the area of the card gets bigger. How should I keep track
of that. Is it better to make some object like a button that actually
displays cards ( I still want to keep the same look as the WIndows
Hearts). Please help me since I am a total newbie at C#. Any
suggestions ( and sample code ) would be deeply appreciated
Thank you in advance
I am trying to write a version of the Hears card game. I can't figue
out what is the best way to detect clicks on the cards. Using the
cards.dll interface as described in tutorials like
http://www.publicjoe.f9.co.uk/csharp/card00.html . Can anyone give me
suggestions how to detect which card is clicked and how to redraw it
at the center of the sceen. For now all i know is that I have to
detect the X and Y coordinates of the mouse. But then what, I have to
go through the location of each card to get which one is actually
clicked. That seems kinda tedious since in the beginning of the game a
card in the middle is only slighly exposed, then when a card nex to it
is played, the area of the card gets bigger. How should I keep track
of that. Is it better to make some object like a button that actually
displays cards ( I still want to keep the same look as the WIndows
Hearts). Please help me since I am a total newbie at C#. Any
suggestions ( and sample code ) would be deeply appreciated
Thank you in advance