Тёмный

Classic Snake Game - Part 4 (Beginner Python Tutorial on Linux) 

M Heidenreich
Подписаться 2,6 тыс.
Просмотров 863
50% 1

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 2   
@HrishiPatel-j1r
@HrishiPatel-j1r 10 месяцев назад
Such a nicely explained video. thank you sir. for the feature part I have currently added the speed increase as snake eats the food but there more speed moving in y-axis compared to x-axis, I know that this due to rectangular text box. The Y dimension of box is greater so from our perspective snake looks faster but is is moving 1 box unit as X direction. Can you share some idea how to control the speed in Y direction.
@m.heidenreich
@m.heidenreich 10 месяцев назад
This is the charm of the game. Making constant speed across both axes would be very difficult, since at any given time different parts of the snake can be moving in multiple directions. Also handling turns would be very tricky, especially in food locations. I am glad you enjoyed the tutorial!
Далее
Pygame in 90 Minutes - For Beginners
1:35:22
Просмотров 1,1 млн
Linux Filename Substitution - Special Cases
14:12
threading vs multiprocessing in python
22:31
Просмотров 583 тыс.