How to Create a MAP for your game | Unity Tutorial

  Рет қаралды 13,493

Sasquatch B Studios

Sasquatch B Studios

Күн бұрын

Show your Support & Get Exclusive Benefits on Patreon (Including Access to this project's Source Files + Code) - / sasquatchbgames
Join our Discord Community! - / discord
For this Unity tutorial, I'm going to show you the simplest method I know to create a map for your game. When I was first working on Veil of Maia, I was frustrated by the abundance of MINImap tutorials, but I couldn't seem to find one for an entire map system.
So I figured it out and created this system. Since it was originally designed for a metroidvania, I'll show you how to only display a room once you've actually entered that room.
I hope you enjoy!
Link to Download our FREE 2D Asset Pack:
veilofmaia.com/tutorial-asset...
---
In need of some Unity Assets? Using our affiliate link is a great way to support us. It's free, and we get a small cut that helps keep us up and running: assetstore.unity.com?aid=1100lwgBQ
---
Unity forum for the SceneField code:
discussions.unity.com/t/inspe...
Contents of This Video: ------------------------------------------
00:00 - introduction and explanation
01:15 - setting up a minimap
04:14 - Creating our rooms on the map
05:29 - Getting ALL our rooms to display on the map
06:21 - Only displaying rooms once we enter them
09:46 - Creating a fullScreen map
Who We Are-------------------------------------
If you're new to our channel, we're Brandon & Nikki from Sasquatch B Studios. We sold our house to start our game studio, and work full time on building our business and making our game, Veil of Maia.
Wishlist our Games:
Wishlist Veil of Maia! - store.steampowered.com/app/19...
Wishlist Samurado!
store.steampowered.com/app/23...
Don't forget to Subscribe for NEW game dev videos every Monday & Thursday!
Follow us on Twitter for regular updates!
/ sasquatchbgames
#unitytutorial #unity2d #unity3d

Пікірлер: 22
@iiropeltonen
@iiropeltonen 9 ай бұрын
Very interesting. Especially the revealing rooms functionality.
@LazyTeaStudios
@LazyTeaStudios 9 ай бұрын
Its like you know what i plan to work on next every time u release a video xD thank you so much!
@Taibot
@Taibot 9 ай бұрын
Awesome i will put it in my playlist. Thanks for that!
@alexleonardkrea
@alexleonardkrea 9 ай бұрын
Fantastic as usual! Thanks
@VoidShadow66
@VoidShadow66 9 ай бұрын
I like the video and the idea. I respect you, Sasquatch, for a high-based knowledges of c#. I am making my game , i am good in Art, but i not even close to your level of Code understanding. For me - Code is like Language of Aliens from Distant Planets.
@seblambert1
@seblambert1 9 ай бұрын
Very good tutorial! I started listening to your videos 1 months ago and learned a lot. Your journey to create a video game studio is also very inspiring. I think you have the quality needed to succeed in running a succesful business. Keep up the good work.
@sealsharp
@sealsharp 9 ай бұрын
Well explained video. Technically though, that's quite a bit of data being processed for someting that on a data level is an array of bits.
@Rangeon
@Rangeon 9 ай бұрын
Nice
@alif-fgd
@alif-fgd 9 ай бұрын
Great video! Any tips on how to achieve a more precise way of revealing the map, like just revealing areas that the player explored in rooms that are bigger/more complex?
@_jonathancollins
@_jonathancollins 9 ай бұрын
The best way would likely be to break one room into multiple regions. Then, instead of revealing on scene transition, you'd likely want to use triggers and colliders for those regions. Another thing you may want to consider adding would be some kind of fog of war overlay to the region borders. I'm guessing this would probably be done via shaders, but I haven't done research on using shaders in this way.
@MrOmega-cz9yo
@MrOmega-cz9yo 8 ай бұрын
Out of curiosity, for the large map, why not just zoom in the map camera and change the background transparency? After all, you made the minimap 1920 x 1080 and then zoomed the camera out. Seems to me that would be simpler. Or am I missing something?
@rubpty
@rubpty 9 ай бұрын
Hi Brandon. I use the same approach as you for my map. I'm still looking for a proper way to dynamically reveal the map when inside the same scene. In your example, the scenes were just small rooms, but if we have larger scenes, it's more likely that we wouldn't want to reveal the entire map onSceneLoad. There's a way to do it using Clear Flags, but when using the 2D Renderer, there's no Clear Flag option on the Camera. If you happen to find a solution for this, it would be great to see a follow-up tutorial. Thanks!
@sealsharp
@sealsharp 9 ай бұрын
You can create textures at runtime and set their pixel values. So you could have two texures, one that contains the fully revealed map and one that contains nothing. And when your player moves around on the map, you copy all pixels around the player from the revealed map to the empty texture. It's kinda like fog of war works in old RTS games.
@rubpty
@rubpty 9 ай бұрын
@sealsharp, a very interesting approach. I'm not sure about the process of copying all the pixels around the player from the revealed map to the empty texture, but it seems like something I can explore further. Thank you!
@sealsharp
@sealsharp 9 ай бұрын
@@rubpty good luck ;-)
@MattiaBelletti
@MattiaBelletti 9 ай бұрын
Fun thing: this system would not work on hollow knight because the geometry of the rooms themselves are not consistent (there are multiples overlaps)!
@noobdev6464
@noobdev6464 3 ай бұрын
how can i save the loaded level with json?
@Coco-gg5vp
@Coco-gg5vp 9 ай бұрын
First
@hldfgjsjbd
@hldfgjsjbd 9 ай бұрын
Maintaining this will be a hell, and doesn’t scale well.
@moshecristel
@moshecristel 9 ай бұрын
What would be a better alternative?
@hldfgjsjbd
@hldfgjsjbd 9 ай бұрын
@@moshecristel Another tutorial
@moshecristel
@moshecristel 9 ай бұрын
@@hldfgjsjbd Thanks, but not helpful
Creating Rope Objects with Physics | Unity Tutorial
10:36
Sasquatch B Studios
Рет қаралды 18 М.
孩子多的烦恼?#火影忍者 #家庭 #佐助
00:31
火影忍者一家
Рет қаралды 50 МЛН
Khó thế mà cũng làm được || How did the police do that? #shorts
01:00
Вечный ДВИГАТЕЛЬ!⚙️ #shorts
00:27
Гараж 54
Рет қаралды 14 МЛН
How to Start Gamedev in 2024
10:28
Sasquatch B Studios
Рет қаралды 430 М.
10 Unity Tips You (Probably) Didn't Know About
8:58
Sasquatch B Studios
Рет қаралды 10 М.
Escaping Unity Animator HELL
18:18
Lost Relic Games
Рет қаралды 499 М.
What it's Like Making Money with Indie Game Dev
8:24
Sasquatch B Studios
Рет қаралды 9 М.
So you want to make a Game Engine!? (WATCH THIS before you start)
14:39
Giant Sloth Games
Рет қаралды 275 М.
OPTIMIZE your Unity game using these performance tips | Tutorial
11:20
Sasquatch B Studios
Рет қаралды 10 М.
Unity : Quick & Easy Mini Map implementation
11:25
The Unity Dude
Рет қаралды 10 М.
СБЕГАЮ ОТ ЗЛЫХ РОДИТЕЛЕЙ в Schoolboy Runaway
44:32
ЧОП ДОСЫН ЖОҒАЛТЫП АЛДЫ (GTA V)
14:10
MANGO PLAY
Рет қаралды 19 М.
skibidi toilet 76 (part 1)
3:10
DaFuq!?Boom!
Рет қаралды 18 МЛН