Full transcript
0:00okay should i start yeah uh hi dear how
0:03are you
0:05hi
0:06i'm good afternoon um how are you good
0:09afternoon i'm doing great thanks for
0:12asking how are you doing
0:15um um what is your name
0:18oh i forgot to tell my name my name is
0:20divya what's your name
0:23my name
0:25is international school third grade
0:28section europe about to go and forth
0:31awesome awesome
0:33okay someone so do you know why we are
0:35here today
0:39hello
0:40you don't know
0:41no no idea okay so we are here today to
0:44learn about coding
0:47okay
0:49have you heard about coding will do
0:51coding yeah do you have any idea about
0:53coding
0:56no no idea so then first class oh this
1:00is your first class
1:03okay then so let us try to understand
1:05what exactly is coding and then we'll
1:07learn a lot of stuffs about coding
1:10okay okay
1:13okay great okay here so uh before we get
1:16started um do you play any games
1:22like you know pubg fortnite
1:26roblox
1:27what
1:30no mom i don't play among us it has
1:33hacker and i don't flip pubg actually
1:35it's bangs
1:37oh okay guys
1:43shooting games army games air force
1:45games oh got it have you ever thought
1:48how these games are made
1:51have you ever thought
1:52do you have any idea how these games are
1:54made
1:55no idea
1:56no
1:58no but i think that how these
2:00games actually
2:02made but i don't know how to make
2:05okay so today i'll tell you how this
2:07games are made
2:09all right
2:12uh today i'll teach you how to make
2:13these games
2:16okay
2:17yes awesome so um
2:21which application will make a game i'll
2:23tell you i'll tell you okay so i know
2:26we'll be uh like these kind of games or
2:29whatever the apps we use or whatever the
2:31games we play maybe kind of a shooting
2:33game or a race game whatever all this
2:36are made by coding
2:38you get it
2:40okay so
2:42now i'll tell you what exactly is coding
2:45okay so now we have a language to
2:47communicate right we communicate in
2:49english or we communicate in hindi or
2:52any other languages so in the same way
2:55if i want to create a game i need to
2:56communicate with my computer
2:59you get it yeah
3:01yes so to communicate with the computer
3:04i need to learn a language which
3:05computers can understand
3:08so that's cody
3:10exactly the language which computers can
3:13understand is called coding you get it
3:16yeah understood
3:19yes
3:20very nice now so then let's get started
3:23so the reason why we need to learn
3:24coding language to communicate with the
3:26computer is computers don't understand
3:29english
3:32okay why is it so
3:34because it's sort of english but when we
3:36write it out on our computer also there
3:38are english words
3:40huh because computers display things in
3:43english but they don't understand
3:44english you get it
3:48then if if i type that show me a picture
3:51of a fighter jet how can someone
3:55yeah yeah
3:58if i say a computer that i will show me
4:00a picture of her fighter
4:02what's another one
4:04if i say my computer and i want to on
4:07google that i want to have a picture of
4:09a fighter jedi i'll write in english
4:11only so how do we
4:17we've used coding language to make
4:19computer respond to the english
4:20questions
4:22we have trained you know we have trained
4:25the computer we have trained it in a
4:27coding language you get it
4:30yes okay so now okay now where will we
4:34make games so i'll tell you we'll be
4:37creating a very very basic game on
4:39scratch today
4:42okay have you heard about scratch before
4:45do you have any idea on scratch
4:49no idea um
4:51uh
4:52um i think it's a blog basically
4:56yes
4:57all right let us not try to do it i'll
5:00just show you how to create a game on
5:02scratch
5:03all right
5:05so let's um
5:10let me open scratch oh it's taking some
5:13time let's yeah so this is the website
5:15where we'll be creating a game today
5:18okay
5:19so since this is our first
5:21let me teach you a very very simple game
5:23and then in the coming classes let's
5:25learn a complex games
5:27get it
5:30now for creating
5:32oh yeah create
5:34yes yes so we'll just click on create so
5:37that the new uh you know scratch project
5:39gets created
5:40so let's see how it works
5:44so okay yeah so this is a platform
5:46called scratch and you see this a small
5:49uh you know like there's a small uh
5:51white block over there you see that
5:54small white block you see this
5:57oh once again and just to mark it
6:00yeah do you see this small white space
6:03over here
6:04a small white space
6:07yeah inside again yeah
6:09this is called stage
6:12okay
6:13so this
6:19to is
6:20cat
6:23then it will move on the stage yes very
6:26nice yes you're right so and these are
6:29the characters for our game
6:32we can insert any characters and we call
6:34generally called we have only one cat
6:37only here but we have just gathered now
6:39we'll insert i'll show you how to insert
6:41the characters we can just delete this
6:43one okay let me delete it
6:46yeah perfect now do you see this
6:48colorful blocks out here towards your
6:50left side
6:51do you see this a lot of colorful blocks
6:54and these blocks are you know
6:56instructions in coding language
6:58you get it
7:00these are instructions in coding
7:02language
7:05instructions
7:07okay
7:08now we use this uh you know instructions
7:11to teach our game what exactly like how
7:13exactly our game should behave okay
7:17you get it okay yes good
7:20now coming back let us know let me show
7:22you a very very quick game
7:25uh so
7:26now
7:27okay i'll just uh so i told you that we
7:29can insert a lot of characters to our
7:31game
7:32so i'll just delete the cat because uh
7:34let us uh you know insert something uh
7:37okay let us create an aquarium game
7:39what's it
7:40shall we
7:41our car car
7:46yeah
7:47okay we will have a car uh so i'll just
7:50you know insert the you see this
7:54choose the sprite option and since you
7:56asked for car i'll just search for car
7:59and then um
8:02oh we have a lot of cars which one do
8:04you want
8:05okay okay
8:08which one do you want
8:12um
8:13convert table to
8:15convertible uh convertible to okay yeah
8:18got it so now we are done with inserting
8:21our car so let us insert the background
8:25for our car
8:26okay
8:27okay inside the bathroom for our car so
8:30to insert a background we are not
8:31supposed to choose a sprite we want to
8:34choose a backdrop so i'll just click on
8:36choose a backdrop and then search for uh
8:39okay let's what kind of background shall
8:42we you know insert there
8:45let's try is it outdoors
8:49yeah what kind of backdrop you want
8:53like you like you
8:55which one night
8:57night
8:58where is that
9:00map
9:06near this pathway
9:08ah this is good
9:10yeah road is also there
9:12yeah road is also there so let us know
9:15the car looks so small let us increase
9:17the size by coming here and
9:19i'm increasing the size maybe i'll make
9:21it 150
9:22and the car looks a little bit better
9:24now now
9:26i want to okay i'll just keep the code
9:28really really very simple so i want my
9:32car to move
9:34from here to here
9:37okay how will i do it how will i do it
9:41so now
9:42i'm done with inserting the cactus for
9:44our game now i'll start i know coding it
9:48okay i want to give instructions to my
9:50game now how will i do that i'll start
9:52coding it you're getting it
9:55yes yes so
9:57yes
9:58now i'll click on events and then the
10:01first and foremost thing before we start
10:04coding is uh adding the start button so
10:06this is our i know start button
10:09whatever the coding we do this is the
10:12first button we have to insert in our
10:13code so this is an event code we're on
10:16clicking on this green flag the new code
10:19starts working you get it
10:22yes i got it very good very good so
10:26after that since i want to make my car
10:29move
10:30what i'll do i'll just uh click on um
10:33motion huh i'll click on motion block
10:36and then i want to make sure that the or
10:39no card lights really slow to the
10:41destination so i'll just use this glide
10:44one second and drag it
10:47so i want to make sure that my car
10:50should move to the other position like
10:52really smooth not so fast not so slow
10:55perfect movement
10:57okay so i'll just use this glide once
11:00again and drop it on the screen
11:02now do you see this x and y values do
11:04you see this
11:05yeah
11:06yes so these are the you know positions
11:09of my car for example see we have a
11:12graph we um okay never mind now we have
11:15this x value y value uh y value denotes
11:19uh you know up and down
11:21you get it up and down
11:23x value notes left and right
11:26oh yeah yeah now tell me uh if i want to
11:29move up which value should i choose x or
11:31y
11:33y
11:34very good if i wanted it
11:37i will not put minus because minus means
11:40down very good so minus means down plus
11:45positive means up in the same way if i
11:47want to move my car towards right side
11:50it's x value and it is positive if i
11:52want to move towards my uh no left side
11:55then what is the x value
11:58minus very good very good you you
12:00understood
12:02yes yes so now from here
12:05i want to make my you know car to move
12:08till here
12:11till here maybe okay i'll just decrease
12:12the size it's too big i'll decrease it
12:15to 100
12:16maybe
12:17okay then i want the car to move till
12:20here
12:21so
12:24the position is 175 and 13. so i'll just
12:28replace this 175
12:31oh sorry glide one second to
12:34175 and 13.
12:38now
12:39uh let's see what happens i'm gonna
12:40click on green flag but the card is not
12:43moving you know why
12:47why the car is not
12:50moving yes
12:53why
12:54because it is in the
12:56no uh like last position we want to make
13:00sure that we bring it here
13:02okay so for that
13:07yes so this is the position of our car
13:09when the green flag is clicked so i want
13:11to insert the position so this is go to
13:13x and y this is the starting position
13:15i'm going to drag it and drop it here so
13:17when i click on green flag it it most
13:19slides there you see that
13:21you get it yes ma'am
13:23yes and that's it this is the simple
13:26code which we have done today did you
13:28understand
13:30yes will you do it
13:46quickly tell me what in all we have
13:47learned
13:50sorry
13:51what did we learn today
13:54today we'll learn how to
13:58um
13:59collide something
14:01yes
14:02right
14:04now should i do that thing you want to
14:06do it
14:08yeah
14:09okay okay uh once again you can do it
14:13okay we are done with today's project
14:16so yeah once again