To vibrate Android device in the Unity, you need only one line of code. which is, Handheld.Vibrate(); that's All. IF you develop the multi-platform app, Add pre-processor command to avoid the compilation error. #if UNITY_ANDROIDHandheld.Vibrate();#endif Enjoy your job.
English/Programming Tips 검색 결과
Best CC0 Sprites website Do you know? All images, music, pictures have to license. which is belongs to the creator. Means that cannot use without the creator permission.Good new is that CC0 license is free from the license. Here is I used to visit to get CC0 sprites for mobile development. http://opengameart.org/ This website provides good quality of sprites, textures, music, effects under CC0 l..
Play Cocos Studio Sprite Animation There is simple way to play cocos sprite animation created from cocos studio. The way to do it 1. create sprite as plist file which is use for sprite animation 2. import plist file to cocos studio 3. create sprite animation in cocos studio 4. add C++ code in visual studio 5. excute it 6. oh~ nice good very very good. Now, you can customize it. here is source co..
Call Android Toast Function in Cocos2dx by Using JNI Function Propose : How to call jni function in cocos2dx develop enviroment. I recommend that create Service class first,Once you have service class, will reduce develop time for another app what you want to call method. just copy and paste service class file and re-use it. Here is example to call Toast function in Cocos2dx. To do that create D..
Pugi xml usablity In previous posting we've checked how to download and setup pugixml enviroment. Okay, We are ready to use pugixml. To use a pugixml I usually create singleton class which managing all input/output of XML stream. here my case is just reference. There will be bundle of different way to use pugixml with more efficiency. Here is a basic code to use pugixml. //----------------------..
Pugi xml setup I would like to share with you about how to setup "pugi xml" in android especially in cocos2dx. The way to download and import is simple. Here are steps to setup pugi xml for dev. enviroment. first, get pugi xml file in pugixml.org. click below link to jump download page http://pugixml.org/ There are two different version of files. For me Windows environment, click first zip file ..
Cocos2dx Text Outline Here is sample code for text runtime creation with outline attribute.Code implementation is simple, just check below code. enableOutline attribute has input as Color4B with outline size. so you can set any color in Color4B. for example, if you want to set red color, just use pre-define Color4B::RED or put RGB color directly Color4B(255,0,0,255). forth value is Alpha code wh..
Kingdom Rush Frontiers Kingdom rush frontiers PC version playing video. I like this kind of defense game. This app was ranked 1st in google play store a few years back. I already cleared all stages. it's really fun. I would like to share the playing scene with other gamers. This is stage 8 and I've got 3 stars awards. Archer tower is most powerful and useful tower in this game. (cheap and powerf..
최근댓글