How to simulate ball movement within a maze in a JavaScript game

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ธ.ค. 2024

ความคิดเห็น • 44

  • @TrostCodes
    @TrostCodes 4 ปีที่แล้ว +5

    This pen came out really great, Hunor. Awesome job.

    • @HunorMartonBorbely
      @HunorMartonBorbely  4 ปีที่แล้ว +1

      Thank you :) I just added hard mode, check it out

  • @vidhyadharanD
    @vidhyadharanD 4 ปีที่แล้ว +2

    This ball game reminds me my carrom project - which i have developed 15 years ago using Turbo c++.
    your explanation and creativity is stunning . Keep posting similar kind of projects .. wish you all success

    • @HunorMartonBorbely
      @HunorMartonBorbely  4 ปีที่แล้ว

      Wow, that's even too ancient technology for me :) Thank you, what would you like to see next?

    • @vidhyadharanD
      @vidhyadharanD 4 ปีที่แล้ว +2

      @@HunorMartonBorbely I like to see simple games with explanation to teach to young ones

  • @lorenzodossi
    @lorenzodossi 3 ปีที่แล้ว

    love the aesthetic of this channel

  • @henrmota
    @henrmota 3 ปีที่แล้ว

    Never give up man great channel.

    • @HunorMartonBorbely
      @HunorMartonBorbely  3 ปีที่แล้ว

      Thank you :) I'm going to continue, but I had to focus on some other things recently. But stay tuned, I have many more ideas :)

  • @LachlanMiller
    @LachlanMiller 4 ปีที่แล้ว

    This was a great video. Nice job!

    • @LachlanMiller
      @LachlanMiller 4 ปีที่แล้ว

      Exercise: add tilt controls using the accelerometer.
      Edit: you suggested it at the end.

    • @HunorMartonBorbely
      @HunorMartonBorbely  4 ปีที่แล้ว

      @@LachlanMiller In the meanwhile I realized device motion events don't work on CodePen :( Might do it later on a different platform, but I'm parking this idea for now

  • @nadayazidi3585
    @nadayazidi3585 4 ปีที่แล้ว

    great explination! thx

  • @Thisisnajafi
    @Thisisnajafi 3 ปีที่แล้ว

    Amazing ... keep it up

    • @HunorMartonBorbely
      @HunorMartonBorbely  3 ปีที่แล้ว

      Thanks a lot! I took a break from this as you see, but as the weather gets colder again, I might get back to making videos again, stay tuned 😊

  • @Aarmaxian
    @Aarmaxian 3 ปีที่แล้ว

    Very good game development ideas, though I have not grasped the math completely

    • @HunorMartonBorbely
      @HunorMartonBorbely  3 ปีที่แล้ว +1

      Thank you. Yeah, the math is a bit twisted in this one and I'm not even sure if it's fully accurate, but does the job :)

  • @shayanpopalzai7768
    @shayanpopalzai7768 ปีที่แล้ว

    Hi, how long did the coding side take you
    So the HTML, CSS and Javascript
    Could you please advise how long each section took
    Also did you do HTML first then moved or was it mix and match

    • @HunorMartonBorbely
      @HunorMartonBorbely  ปีที่แล้ว

      Mix and match. I'm not sure that you can separate HTML, CSS and Javascript like that. It took me around a week or two

  • @mertipek3872
    @mertipek3872 3 ปีที่แล้ว +1

    I copied and pasted it in visual studio code application gave an error, what should I do?

  • @soniamaklouf1178
    @soniamaklouf1178 3 ปีที่แล้ว

    Thank you Hunor
    Do you know sokoban game ?
    I've tried to make this game but I have some problem to move other blocks that are next to the one I moved
    There is also the klotski game which would be interesting to learn.
    I don't know if you already have videos idea but these games would be great.
    Cheers

    • @HunorMartonBorbely
      @HunorMartonBorbely  3 ปีที่แล้ว

      Thank you, Sonia! Sorry for the late reply, I took a break from this. Yeah I know these games, I played a lot of puzzles a long time ago. The Klotski game could be part of a tutorial that focuses on how to implement more complex swipe gestures, but I'm not sure when would I have time again to make videos. About the Sokoban game, isn't the point of the game that if there's a block behind the block you try to move, then you won't be able to move it?

  • @starlingwatch3921
    @starlingwatch3921 3 ปีที่แล้ว

    Thank you for this tutorial, it's wonderful. I am adapting it to simulate a ball rolling around a tiny TFT display. The display is on a breadboard with an Arduino ESP32 processor and BNO055 accelerometer/compass. I tilt the breadboard and using your algorithm the ball on the screen moves. Thank you! -Frank

    • @starlingwatch3921
      @starlingwatch3921 3 ปีที่แล้ว

      Did you work on using the accelerometer in a phone as input? -Frank

    • @HunorMartonBorbely
      @HunorMartonBorbely  3 ปีที่แล้ว +1

      That sounds super cool :) I didn't add the accelerometer support in the end, because currently I host the game on CodePen, and for some reason, CodePen restricts accelerometer information. But it should be really simple, did that before. You are not using JavaScript on Arduino, do you?

    • @starlingwatch3921
      @starlingwatch3921 3 ปีที่แล้ว +1

      @@HunorMartonBorbely thanks. I'm coding in C using the Arduino libraries. My project repository is at github.com/frankcohen/ReflectionsOS

  • @AnbuHarish-q2g
    @AnbuHarish-q2g 4 วันที่ผ่านมา

    How to run in save name

  • @RCOA24
    @RCOA24 4 ปีที่แล้ว

    keep it up!

    • @RCOA24
      @RCOA24 4 ปีที่แล้ว +1

      btw, i subscribedddd

    • @HunorMartonBorbely
      @HunorMartonBorbely  4 ปีที่แล้ว +2

      I saw it, thank you. It’s good to have you :)

  • @mertipek3872
    @mertipek3872 3 ปีที่แล้ว +1

    can you throw it as a file

    • @HunorMartonBorbely
      @HunorMartonBorbely  3 ปีที่แล้ว

      You can find the source code of the game here: codepen.io/HunorMarton/pen/VwKwgxX

  • @maltamagistro
    @maltamagistro ปีที่แล้ว

    Чел, ты гений

  • @baharergvn
    @baharergvn 3 ปีที่แล้ว +1

    Can you throw it as a file!!

    • @HunorMartonBorbely
      @HunorMartonBorbely  3 ปีที่แล้ว

      You can find the source code of the game here: codepen.io/HunorMarton/pen/VwKwgxX

  • @markasgrazhulis9081
    @markasgrazhulis9081 3 ปีที่แล้ว

    Cool!

  • @kostikmakesgames3279
    @kostikmakesgames3279 4 ปีที่แล้ว

    Выглядит очень круто

  • @mertipek3872
    @mertipek3872 3 ปีที่แล้ว +1

    help please

    • @HunorMartonBorbely
      @HunorMartonBorbely  3 ปีที่แล้ว

      I linked the source code in the other comment, let me know if you still have difficulties :)