Tag Archives: sdk

Tutorial: SpriteIlluminator

I was recently selected to be able to beta test SpriteIlluminator by CodeAndWeb. SpriteIlluminator helps you add dynamic lighting to your mobile games by helping you create a normal map to add to your sprite.

Since the majority of my mobile games are created using Corona SDK, I’m going to cover how to get started integrating SpriteIlluminator into that.

The first thing you’ll do is import a sprite into SpriteIlluminator. Here I just quickly drew a guy for this demo.

Screen Shot 2015-02-26 at 10.09.32 AM

Next you can add the various effects, such as bevel and embossing.

Screen Shot 2015-02-26 at 10.09.54 AM

You can drag the light source around and see how your sprites will look in real-time, which is very helpful. You can also use the lasso tool to select certain portions of the sprite and add effects just to that part.

Screen Shot 2015-02-26 at 10.12.28 AM

When you’re finished, you can publish out the project and it will create your normal map file.

Screen Shot 2015-02-26 at 10.14.42 AM

In this example, I beveled the sprite and then raised the shirt sleeve, nose, and eyes to make them stand out. Then in SublimeText, I created a main.lua file and did a composite of both the sprite and its normal map. Here you can see how a light source reacts to the sprite.

Screen Shot 2015-02-26 at 10.18.54 AM

If you set the attenuationFactor to 0, you can see the portions are the image that I beveled and raised in SpriteIlluminator.

Screen Shot 2015-02-26 at 10.19.06 AM

And if you reverse the order of the sprite and its normal map, you can see the beveled image.

Screen Shot 2015-02-26 at 10.19.28 AM

SpriteIlluminator is a very easy-to-use and powerful tool to help add some nice dynamic lighting effects to your games. This is obviously a very basic example of what it can do, but hopefully it’s enough to get you started in integrating it in your Corona SDK apps.

Advertisements

Tutorial: Android TV App Development

I recently got my Maddie Bear’sSnack Time game published for the Android TV console. Since I was one of (if not the) first person to do this with Corona SDK, they asked me to write a tutorial about it.

mbstTV

Check out the tutorial here: http://coronalabs.com/blog/2015/01/13/tutorial-creating-android-tv-apps/ and you can go through step-by-step with a working example of how to get your app on the Android TV.

Kaboom: Kwik Particle Emitter Plugin

A week or so ago, my colleague Alex Souza asked me to beta test his new plugin, “Kaboom“. It is an add-on for Kwik Photoshop plugin that lets you create particle emitters for your universal Corona apps. The benefit of using Kwik and Kaboom is that you can create full mobile applications with special effects without having to write a single line of code. Everything is done by placing artwork in Photoshop and telling it what you want it to do.

Within 5 minutes, I was able to create this:

I even wrote a tutorial on how to use Kaboom to create a similar project, which can be found here. If you order Kaboom within the next 2 weeks, you’ll actually save $20 off of the regular price, so it’s definitely worth acting quickly.

Please note: Corona Labs has not officially announced whether or not particle emitters will be supported in Starter or Basic versions of Corona SDK. If you’re a Pro user, you can use Kaboom today, but it’s unclear if Starter and Basic users will be granted access.

Amazon Fire TV: Developer Review

Last week I finally caved and purchased an Amazon Fire TV. I was very skeptical for awhile about purchasing one, especially since initial consumer reviews considered it an “in-beta” product and that the USB port on it doesn’t even support external hard drives or thumbdrives yet. However, a colleague of mine raved about it since it has the capability to accept XBMC and other 3rd part applications, so he actually bought 5 of them. Also, since I created Maddie Bear’s Snack Time for the Fire TV, it seemed like I should be able to test it for myself on an actual device.

 

Unboxing/Set Up/App Development

