Tuesday, November 25, 2014
In K12 education today, the emphasis on teaching students and universal common set of learning standards, coupled with the ability to develop unique solutions to open ended problems lends itself to coding and computer programming. There are a plethora of apps and software tools that provide students with some of the fundamentals and programmatic thinking principles necessary for learning to code/program. However, these tools do a great job at providing the underlying thinking, but not so good a job of allowing learners to develop working applications ready for public distribution to the most common computer platform, mobile computing.
Edward Lavieri's new book, LiveCode Mobile Development Cookbook does a great job of supporting learners beyond the programmatic thinking and into real app development using LiveCode. The book does a nice job of scaffolding the learning from the initial configurations for developing, for both the iOS and Android platforms, all the way up to utilizing databases within your app for storing and retrieving data. The later chapters of the book focus on providing modules for standardized mobile user interfaces and for including multimedia components in your apps.
The book assumes some prior familiarity with LiveCode, but presents its content in manageable chunks, with easy to follow and well documented tutorials.
I would recommend this book for anyone ready to take their programming beyond the theoretical and into actual app development stage. This book easily supports a second tier coding/programming class, where students have mastered introductory concepts and are ready put that thinking to use in developing actual solutions. (https://www.packtpub.com/application-development/livecode-mobile-development-cookbook)
Monday, November 10, 2014
How good is your memory?
Here is a little LiveCode example project based on the old memory game that requires that you repeat a specific pattern. The game begins by clicking the start button and will continue incrementing up until you make a mistake. How high can you go? I pretty much bomb out at 7 or 8 steps.
This LiveCode example works both as a desktop application or as a iOS mobile application. The scripts/code for this project live in the “Start” button, the Card script, and the colorful game buttons: one, two, three, and four. The card script contains the CheckProgress command which determines whether the player is correct or incorrect. It also contains, essentially, a matching series of code that the desktop version of the Start button uses, but incorporates the iOS specific commands for mobile. If you compare the iOS code in the Card script, and the desktop app code within the Start button, you will notice some similarities.
The musical notes were created in Apple’s Garageband and saved as mp3 and wav files. The mp3 files are referenced from within the iOS package (they are included as individual files in the apps sandbox) in order to play and the wav files are imbedded into the application for playback in the desktop version. (MP3 files were converted to wav files using the OSX terminial application afconvert.) You will notice differences between the desktop code and the iOS mobile code.
Finally, to address different screen resolutions on both an iPad and an iPhone, it uses the “fullScreenMode function within LiveCode, a relatively new addition to the development tool, to make adjusting screen resolutions automatic. The application will automatically resize itself to fit within the devices screen resolution. It is one line of code within a preOpenStack call: set the fullScreenMode of this stack to “ExactFit.” That’s it.
The Memory Game project file is available here: Download .
Here is a short YouTube video explaining more about the process of creating the memory game example with LiveCode and a peak at the code: