diff --git a/__pycache__/common.cpython-314.pyc b/__pycache__/common.cpython-314.pyc index 6b7fa64..ac8ccb8 100644 Binary files a/__pycache__/common.cpython-314.pyc and b/__pycache__/common.cpython-314.pyc differ diff --git a/__pycache__/eb_engine.cpython-314.pyc b/__pycache__/eb_engine.cpython-314.pyc index ebeb9b8..3d46e2b 100644 Binary files a/__pycache__/eb_engine.cpython-314.pyc and b/__pycache__/eb_engine.cpython-314.pyc differ diff --git a/eb_engine.py b/eb_engine.py index 0ab99df..ccf29fa 100644 --- a/eb_engine.py +++ b/eb_engine.py @@ -13,6 +13,7 @@ cell_classes = {"grass_small": eb_terrain_objects.Ground, main_dir = os.path.dirname(os.path.abspath(__file__)) sprites_dir = os.path.join(main_dir, "res", "sprites") +#class Render #class MapManager #class Event #class EventManager @@ -154,7 +155,7 @@ class Engine: # ★ UITextBox ВНУТРИ контейнера ★ output_box = pygame_gui.elements.UITextBox( - html_text=">>> Готово!\n", + html_text=">>> hlwrld1\n", relative_rect=pygame.Rect(0, 0, 380, 1000), # ← Увеличьте высоту! container=scroll_container, manager=manager @@ -211,6 +212,7 @@ class Engine: if event.type == pygame_gui.UI_TEXT_ENTRY_FINISHED and event.ui_element == input_entry: user_text = input_entry.get_text() + #print(user_text) if user_text.strip(): output_log += f">>> {user_text}\n" output_box.set_text(output_log) @@ -274,8 +276,8 @@ class Engine: # flip() the display to put your work on screen pygame.display.update() - if global_counter % 100 == 0: + if global_counter % 10 == 0: current_fps = clock.get_fps() - #print(f"Current FPS: {current_fps:.2f}") + print(f"Current FPS: {current_fps:.2f}") pygame.quit() \ No newline at end of file diff --git a/main.py b/main.py index 7025ed0..00c3a6c 100644 --- a/main.py +++ b/main.py @@ -5,13 +5,14 @@ def main(): e.main_loop() if __name__ == "__main__": - # pydantic instead of dataclasses? # Отрисовка голой сетки, прокрутка, масштаб + # Отрисовка спрайтов: # - сделать масштабирование в соотв. с клеткой + # - посмотреть класс спрайта или сделать свой + # - добавить отрисовку существ и предметов с анимацией + - # почитать про Surface, Display, доку к pygame-gui + # - оптимизация - рисуем только те клетки, которые рядом с камерой + # - оптимизация - не рисуем клетки по отдельности - собираем из них одну поверхность и её рисуем + # # Начало гуя: # - общая идея гуя # - кнопка отключить сетку @@ -24,19 +25,19 @@ if __name__ == "__main__": # Простой, но основательный гуй внизу экрана, глобальная карта и перемещение # деревня на соседской локации и торговля с ней # перемещение по воде, течение - #техдолг: - #проверить дефолтдикт field и None = None + # pydantic instead of dataclasses? + # почитать про Surface, Display, доку к pygame-gui + # проверить дефолтдикт field и None = None # техдолг - draw_data to dd # изучить pypmler # настроить логирование всего - #SLOP: + # SLOP: load_sprites # проверить у ллм на ошибки - РЕГУЛЯРНАЯ АКТИВНОСТЬ: # - deepcopy + # - общие + main() - # добавил гуй, динамическая консоль, всё работает, но: # - слоп, почистить # - мини-баг - если первые вводимые буквы совпадают с клавишами управления, один раз успевает проскочить до лока. некритично. diff --git a/res/items/sword.jfif b/res/items/sword.jfif deleted file mode 100644 index 6274ba3..0000000 Binary files a/res/items/sword.jfif and /dev/null differ diff --git a/res/textures/water-1.jpg b/res/textures/water-1.jpg deleted file mode 100644 index 59efea8..0000000 Binary files a/res/textures/water-1.jpg and /dev/null differ diff --git a/res/textures/water-10.jpg b/res/textures/water-10.jpg deleted file mode 100644 index b4f5530..0000000 Binary files a/res/textures/water-10.jpg and /dev/null differ diff --git a/res/textures/water-3.jpg b/res/textures/water-3.jpg deleted file mode 100644 index 9969177..0000000 Binary files a/res/textures/water-3.jpg and /dev/null differ diff --git a/res/textures/water-4.jpg b/res/textures/water-4.jpg deleted file mode 100644 index f208155..0000000 Binary files a/res/textures/water-4.jpg and /dev/null differ diff --git a/res/textures/water-6.jpg b/res/textures/water-6.jpg deleted file mode 100644 index 928c92a..0000000 Binary files a/res/textures/water-6.jpg and /dev/null differ diff --git a/res/textures/water-8.jpg b/res/textures/water-8.jpg deleted file mode 100644 index 0e24fbc..0000000 Binary files a/res/textures/water-8.jpg and /dev/null differ