- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Learn How to Code a Classic Snake Game (Part 1)
In this series of videos I will code a Classic Snake Game from start to finish, talking you through my entire thought process along the way because I really do believe this type of project is one of the best way for new programmers to learn.
I am going to be using the MIT Scratch platform, but most of the methods and coding principles I use to create this snake game will be applicable in just about any coding platform or language (e.g. Java, Python, etc.) although different languages/platforms will have their own quirks and their own methods for working with graphics. I chose the MIT Scratch platform because it is highly visual and easy to get started with making it a great choice for learning the basics of programming. It's also a free platform so anyone can take this project for a spin and start to learn.
Play a final version of this game: https://scratch.mit.edu/projects/631302216/
Because of the length, I've divided this snake game tutorial into 4 parts:
Snake Game Part 1: https://youtu.be/5ezXsDogFiU
Snake Game Part 2: https://youtu.be/Ox3YUBP7Vmk
Snake Game Part 3: https://youtu.be/JCVOItQNPr4
Snake Game Part 4: https://youtu.be/bHKqp6hcYuQ
Some key moments in this video:
1:39 - Advice for when starting a new project
2:16 - Breaking the stage up into a grid
4:50 - Using the Pen Extension
9:25 - Using Custom Blocks (Functions) for more Efficient Code and to speed up workflow
16:24 - Lightning fast blocks/functions with Run w/o Screen Refresh
17:13 - creating the head of the snake
23:02 - Using a game flow variable
24:30 - Commenting your Code
30:35 - Using Broadcast Messages
35:24 - Coding the Snake Movement
36:05 - Thinking Ahead and Making Your Game more Flexible
38:24 - Forever Loops and Frame Rate
41:06 - Controlling snake direction and movement with variables tied to events (key presses)
45:00 - A Happy Accident
46:08 - Embrace Your Mistakes
46:42 - Watch for Game/Code Flow Mistakes
47:52 - Adjusting Player Speed
50:34 Cleaning Up and Improving Your Code as you Go
51:00 Using Grid Cell Size for More Flexibility
1:00:06 The payoff, changing grid/board size
Thanks for watching!
cheers,
Greg
Видео Learn How to Code a Classic Snake Game (Part 1) канала Learning With Greg
I am going to be using the MIT Scratch platform, but most of the methods and coding principles I use to create this snake game will be applicable in just about any coding platform or language (e.g. Java, Python, etc.) although different languages/platforms will have their own quirks and their own methods for working with graphics. I chose the MIT Scratch platform because it is highly visual and easy to get started with making it a great choice for learning the basics of programming. It's also a free platform so anyone can take this project for a spin and start to learn.
Play a final version of this game: https://scratch.mit.edu/projects/631302216/
Because of the length, I've divided this snake game tutorial into 4 parts:
Snake Game Part 1: https://youtu.be/5ezXsDogFiU
Snake Game Part 2: https://youtu.be/Ox3YUBP7Vmk
Snake Game Part 3: https://youtu.be/JCVOItQNPr4
Snake Game Part 4: https://youtu.be/bHKqp6hcYuQ
Some key moments in this video:
1:39 - Advice for when starting a new project
2:16 - Breaking the stage up into a grid
4:50 - Using the Pen Extension
9:25 - Using Custom Blocks (Functions) for more Efficient Code and to speed up workflow
16:24 - Lightning fast blocks/functions with Run w/o Screen Refresh
17:13 - creating the head of the snake
23:02 - Using a game flow variable
24:30 - Commenting your Code
30:35 - Using Broadcast Messages
35:24 - Coding the Snake Movement
36:05 - Thinking Ahead and Making Your Game more Flexible
38:24 - Forever Loops and Frame Rate
41:06 - Controlling snake direction and movement with variables tied to events (key presses)
45:00 - A Happy Accident
46:08 - Embrace Your Mistakes
46:42 - Watch for Game/Code Flow Mistakes
47:52 - Adjusting Player Speed
50:34 Cleaning Up and Improving Your Code as you Go
51:00 Using Grid Cell Size for More Flexibility
1:00:06 The payoff, changing grid/board size
Thanks for watching!
cheers,
Greg
Видео Learn How to Code a Classic Snake Game (Part 1) канала Learning With Greg
Learn How to Code a Classic Snake Game learn how to program the classic snake game in scratch programming a snake game coding a classic snake game coding a snake game in scratch classic snake game tutorial snake game tutorial how to make a classic snake game Scratch Tutorial Beginner Programming Tutorail Learn How to Code snake game how to code a snake game scratch tutorial game easy
Комментарии отсутствуют
Информация о видео
19 мая 2022 г. 17:37:26
01:03:49
Другие видео канала




