Unboxing it reminded me of unboxing the Apple TV. It was just the unit, remote, and a power cord. Setup was also the same, just plug it in and hook it to your TV via HDMI cable and the unit powers up. One thing that I thought was strange is that there’s no way to hook the Fire TV to your computer for app development, it has to be done through your Terminal/Command window. Once you have your Fire TV set up, you’ll have to go into the Settings > About and get its IP address. Then on your computer, connect to it via Terminal/Command window to push apps via adb commands (./adb connect <ip address> ; ./adb install AppName.apk ; etc.). This is pretty easy and I suppose it does save you the time from having to attach/detach the unit from your computer over and over.

 

Memory

Memory is kind of an issue depending on how many apps/games you plan on installing. After the operating system and XBMC, I had a little over 5 gigs of space left. This doesn’t sound terrible until you consider the fact that a lot of the higher-end games take 2-4 gigs of hard drive space. For example, Grand Theft Auto San Andreas takes up almost a gig. Then when you go to play, it says it needs to install another 2 gigs of data. If I were able to hook a thumb drive to the Fire TV and install games on that, it wouldn’t be a big deal, but since it wanted over half my available space, I opted not to install GTA.

 

Game Controller

Amazon Fire TV Remote and Game Controller
Amazon Fire TV Remote and Game Controller

Games and apps are categorized as Remote support or Game Controller support. Initially my game Maddie Bear’s Snack Time only supported the remote because I didn’t own a device to map out the game controls. I purchased a game controller and was able to add controller support by the following day. From a consumer standpoint, I do prefer games with controller capability, it makes it feel like you’re playing a real video game and not just an Android app that was ported over last second. Also, as a consumer, I really want there to be more great games available. The more I play on the Fire TV, the more I find myself enjoying the experience as a gaming machine.

 

Amazon Coins

If you do develop a game for the Fire TV and integrate Game Circle, Amazon is running a promotion where they’ll give you Amazon coins to give out to your customers. For example, (at the time of this writing) if you purchase GTA San Andreas, you’ll get $20 worth of Amazon coins as a bonus. Unfortunately, Corona SDK does not support Game Circle as of this moment, so Corona-made apps are not available for the Amazon Coin promotion. If you’re thinking about making an app with game controller support, I would purchase a game controller as soon as possible. Amazon is running a limited-time promotion where you receive $10 of Amazon coins and a $7 game, “Sev Zero”, with the purchase of a game controller. So essentially, you can buy a $40 game controller, get $10 of free coins, get $7 Sev for free, buy GTA for $7 with the coins, get another $20 of free coins, and end up with $14 of games, $33 of Amazon Coins, and a game controller for $40.

Since Amazon is giving away from coins like candy, it’s helping indie developer app sales. Where normally people might be hesitant to purchase a game that only has 1 or 2 reviews, now they’re free to buy it since they’re just using coins they got for free. The more developers are able to give away free coins from feature Game Circle apps, the more it helps the community as well. If you’re looking for a great platform to check out, I’d recommend getting a Fire TV.

Looking to make your own Fire TV app using Corona SDK? Check out Ed Maurina’s Fire TV plugin here.

Kwik 3.0 Now Available

Last week, Kwiksher released their latest version of Kwik Photoshop plugin. I was fortunate enough to be part of the beta testing, and helped CEO Alex Souza discover some of the bugs before the final version was released.

Kwik v3

I was even able to release Maddie Bear’s Birthday for the iPad using the beta version of Kwik.

maddie bear's birthday

Kwik now is compatible with Corona SDK’s new storyboard tool called “Composer” as well as their new Graphics 2.0 anchor point system. It offers a revamped interface and a plethora of new features and settings that were not available in previous versions. You can now add monetization with iAds and AdMob, splash screens, in-app purchases if you’re a Corona Basic, Pro or Enterprise subscriber, and you no longer have to deal with the annoying task of enabling Adobe Flash to run the plugin.

kwik

Kwik has also switched over to a subscription business model to allow for more updates in order to keep up with the ever changing world of mobile app development. When Apple or Android make a change to their operating systems, Corona Labs has to follow suit, which in turn makes Kwiksher have to follow their lead.

