25 March 2015
Endless Runner Game Development Highlights – Generating Hallway Segments, Adding Particle Effects, and Restarting
Recently on Corona Geek, we continued working on our endless runner game as part of an ongoing game development series. So far we have:
- defined the elements of the game,
- identified the required assets
- organized the project
- created walls at 45 degree angles
- added a player object, touch input, and camera movement
In Hangout 133 we added code to generate continuous hallways, add particle effects, and automatically restart the game when the player object runs into a wall. By the end of the Hangout our game was looking a lot like the original game.
Now the player leaves a trail of particles while responding to one touch input to avoid zig zag walls. When the player hits a wall, the game automatically restarts and the fun begins all over again.
Download the code and follow along. Be sure to experiment with the code to experience how it works and make it your own.
We have split the Hangout into clips to make things easier to follow. Watch the entire Hangout, or just the pieces that interest you.
Game Development Snippets
Here are the Hangout snippets. Download links for all samples and code snippets can found in the show notes for each of the Hangouts. Enjoy!
Part 1 – Creating Hallway Segments
Ed Maurina shows how to generate new hallway segments.
Part 2 – Dynamically Drawing Hallway Segments
Ed shows how to dynamically draw hallway segments only when they are needed.
Part 3 – Managing Segments Using Pairs
Ed shows how to use pairs in wall segment management.
Part 4 – Removing Wall Segments
Ed shows how to remove previously generated wall segments
Part 5 – Game Restarting
Ed shows how to restart the game when the player collides with a wall segment.
Part 6 – Creating Unique Games
In this clip we discuss the topic of making a game your own.
Also, here are the previous Hangouts in the series:
- Hangout 129 – Game Planning
- Hangout 130 – Project Organization
- Hangout 131 – Coding Walls
- Hangout 132 – Coding Touch Input
Thank you for watching, listening, and following Corona Geek: