Næste

How to make your first Video Game - Intro to Code (Ep. 2)

0 Visninger· 24/08/25
lopescar
lopescar
Abonnenter
0
I

Welcome to the second episode of our action/adventure game series! This is a beginner friendly series that will teach you the how to create your very own games by creating a 3D game inspired by The Legend of Zelda: Ocarina of Time!

In this episode we go over the syntax and basic rules of code by dissecting the player script we created last episode. This will give us a solid foundation we can use to move more quickly in the next set of episodes and see more of our Zelda-like game come to life!

Ready to try this for yourself? Check out the companion page on our website: https://playableworkshop.com/a....ction-adventure-seri

Like what we're doing? Support us! https://www.patreon.com/playableworkshop

Godot Engine: https://godotengine.org
Join our Discord: https://discord.gg/ZYtU7hhZW9
Support us on Patreon: https://www.patreon.com/playableworkshop
Jack's Channel: @JackSather
Nick's Website: https://nick-glenn.com

0:00 Intro
1:29 Comments
2:35 Debugging: Not if, but when
5:41 Syntax Highlighting
6:55 Keywords
7:29 A grammar-based approach to learning code
7:38 Literal expressions
8:16 Classes
8:54 How classes extend each other
10:54 How we store information in our game
12:44 Variables
13:35 Properties
15:03 Constants
15:14 Functions
16:26 Overriding Node's _ready function
17:22 The pass statement
17:33 Function calls
18:10 Lookup Expressions
18:17 Printing to the console
19:19 Returning values from our functions
23:51 Passing values to our functions
26:04 Getting back to rebuilding our script
27:04 _process() and _physics_process()
30:16 if Statements
30:39 Logical not Expressions
32:03 Assignment Statements
32:41 Additive Assignments (and other operators)
33:43 Our next if statement: Jumping
34:56 Binary expressions and logical and
36:12 Selector expressions
36:37 Getting the player's movement input
36:47 Talking about vectors for a moment
37:54 Integrating player input to move the character
39:21 Else statements
40:19 The move_toward function
41:05 Outro​

Vis mere

 0 Kommentarer sort   Sorter efter


Næste