TGTGInsightаналитика telegramLIVE / telegram public index
← [404] — программирование

TGINSIGHT SIMILAR POSTS

Найти похожее

Источник @procode404 · Post #3936 · 29 янв.

​🏡Реализация строительства по сетке —[23:33] Эта механика используется во многих играх, поэтому, если вы желаете сделать игру с возможностью создавать свою карту мира, то стоит узнать, как это делается. Код этой механики можно найти в описании, а в самом видео рассказывается, как написать такую механику, как сделать удобный интерфейс для работы из редактора и как заставить это всё работать. Перейти к просмотру #видео#геймдев

Результаты

Найдено 1 похожих постов

Поиск: #namespace

当前筛选 #namespace清除筛选
djangoproject

@djangoproject · Post #550 · 15.01.2018, 07:05

http://www.wikipython.com/other-concepts/anatomy-of-a-class/ It seems obvious, but note that you must define a class before you use it. When you create a #class, it establishes its own namespace and all its own local variables (except global definitions) exist only inside that #namespace. They do not interact with other variables of the same name outside it. This leads us to one very important “feature” of classes that you need to know. If you use the same word to designate some specific value both inside and outside the class blueprint, the instance value will take precedence when you try to use that value. #learn