Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Creating Mobile Apps with Appcelerator Titanium

You're reading from   Creating Mobile Apps with Appcelerator Titanium There's no better way to learn Titanium than by using the platform to create apps for iPhone, iPad, and Android, and this tutorial lets you do exactly that. It's a truly hands-on approach that covers all the essential bases.

Arrow left icon
Product type Paperback
Published in Oct 2013
Publisher Packt
ISBN-13 9781849519267
Length 318 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Christian Brousseau Christian Brousseau
Author Profile Icon Christian Brousseau
Christian Brousseau
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Stopwatch (with Lap Counter) FREE CHAPTER 2. Sili, the assistant that just listens 3. The To-do List 4. Interactive E-book for iPad 5. You've Got to Know When to Hold 'em 6. JRPG – Second to Last Fantasy 7. JRPG – Second to Last Fantasy Online 8. Social Networks 9. Marvels of the World around Us 10. Worldwide Marco Polo A. References Index

We need a hero


Every game needs a hero and our game will be no exception to this rule. The first order of business will be to determine how he will look like on the screen. We want the hero to be able to face all the four directions when moving around the map, and we want him to have a walking animation when he is moving.

Hold that code, will you?

Just as we did with the map, we will need to have a graphical representation of our hero. Not only that, we will need a drawing for each direction to which our hero is facing as well as every frame of his walking animation.

To do this, we could use one image for every position at which our hero will appear in the game world, but a better approach will be to use a SpriteSheet. Much like a tileset, a SpriteSheet is basically an image containing all the images which we will need to display our hero at any given time.

There are a lot of free SpriteSheet that we can use. For our game, we will be using one made by a gentleman named Sith Jester. He has a...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image