Home
Name Modified Size InfoDownloads / Week
README.txt 2016-02-15 2.0 kB
kingpraveen_win32.7z 2016-02-15 4.3 MB
kingpraveen.apk 2016-02-15 4.2 MB
kingpraveen.7z 2016-02-15 62.3 MB
Totals: 4 Items   70.8 MB 0
Unzip using 7Zip
kingpraveen.7z - SourceCode ver 1.0
kingpraveen_win32.7z - Windows Executable 
kingpraveen.apk - Android Executable package


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


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.

Source: README.txt, updated 2016-02-15