Library!

Well. I want to make a library in XCode that contains games. I wrote a number guessing game and then I made blackjack. I would like to know how to create a library that I could include so that I don't have to copypaste all the code in.

Any help is appreciated. Happy commenting!
closed account (zb0S216C)
First, you need to choose which format your library is going to be. Formats such as a Dynamic Linked Library( .dll ), Static Library( .a ) or a Shared Library( .lib ). Each format is different in it's own way. Although I'm not 100% sure on the differences of the library formats, I do know that all three library format are very common.

As for creating a library for games, it's normally, and generally the best idea, to place reusable code within the library. Many game developers do this as it's efficient development.

Asking people on what format to choose won't get you very far as it falls down to what the library is for. In your case, game code?
Well, I don't really get what a library that contains games should be for. Games are programs, libraries are things where you put object code that you actually want to use, for example self written container classes or something.
Topic archived. No new replies allowed.