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:
shiva404
2026-02-16 00:30:17 +03:00
parent f679dde81f
commit 2e6e75866b
8 changed files with 55 additions and 33 deletions

17
main.py
View File

@@ -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