Couldn't beat graphic bugs with sprite caching. Returned to old way. Need to create branch with sprite caching and try to finish it.
This commit is contained in:
17
main.py
17
main.py
@@ -12,7 +12,11 @@ if __name__ == "__main__":
|
||||
# - посмотреть класс спрайта или сделать свой +
|
||||
# - добавить отрисовку существ и предметов с анимацией +
|
||||
# почитать про Surface, Display, доку к pygame-gui
|
||||
# Начало гуя - кнопка, строка ввода, клик
|
||||
# Начало гуя:
|
||||
# - общая идея гуя
|
||||
# - кнопка отключить сетку
|
||||
# - строка ввода
|
||||
# - клик
|
||||
# Поиск пути, очередь задач для существ
|
||||
# Редактор карты
|
||||
# Охотник -> деревня
|
||||
@@ -22,17 +26,10 @@ if __name__ == "__main__":
|
||||
|
||||
#техдолг:
|
||||
#проверить дефолтдикт field и None = None
|
||||
#не взлетело кэширование - потом доделать
|
||||
|
||||
# проверить у ллм на ошибки - РЕГУЛЯРНАЯ АКТИВНОСТЬ:
|
||||
# - deepcopy +
|
||||
# - общие +
|
||||
main()
|
||||
|
||||
|
||||
# P.S. to previous commit:
|
||||
#instead of Sprite flow load_sprites function was changed:
|
||||
#gathering the number of sprites with the same names before second _ and hold it at
|
||||
#sprites dict. also now sprites must be named as objectname_action_number
|
||||
#
|
||||
# Main commit - full sprites support, with caching, transparency and smooth scaling
|
||||
# drawing function moved to Object methods
|
||||
#техдолг - draw_data to dd
|
||||
Reference in New Issue
Block a user