Python Arcade Part 2 | 2D Space Shooter

Поделиться
HTML-код
  • Опубликовано: 8 янв 2025

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

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

    hey man, great video, really appreciate the time!

  • @SuperGrimmy
    @SuperGrimmy 2 года назад

    It's acutally simpler to reverse the collision check here. Check if the player collides with the lasers instead. You can drop the loop and do one collision check for each player. Then you can have 1000 lasers and it will still be fast :D

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

    I'm about a half an hour into the tutorial and it seems that the {DIR} is not working. I first got some kind of unicode error. I think it was because my background image started with an 'N' and was reading it as \N. I tried adding double \\, renaming the file, moving it in and out of an images folder within my main folder for the game. Nothing I do seems to work. The best that happens is the screen flashes for a second and then closes immediately without even seeing the background or the ships. I'm not sure where to go from here.
    When we type DIR = path.dirname(path.abspath(__file__)) --- is it automatically referring to the folder I'm creating the game in? I'm using Windows 10, Python 3.11.4.