How to Create Unity Android Plugins?

Disclaimer: This is based on FastEgg’s Tutorial http://fastegggames.com/blog/2013/3/30/tutorial-admob Sometimes we need to create Plugins to easily use external frameworks such as Ad Networks in Unity. Android 1. Create new Android Application Project * Application Name, Project Name should refer to the specific plugin (admob for a plugin for AdMob) 2. Add Additional Libraries right click on Project and select “Properties” navigate to “Java Build Path” select … Continue reading How to Create Unity Android Plugins?

Code Bit: How to use JNI in Cocos2dx Android?

Thank you, Bojun for helping me understand all this 🙂 You can first read up the Cocos2dx documentation on this: http://www.cocos2d-x.org/projects/cocos2d-x/wiki/How_to_use_jni Basically JNI is this thing that allows you to call Java code from C++ and vice versa. I’m gonna post a very round about code that I think shows how to do it both ways. First off, in Java (my class name is sample.java), … Continue reading Code Bit: How to use JNI in Cocos2dx Android?

Thoughts while reading Cocos2d-X by Example Beginner’s Guide Chapters 1 & 2

Packt published a new book on Cocos2d-X, “Cocos2d-X by Example Beginner’s Guide” by Roger Engelbert (http://www.packtpub.com/cocos2d-x-by-example/book) First off, book cover is adorable. Second, the book’s spiel says no programming knowledge required, oh really now? Anyway, I know Cocos2d, but I don’t know Cocos2dx nor C++, the language for Cocos2dx, so here I go. If I can make some cookie cutter games at the end of … Continue reading Thoughts while reading Cocos2d-X by Example Beginner’s Guide Chapters 1 & 2

How to add Facebook to Unity Android?

I searched for this before, but couldn’t find a solution that was easy or cheap (by cheap, I mean free). Pavel Kultyshev (@getencapsulated) also wrote a blog post, sharing messages on Twitter or Facebook by following the link in the browser of a mobile device or by opening the client app on this device. I haven’t tried this approach though, because I’m looking for something … Continue reading How to add Facebook to Unity Android?

New iOS and Android Books from Packt

iPhone JavaScript Cookbook Written by Arturo Fernandez Montoro Overview of iPhone JavaScript Cookbook Build web applications for iPhone with a native look feel using only JavaScript, CSS, and XHTML Develop applications faster using frameworks Integrate videos, sound, and images into your iPhone applications Work with data using SQL and AJAX Write code to integrate your own applications with famous websites such as Facebook, Twitter, and … Continue reading New iOS and Android Books from Packt