Please Integrate Cocos2D into Game Edition

Just look at all the fun stuff we would get for free. :slight_smile:

Scene management (workflow)
Transitions between scenes
Sprites and Sprite Sheets
Effects: Lens, Ripple, Waves, Liquid, Twirl, etc.
Actions (behaviors):
Trasformation Actions: Move, Rotate, Scale, Jump, etc.
Composable actions: Sequence, Spawn, Repeat, Reverse
Ease Actions: Exp, Sin, Cubic, etc.
Misc actions: CallFunc, OrbitCamera
Basic menus and buttons
Integrated physics engine (both Box2d and Chipmunk)
Particle system
Text rendering support (variable and fixed width fonts)
Texture Atlas support
Tile Map support (TMX maps):
Orthogonal maps
Isometric maps
Hexagonal maps
Parallax scrolling support
Sound support
Streak Motion support
Render Texture support
High Score server (Cocos Live)
Touch/Accelerometer support
Portrait and Landscape mode
Integrated Pause/Resume
Fast Textures:Supports PVRTC textures, 16-bit textures and 32-bit textures [import]uid: 8741 topic_id: 2907 reply_id: 302907[/import]

Would such a thing be:

  1. Legal?
  2. Technically possible?

If yes, that would bring Corona 3 years of development ahead!
Too good to be possible…

@ORBZ, you forgot OS-X (Mac) support! This will be a hit with the upcoming Mac App Store. I am even reconsidering Cocos2d for this specific reason. If only you could call this wonderful library with lua… [import]uid: 7356 topic_id: 2907 reply_id: 8504[/import]

Cocos2D is MIT license which basically means “do whatever you want with it”

Technically possible? That’s up to the guys at ansca. :slight_smile: [import]uid: 8741 topic_id: 2907 reply_id: 8505[/import]

If you think it, these are the only essential cocos2d things that Corona misses right now (besides performance of course):

****** Scene management (workflow)

****** Composable actions: Sequence, Spawn, Repeat, Reverse

****** Particle system

****** Integrated Pause/Resume

****** Tile Map support (TMX maps):
+Bitmap manipulation (tinting etc) [import]uid: 7356 topic_id: 2907 reply_id: 8507[/import]

Awesome feedback.

Thanks.

Carlos [import]uid: 24 topic_id: 2907 reply_id: 8511[/import]

Thanks Carlos,

Also, please add the audio component of CocosDenshion (part of Cocos2D)

From the FAQ:

What is CocosDenshion?
CocosDenshion is an audio library for the iOS and Mac OS X operating systems. The main focus is meeting the audio needs of games. CocosDenshion includes a low latency sound engine for playback of game sound effects with modification of pitch, pan and gain as well as an audio manager that provides playback of multiple tracks of compressed audio and audio session management for iOS.
Pitch, pan, and gain!

[import]uid: 8741 topic_id: 2907 reply_id: 8519[/import]

Sure, and please add the MakeHitGameNow function to Corona. Carlos, without it I can’t produce anything in it.

ROFL. Orbz, you made my day. And after reading it again, you seem to be serious about it. Jeez :-/ [import]uid: 5712 topic_id: 2907 reply_id: 8539[/import]

I am serious, this is the feature request section, is it not?

Cocos has a lot of nice features for games that Corona lacks. Do you know of a way to manipulate sound output with Corona? I know I can read sound in, but there seems to be no way to adjust pitch or pan or gain. [import]uid: 8741 topic_id: 2907 reply_id: 8549[/import]

I too would also like the above features :slight_smile:

// red. [import]uid: 7143 topic_id: 2907 reply_id: 8550[/import]

@Carlos

Please make sure the MakeHitGameNow function is applicable for Android too! ;p
I am sure MikeHart is looking forward this feature since March… :slight_smile: [import]uid: 7356 topic_id: 2907 reply_id: 8552[/import]

I am all for feature requests, but suggesting a company to take the source from another a different product to put into theirs is quite strange. I hope AM finds their own solution. Sure Corona lacks some stuff but it is Corona and not Cocos2D. I wonder why people always mention Cocos2D. If it is that great, then why don’t these people use it and instead try to use Corona. That is what I don’t get.

>>I know I can read sound in, but there seems to be no way to adjust pitch or pan or gain.

Again, if you had requested to be able to adjust these values, then ok. Valid request. BUT you said, take the code from cocos2D and put it into Corona. Basically Cocos2D, just with a lua interface. So why don’t you just add Lua to Cocos2D? didn’t someone already did that?

Btw. CocosDenshion had a kinda restricting license the last time I used Cocos2D. Isn’t that still valid?

Anyway, request all you want. If you think it is helping Corona grow, go ahead. [import]uid: 5712 topic_id: 2907 reply_id: 8565[/import]

My point of view is that dreaming and saying crazy/nonsense things is the best way towards innovation. :slight_smile:

If nothing else, this discussion may have helped Ansca to momentarily think what users could potentially grasp (not saying “implement”) if Obj-C code was accessible from within Corona SDK.

It also helped underlining what Corona lacks in comparison with a top-notch graphics library.

Having said that, we are all discussing here because we have (at least temporarily) made our decisions about what platform to use for our next project, for several reasons.

***

Personally, I have tried Cocos2d and concluded that it is one click beyond my ability/desire to write well-structured OOP code. Corona offers me convenience without significantly sacrificing performance. I already love Lua and the SDK may seem still in alpha/beta but has great potential!
I think however that cocos2d is the best available benchmark for a new iPlatform. Great source for inspiration, a best practices reference and a stepguide for avoiding deadend paths that have already been walked down by cocos2d community for 3 years now. Ansca has nothing to afraid of Cocos2d. The target groups are different and a potential convergence in philosophy could only lead to more switchers to Corona.

Cocos2d community is already watching Corona and rather repsects it. In cocos2d forum you can find comments about what convenience lessons could be transfered from Corona. Why shouldn’t Corona do the same thing with cocos2d?

Admiration is a good thing. Makes you better understand what exactly you want to surpass… [import]uid: 7356 topic_id: 2907 reply_id: 8574[/import]

Hi, we need:

  • Scene management (workflow)
  • Composable actions: Sequence, Spawn, Repeat, Reverse
  • Particle system
  • Integrated Pause/Resume [import]uid: 9190 topic_id: 2907 reply_id: 8576[/import]

Yes, integrating Cocos2D would be legal. The Cocos2D source code uses the MIT License, which would allow that. The CocosDenshion license has also been changed to MIT. But I understand the MIT License is not “lawyer compatible” (meaning: it’s too unspecific). Some companies have a policy not to allow the use of MIT Licensed software because of that.

I imagine the real issue would be repercussions of a different nature, in terms of “is it moral to use Cocos2D in such a way”? I know that’s a touchy subject.

Technically I bet it’s difficult to integrate Cocos2D in Corona. You can’t just hook Cocos2D in, put your Lua wrapper around it and have it co-exist side-by-side with Corona. It’s not that simple. Especially not if you consider Android, where you can’t use Objective-C code. If I had to do it, I would simply use the existing Cocos2D code as a guideline, but re-implement it properly in C++ or whatever Ansca is using internally, making sure it conforms to the Corona API. Tilemap support and Particle systems are good candidates for a re-implementation, but Pause/Resume, Scene Management and the Action system (not the Actions themselves) are too deeply integrated into Cocos2D to be of much use.

As for Cocos2D + Lua: I see the value in that. It’s been requested a couple times, some people have even integrated Wax with Cocos2d but not in an actually re-usable way so far. Having tried it myself, it’s still not nearly as straightforward to use as Corona.

Btw, Cocos2D is not 3 years old, it’s almost to the day exactly 2 Years and 6 Months old. :wink:
[import]uid: 10479 topic_id: 2907 reply_id: 8798[/import]

Is there a roadmap for Corona? It looks very promising and coding in lua is great, but it still lacks a lot of features.

what I think is needed, in this order (just changed the order of Magenda bullets):

* Scene management (workflow)
* Particle system
* Integrated Pause/Resume
* Tile Map support (TMX maps):
* Composable actions: Sequence, Spawn, Repeat, Reverse
[import]uid: 10482 topic_id: 2907 reply_id: 8871[/import]

For priority ordered feature requests, also post in this thread:
http://developer.anscamobile.com/forum/2010/09/23/high-priority-generic-features-list#comment-8873 [import]uid: 7356 topic_id: 2907 reply_id: 8874[/import]