Code Annotations After reading the first three parts of the Corona SDK tutorial you should be able to easily understand the code. There is only one minor code construct I have not explained in one of the previous tutorials: closures Closures are very useful. You can learn about closures in the book. Closures are blocks of code which can refer to its declaration context. Normally the code blocks are functions, which do not have a name. You can spot these in the project where they are assigned to a variable called closure.
In fat freddy these functions are used to reset variables after a transition has been completed. For those of you who are familiar with closures you will notice that I discard the best part of closures by referencing the variables which would be in scope anyways and not the declaration context.
Creating Mobile Apps with Corona SDK. Tutorials for Corona SDK from GPAnimationsBlog.com. Chapter 1 Is this book for you? I wrote this book in hopes of inspiring more people to dive into the world of mobile application development. At first glance, developing a mobile. Contribute to boostup/Corona-SDK-Simple-PDF-Reader development by creating an account on GitHub.
This is another thing you would want to do differently in a real project. Sound Playing sound with Corona SDK is simple. Just preload a sound like this.
Audio.play ( powerUpSound ) The game sounds have been created with the free audio effects tool. This is a Mac port of the Windows tool sfxr. It is really fun to use. Give it a try. Conclusion This completes the game tutorial series. It has become much longer than I planned. So forgive me for not being concise.
Please spread the word about the tutorial and leave your feedback in the comments. I would be glad to have you as a reader of my or as a follower on. You can also find me on. Happy coding. Written by who lives and works in Frankfurt building digital doodah.
Comments are closed.
|
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |