INSANE shooter with WAY too many bullets (Unity ECS Tutorial) - PART 1

  Рет қаралды 6,999

Sasquatch B Studios

Sasquatch B Studios

Күн бұрын

Show your Support & Get Exclusive Benefits on Patreon (Including Access to this tutorial Source Files + Code) - / sasquatchbgames
Join our Discord Community! - / discord
--
If you've never used ECS before then this video is for you. ECS is great for game's with LOADS of entities, so I figured why not make a shooter that attemps something INSANE that a normal monobehavior approach wouldn't be able to handle (50 projectiles per frame....WITH physics and enemies you can damage)
I hope you enjoy! And I hope ECS inspires you to create more ambitious games!
--
Timestamps:
00:00 - Intro and ECS Explanation
01:55 - Getting input with ECS
05:55 - Moving the player with ECS
10:15 - Creating the shooting behavior with ECS
Free 2D Space assets:
prf.hn/click/camref:1100lwgBQ...
---
In need of more Unity Assets? Using our affiliate link is a great way to support us. We get a small cut that helps keep us up and running: assetstore.unity.com/?aid=110...
---
Looking for some awesome Gamedev merch? - sasquatchbgames.myspreadshop....
---
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.
Don't forget to Subscribe for NEW game dev videos every Monday & Thursday!
Wishlist Samurado!
store.steampowered.com/app/23...
Follow us on Twitter for regular updates!
/ sasquatchbgames
#unitytutorial #unity2d #unity3d

Пікірлер: 32
@sasquatchbgames
@sasquatchbgames 3 ай бұрын
Hey all! If you want your bullets to spawn the same way they do in the video thumbnail: In your PlayerSystem script: Use this line for your bulletTransform.Position: bulletTransform.Position = playerTransform.Position + playerTransform.Right() * 1.65f + bulletTransform.Up() * randomOffset - bulletTransform.Right() * math.abs(randomOffset);
@ragerungames
@ragerungames 3 ай бұрын
Very concise and easy to follow. Thank you for the brief explanation. Looking forward to part 2!
@phontum
@phontum 3 ай бұрын
Great job! Hope to see a full game with your ECS tutorial series. It's a new thing for many developers and I think you can feel free to explain even more of how each of the systems works or some other why`s. Like i would love to know more about the Burst compatibility concerns you mentioned at the end of the video :) Keep it up!
@SneakySnakesStudio
@SneakySnakesStudio 3 ай бұрын
Keep up the good work!
@rofu8096
@rofu8096 3 ай бұрын
I need more content like this
@windwalkerrangerdm
@windwalkerrangerdm 3 ай бұрын
I adore the ECS, however I also severely dislike how every game prototype made with it completely lacks animations. The car flight game was a nice move by Unity team because cars don't need animation.
@FileTh1rt3en
@FileTh1rt3en 3 ай бұрын
Interesting approach to teaching ECS. I feel like every other tutorial about ECS spends so much time on well.. ECS itself. But you're just going straight for it, how to make this thing. On one hand having already consumed a decent amount and basically understanding ECS already that makes this super easy to understand and consume, on the other hand I think for people who aren't all that well versed in ECS this might be a bit tough. We'll see. Good job.
@MarushiaDark316
@MarushiaDark316 3 ай бұрын
I respect the awesome power of ECS and DOTS, but I'd be lying if I said this workflow and having to relearn all the syntax didn't make my brain and soul hurt.
@StressedProgrammer
@StressedProgrammer 3 ай бұрын
Nice tutorial! i am new to all of this. Can you cover jobs system as well please
@aleksp8768
@aleksp8768 3 ай бұрын
Time for simulated rain
@rickiousproductions
@rickiousproductions 3 ай бұрын
WAAAAAYYYY beyond me. I'm a designer not developer... BUT have sent this to a client who it might be useful too. 😎👍
@NOTAHEK
@NOTAHEK 2 ай бұрын
Can you design for me
@sannanch5512
@sannanch5512 3 ай бұрын
Hey bro... it's a suggestion... how about building a complete course from beginner to intermediate. I think it will be very useful for everyone who wants to understand DOTS but didn't know where to start.
@ImmortalTimothyM
@ImmortalTimothyM 3 ай бұрын
I agree, however in the meantime there is a KZfaqr named Turbo Makes Games that has a lot of videos on Dots and ECS. Unsure how good they are because I have not went through them yet, but the videos seemed good on my initial impression.
@sannanch5512
@sannanch5512 2 ай бұрын
@@ImmortalTimothyM Yeah I have watched him, but he is not beginner friendly.
@markguyton2868
@markguyton2868 3 ай бұрын
As someone who wants to make shmups, I wish there were more tutorials like this for the Godot engine.
@user-rm2pj9jf8s
@user-rm2pj9jf8s 3 ай бұрын
WOW
@Chrispins
@Chrispins Ай бұрын
Hey do you think BulletLifeTimeComponent and BulletComponent could have been lumped together into a single component since you can't really have one without the other in most cases? Or is it somehow more efficient to keep them separate? Just trying to get a feel for the proper ECS philosophies.
@Chrispins
@Chrispins Ай бұрын
Also, since the rotation and scale of a bullet is not really necessary (the rotation can be automatically derived from it's velocity instead), I wonder is there a way to give bullets a Position only component without using all of LocalTransform, which is slightly wasteful for the data cache in ECS if I'm not mistaken?
@NjecolinaHranjec
@NjecolinaHranjec 3 ай бұрын
That frame drop from 1:03 makes me uncertain of this technology
@Hazzel31337
@Hazzel31337 3 ай бұрын
that might be an editor thing, performance is normally better in build
@user-rm2pj9jf8s
@user-rm2pj9jf8s 3 ай бұрын
May I ask a question because I don't quite understand? Like you, I want to create a system where bullets are fired massively at the end. Is it okay to use ECS (Entity Component System) only for bullet creation, and not for other systems? I'm not familiar with the concept of ECS, so it would be difficult to modify all systems, but I would like to implement just the bullet creation using ECS. You wrote all your code to suit ECS, but I want to use ECS only for bullets. Have I effectively leveraged the advantages of ECS? I apologize for the frustrating and basic question, but I would appreciate your response. In other words, is it effective to configure only some systems with ECS instead of using ECS for all systems?
@iFAKEYx
@iFAKEYx 3 ай бұрын
You can have a mix of mono behaviors and ECS. So yes you can only do the bullets
@user-rm2pj9jf8s
@user-rm2pj9jf8s 3 ай бұрын
@@iFAKEYx THX BRO!!!
@rrainix
@rrainix Ай бұрын
yes but i think if you want to acces the position of the ship, so that you can set the direction for the bullets won't be possible anymore. Only if you would still store the ship as an entity it would be. Then you could controll it via Monobehaviour.
@mehmeh8883
@mehmeh8883 2 ай бұрын
So tis is DOTS hmm
@a6gitti
@a6gitti 3 ай бұрын
Now i know i wont be using ESC 👍🏼 thanks for this tutorial anyway
@beatrageGameSalad
@beatrageGameSalad 3 ай бұрын
30 to 45 batches in drawcalls...not bad at all... But I think I will learn GODOT... BRACKEYS is back and got me motivated to learn open source again...I have a few ideas for new viral games!
@_jonathancollins
@_jonathancollins 3 ай бұрын
If Godot finds out how to do ECS better than Unity, I'll never go back.
@ragerungames
@ragerungames 3 ай бұрын
Never blindly follow trends, mate. Follow your heart's desire. Both Godot and Unity are game engines, and at this stage, the distinction between open source and proprietary might not matter much. Currently, Unity offers features comparable to or even better than what you'd find in Godot. While you can't access Unity's engine code, ask yourself if it truly matters to understand what's happening behind the scenes. Ultimately, choose the engine that aligns best with your vision and goals.
@Coco-gg5vp
@Coco-gg5vp 3 ай бұрын
First
INSANE shooter with WAY too many bullets (Unity ECS Tutorial) - PART 2
15:26
Sasquatch B Studios
Рет қаралды 2,4 М.
I Remade Suika Game In 3D on a Friday Night
2:50
Mali Makes (whateep)
Рет қаралды 4 М.
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 211 МЛН
Doing This Instead Of Studying.. 😳
00:12
Jojo Sim
Рет қаралды 7 МЛН
Unity Coroutines - What? Why? How?
11:03
One Wheel Studio
Рет қаралды 45 М.
Entity Component System Overview in 7 Minutes
7:21
Board To Bits Games
Рет қаралды 100 М.
Unity ECS For Beginners (DOTS)
18:52
Developers Hub
Рет қаралды 15 М.
Building Runtime UI with UI Toolkit In Unity
21:35
Game Dev Guide
Рет қаралды 35 М.
How I Would Start Gamedev (if I had to start over)
9:02
Sasquatch B Studios
Рет қаралды 18 М.
The FUTURE of Unity 6!
22:36
Code Monkey
Рет қаралды 105 М.
Unity Performance Tips: Draw Calls
4:24
Lofi Dev
Рет қаралды 185 М.
Майнкрафт, но я выживаю в ПВП ЦИВИЛИЗАЦИИ
30:33
Андрей Альварес
Рет қаралды 1,3 МЛН
БАТЯ ПОМОГАЕТ МНЕ СБЕЖАТЬ в Schoolboy Runaway
29:05