kingpraveen Code
Status: Pre-Alpha
Brought to you by:
ahzi22
File | Date | Author | Commit |
---|---|---|---|
Classes | 2016-02-15 | ahzi22 | [r1] Initial Commit |
Resources | 2016-02-15 | ahzi22 | [r1] Initial Commit |
cocos2d | 2016-02-15 | ahzi22 | [r1] Initial Commit |
proj.android | 2016-02-15 | ahzi22 | [r1] Initial Commit |
proj.win32 | 2016-02-15 | ahzi22 | [r1] Initial Commit |
.cocos-project.json | 2016-02-15 | ahzi22 | [r1] Initial Commit |
CMakeLists.txt | 2016-02-15 | ahzi22 | [r1] Initial Commit |
README.txt | 2016-02-27 | ahzi22 | [r4] - Added comment on where to find the executables |
Author: Praveen Babu J D Date: 14/Feb/2016 Language: C++ IDE: VisualStudio 2013 Target Platform: Windows, iOS, Android Engine Used: Cocos2d-x 3.8 Windows Solution: proj.win32/kingpraveen.sln Windows Executable: proj.win32/Release.win32/kingpraveen.exe Android Executable: proj.android/bin/kingpraveen.apk if Using cocos command line then it is set at /bin Code: - /Classes/*.* - Using Cocos2d-x for Cross-platform support - Mobile + PC - Sample Android Application created and tested on device Hp7 g2. Movement: - CatmulRom Spline is used to Record and Replay on the Ball. - EasingInOut is done using Cocos Action sequence - Additional Easing Done to catchup on the Spline To remove Spikes. Camera: - Standard Cocos2d- Follow Camera hooked up to follow the ball. Ball: - 3d Model used for the ball 2.5d world. - Rotation is done using Quaternions (Note:The ball rotates in ANY direction, achieves a better effect than the one in the video which is facing the Movement direction.) Red Line (Orange Line): - Using RenderTexture as Canvas. - Red Line effect to show the drawn spline is achieved by rendering brush texture to a canvas(render-texture). * Drawing Canvas is limited to Visible area only (Can be improved) ART: - Source Art Path: /Resources - Grass Texture was Made seamless using Gimp 2.0 - Grass Texture was made Powerof2 for tiling - Shadow Created using Gimp 2.0 - Orange Pathing Brush created using Gimp 2.0 - Reduced PolyCount on Soccer Ball using Blender 2.7 Lighting: - Simple Directional Light Input: - Touch Input is Captured via Touch events provided via Cocos2d-x. - Input is Cancelled on Touch UP Parameters: - Source Data Path: /Resources - Stored in globaldata.xml - I use a simple XML based config file. - I have considered using json since i already had code in my engine with xml support I used it.