There is also another huge benefit to their new subscription model. Let’s say you have an idea for a storybook app, but you’re not ready to make a huge investment in software in case your app doesn’t make you a lot of money or in case you just don’t end up liking app development. You can download the Corona Lab’s Starter Kit for free and then just do a 3, 6, or 12 month subscription to Kwik, depending on how long you’ll need it.

You can also have your script reviewed, have video chat support, and pretty soon, Kwiksher can even publish your app to all of the major app store for you via their services program.

My latest book, Maddie Bear’s Birthday, would have taken much, much longer to develop had I not used Kwik. It saved me days worth of coding. Check out my app at MaddieBearBooks.com to see what is possible with Kwik.

Maddie Bear's Birthday for iPad
Maddie Bear’s Birthday for iPad

Public-Funded Apps

In my previous blog post about being a one-man studio, I noted that since I create my personal apps as a hobby, I don’t have funding for sound effects, narration, etc. Now for my current project, which is a storybook series called “Maddie Bear Books“, I’m in the same boat.

Once I finish the storyline and illustrations for the first book of the series, I don’t have any money to pay a professional narrator or to buy any sound effects/music that I can’t create myself. To try to raise some funds, I decided to start a “Bearstarter” campaign. It’s a lot like Kickstarter, but without the Kickstarter fees, overhead costs of shipping and producing rewards, minimum monetary goals to meet, etc.

The benefit of going this route is that if people want to donate out of the goodness of their hearts, there’s no minimum amount to raise or if they want a physical product for their donation, I also have signed prints available. All of the proceeds go directly into app and book production and it’s a cool chance to be part of a project from the very beginning.

Click on Maddie Bear for more information.

Click for Bearstarter Information!
Click for Bearstarter Information!

Book Review: Corona SDK Hotshot

Today I’m going to review “Corona SDK Hotshot” by Nevin Flanagan, which is published by Packt Publishing. If you’re a regular Corona user, you’re probably well past the “Hello World” style tutorials that are available in most coding books, but you may not be ready for expert-level books, either. Corona SDK Hotshot is a great intermediate level book that assumes previous knowledge of the platform and lets you create 10 different game apps.

Corona SDK Hotshot

One thing that I noticed from this book that is different than most, is that the author first shows you how to layout your game idea. Instead of just throwing you into the coding, you first first think about what you want your game to do, how will it function, the screen order, etc. to properly plan out the app. This is good practice for new game developers to draft out their ideas and properly layout the game plan instead of just jumping right into coding and artwork.

Atmosfall

The variety of the games that you develop in the book is nice, ranging from tapping enemies before they get to a certain point, jet shooter-style, RPG, and even a translation app. I think my favorite example was chapter 5’s game, “Atmosfall” because it reminded me of “Vapor Trail” for Sega Genesis (I’m aware that I may be the only person that has ever played this game before). It’s a top-down view game of an aircraft that shoots enemies that also shoot at you, not a new concept, but still entertaining.

The examples aren’t just about the finished product, though. Through the process of building the games, you learn about integrating multiple touches, loading music, algorithms, Game Center, etc., which can help you build games that integrate these features and do not necessarily follow the examples given. Again, this book is not for total beginners who are new to Corona SDK, it assumes prior knowledge.

Overall, I thought this book was good from a standpoint of someone who understands Corona SDK and Lua and wants to create a variety of game types. I picked up the PDF version to read on my iPad while traveling and on my Macbook when I was ready to code. If you’re interested in creating gaming applications, it’s definitely worth checking out.

Kwik “Next”

Today, Kwiksher announced its upcoming software “Kwik Next”, or as it will officially be called, just “Kwik”. Kwik will offer a variety of improvements to the user experience, a new pricing system, and a plethora of new features. Kwik will now be on a subscription service rather than a one-time fee. Those familiar with Adobe CC, Corona SDK Pro, and Lanica software have probably noticed the recent trend of subscription software. I’m glad Kwiksher chose to switch to subscription because Corona SDK is constantly changing to keep up with the changes in the Android and iOS ecosphere, which means Kwiksher also has to constantly change. Now instead of having to buy a new version every time Apple decides to change the iOS standards, Kwik users will always have up-to-date software.

