Game Dev Beginner
Game Dev Beginner
  • 27
  • 752 810
How to code game logic
The first 500 people to use my link skl.sh/gamedevbeginner01251 will get a 1 month free trial of Skillshare!
Become a Channel Member: ua-cam.com/channels/8wTcfcC3JY3pU7_Cn7za6Q.htmljoin
Want to know how to CODE in Unity? Get my online course here: www.udemy.com/course/how-to-code-in-unity/?referralCode=7D4BCF4F86A840FB720B
---------------------------------------------------
00:00 Intro
01:58 What is code?
05:28 Functions
07:56 What triggers game logic?
11:18 Compiling code
12:44 Outro
What is code, really? and how can you use it to make logic in games? In this video, you'll learn what programming a game involves, how code basics can be used to create logic, and how the code that your write is turned into a finished, working, product.
#indiegamedev #gamedesign #gamedevelopment #programming #csharp #unity
CREDITS:
---------------------------------------------------
Music:
In the Atmosphere - Bad Snacks
New Year - Bad Snacks
A Caring Friend - Bad Snacks
Caverns - Bad Snacks
Take it Easy - Bad Snacks
Artist link: ua-cam.com/channels/BCI_QCAMe1hx8UNyvJlM_Q.html
DISCLAIMER
---------------------------------------------------
This video is sponsored by Skillshare.
Переглядів: 11 000

Відео

