Re: Card Game (like Spider-Solitaire) in Cocoa -- Conceptual ideas needed
Re: Card Game (like Spider-Solitaire) in Cocoa -- Conceptual ideas needed
- Subject: Re: Card Game (like Spider-Solitaire) in Cocoa -- Conceptual ideas needed
- From: Nick Zitzmann <email@hidden>
- Date: Fri, 12 Jun 2009 12:21:52 -0600
On Jun 11, 2009, at 12:04 PM, Florian Witteler wrote:
1) Would you use interface-builder files to lay out all the things
like
- whole gametable with stacks of cards
- stacks of cards
- the card itself (background image and some icon with text)
or would you handle all the drawing by yourself?
You'd handle all the drawing by yourself.
2) How would you handle the dragging of a card (and the cards, which
lie on top of this card)?
Override the -mouseDragged: method and do the drawing.
I don't want code from you, just some basic ideas of the general
structure of such an app.
I'd start with a view that draws the game in progress & handles
dragging, a controller that keeps the state of the game, and a model
that includes objects representing cards. This might not be the best
product for a beginner unless you're already familiar with drawing
custom views from another platform.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden