Endless Runner Game Development Highlights – Generating Hallway Segments, Adding Particle Effects, and Restarting

Endless Runner Game Development Highlights – Generating Hallway Segments, Adding Particle Effects, and Restarting

Corona Geek

Recently on Corona Geek, we continued working on our endless runner game as part of an ongoing game development series. So far we have:

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:

Thank you for watching, listening, and following Corona Geek:

Charles McKeever
[email protected]

Charles McKeever is a life long computer geek who enjoys exploring technologies to understand how they work, how they can be smashed together, and how they can be used to fuel entrepreneurial endeavors.

No Comments

Post A Comment