Paper Boy Progress Report #6

Change Log

  • Added procedural pathway generation
    • This allowed the addition of a bunch of new houses
  • Added automatic target placement on front door pathway
  • Added Coroutines to prevent lag spikes in level loading

This week I implemented the back end for procedural generation of pathways for houses in the game. The ability to simply place ’empty’ game objects to mark the front door, garage door and back two corners of the house and have it generate the paths and the grass is so useful. Now regardless of the meshes we can generate the base environment for the front of the house.

Below you can see an animation of the paths and grass that are placed in the generation.

To explain a bit, the grass is filled in on the front door side of the driveway with each path block as it is placed. Basically we place a block, then do a little logic to tell which sides of the brick need grass, and shrink it to the width of the block give it a length and place that object on the midpoint of that side of the brick. On the opposite side of the driveway we simply place grass the same length as the driveway.

This method works really well, or at least well enough, I am pleased with the results.

Demo

I implemented Coroutines, which means there is no longer a lag spike when loading into the level, however it also means you see the level being setup which is sort of funny, but shouldn’t be included — one of the next things I would like to implement is a loading screen so all the level switches are a bit more kind to the user.

With that qualifier enjoy the demo and thank you for stopping in and reading! Please feel free to leave a comment 🙂 I would like to hear your thoughts.

5 thoughts on “Paper Boy Progress Report #6”

  1. Duuuuuude it’s looking really good, the details are setting in. I’m beyond excited to see what’s to come!

    p.s. I saw you hit dem reds let’s goooo

    1. Haha! Thanks for reading! Hoping to see some action on that clock this week (no spoilers here though 😉 )

  2. Shweeeet! Got some ideas for background neighborhood noises in addition to the birds. I know this is way peripheral than the coding, etc. but thought I’d put it out there for when you get to more finishing touches.

    1. I would love input! It’s difficult to narrow down the small things in the end for me 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.