Efficient imports in pygame

Поделиться
HTML-код
  • Опубликовано: 3 фев 2024
  • This video will cover efficient bulk imports in pygame. To make more complex games doing this is essential and makes your games much more manageable.

Комментарии • 10

  • @hashirharis9738
    @hashirharis9738 5 месяцев назад

    A bloody legend

  • @Aerogomas
    @Aerogomas 5 месяцев назад

    Thanks🎉

  • @brandonjacksoon
    @brandonjacksoon 5 месяцев назад

    Thanks for awesome tutorials! Liked and subscribed!

  • @korraprasadpraveen4333
    @korraprasadpraveen4333 5 месяцев назад

    🎉🎉🎉great 👍

  • @ray73864
    @ray73864 5 месяцев назад

    Actually the sorting will be a problem on Windows.
    It's fine if your images go from 0 to 9, but as soon as you put an image called '10' into the folder, it will be sorted as: 0, 1, 10, 2, 3, 4, etc...
    You need to 0-pad all names to the length of the largest number, so if the largest number is 100, then you need to go 000, 001, 002, 003, etc..., otherwise if you do 00, 01, etc... then you'll be stuck with the same problem of 00, 01, 02, 03...10, 100, 11, 12

    • @ClearAtlas
      @ClearAtlas  5 месяцев назад

      yeah, I hate that behaviour :P

    • @ray73864
      @ray73864 5 месяцев назад

      @@ClearAtlas I get why MS did it, they treat every filename as a string, but it's still annoying having to remember it.

  • @robertm.schwab5800
    @robertm.schwab5800 3 месяца назад

    Can you avoid this problem by using natsorted instead of sorted?

  • @robertm.schwab5800
    @robertm.schwab5800 3 месяца назад

    Where are the project files for this tutorial?

  • @odams
    @odams 5 месяцев назад

    You're still doing these videos!!