How to start making a game
Переглядів 6 тис.2 місяці тому
Are you a new developer? Want to know how to CODE in Unity? Get my online course here: www.udemy.com/course/how-to-code-in-unity/?referralCode=7D4BCF4F86A840FB720B 00:00 Intro 01:08 What kind of game should you make? 05:48 How big should your first game be? 08:55 How to start making a game 11:09 The BEST game engine to use 12:25 How to manage your project 15:04 Outro If you want to start making...
How to write a Game Design Document
Переглядів 17 тис.2 місяці тому
Are you a new developer? Want to know how to CODE in Unity? Get my online course here: www.udemy.com/course/how-to-code-in-unity/?referralCode=7D4BCF4F86A840FB720B 00:00 Intro 00:55 Why would you need a Game Design Document? 02:45 How to make a Game Design Document 06:10 Picking a format 07:59 The One-Page Method 11:52 Outro Game Design Documents are extremely useful for keeping your game devel...
Script initialisation in Unity doesn't work how you think
Переглядів 2,1 тис.3 місяці тому
Are you a new developer? Want to know how to CODE in Unity? Get my online course here: www.udemy.com/course/how-to-code-in-unity/?referralCode=7D4BCF4F86A840FB720B 00:00 Intro 00:49 How event messages work 02:10 Awake and On Enable are different 03:30 How new object initialisation works 04:43 Why is this important? 06:00 Outro Awake, On Enable, and Start, might not work in the way that you expe...
How to split up your scripts in Unity (the easy way)
Переглядів 6 тис.3 місяці тому
Want to know how to CODE in Unity? Get it on Udemy here: www.udemy.com/course/how-to-code-in-unity/?referralCode=7D4BCF4F86A840FB720B Video promo (Gumroad only): get 50% off gamedevbeginner.gumroad.com/l/how-to-code-in-unity/46ce63j (Limited to 100 customers) 00:00 Intro 01:22 What is Single Responsibility? 02:54 How to split up scripts 04:43 How to connect them together again 07:05 Outro Have ...
Timing in Unity (and why it's so important)
Переглядів 2,7 тис.4 місяці тому
Want to know how to CODE in Unity? Get my course here: www.udemy.com/course/how-to-code-in-unity/?referralCode=7D4BCF4F86A840FB720B 00:00 Intro 00:49 Event Execution Order 05:00 Instance-Based Order 06:20 Function-Based Execution 09:10 Outro You might be surprised by just how many errors, bugs, and unexplained issues in Unity are actually caused by timing. In this video, taken from the beginner...
How to CODE in Unity (online course)
Переглядів 9 тис.11 місяців тому
Learn how to write your own code in Unity by mastering the basics of C# scripting. Get the course: www.udemy.com/course/how-to-code-in-unity/?referralCode=7D4BCF4F86A840FB720B Music: Block Party - Bad Snacks Artist link: ua-cam.com/channels/BCI_QCAMe1hx8UNyvJlM_Q.html
Trying Godot (as a Unity user) for the first time
Переглядів 3,6 тис.Рік тому
Is it easy to switch from Unity to Godot? What's different, what's the same? And, if you wanted to switch, how difficult would it be? I find out, by trying Godot for the first time, on camera, for your enjoyment. 00:00 Intro 03:14 Hello Godot 07:05 Making a cube 09:12 Physics! 17:05 Moving the object (with a Script) 25:17 Jumping 29:58 Camera movement 36:36 Physics Process 37:26 Outro LINKS God...
Singletons in Unity (done right)
Переглядів 18 тис.Рік тому
Want to know how to CODE in Unity? Get my course here: www.udemy.com/course/how-to-code-in-unity/?referralCode=7D4BCF4F86A840FB720B Learn the pros & cons of using singletons in Unity, and decide for yourself if they can help you to develop your game more easily. 00:00 Intro 00:47 What is a Singleton? 02:39 Why use a Singleton? 03:00 Drawbacks of using Singletons 05:45 Is it ok to use Singletons...
Connecting scripts on the same object in Unity
Переглядів 13 тис.Рік тому
Want to know how to CODE in Unity? Get my course here: www.udemy.com/course/how-to-code-in-unity/?referralCode=7D4BCF4F86A840FB720B Learn how to connect scripts and systems together on the same object in Unity. 00:00 Intro 00:47 What's the problem? 03:18 Step 1. Local Singletons 05:54 Step 2. Automatic references using Inheritance 08:02 Step 3. Abstraction with Actions 12:23 Benefits 13:30 Draw...
Is Unity free? (and will you ever need Unity Pro?)
Переглядів 15 тис.2 роки тому
Want to know how to CODE in Unity? Get my course here: www.udemy.com/course/how-to-code-in-unity/?referralCode=7D4BCF4F86A840FB720B Find out how Unity's licensing tiers work and if you'll ever need to upgrade to Unity Pro. 00:00 Intro 01:32 Unity subscription tiers explained 04:00 Unity Personal 06:40 Unity Plus 10:08 Unity Pro 11:20 Unity Pro Preferred Platform Keys 12:32 Which version of Unit...
The right way to Lerp in Unity
Переглядів 24 тис.2 роки тому
The right way to Lerp in Unity
How to Rotate in Unity
Переглядів 32 тис.2 роки тому
How to Rotate in Unity
How to jump in Unity (with or without physics)
Переглядів 52 тис.2 роки тому
How to jump in Unity (with or without physics)
Raycasts in Unity (made easy)
Переглядів 110 тис.2 роки тому
Raycasts in Unity (made easy)
The right way to pause a game in Unity
Переглядів 65 тис.2 роки тому
The right way to pause a game in Unity
Events & Delegates in Unity
Переглядів 69 тис.2 роки тому
Events & Delegates in Unity
How to get a variable from another script in Unity (the right way)
Переглядів 105 тис.2 роки тому
How to get a variable from another script in Unity (the right way)
How to move objects in Unity (3 methods)
Переглядів 55 тис.2 роки тому
How to move objects in Unity (3 methods)
Coroutines in Unity (how & when to use them)
Переглядів 34 тис.2 роки тому
Coroutines in Unity (how & when to use them)
How to convert the mouse position to world space in Unity
Переглядів 40 тис.2 роки тому
How to convert the mouse position to world space in Unity
How to make a Countdown Timer in Unity (in minutes + seconds)
Переглядів 38 тис.3 роки тому
How to make a Countdown Timer in Unity (in minutes seconds)
How to Play Audio from a Script in Unity
Переглядів 24 тис.4 роки тому
How to Play Audio from a Script in Unity

КОМЕНТАРІ

  • @Maveno-661
    @Maveno-661 День тому

    omg this is just what I needed for my city builder!! Now, I just need to stick some code to snap to the grid to move on to smth else :3 thxx~

    • @GameDevBeginner
      @GameDevBeginner 18 годин тому

      Thank you! I have a guide on that too if it helps: gamedevbeginner.com/how-to-snap-objects-in-game-in-unity/

    • @Maveno-661
      @Maveno-661 18 годин тому

      @GameDevBeginner omg I couldn't find it thank you so muchhh!!

    • @Maveno-661
      @Maveno-661 8 годин тому

      @@GameDevBeginner Omg it worked!! :3

  • @JoshwaLaw
    @JoshwaLaw 2 дні тому

    This is perfect! I'm working on a game right now and it's so hard to stay organized!

  • @yflow5337
    @yflow5337 2 дні тому

    Thanks! Great explanation. Will be good to extend it with some visual examples. I implement this tutorial on collided spheres. On collision it gets red color than after time it returns to initial color gradually. When I collide after short time, before active coroutine is activeше causes flickering of color. So to solve it - we need to stopCoroutine()

  • @pedrohvmadureira
    @pedrohvmadureira 3 дні тому

    very good

  • @heyitsmikey128
    @heyitsmikey128 6 днів тому

    Every video that has something bad to say about singltons is "if you code badly, your code will be bad". Like, yah...if back yourself into a singleton for player and add players, you done messed up...I'd imagine this is why a good design document would probably be helpful before you do TOO much coding.

  • @konichiwatanabi
    @konichiwatanabi 7 днів тому

    Thanks for this. This helped me distill my infinite zoom mind map into a 1 page design doc that I'm super proud of. It felt like rediscovering my game all over again and the whole project feels more real than it ever has. Powerful approach!

  • @gigantetelles6409
    @gigantetelles6409 9 днів тому

    Vídeo legal, explicou bem

  • @sebastienseigneur572
    @sebastienseigneur572 13 днів тому

    This is the most comprehensive video about singletons and their uses I've seen ! Thank you kind sir

  • @Nydaxe
    @Nydaxe 14 днів тому

    This made me totally understand events in a new light, amazing explanation!

  • @hsjwvs
    @hsjwvs 18 днів тому

    3:39 you forgot to put . 0f after that 100.

    • @GameDevBeginner
      @GameDevBeginner 18 днів тому

      You only need to add f to a decimal literal, because the implicit type is double, not float. It works fine if it's a whole number though

    • @hsjwvs
      @hsjwvs 18 днів тому

      ​​@@GameDevBeginner Its a type-mismatch since the compiler will implicitly convert the hundred into double but you are storing *it* as a float.

    • @doodocina
      @doodocina 18 днів тому

      @@hsjwvsno. conversion of constants is done in compile time. since this is initialization, 100 will be represented as float

    • @GameDevBeginner
      @GameDevBeginner 17 днів тому

      @@hsjwvs in Unity C# this hasn't been a problem (compiles fine and works as expected) unless I perform a calculation when assigning, in which case I need to specify the type. I realise that this might not be the same in other languages though.

    • @hsjwvs
      @hsjwvs 17 днів тому

      ​@@GameDevBeginnerI see now, I mixed it up with C/C++. I always write it 100.0f if im using float or any other native data type. Wow they're so simillar that I thought both apply for the same thing...

  • @anthonydrakefordshadow
    @anthonydrakefordshadow 18 днів тому

    This is a very well constructed resource. I personally use Python and the pie game library to code. Options like unreal, unity, and even godot required much higher processing power than I had available to me at the time. Pygame offered the perfect level of entry for my needs. Though I have updated my system I have become attached to the python game library and it’s community. That being said, even though I am not using an engine and using a entirely different language, the information that you provided is still very helpful and has a universal appreciation, thank you ❤

    • @doodocina
      @doodocina 18 днів тому

      lol you are using python and talking about processing power? you should consider using proper programming language, not school toy language

    • @anthonydrakefordshadow
      @anthonydrakefordshadow 18 днів тому

      @ I am just starting so if my language is not advanced I am not offended. I am very proud of myself all the same 😇

    • @doodocina
      @doodocina 18 днів тому

      @ you can't learn basics of programming when you use language that do not provide capabilities to use them

    • @anthonydrakefordshadow
      @anthonydrakefordshadow 17 днів тому

      @ I am sure there are greater heights to come but for now I am ok learning to crawl before I walk. I start making games a year ago and I only used UA-cam videos, books I read, and chap gpt to learn on my own. Now that I am becoming confident in python I am sure I will try other languages at some point 😊

    • @doodocina
      @doodocina 17 днів тому

      @ you are running fast... you don't know many aspects of what you're doing. python gives you illusion of knowledge. at some point you either would start from complete beginnings to understand how lower level langs work or just stick to python, cuz complex basic things are not easy to learn when you already can program everything in python.

  • @johnabielnicolas7672
    @johnabielnicolas7672 20 днів тому

    your contents are knowledgeable and clear. Hope you do a lot more videos!

  • @josephtaylor8228
    @josephtaylor8228 20 днів тому

    That background music is way to loud and annoying. :(

  • @Nydaxe
    @Nydaxe 21 день тому

    I wish I had seen this video sooner

  • @cantinflas7764
    @cantinflas7764 21 день тому

    good video. channel deserves more activity

  • @brutosmomentos7355
    @brutosmomentos7355 21 день тому

    Perhaps the best source for learning gamedev/unity/c#. You have no idea how much I have appreciated your videos and blogs. Always easy to follow and understand, always concise and high quality. Thanks so much for the amazing work you put out!

  • @panagosu
    @panagosu 21 день тому

    Could someone identify the code theme used in the vid?

    • @panagosu
      @panagosu 21 день тому

      It kiiinda looks like Gruvbox but not quite.

    • @GameDevBeginner
      @GameDevBeginner 21 день тому

      @@panagosu yeah it’s Gruvbox, but I think it’s a little different to most gruvbox themes. I haven’t been able to find the same theme for VSCode

    • @panagosu
      @panagosu 21 день тому

      @@GameDevBeginner is this Unity’s in-engine code editor? I am not a Unity dev.

    • @GameDevBeginner
      @GameDevBeginner 21 день тому

      @@panagosu I've been using Visual Studio, but that's now deprecated on Mac. VS Code is the closest alternative but I can't find a Gruvbox theme that matches my old one

  • @cbron23
    @cbron23 21 день тому

    What is the source of the website at 8:39??

    • @GameDevBeginner
      @GameDevBeginner 21 день тому

      Here you go: docs.unity3d.com/6000.0/Documentation/Manual/execution-order.html

  • @vupartsupermud1995
    @vupartsupermud1995 21 день тому

    You gonna tell us the lore of souls like games, lol

  • @themcnetwork
    @themcnetwork 21 день тому

    Really good video, made me understand a couple things better.

  • @vusanimatshinge9508
    @vusanimatshinge9508 21 день тому

    Dude this isnt even your video, stole this from Game Makers ToolKit very disappointing

    • @GameDevBeginner
      @GameDevBeginner 21 день тому

      We do sound alike. But no, if he has a video like this it’s news to me.

    • @kaizen9451
      @kaizen9451 21 день тому

      You'd be foolosh to expect any originality from youtube devs.

  • @WebRoosterWebPros
    @WebRoosterWebPros 21 день тому

    the most underrated dev channel, youve made these concepts very easy to follow, thank you!'

  • @captain02rex
    @captain02rex 22 дні тому

    It would be really cool if you made a video about data-oriented programming and/or Unity Dots. Really nice video again, good work!

    • @GameDevBeginner
      @GameDevBeginner 21 день тому

      I'll see what I can do 👍🏻

    • @curtis1397
      @curtis1397 21 день тому

      As someone currently working with DOTS, it's not beginner friendly. It's definitely something you should avoid until you are really good at OOP.

    • @ardhenismuhammadaflah7818
      @ardhenismuhammadaflah7818 21 день тому

      Yeah, i need that tutorial!!

  • @Zvipy
    @Zvipy 22 дні тому

    will you make an tutorial on something like an inventory system?its something many games have and it uses some universally usefull concepts like lists and UI

    • @GameDevBeginner
      @GameDevBeginner 22 дні тому

      I might do yeah, I already wrote an article on it, and it's the kind of thing that's actually really different depending on how you want it to work. Also, it's probably the first time a beginner will have a need for a 'plain class' in Unity.

  • @GameDevBeginner
    @GameDevBeginner 22 дні тому

    The first 500 people to use my link skl.sh/gamedevbeginner01251 will get a 1 month free trial of Skillshare!

  • @cristitanase6130
    @cristitanase6130 26 днів тому

    send a message with the variable included, even dirtier you can send a message with the entire object sender included. A super mega dirty way is to send a message to all in range including yourself then figure out who does what by checking the object inner variables yeah, I'm sick of coding, can't you tell ;)

  • @BzechuanInteractive
    @BzechuanInteractive 29 днів тому

    Dude... This is the way i need things explained to me, i love how you take the time to explore thought processes.

  • @Krummelz
    @Krummelz Місяць тому

    I used to keep a draft email where I'd just jot down all my game ideas as I get them, and work on them over time as and when I can. I moved to using Obsidian more recently, but typically still use a one-pager for all my ideas, and if it grows too large, I can just give it it's own page and link back to the main one.

  • @LucRio448
    @LucRio448 Місяць тому

    Okay I like the concept, now I just have to find out about all those fancy names and how to use the thing the names refer to i guess :D

  • @krunalsavani5557
    @krunalsavani5557 Місяць тому

    After watching this video I am willing to learn through your Udemy Course.

  • @krunalsavani5557
    @krunalsavani5557 Місяць тому

    Superb Information in easy way, Thanks Brother

  • @SniperSam
    @SniperSam Місяць тому

    i keep putting off and putting off. The pickle I am in is which engine to use, since I started in Unity, till the curfuffle.

    • @GameDevBeginner
      @GameDevBeginner Місяць тому

      When they announced the runtime fee in 2023, I think it was, even I thought about using a different engine, and my channel is mostly Unity content. But personally, I'm really happy with the changes they've made since. That said, starting in any engine is better than not starting.

  • @Tutunafaltu
    @Tutunafaltu Місяць тому

    Could anyone tell me what theme is he using?

  • @Die.Banane
    @Die.Banane Місяць тому

    thanks a lot

  • @khaledalshaikh5991
    @khaledalshaikh5991 Місяць тому

    The fact that this video doesn't have 100s of thousands of views is beyond me. Keep up the amazing work! getting to the meat and bones and straying away from the cliches

  • @hunter-ci7dk
    @hunter-ci7dk Місяць тому

    OMG this is like the single most useful video in all of youtube related to Unity!

  • @colinkeith3533
    @colinkeith3533 Місяць тому

    it said type or namespace player (the thing i'm trying to get a bool from) could not be found and while i try to set an assembly reference because of the error it wont show up

  • @dman-tm
    @dman-tm Місяць тому

    Is it only me or do other people use animationcurve in tandem with lerp functions? is their any downside to this or any problems? i never hear people talking about it and it's what i use always becasue it does exactly what i want.

    • @GameDevBeginner
      @GameDevBeginner Місяць тому

      I do this too and it's great. Makes it easy to change easing curves in the Inspector.

  • @dman-tm
    @dman-tm Місяць тому

    I can tell we will be friends just by looking at your tool bar. impressive

  • @shashanktambe6341
    @shashanktambe6341 2 місяці тому

    Implemented a coroutine, was fucking up the game , saw this video, turns out I DIDN'T need a coroutine

  • @spamik7648
    @spamik7648 2 місяці тому

    This explanation is really good. I've watched five or six of different videos about coroutines, but only thing I understood was corutines are like complicated timer thing. But now I really understand, what is corutine, how it works and its usage. Thanks!

  • @Catalin-i1o
    @Catalin-i1o 2 місяці тому

    dosen't work.... but good tutorial

    • @Chubzdoomer
      @Chubzdoomer Місяць тому

      "Doesn't work" doesn't describe a problem.

  • @martinrohwedder6618
    @martinrohwedder6618 2 місяці тому

    This is absolutely one of the best introduction videos I have ever encountered about how to start game development. Its strict to the point, very informative and without any foolish "You have to use this engine" or "You have to start making a simple platformer". Very good work.

  • @oyleolduboyleoldu3677
    @oyleolduboyleoldu3677 2 місяці тому

    this is the golden raycast documentary

  • @Sharky.Sharky.Sharky
    @Sharky.Sharky.Sharky 2 місяці тому

    Pleeease teach quaternion bro I’m soo confused and you help sm

  • @mirm0n
    @mirm0n 2 місяці тому

    You are awesome

  • @mirm0n
    @mirm0n 2 місяці тому

    I read a lot of your articles. So helpful! You're a legend

  • @rov8730
    @rov8730 2 місяці тому

    yoo, you're the goat