Welcome to the latest installment of From the Forum. In this series, guest blogger Alex Jackson highlights outstanding threads from the Corona Forum. The goal is to bring attention to the most captivating, interesting, and thought-provoking discussions taking place in our very own backyard.
Please visit the forum to join these conversations or start your own!
1. Skybox sample code
In my rambling walks through the CoronaLabs forums, I came upon this really interesting sample code for a visual Skybox, and II wanted to get this out into the wild before I forgot about it. For those who are not familiar, a Skybox is “is a method of creating backgrounds to make a computer and video games level look bigger than it really is.”
Starwalt developer Rakoonic has come up with an interesting proof of concept showing how to work with simple Skybox logic in Corona, using the new Graphics 2.0 functionality. He has prepared and provided the sample code to the community so that we all can benefit. Go ahead and check out the .zip, and if you have any modifications or improvements, don’t forget to share!
2. Help with creating a leaderboard
Continuing on the “social sharing” theme, we are going to highlight the tips and tricks necessary to get a game’s leaderboard to play nice with the cloud services that exist for CoronaLabs developers. Combining .json file maintenance with some free online services is all that’s stopping you from throwing a leaderboard into your game.
Check out the below thread for tips on how to create your leaderboard, including some free server options that are a snap to set up. Have your own method? Let us know about it!
3. Two-phase authentication for Facebook
With the new Facebook rules in place, we are all working diligently to ensure our apps do not violate the policies that Mark and co. have created for developers. No pre-filled messages, no incentivized sharing, and no talking to your neighbor (one or more of these facts may be false).
With that in mind, I wanted to highlight a post that discusses how best to implement Facebook functionality, specific to the login process. Facebook has a simple peculiarity that we need to login into Facebook twice. Specifically, and to quote Rob Miracle:
For basic permissions, i.e. read only basic profile stuff, you only need one login. If you need extended permissions, like getting someones email, or writing to their timeline you have to make a 2nd request to get those features.
Drop by the original thread to see how best to code in the two-phase login, and if you have a suggestion, feel free to throw it in.
Alex Jackson is an indie developer and the founder of Panc Software, specializing in retro-style gaming. He has created several mobile applications, enjoys long walks on the beach, pixel art, and reading the Corona forums. Contact him by email or follow him on Twitter: @pancsoftware. Check out his new game Crosstown Smash on iOS, Android, and Amazon devices!
Posted by Rob Miracle. Thanks for reading...