Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

What about iOS? #1

Open
uwe-neuronation opened this issue Apr 12, 2019 · 6 comments
Open

What about iOS? #1

uwe-neuronation opened this issue Apr 12, 2019 · 6 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@uwe-neuronation
Copy link

Any plans to implement it for iOS?

@brandmooffin
Copy link
Owner

Great question! I've considered adding support but with Apple deprecating OpenGL this year in iOS and macOS in favor of Metal, I was a little hesitant about it. I didn't want to knowingly create a problematic situation for devs, so really until MonoGame supports Metal I've leaned towards holding on adding support. That said, SpriteKit follows a lot of the same patterns as Cocos2D and probably the best alternative in the meantime.

... actually on second thought, I can have Cocos2D-Mono wrap around SpriteKit, it just wouldn't have a dependency on MonoGame.

This might be the best course for now. What do you think?

@brandmooffin brandmooffin added this to the metal-support milestone Apr 17, 2019
@uwe-neuronation
Copy link
Author

uwe-neuronation commented May 17, 2019

Sounds great!
Whats also missing, from my point of view, is a possibility to develop the Game itself as library. If you would also provide a library project, containing the platform indipenend part of Cocos2D. Then we could share the Game-Code for different platforms.

Eg.: A solution containing a platform indipendent project(Game), a Windows project and an Android pordject.

@brandmooffin
Copy link
Owner

Do you mean the library itself without the MonoGame dependencies? I think the Metal support will be the first to do this, once I have that I can get other platforms to follow.

@uwe-neuronation
Copy link
Author

uwe-neuronation commented May 20, 2019

Thank you for the quick response ;-)
I'm not an expert in stetting that up, but it should be possible by using a partial class solution.
A platform independent part and a specific part.
Like here for example: https://github.com/mono/CocosSharp/blob/master/src/EmbeddableView/CCGameView.cs
https://github.com/mono/CocosSharp/blob/master/src/EmbeddableView/CCGameView.Android.cs

see also:
https://github.com/mono/CocosSharp/tree/master/ProjectTemplates

@brandmooffin
Copy link
Owner

Completely agree 💯 I think this is worth doing for sure. I'm actually working now on creating that separation :) should hopefully have the first set of changes ready soon!

@brandmooffin brandmooffin added the enhancement New feature or request label Jun 4, 2019
@brandmooffin brandmooffin self-assigned this Jun 4, 2019
@reuncc
Copy link

reuncc commented May 11, 2021

事实上 其实在真实使用场景, 多平台支持 肯定是 共享项目库+脚本库+核心代码

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants