• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
A couple questions relevant to games
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: A couple questions relevant to games
      • From: Jens Alfke <email@hidden>
    • Re: A couple questions relevant to games
      • From: j o a r <email@hidden>
  • Prev by Date: NSOutlineView, NSTreeController and Sample Code "Source View"
  • Next by Date: CFDictionary callback on PPC vs Intel
  • Previous by thread: Re: NSOutlineView, NSTreeController and Sample Code "Source View"
  • Next by thread: Re: A couple questions relevant to games
  • Index(es):
    • Date
    • Thread