OOP with Java: 14. Tetris Game with Java Swing (Part IV. Adding controls using key bindings)

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

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

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

    this is the most fun I have ever had while watching a coding tutorial.

  • @thedev5126
    @thedev5126 3 года назад +3

    Wow, that visualisation in 15:30 helped a lot, I paused the vid instantly and couldn't understand what's really going on, though it was pretty clear

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

      Thanks! Good to know it's actually helpful

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

      @@MrMProgramming bro its showing index out of bound exception at this time. can you elaborate why?
      i coded exactly same.

  • @wezzfez
    @wezzfez 3 года назад +4

    That repaint() clip, epic!! :D

  • @DS-lh1fx
    @DS-lh1fx 2 года назад +2

    great tutorial!!
    Just one questions, in my code, the shape disapear into the bounds of the gamearea if you rotate it been near the edges. The shape is in this position (L) and it reachs the rigth edge, then I rotate it and (indexOutOfBoundsException) I do not see that happening to your code. Did I mis something?

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

      Thanks for your comment!
      That issue will be fixed in another video but if you want to fix it now check out the link below
      ruclips.net/video/_jnccg1q65M/видео.html

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

    what a great tutorial !

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

    its very good and usefull. Thanks a lot!

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

    But in this step we stil have an issue. If we try to rotate block with 2 columns and 3 rows near the right edge, we will have ArrayIndexOutOfBoundsException. Maybe in next videos this will be fixed)) or i`l try to fix it by myself later))

  • @HarmanSingh-pb6ls
    @HarmanSingh-pb6ls Год назад

    @MrmProgramming my netbeans become irresponsive on moving the block right what could be the possible reasons??

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

    really appreciate your effort, but i have a question, i followed you in every single step but i still have a problem in the blocks falling down on each other, they still can pass each other in some places and sometimes an empty space occurred between two blocks.
    could you help me please? really excited to go further with the tutorial videos, but first i need to solve this issue

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

      Hi! It's hard to tell what the problem is without some extra information. Would you mid uploading screenshots to our FB group?

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

      I had the same issue, where when blocks have already hit the bottom, they can still rotate through other blocks and overlap when the up key is pressed.

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

    Sir ArrayOutOfBound Exception is occured when i run the program. i double check everything . everything was ok . can you explain why this happpend. it happed where we are rotating the shape.
    storedShapes[i][k][j]=shape[columns-k-1][j];
    can you explain why it happened to my code but not yours?

  • @noorsife1586
    @noorsife1586 3 года назад +4

    why did not use KayLestener?

    • @MrMProgramming
      @MrMProgramming  3 года назад +6

      Good question! KeyBindgings are newer and more flexible than KeyListeners, and even though using KeyBindings for a tetris game is a bit of an overkill, knowing how to use KeyBindings might help you in other, more complex projects.

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

      @@MrMProgramming 🆗

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

    9:40 thrilling :))

  • @kientrung-h2g
    @kientrung-h2g Год назад

    When I move the block to the right edge of the game area, then rotate it, part of the block goes outside the game area then the game stops. Does anyone have the same problem as me? I need help with this part

  • @sergioa.moreno8129
    @sergioa.moreno8129 Год назад

    tome su like buen hombre

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

    9:50 😂😂😂😂