开发者

iPad SDK for 2D graphics and gui elements?

开发者 https://www.devze.com 2023-02-19 13:58 出处:网络
Im 开发者_JAVA技巧looking for some sort of SDK or library on top of iOS, which might help me produce iPad/IPHONE games.

Im 开发者_JAVA技巧looking for some sort of SDK or library on top of iOS, which might help me produce iPad/IPHONE games.

The sort of functionality Im looking for is..

  • GUI elements, skinnable buttons, lists, dialog boxes etc
  • Any routines to help with tile based games
  • Functions to paint and move sprites
  • Any vector libs to help with rotation, skew etc

Im confident I could write all this from scratch, but Im guessing theres some libraries already out there. Im not afraid of getting my hands dirty in code, so please dont slate me for asking for prebuilt stuff :)

Thanks


The defacto answer is cocos2d. Open source, MIT licensed, sprite library (including tiling map support baked in).

As for UI - Cocos has some helper utilities for dealing with UI elements, however its not very hard to skin UIKit (though the more customization you do the more drawing code you end up with).


most of the bits are already available in UIKit, but http://www.cocos2d-iphone.org/ is a framework worth looking at for game dev.


Two notes about cocos-2d: - cocos has its own implementation of UI control called MenuItem. It can be used to easily emulate the behaviors of Buttons. There is also a simple layout algorithm to dispose this items in columns, rows, grids. There are also other controls that allow you to display text on the screen (labels). No text editors though, AFAIK. - cocos can be easily integrated with the rest of UIKit, so it is simple to show standard "message boxes", some UIKit elements on top or behind it. I was able to use the cocos view as the child view of a UIImagePicker, for example.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号