Unity Course - Stardew Valley like grid based building system

preview_player
Показать описание
In this course long Unity tutorial we will create a grid based building system. At the end of this tutorial you will not only have a building system like the one known from Stardew Valley (placing small buildings, large buildngs, destroying them) but you will also learn a lot about Unity and C#. I do my best to provide as much useful information on the way as possible.

Play Maximus Jones:

If you would like to show me some support:

If you are looking for a great community:

00:00:00 What we will be creating
00:02:01 Why I created this video
00:02:22 How to get the files
00:02:56 First tilemap
00:04:27 Buildable item base
00:08:22 Tilemap layer
00:10:49 Build method base
00:12:32 My input setup
00:16:05 Mouse user class
00:20:59 Building placer class
00:25:08 Sorting sprites
00:32:28 Buildable & Is empty
00:39:02 Preview
00:48:37 Some fixes
00:51:13 Wooden fence
01:00:38 Building selector
01:07:32 UI
01:15:17 Game object based building
01:21:13 Destroying buildings
01:27:02 RectInt extensions
01:35:43 How our delegate and extension will work
01:41:45 Custom collision space
01:54:47 Is empty for custom collision space
02:01:08 Destroying buildings with custom collision space

#unity2d #stardewvalley #unitytutorial
Рекомендации по теме
Комментарии
Автор

Hello Fantastic People, another 'course long video' this time about Building. I hope you like it! :) If you want to be fully prepared for it I recommend watching those videos first:

PitiITNet
Автор

This is so truly amazing thank you so so freaking much

caydencobb
Автор

Watched this while doing some other stuff tonight... I'm going to have to watch it again as I saw quite a few nuggets of gold in there that I need to further investigate.

Thanks Piti!

alexleonardkrea
Автор

Ooooh, this is awesome ❤ I'm looking forward to working through this, thank you so much for it 👍

ChristinaCreatesGames
Автор

Amazing work!!! Thank you for sharing your hard work. I can’t wait to learn and implement what you are teaching.

gameartdevelopment
Автор

I have never seen like this quality video on youtube, code quality 10/10 and explanation is 10/10. Thanks man :)

mracipayam
Автор

Awesome! Structure of code is pretty good so I can rewrite code in my level editor(Tower Defense) :D

forcesoftheevil
Автор

I've learned so much!!! Thank you for the amazing video!

landakkaadamolun
Автор

Commenting to support the video as I follow along :D

drewlong
Автор

Pls, the inputActions that i generated dont have things like .Game or .CallbackContext, and the video dont show the entire inputActions code, can you give us the code created on the video?

cristianrr
Автор

Thank you for this great tutorial. I also subscribed to the discord channel and hoping to see more videos like this

lunasylphhh
Автор

I'm somewhat new to unity so my brain is basically fried in the first 15 minutes but so far its great :D

thisisemmalyshandle
Автор

Hello, first I want to thank you for the video, it's very helpful for my project.
But somehow I can't create the TileChangeData even tho I already have Unity.Tilemaps included. Do you know what could happened?

thenormiemaster
Автор

this is great, I will watch when I get home tonight, I skipped around the video and this tutorial is fire!

by the way, are we able to request videos of any particular topic? :)

lfcamacho
Автор

Great tutorial +++, I wonder if you could expand on more systems in this game, or perhaps even systems from similar games, such as Prison Architect, If you even made a course on all the system from PA I would buy it!

tomfebry
Автор

Hello, which section of the video goes over how to get it so that every time you click, the tile appears? Currently, I click once and the tile just keeps spawning as the player walks around, which I don't want. From the video, it seems like you're able to spawn one tile every time you click, so I'm not sure where I went wrong.

SophiaTao-xy
Автор

14:45 Using partial classes like that with duplicate names is bad practice in SE. While totally legal it makes it harder for other SE's to follow what is going on. It's better to get InputActionsEx, manager or singleton at the end of the name.

Ziplock
Автор

Seemed a lot of work for extra tilemap layers and rect extetions when you could have just set a vector2 on the data and if its x or y is greater than 0 when you place just do a for loop and add each coordinate to the dictionary.

chargnmalazr
Автор

really great tutorial, can one actually wish for tutorials from you?

Minoulein
Автор

Piti could u make video how to make camera swipe movement (I hope I translated it correct) with this building system? Or advice sth what check in script

forcesoftheevil