Multiple Sprites! | Coding Terraria in Python | Pygame Tutorial Ep. 2

Поделиться
HTML-код
  • Опубликовано: 4 янв 2025
  • ИгрыИгры

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

  • @codingwithsphere
    @codingwithsphere  Год назад +2

    I added the code for replacing the boring rectangle with an image in the description! I'll be covering proper texture loading in ep. 4 most likely. Thanks for watching!

  • @pizzaman_gennaro
    @pizzaman_gennaro Год назад +5

    boys: wants to learn how to code
    man: wants to play terraria for free 🗿🍷

  • @willwillcode7568
    @willwillcode7568 Год назад +1

    Very organized code and scripts, well done.👍You are one of the only people who does this, and you do it well my guy. Keep up this series please! It is so much fun.

  • @gabrielepirovano3529
    @gabrielepirovano3529 2 месяца назад

    Amazing tutorial
    You’re really good at explaining

  • @jitseschreurs5224
    @jitseschreurs5224 Год назад

    These video's are amazing, I started coding my own game not so long ago and thats going quite well, however besides player movement, animations and collisions, i don't quite know how it all works. Your code is well structured and you explain everythink very nicely. Thank you so much, you are a big help ( :

  • @rethanon
    @rethanon Год назад +2

    Good video, just pointing out that due to the way the screen recording was cropped the top black square can’t be seen in the video. Enjoying the series so far 😊

    • @codingwithsphere
      @codingwithsphere  Год назад +2

      Im glad you're enjoying the series! I noticed that but only after recording an editing everything haha

  • @KalifSSJ
    @KalifSSJ 9 месяцев назад

    For all interested:
    class Player(pygame.sprite.Sprite):
    def __init__(self, groups, image=pygame.Surface((TILESIZE * 2, TILESIZE * 3)), position=(SCREENWIDTH//2, SCREENHEIGH//2)):
    super().__init__(groups)
    self.image = image
    self.image.fill('green')
    self.rect = self.image.get_rect(topleft=position)

  • @Remiosan
    @Remiosan 7 месяцев назад

    is it just me or is his code going of the screen

  • @alanamantinodasilva4362
    @alanamantinodasilva4362 4 месяца назад

    Why did you created a entity inside of sprites, why not create a class entity, and the entity have inherit sprite.Sprite and now you can use Entity for basics like sprites, name, position etc? Because the way that you did, we need to repeat so much things, for example, you need to inherit sprites all classes that you gona create, and position and bla bla bla...