24 August 2015
Corona Geek #156 – Using Gravity In Games – Part 3, Adding Blocks, Spikes, Coins, and Monsters
On today’s weekly Corona Geek Hangout we continued our “Using Gravity In Games” game development series with a look at level building. This is part three of our look at developing a game similar to the popular mobile game, They Must Be Fed 3.
In part one of the series we discussed game mechanics and looked at how gravity works. In part two of the series we added “air control” to manage what happens when the player jumps, and we added keyboard inputs to make play testing in Corona Simulator easier.
Today Ed Maurina (RoamingGamer) walked us through level building code for creating platforms, spikes, coins, and monsters. We also looked at how to dynamically center the camera on the player’s starting position. The level builder code is designed to let you position spikes on the sides of blocks by adjusting a few configuration settings. We also discussed the benefits of making your code reusable and adding the ability to turn features on and off during play testing. Download the updated source code for a full look at how the pieces fit together.
Join Corona Geek After Dark
Tune in tomorrow night at 6pm Pacific ( 8pm Central / 9pm Eastern ) for Corona Geek After Dark #8 when we will discuss topics like general app development, forum questions, community insights, and more geekfoo. Last week we discussed Develphant’s new Spotify module, forum threads, desktop app marketing, plus a ton of other stuff.
Links For Today’s Hangout
- Gravity Game Source Code
- Corona Answer Packs – First Release
- New Roaming Gamer Modules and Utilities
- Lua String Split
- Lua Data Dumper
Learning Resources
Replay Last Week’s Show
- Corona Geek #155 – 3D Printed Game Pieces and Using Gravity In Games – Part 2
- Suggest Hangout Discussion Topics
Thank you for watching, listening, and following Corona Geek:
No Comments