Boss Health Bar - How to Make a 2D Game in Java #55

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

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

  • @michajurkiewicz5471
    @michajurkiewicz5471 2 года назад +2

    Thank you for continuing this series. I know how much effort it takes to create so many videos, which is why I appreciate it all the more. I think we're just missing quests and dialogue options to be happy :) And I think I'm not the only one who would be grateful for creating this.

  • @ivanrako7686
    @ivanrako7686 2 года назад +1

    Thank you king you are the one we needed but didnt deserve. This has been an epic journey and i cannot express how grateful i am.

  • @darkpaladin.
    @darkpaladin. 2 года назад +1

    Amazing work bro youre truly amazing and im so hsppy you got your content back from that russian guy

  • @randomblock8258
    @randomblock8258 2 года назад +1

    This guy really deserves more

  • @joanmosquera758
    @joanmosquera758 2 года назад +1

    What an amazing job, my friend! Thanks for putting out such cool tutorials. It's pure gold indeed. If possible, could you share sites or books you learn all this from, please 🥺? It would be great to keep learning and go a little deeper into game development. Again, thank you very much. Keep up the good work 👊🏾😎!

    • @RyiSnow
      @RyiSnow  2 года назад +3

      I've learned a great deal from a website called ZetCode: zetcode.com/all/#java
      This is an amazing website that covers various topics. Not only Java but other languages too :)
      As for books, if you'd like to develop this kind of 2D game, I'd recommend you to check out a book called Killer Game Programming. It's kind of an old book and the information is a bit dated but it's very well written.

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

    Amazing. Thanks again for your videos!

  • @rominaprograma
    @rominaprograma 2 года назад +1

    I love your content!! Thank you so much ♥️🇦🇷

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

    Was baited to watch all the playlist 🤣 thanks for your content

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

    Thank you very much for your series and your videos, could you bring a video teaching how to make the game screen fullscreen? thanks

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

    Do you think you will ever add something to allow using the mouse in the game as well? for example during the option menu or while buying from npcs...

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

    Hey, I've been watching your tutorials almost since the beginning and they are great! And I have a little question: do you know how to fix GUI "blinking"? if you need more information, just tell me! Thank you.

  • @MrLoser-ks2xn
    @MrLoser-ks2xn 2 года назад

    Thanks!

  • @dominicsmit8541
    @dominicsmit8541 2 года назад +1

    I have recently started following your tutorial but I am stuck a part 8. I can move around in game but when I move over the objects nothing happens. I have redone the tutorial 2 times but still nothing happens.

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

      Zip your project folder and send it to me then I will take a look.

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

      @@RyiSnow I have sent you the code. thank you for helping I really am grateful.

    • @RyiSnow
      @RyiSnow  2 года назад +1

      Thanks for the code. Here's what you wrote wrong:
      Change this:
      gp.obj[i].solidArea.x = gp.obj[i].worldY + gp.obj[i].solidArea.y;
      To:
      gp.obj[i].solidArea.y = gp.obj[i].worldY + gp.obj[i].solidArea.y;
      Then it should work!

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

      @@RyiSnow Thanks for the help, I can't believe that it was such a small problem that made such a big difference.

  • @RF-CR7
    @RF-CR7 2 года назад

    I started with episode 1 of this series but what java version do you use?
    I have tried 3 times but at episode 3 it says "String inaccessible here" (here is the switch statement) please respond I was and still am so hyped up about this series, I watched this episode and when I saw the boss battle I was star struck. Please respond I really want to start this series!

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

      I'm using Java 8 for this one but the code should be compatible with the later versions!

    • @RF-CR7
      @RF-CR7 2 года назад

      @@RyiSnowI used correto 16 and 8 but it did not work oh and correto is the aws version of java

    • @RF-CR7
      @RF-CR7 2 года назад +1

      I have to like and subscribe at this point I like how you explained it very thouroghly in
      every episode
      😃

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

      @@RF-CR7 Hmm I see. I've never used Corretto so I can't say for sure. Amazon says Corretto is compatible with Java SE but maybe not completely. Maybe you can try the standard Java JDK (by Oracle) and see if it works?

    • @RF-CR7
      @RF-CR7 2 года назад

      @@RyiSnow thanks for the feed back but I can't say for sure it is a problem with the sdk

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

    Question: What happens behind the scenes - for instance, if I upload a game to Steam I made etc... I then later make changes / update my game, code.... what happens then? No one explains this... is the user's original game file removed and replace with an entire new update file? This all happens simultaneously - without messing up my games Stardew Valley or Animal Crossing game progress. I have no idea of the magic that is going on behind the scenes.

    • @RyiSnow
      @RyiSnow  2 года назад +1

      As long as you don't overwrite users' save files and keep the main program compatible with the previously saved files, users should be able to retain their progress!

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

    NICE!

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

    Nice, sadly I am stuck at part 19. For the life of me I can’t get events to work I got it to work once and now even after redoing the entire part 19 still doesn’t work.s

  • @bytelab3268
    @bytelab3268 2 года назад +2

    Why don't you just put if(hpbarOn) rather if(hpbarOn == true) idk that just me less text (removing redundancy)

    • @RyiSnow
      @RyiSnow  2 года назад +1

      This is a tutorial for beginners (or at least it started that way) so I try not to write it in as abbreviated a form as possible and make the code more readable!

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

    Nice!

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

    Hey. Im creating dialogues in my game, and the code works. But I can't close the dialogue-window when i press enter. I checked my code many times, but I can't find my mistake. Do you know what it could be? Im really frustrated. Thx for your help

    • @Nxjdjfjfjrjdjd
      @Nxjdjfjfjrjdjd 2 года назад +1

      Hello. Try to debug with breakpoint.

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

      @@Nxjdjfjfjrjdjd Hello and thank you that you want to help me. I think the mistake is in one of this codes:
      public void InteractNPC(int i){
      if(i != 999){
      gp.gameState = gp.dialogueState;
      gp.npc[i].speak();
      }
      }
      or here:
      else if(gp.gameState == gp.dialogueState){
      if(code == KeyEvent.VK_ENTER){
      gp.gameState = gp.playState;
      }
      }
      or maybe here:
      public void speak(){
      gp.ui.currentDialog = dialogues[dialogueIndex];
      dialogueIndex++;
      }
      if theres no problem, I can send you pictures on reddit or snap. But i understand if this is too much effort for you.
      PS: Sorry for my bad english

    • @RyiSnow
      @RyiSnow  2 года назад +1

      If you could zip your project folder and send it to me, I will take a look.

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

      @@RyiSnow ah, this would be really great. But how can i send you this ?

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

    very good.

  • @sorcerian_bootleg7112
    @sorcerian_bootleg7112 2 года назад +2

    Blue boy souls

  • @MrLoser-ks2xn
    @MrLoser-ks2xn Год назад

    🥰🥰🥰

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

    Yay

  • @oleksandr3275
    @oleksandr3275 2 года назад +1

    Hi Ryi.
    Maybe you can consider to add watermark to your videos. So that it will be visible even if somebody download your video from RUclips, so that they cannot re-upload your vieo, and it will be more easy to proof that it is yours

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

      This Russian did not copy videos from this channel, but made his own :) This cannot be secured. The exception was the editor he used, which he simply stole.

    • @RyiSnow
      @RyiSnow  2 года назад +1

      I'm actually adding a watermark to each video! You can see it at the bottom right of the screen (If you cannot see it, I'll check my setting so please let me know).
      And yeah, as michal says, if they re-type the code the watermark doesn't really protect your content. Still, better than nothing I guess!

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

      @@RyiSnow Hey,
      check your settings again, I can't see a watermark! :)

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

      That's weird. I'm seeing the watermark. Just checked the settings and confirmed the watermark is on.