robotlegs-sharp / robotlegs-sharp-framework

An C# application framework. Ported from Robotlegs for ActionScript 3.
MIT License
84 stars 25 forks source link

CocosSharp #9

Closed KoiKoi2000 closed 8 years ago

KoiKoi2000 commented 8 years ago

I try to run the Robotlegs-Framework in CocosSharp, is there a documentation / example.. It will not be run.

prankard commented 8 years ago

Hi KoiKoi,

Thanks for your interest in the Robotlegs Framework.

Sorry for the late reply, but I hadn't ever tested Robotlegs in or built anything with the CocosSharp framwork before.

I've also not tested the framework outside of Unity3D in a while, and I had the bundles incorrect. I have subsequently fixed and have updated the framework. So it would have thrown an error on initialization. This has now been fixed and has been pushed.

After testing, it looks like the basic framework should work.I've included a sample on my namespace: https://github.com/prankard/cocossharp-robotlegs-sharp-example

The only CocosSharp specific class I included to get it running, is a basic CCSpriteView and optional CCSpriteEventView. You might want to overload some other CC classes to use in order to be mediated.

To get more help, have a look at the docs, in particular the 'A Brief Overview' guide.

And although the basic framework will function well. If you'd like some extra features. Consider looking at the Adding a Platform section. I would only do this however, once you are familiar with the framework.

Thanks,

James

KoiKoi2000 commented 8 years ago

Hey James,

thank you very much, i will check it in the next days! I starting with CocosSharp and have right now not the complete know-how. I was a long time Flash-Dev and love Robotslegs.

prankard commented 8 years ago

Thanks, I'll close this issue for now. If you have any more questions about integration with cocos sharp feel free to re-open.

KoiKoi2000 commented 8 years ago

I have a Problem :(

you use: context.injector.Map().ToValue(mainWindow); context.injector.Map().ToValue(application);

I create a Mobile Project: But there is no CCWindow and CCApplication. For the Initialize-Process :/

I have to use:

public class StartupGame ..... public void setupAppliction(UIApplication application, UIWindow window) { context.injector.Map().ToValue(application); context.injector.Map().ToValue(window); context.Initialize(); } ......

See a Example-Project: https://bitbucket.org/KoiKoi/cocossharpkoi/src

I cant reopen this ticket, maybe its too old :D

Thank you very much!!!!