Description:
Часть #24. Правильное движение мячика. (Базовый курс программирования на С++) Вы можете поддержать автора и купить курсы на https://www.start-game.net Все части в плейлисте: https://www.youtube.com/playlist?list=PLlheCABZdy3OZoIh9VwlYUbTSCWwDUee6 Оглавление курса на Википедии: https://ru.wikiversity.org/wiki/%D0%91%D0%B0%D0%B7%D0%BE%D0%B2%D1%8B%D0%B9_%D0%BA%D1%83%D1%80%D1%81_%D0%A1%2B%2B 00:00 - Правильное движение мячика 01:38 - Переходим к представлению мячика как окружности с центром и радиусом 06:18 - Делаем серию телепортаций мячика вместо одной 09:17 - Корректируем координаты взаимодействий с препятствиями 11:42 - Заменяем коррекцию пути на регистрацию столкновений 16:21 - Выносим код в метод Check_Border_Hit() 18:59 - Переносим переменную Has_Floor из уровня в конфиг 20:42 - Переносим метод Check_Border_Hit() из класса мячика в класс рамки 26:52 - Наследуем класс рамки от интерфейса AHit_Checker 28:50 - Базовый и производный классы 29:29 - Виртуальный метод 30:57 - Абстрактный метод, абстрактный класс или интерфейс 33:11 - 2-й принцип ООП: наследование 33:36 - 3-й принцип ООП: полиморфизм 34:14 - Заменяем указатель на рамку указателем на интерфейс 40:03 - Накапливаем оставшееся расстояние в переменной Rest_Distance 42:20 - Popcorn_part_24_1.zip: пишем код 42:40 - Обработка попаданий по кирпичам через интерфейс AHit_Checker 47:40 - Устраняем циклическую зависимость мячика и уровня 48:48 - Заменяем указатель на ALevel на указатель типа AHit_Checker 51:11 - Отключаем warning C26451 через набор правил компиляции 57:59 - Обработка попаданий по кирпичам 59:09 - Накапливаем булевые результаты в одной переменной got_hit 01:01:40 - Делаем столкновение с платформой через интерфейс AHit_Checker 01:06:36 - Добавим вызов обработки столкновения с платформой 01:09:21 - Переносим указатели в массив Hit_Checkers 01:14:44 - Добавляем хит-чекеры через метод Add_Hit_Checker() 01:19:43 - Popcorn_part_24_2.zip: пишем код Popcorn_part_24_1.zip - https://drive.google.com/open?id=1eW71Y2o_rNbpCFTAOkHGwziVtYqyfvm1 Popcorn_part_24_2.zip - https://drive.google.com/open?id=1JYA_l8W6Nsdicl33-DfA16HNTc_LQ58q
Preparing download options
http://unidownloader.com/ website is the best way to download a video or a separate audio track if you want to do without installing programs and extensions.
The UDL Helper extension is a convenient button that is seamlessly integrated into YouTube, Instagram and OK.ru sites for fast content download.
UDL Client program (for Windows) is the most powerful solution that supports more than 900 websites, social networks and video hosting sites, as well as any video quality that is available in the source.
UDL Lite is a really convenient way to access a website from your mobile device. With its help, you can easily download videos directly to your smartphone.
The best quality formats are FullHD (1080p), 2K (1440p), 4K (2160p) and 8K (4320p). The higher the resolution of your screen, the higher the video quality should be. However, there are other factors to consider: download speed, amount of free space, and device performance during playback.
The browser/computer should not freeze completely! If this happens, please report it with a link to the video. Sometimes videos cannot be downloaded directly in a suitable format, so we have added the ability to convert the file to the desired format. In some cases, this process may actively use computer resources.
You can download a video to your smartphone using the website or the PWA application UDL Lite. It is also possible to send a download link via QR code using the UDL Helper extension.
The most convenient way is to use the UDL Client program, which supports converting video to MP3 format. In some cases, MP3 can also be downloaded through the UDL Helper extension.
This feature is available in the UDL Helper extension. Make sure that "Show the video snapshot button" is checked in the settings. A camera icon should appear in the lower right corner of the player to the left of the "Settings" icon. When you click on it, the current frame from the video will be saved to your computer in JPEG format.
It costs nothing. Our services are absolutely free for all users. There are no PRO subscriptions, no restrictions on the number or maximum length of downloaded videos.