#Defender

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

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

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

    Awesome! Great Work!!

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

    As a budding Pythoner and Pygamer I'd love a tutorial on how you coded this (the base game - not interested in the leaderboard part). I know you put a lot of time and effort into this so I would be more than willing to purchase the tutorial. Keep it in mind!

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

      Thank you for the offer. The original code for this is slightly unorganized, but I can put together a organized tutorial for the game. I will also put up the logic of implementing everything, and optimizations I used (there are too many particles during smartbombing so needed to optimize). Let me know if you have any way of reaching out to you individually, like discord or reddit.

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

      btw my discord is: discord.com/invite/qh8XGWypvg

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

    Impressive

  • @discotrain173
    @discotrain173 3 года назад

    Very cool. I see the game says it runs on windows. Have you considered packaging it to run on Mac/Linux? Just curious!

    • @codekingchannel
      @codekingchannel  3 года назад

      Yes! I have considered making linux and mac executables. I don't have any linux or mac machine, so I am using a mac of my friend, but I am running into an error called lipo-failure. Trying to fix that and finish the packaging soon.

    • @discotrain173
      @discotrain173 3 года назад +1

      @@codekingchannel ok cool. Yeah I was looking into packaging my own game on Mac but was just curious how easy that is. I've only used windows

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

      @@discotrain173 I managed to do a linux version, but it did not work properly when I tested on a friend's PC. So I asked them to make a linux version for me, and they made one which bundled all of the stuff in a single executable.
      As for the mac executable, it turns out that there are a lot of complex procedures involved when making an app with the --onefile parameter of pyinstaller. It is probably easier to make --onedir executables. Please do tell me if you find any problems while packaging your game for mac, because I would also love to know what you did and how you did :)

  • @nerdyturkey312
    @nerdyturkey312 3 года назад

    Absolutely brilliant 👍👍 this was one of my favourite games as a teenager on my BBC computer. Am about to download from itch. As a pygame hobbyist myself I'm really interested in how you did the online leaderboard. Maybe you could do a tutorial on that?

    • @codekingchannel
      @codekingchannel  3 года назад +1

      Thank You!!!
      I will definitely do a tutorial on the online leaderboard. Stay tuned!

    • @nerdyturkey312
      @nerdyturkey312 3 года назад

      @@codekingchannel how many lines of code out of interest?

    • @codekingchannel
      @codekingchannel  3 года назад

      @@nerdyturkey312 Approximately 4300 lines of code :D

    • @nerdyturkey312
      @nerdyturkey312 3 года назад

      @@codekingchannel Cool! This used to run on my BBC computer with 32k RAM. The native language was BASIC but I think it was written in assembler. What was your approach for the "remastering" - have you got a version of the arcade original you could play or was this from childhood memory?

    • @codekingchannel
      @codekingchannel  3 года назад +1

      @@nerdyturkey312 I never played the game on an arcade machine. I was looking for good arcade games to remake so that I can practice programming games. That was when I came across this game. I loved the gameplay mechanics and the retro sounds. So I decided to remaster this game.
      To do so, I went through several footages of the game from RUclips (thanks to all those who posted the gameplay footages!) and tried replicating the movements. Most of the time spent in developing this game was spent on research. First I had to study each enemy alien in detail and understand their logic. Often, the enemies were too fast, so I had to watch the videos in 0.25x speed to understand the mechanisms better. Then I found out every information about how the game logic works and how the enemies loaded into the screen. I also had to look at the number of initial enemies per wave. There were lots of other stuff I had to do in order to understand the game in detail :D
      But once all the information was collected, all I needed to do was to code it up. But, from the starting itself I wanted to add a leaderboard. While a local offline leaderboard would have been easy to implement, it was not exactly what I wanted to do as it was quite limited. So more than 1.5 years of research onto making leaderboards, I found some ways to implement one myself, and finally added the leaderboard to the game. If you need more details on how I made the game, please do tell me in the comments :)