Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
LiveCode Mobile Development Beginner's Guide (2nd Edition)

You're reading from   LiveCode Mobile Development Beginner's Guide (2nd Edition) Create interactive mobile apps for Android and iOS with LiveCode

Arrow left icon
Product type Paperback
Published in May 2015
Publisher
ISBN-13 9781849699655
Length 256 pages
Edition 1st Edition
Arrow right icon
Authors (2):
Arrow left icon
Colin Holgate Colin Holgate
Author Profile Icon Colin Holgate
Colin Holgate
Joel W Gerdeen Joel W Gerdeen
Author Profile Icon Joel W Gerdeen
Joel W Gerdeen
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. LiveCode Fundamentals FREE CHAPTER 2. Getting Started with LiveCode Mobile 3. Building User Interfaces 4. Using Remote Data and Media 5. Making a Jigsaw Puzzle Application 6. Making a Reminder Application 7. Deploying to Your Device A. Extending LiveCode Index

Chapter 5. Making a Jigsaw Puzzle Application

Picture this…

So far, we've been dealing with a lot of text or calling mobile OS features. These are neat things, but they're not that visual. If you were longing to mess around with pictures and image data, your time has come!

LiveCode isn't naturally a graphics powerhouse and its way of handling image data (often referred to as "bitmap data" by other tools) is somewhat unusual. It effectively stores the pixels of an image as a series of single byte characters to represent the red, green, and blue values of each pixel. Handling a final image is quite flexible, but in order to create something along the lines of a jigsaw puzzle, we need to understand the format of imageData, a LiveCode property.

In this chapter, we will:

  • Examine the way LiveCode stores bitmap data in an image object
  • Find a way to use a single bitmap in place of 50 buttons
  • Make a collision detection map
  • Create a jigsaw puzzle app that takes...
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 €18.99/month. Cancel anytime