Tower Defence Tutorial in Pygame | Part 13 - Finishing Touches

Поделиться
HTML-код
  • Опубликовано: 29 июн 2023
  • In this Python tutorial I code tower defence game using the PyGame module. I'm going to add the finishing touches to the game such as a GUI and sound effects.
    Code & assets on github: github.com/russs123/tower_def...
    Credits for assets used:
    Tileset: www.kenney.nl/assets/tower-de...
    Turrets: zintoki.itch.io/ground-shaker
    Heart: nicolemariet.itch.io/pixel-he...
    Coin: totuslotus.itch.io/pixel-coins

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

  • @Snyper-if3kt
    @Snyper-if3kt 11 месяцев назад +4

    This was a very good series. Lots of good info to pick up on from beginners to the intermediate. I know you've already done a dungeon crawler, bu those type of action/adventure-y kinda games are always somethign I gravitate towards. That said I'd likely watch anything you'd be willing to put out, as all I've seen from you so far has been very well done.
    Cheers!

    • @CodingWithRuss
      @CodingWithRuss  11 месяцев назад

      Thanks a lot, it's good to hear that because when I make these it can be a tricky balance between explaining enough for beginners without making it too long and boring for those that are more experienced already.

  • @PlaXerROK
    @PlaXerROK 6 месяцев назад +1

    has been an honor to complete this series.This really helped me to understand pygame and its basic functionallity. In the end my code was considerably different as I had a more OOP approach (there were like 5 classes more and the main wasn't procedural) but that's just because that was my main objective with this project. Thanks russ, i shall leave a sub!

    • @CodingWithRuss
      @CodingWithRuss  6 месяцев назад

      That's great to hear! Glad that you got something useful from the video but tailored it to towards your own goal.

  • @lightingzr
    @lightingzr 11 месяцев назад +2

    I love your tutorials! Keep going and never give up!

  • @embuscaderaviolo
    @embuscaderaviolo 11 месяцев назад +1

    I loved this series !!

  • @LeaStark63733484
    @LeaStark63733484 11 месяцев назад +1

    Loved it! Great job!

  • @igordziwulski2249
    @igordziwulski2249 2 месяца назад +1

    Great tutorial! Thank you very much!
    One comment:
    it seems to me that we should also divide the SPAWN_COOLDOWN by world.game_speed, because without this, when we use the fast forward button mobs are created at a greater distance which makes the game easier.

  • @deafmettle
    @deafmettle 11 месяцев назад +1

    I've really enjoyed this series. Particularly how you build it up. I would love to know how you do that. Do you break it down before you start coding or is it initially a bit of trial and error which you then break down once you have worked it all out. Either way the end result is really easy to follow.

    • @CodingWithRuss
      @CodingWithRuss  11 месяцев назад

      Thanks! Glad you found it useful. I try to have a rough plan of the features I want in the game so I can work through them as I develop it, but there is a ton of trial and error as well as rewriting code. Often I'll code it one way, then later on think of a better way to do it. So the tutorial series is structured nicely but that's because the code is finished by that point. The actual process of developing the game to begin with is a lot messier :)

  • @Luke-ly8jx
    @Luke-ly8jx 17 дней назад

    I used my own map, but now i have the issue i cant place a turret.

  • @rezashir3873
    @rezashir3873 11 месяцев назад +1

    thanks a lot. I learned a lot from you.
    👨‍🎓🌺🌷🌼🌻🌺🥀🌹🏵🌷🌻🌻🌺🥀🌹🏵

  • @LoganadoLakings
    @LoganadoLakings 10 месяцев назад +1

    Hey Russ, there is an error for me at the end of the game. Like say you finished the 15th level, it says:
    File "c:\Python\Python27\google-python-exercises\Tower_Defense\world.py", line 39, in process_enemies
    enemies = ENEMY_SPAWN_DATA[self.level - 1]
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
    IndexError: list index out of range
    How do you fix this?

    • @CodingWithRuss
      @CodingWithRuss  10 месяцев назад +1

      It means the game isn't ending and instead trying to load the next level.
      This section of code checks for the level being completed. Check that you haven't changed the TOTAL_LEVELS variable or the number of waves in the enemy_data.py file as they should both be the same (15 in this case)
      #check if player has won
      if world.level > c.TOTAL_LEVELS:
      game_over = True
      game_outcome = 1 #win

    • @LoganadoLakings
      @LoganadoLakings 10 месяцев назад +1

      @@CodingWithRuss OK thank you so much👌

  • @user-jt1wt4dk5p
    @user-jt1wt4dk5p 11 месяцев назад

    How can I earn money by making game using python pygame?