A couple questions relevant to games
A couple questions relevant to games
- Subject: A couple questions relevant to games
- From: Aaron MacDonald <email@hidden>
- Date: Sun, 17 Feb 2008 11:44:43 -0400
Hi. I'm planning to make a game, and I have a couple of questions
since I'm new to cocoa.
1) Is there some functionality to stack views, such that only one is
visible at a time in the outer window? If you look at most games,
they're usually presented as a set of screens, such as the tile screen
or the map screen, all within a single window. Certain actions within
these screens makes the application switch to a new screen. Does
cocoa/Interface Builder have something like that built in?
2) I intend to have a view that shows a grid of tiles. Its actual
dimensions should depend on the dimensions of the grid and the
dimensions of the images drawn on it (I assume the tile images are of
equal size). I may allow dynamic resizing of the view, but it should
be constrained so that the images retain their proportions and there
are no extra gaps or "partial tiles." So, if the images are square
and the grid is square, the view should always be square. I'm asking
because in Interface Builder it seems you define the dimensions of a
view directly instead of letting it be defined by user parameters at
runtime (in this case, the grid and tile dimensions). Is there a way
around this?
Thank you,
Aaron J. M.
_______________________________________________
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