Python/Pygame 3D ASCII Spinning Earth with Moon Tutorial

preview_player
Показать описание
This is Part 2 of 3D ASCII Spinning Earth, now with Moon and shadows.
--------------------------------------------------------------------------------------------------------------------
Python/Pygame 3D ASCII Spinning Earth Tutorial
--------------------------------------------------------------------------------------------------------------------
Parts:
0:00 Intro
0:16 Base
0:57​​ Color
1:31​​ Moon
7:39​ Shadows
9:01​​ Outro
--------------------------------------------------------------------------------------------------------------------
In this tutorial you will learn:
- how to define colors to ASCII map;
- how to rotate and scale a sphere in defined radius;
- how to fake shading.
--------------------------------------------------------------------------------------------------------------------
GitHub:
Code for this part:

Code for Python/Pygame 3D ASCII Spinning Earth Tutorial
--------------------------------------------------------------------------------------------------------------------
Please leave a LIKE and SUBSCRIBE for more content!
--------------------------------------------------------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

This code only works because you are recreating the globe and the moon at every frame. If you place the definitions outside of the loop (where they should have been since they are perpetual entities) the spin piles up and the globe starts to accelerate and the moon moves outside of the screen.

daniel_rossy_explica
Автор

After seeing the math

Everybody had a stroke

noobypro
Автор

hey bro need to ask a question how do I stop the pygame for the 3D earth to stop flickering or glitching when pygame screen is opened and it has nothing wrong to do with update

Theslyware
join shbcf.ru