Going further

If you are the adventurous sort, try expanding your project to add the following:

  • Add some buildings to the town
  • Add the skyscraper skylines to the scene and give each a different Sprite renderer Color property, maybe even add a script to randomly set the color
  • Research parallaxing backgrounds and parallax the skyscraper skylines
  • Add objects to the foreground layer that always render in front of the player
  • Add more objects to the middleground layer to create a more interesting scene

Get Mastering Unity 2D Game Development - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.