![]() ![]() YesSir is a little game, it was quite easy to adapt it on the TV, even with the v1.2 of the engine. Plus the port, I added a local multiplayer mode. e.g. (It tells which point of the texture will be at the sprite's position. To summarize, I have worked on the port for 6 months, about 1 or 2 hours per day. I understand concept of anchor point for a sprite. Finally, I had to make some graphics adjustments because contrasts and colors on TV don’t have the same quality than an iphone or an ipad. I updated each screen to support focus and to have only one element with focus per screen. I made some changes in CCMenu class in order to handle focus (almost) automatically : Right now, I just need to define how to place items among each other (below/above on the right/left from other items). The big part of the work was to update the touch user experience by a focus experience: I added a native swipe gesture recognizer on the main window then I updated the engine to propagate these events on the display list. Quick Cocos2dx-Lua (V3.3R1) Learn Notes (5) - Create a wizard menu, let us make the easiest click menu display wizard Cocos2dx - Use Cocos2DX in MFC cocos2dx flying project notes seven: various callbacks: timer schedule, ordinary callback callFunc, menu callback menuselector, event callback eventselector cocos2dx Effect ScrollView in. As you might expect, there were a lot of errors, but 2 hours after, by removing some libs which did not support the Apple TV architecture (metrics, crash analytic, facebook, …) and commenting some code, specially in the audio part of the engine, YesSir launched successfully on the Apple TV! Concerning resources, I used the retina assets of the iphone 5. Thus, I decided to port YesSir on this new device! Into XCode, I added a new target and a new “TV” macro then ran the project. Like many developers, I received my 1$ Apple TV Developer Kit in September 2015. ![]() I never needed to update cocos2D-x with the latest version. Later, my game has successfully passed the iphone 5 launch, then the iphone 6 and 6+ with a few changes in the code. Furthermore, I made several changes in the engine itself and I was too afraid to find out too much regressions. So, when v2.0 was out, I didn’t want to migrate all my work to OpengL ES 2.0. My first job was to create the generative terrain, knowing it was my first time with OpengL, ever. I used version 1.2 of cocos2D-x, which supports only OpengL ES 1.1. To fix just write the setUniformForModelViewProjectionMatrix() function in CCGLProgram.In June 2012, I went into the creation of my first game : YesSir, a tank based battle game. ![]() If you don’t get this error, then everything is OK.īut if you get this then don’t worry you can fix it. You might get error that setUniformForModelViewProjectionMatrix() doesn’t exist. h files in your class folder and add them png files in your resources folder and add themĬopy the. ![]() This link has CCMask.cpp, CCMask.h and two image files mask_circle.png and mask_star.png Copy the. If they are not available in your cocos2d-x you can download them by clicking this link. a CCSprite) in a circle or a star or whatever image you want.įirst of all you need a CCMask.h and CCMask.cpp classes. In this tutorial I am going to tell about how to mask an image (i.e. ![]()
0 Comments
Leave a Reply. |