Your First 2D GAME - Day 1 Beginner Tutorial

Your First 2D GAME - Day 1 Beginner Tutorial

140.641 Lượt nghe
Your First 2D GAME - Day 1 Beginner Tutorial
Show your Support & Get Exclusive Benefits on Patreon (Including Access to Source Files + Code) - https://www.patreon.com/sasquatchbgames Join our Discord Community! - https://discord.com/invite/aHjTSBz3jH Indie Merch: https://sasquatchbgames.myspreadshop.com/ This is a full in-depth Unity tutorial for complete beginners. If you've never touched a line of code, if you've never even OPENED a game engine before, then this will be a perfect fit for you! We're going to make a really nice angry birds clone from scratch. I made this tutorial with my past self in mind. I remember the overwhelm, the intimidation and all the confusion as I tried to figure everything out and peice knowledge together from dozens of bite sized tutorials. This is not that. This is comprehensive, I explain absolutely everything as I go, and by the end you will be in a VERY good place to start making games on your own. Link to Download our FREE 2D Asset Pack (NOT the ones used for this tutorial): https://assetpack.sasquatchbstudios.com/ --- 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: https://assetstore.unity.com?aid=1100lwgBQ --- Link to free assets used in the video: Sound Effects: slingshot pull - https://freesound.org/people/JackMenhorn/sounds/136493/ slingshot pluck - https://freesound.org/people/dsebeste/sounds/355041/ pop - https://freesound.org/people/Vilkas_Sound/sounds/463394/ box punching - https://freesound.org/people/BruceFenn_190335/sounds/541962/ Sprites: box assets - https://opengameart.org/content/physics-assets characters and particles - https://www.spriters-resource.com/mobile/angrybirds/sheet/59982/ environment assets - https://www.spriters-resource.com/mobile/angrybirds/sheet/164811/ misc - https://www.spriters-resource.com/mobile/angrybirds/sheet/159180/ Contents of This Video: ------------------------------------------ 00:00:00 - Intro + What to expect 00:03:24 - Unity HUB, Version explanation, and new project creation 00:05:57 - Unity layout, windows and overview 00:08:39 - Importing and preparing game assets for your game 00:15:54 - Setting up our scene + GameObjects + Sprite Order 00:29:15 - Your first script (high level variable and function explanation) 00:39:51 - Installing a package in Unity (for Input) 00:41:30 - Detecting our mouse click 00:44:07 - Setting up our slingshot with rubber bands that follow the mouse 01:08:21 - Clamping the distance of our slingshot 01:13:42 - Only detecting clicks near our slingshot 01:30:43 - Organizing our code and cleaning up slingshot lines 01:34:01 - Adding the angie bird with gravity and collision 01:37:38 - Setting up the angie bird launch function 01:47:06 - Spawning the angie bird in and setting his idle position 01:54:17 - Updating the bird's position along with the slingshot 01:58:26 - Offsetting the bird's position while on the slingshot 02:07:05 - Get the bird looking in his direction on the slingshot 02:09:54 - Shoot the bird off the slingshot using physics forces 02:12:51 - Smoothing out the bird's movement 02:15:33 - Get the bird looking in the direction he's flying 02:19:35 - Giving the bird friction and stopping his rotation once he's collided with something 02:22:59 - Spawning in a new copy of the bird after a timer 02:31:09 - Limit our number of angry birds per level 02:40:27 - Visualizing our number of available birds with UI Icons 02:55:35 - Adding blocks into the level 02:59:05 - Adding piggies into the level 03:07:26 - Adding a win and loss state and reloading the game 03:20:12 - Adding a restart button for the win state and disabling slingshot script 03:26:49 - Refactoring our input so it works for PC and mobile 03:40:07 - Adding particles when the piggies die 03:47:21 - Animating the slingshot with a tweening library 04:05:24 - Adding sounds to the game 04:17:56 - Controlling the camera and adding transitions 04:26:37 - Fixing seams in our tiled sprites 04:27:53 - Some small tweaks 04:29:04 - Adding a boundary to the camera 04:35:29 - Debugging the elastic on the slingshot, and fixing an error 04:39:07 - Adding a second level and adding the functionality to our game manager 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, Samurado. Wishlist our Games: Wishlist Veil of Maia! - https://store.steampowered.com/app/1948230/Veil_of_Maia/ Wishlist Samurado! https://store.steampowered.com/app/2343270/Samurado/ Don't forget to Subscribe for NEW game dev videos every Monday & Thursday! Follow us on Twitter for regular updates! https://twitter.com/SasquatchBGames #unitytutorial #unity2d #unity3d