1 00:00:00,357 --> 00:00:02,743 Welcome to your first Godot project. 2 00:00:02,744 --> 00:00:07,657 In this one, we'll create a ship that you can control with the keyboard 3 00:00:07,658 --> 00:00:10,443 and make boost with the space key. 4 00:00:10,471 --> 00:00:14,371 This will allow us to illustrate the four essential concepts 5 00:00:14,372 --> 00:00:17,472 around which every Godot game revolves. 6 00:00:18,971 --> 00:00:20,556 First, you have scenes. 7 00:00:20,557 --> 00:00:24,140 You have an example of a scene here with our boosting ship. 8 00:00:24,757 --> 00:00:29,986 A scene can be anything meaningful in your game, like a character, a weapon, 9 00:00:29,987 --> 00:00:32,743 a house, or even an entire level. 10 00:00:33,329 --> 00:00:36,414 A scene can be composed of nodes. 11 00:00:36,415 --> 00:00:40,120 Nodes are the smallest building blocks of a Godot game. 12 00:00:40,286 --> 00:00:44,013 For example, you have one node to display the image of a ship, 13 00:00:44,014 --> 00:00:49,329 and you have one node to countdown time, a timer. 14 00:00:49,986 --> 00:00:51,343 Then you have signals. 15 00:00:51,344 --> 00:00:57,200 Signals are messages that get emitted when something occurs in the game. 16 00:00:57,230 --> 00:01:01,080 They allow us to react to events in the game world. 17 00:01:01,314 --> 00:01:03,343 And finally, you have scripts. 18 00:01:03,344 --> 00:01:08,770 Scripts are code files with GDScript code that we attach to nodes, 19 00:01:08,800 --> 00:01:14,520 and they allow us to code our game's behavior to listen to the input, etc. 20 00:01:14,550 --> 00:01:18,560 So you can see the code you will write by the end of this video. 21 00:01:18,900 --> 00:01:23,514 Now, we'll code this ship into three steps. 22 00:01:23,714 --> 00:01:26,800 We'll start with a ship that moves by itself. 23 00:01:26,801 --> 00:01:31,040 To keep the code simple, it will just move in one direction. 24 00:01:31,400 --> 00:01:35,414 Then we'll add input support allowing you to control the ship 25 00:01:35,415 --> 00:01:40,214 with the WASD keys on your keyboard or the arrow keys. 26 00:01:40,629 --> 00:01:44,160 That will allow us to look at input. 27 00:01:44,271 --> 00:01:47,300 And finally, we'll create the boosting mechanic 28 00:01:47,301 --> 00:01:49,714 which will allow us to look at signals. 29 00:01:50,730 --> 00:01:56,240 You'll also find a text guide to go further by creating a steering ship. 30 00:01:56,270 --> 00:02:01,000 Steering is an equation, a calculation, that you can use 31 00:02:01,001 --> 00:02:07,557 to make things move smoothly in your game, whether playable characters or AIs. 32 00:02:07,558 --> 00:02:10,000 It's very useful and it's not too complicated 33 00:02:10,030 --> 00:02:13,186 so we're going to do it in this first project. 34 00:02:13,430 --> 00:02:18,172 But for now, let's get started by creating the self-moving ship.