A Kwik software subscription also means that you can now do a 3-month plan in case you just want to quickly publish your book idea. A 3 month subscription is expected to go for $99 USD as of the time of this writing, which is a great price for indie developers and children’s book authors. A year subscription is expected to be priced at $249 and also gives you the ability to vote on the next feature you’d like to see implemented into the software.

Right now, Kwik is still in beta and looking for users to help test the software. Kwik 2 customers can join the beta team for about $149 USD. You may be asking why you’d want to pay to beta test software when most companies offer it for free. In this case, the $149 gets you a 15 month subscription to Kwik, which saves you about $200 ($249 for 12 months + $99 for 3 months – $149 Beta = $199) and this deal is only good until Corona Labs lifts the new storyboard NDA. The new version of Kwik will run on the officially supported Storyboard tool once it’s finished by Corona Labs, whereas Kwik currently runs on director. So this deal could last a day or it could last a couple months, it’s hard to say. Regardless, I joined the beta team as soon as I could, which brings me onto this next segment.

Installing the new Kwik

A lot of Kwik users had trouble getting the software setup initially, which Kwiksher has addressed with this new version. Now when you run the software, it takes you through step-by-step, and copies any text you’ll need to your clipboard for you.

installScreen Shot 2013-09-12 at 6.46.53 AM

Screen Shot 2013-09-12 at 6.46.57 AMScreen Shot 2013-09-12 at 6.47.08 AM Screen Shot 2013-09-12 at 6.47.11 AM Screen Shot 2013-09-12 at 6.47.14 AM Screen Shot 2013-09-12 at 6.47.18 AM

If at anytime you need assistance, you can click on the Help button and it will take you to a video tutorial of how to install it step-by-step. The Settings window now has an option for Colored Icons, which is a great new feature that I’ll show you momentarily.

Screen Shot 2013-09-12 at 6.47.50 AM

The new Kwik panel also has a built-in showcase for Kwik-made apps when it first opens. You only see the ad until you start a project or open an existing one. The panel also gives you easy access to pre-made templates if you’re new to Kwik and want to see what is possible. Your previous projects are also listed in the panel so you can quickly open any project you’ve worked on in the past.

Screen Shot 2013-09-11 at 8.38.51 PM

Now onto the colored icons. The colored icons allow you to quickly (kwikly?) see what interactions go with each group. Here we can see that Animations is a yellow group, so anything listed in yellow is an animation. Pink are related to Interactions, Purple are Physics, etc. This will be especially helpful to newer users. Now you won’t have to wonder where to go for say, Body Properties, you can see that they’re purple, so they must be under the purple Physics panel.

Screen Shot 2013-09-12 at 6.55.29 AM

Another new feature is the ability to search for items. In my first project test, I had a few interactions for ball objects. Rather than having to look throughout the Kwik panel for anything named “ball”, I could easily look for them using the new search tool.

Screen Shot 2013-09-12 at 6.57.06 AM

Another new method of searching for specify items is to look by the type of interaction or property you’ve assigned to it. Here I looked for anything that had a Physics Body.

Screen Shot 2013-09-12 at 6.57.36 AM

Those are just a few of the new features available right now in the new Kwik beta. If you’re hesitant to sign up now, you can still buy Kwik 2 until the end of September, which is not a subscription or you can wait until the final version of Kwik is released and download the free trial, which will allow you to create a few pages for free.

Screen Shot 2013-09-12 at 6.56.36 AM

Overall, I think the new Kwik looks and feels great to use and I’m very excited to see what Kwik will bring once Corona Labs releases their new storyboard tool. I think the subscription plans of $99-$249 have something to offer every indie developer regardless of budget and Kwik will be a great investment for children’s book authors.