Fireship · @fireship

Godot in 100 Seconds

Uploaded October 24, 2022 · Length 2:40

Godot in 100 Seconds

Summary

godot game engine tutorial for beginners, creating 2d and 3d games with c# and gdscript

  • godot game engine
  • game development
  • c# programming
  • gdscript
  • 2d game development
  • 3d game development

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    and Godot a free and open source game

  2. 0:02

    engine capable of building high quality

  3. 0:04

    2D and 3D games it was created in 2007

  4. 0:07

    in Argentina and open sourced in 2014

  5. 0:10

    like Unity it provides an editor that

  6. 0:12

    allows you to create visualize and

  7. 0:14

    program the behavior of game objects

  8. 0:16

    however Godot weighs in at just 35

  9. 0:18

    megabytes while providing a full feature

  10. 0:20

    developer experience that's approachable

  11. 0:22

    to beginners game code can be written in

  12. 0:24

    C sharp C plus plus or a purpose-built

  13. 0:27

    language called GD script it feels like

  14. 0:29

    a cross between typescript and Python

  15. 0:31

    and dramatically reduces the amount of

  16. 0:32

    complexity and boilerplate when coding

  17. 0:34

    game scripts to create a game you start

  18. 0:36

    with a scene which itself contains a

  19. 0:39

    tree of nodes nodes are like building

  20. 0:40

    blocks that can be assigned as the child

  21. 0:42

    of another node to control the

  22. 0:44

    appearance and behavior of objects in

  23. 0:46

    the scene any node can have a script

  24. 0:48

    attached to it allowing you to write

  25. 0:49

    code that updates the object for every

  26. 0:51

    frame in the game Loop you can then save

  27. 0:53

    the scene to disk and use it within

  28. 0:55

    other scenes when your awesome game is

  29. 0:57

    complete it can be exported with a

  30. 0:58

    single click to desktop web and mobile

  31. 1:00

    platforms or two consoles like Nintendo

  32. 1:03

    switch PS4 and Xbox via third-party

  33. 1:05

    providers to build your own game right

  34. 1:07

    now download it and create a new project

  35. 1:09

    start with a new 3D scene then add a

  36. 1:12

    static body node to it which is ideal

  37. 1:13

    for things like walls and Floors on its

  38. 1:16

    own it's invisible but we can change

  39. 1:17

    that by adding a collision shape node as

  40. 1:20

    a child choose a shape type on the right

  41. 1:22

    side then modify its actual size by

  42. 1:24

    editing the values directly or by

  43. 1:26

    dragging the Gizmo with the mouse it's

  44. 1:28

    still just a wireframe but we can bring

  45. 1:30

    it to Life by also adding a mesh

  46. 1:32

    instance node a mesh is a collection of

  47. 1:34

    triangles that make 3D shapes look

  48. 1:36

    realistic we can also make the scene

  49. 1:37

    look more realistic by adding a

  50. 1:39

    directional light to it which will cast

  51. 1:40

    Shadows off of other 3D objects now to

  52. 1:43

    add a player to the game we'll create

  53. 1:44

    another scene this time with a kinematic

  54. 1:47

    body as the root which is ideal for

  55. 1:49

    objects that you move around with a

  56. 1:50

    controller give it a collision shape and

  57. 1:52

    mesh then open up the project settings

  58. 1:54

    and go to input map from here we can

  59. 1:57

    create labels like move left and move

  60. 1:59

    right then map the those labels to