Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Provider Logo

Unity 5: 2D Random Map Generation

via LinkedIn Learning

Overview

Learn how to build randomly generated 2D maps for role-playing and real-time strategy games with Unity 5.

Learn how to build randomly generated 2D maps for role-playing and real-time strategy games with Unity 5. Jesse Freeman focuses on the basics of random map generation by teaching you how to create island-based terrains, and works his way up into more advanced techniques such as resizing the map, decorating it, and eventually creating large-scale maps with individual continents. He'll add trees, mountains, dungeons, and castles to make the map more fun to explore. He'll also teach you how to create a camera script that scrolls around the map with the mouse, and set up autotiling to give the map's coastlines a more organic look. In the end, Jesse will show you how to build an authentic 8-bit style map generation tool—perfect for your next 2D RPG game.

Syllabus

Introduction
  • Welcome
  • Exercise files
1. Building a Tile Map
  • Set up the project
  • Create the tile class
  • Create the map class
  • Create the map tester class
  • Connect the map tester to the map class
2. Visualizing the Map
  • Visualize the map
  • Add sprites to the map
  • Create a pixel-perfect camera
  • Move the camera with the mouse
3. Autotiling
  • Introduction to autotiling
  • Connect neighbor tiles
  • Calculate auto tile values
  • Remove neighbor tiles
4. Decorate the Map
  • Decorate the island
  • Create the coast
  • Randomize the coastline
  • Add more decoration
  • Cleaning up the island
  • Move the camera to a tile
  • Optimizations
Conclusion
  • Next steps

Taught by

Jesse Freeman

Related Courses

Reviews

0.0 rating, based on 0 reviews

Start your review of Unity 5: 2D Random Map Generation

Never stop learning Never Stop Learning!

Get personalized course recommendations, track subjects and courses with reminders, and more.

Sign up for free