How to draw a perfect circle (using rust)

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ก.ย. 2024
  • Not long ago I discovered the game "Perfect Circle" by Neal Fun (neal.fun/perfe.... The goal is to draw a perfect circle.
    As a developer I accepted the challenge, and decided to build a simple bot in rust. In this video I explained how I did it, and how you can do it too.
    Source code: github.com/Com...
    (Sorry for the way I talk, I recently started wearing aligners and it's affecting my speech, hopefully I will get use to them, if I don't, things will be better in a few months! So please bear with me)
    Subscribe: www.youtube.co...
    JavaScript playlist: • JavaScript
    Twitter: / computerbread
    #rust #programming #perfectcircle #videogames
    -------------------
    Sauce
    - sound effect at the beginning from: • Jujutsu Kaisen - Gojo ...
    - game: neal.fun/perfe...
    - sound effect goku: • Goku Transforming Supe...
    - mozart • Mozart's The Marriage ...
    - gilette drive.google.c...

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

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

    Cool program idea!

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

    Congrats on using the greek letter as a variable name 😂
    Maybe a bigger screen resolution or circle size, and smaller angle increments would improve the score?

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

      I am glad you noticed the greek letter, you can see me copy-pasting it around ^^ (I also had to add #![allow(mixed_script_confusables)] to avoid warnings).
      I tried fullscreen, bigger circle and smaller increments, but couldn't reach 100%

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

      @@ComputerBread The Rust team anticipated that?!
      Ah too bad, no 100% for us

  • @BungisZeCat
    @BungisZeCat 3 หลายเดือนก่อน +1

    when i runned the program it didnt work it just like the cursor went rfully right pls help me

    • @ComputerBread
      @ComputerBread  3 หลายเดือนก่อน

      Did you change the coordinates?
      this line: let (x_c, y_c) = (2881.0, 555.0); ?
      (I am using a 2nd monitor placed on the right)
      Try something like: let (x_c, y_c) = (950.0, 555.0);

    • @BungisZeCat
      @BungisZeCat 3 หลายเดือนก่อน +2

      @@ComputerBread thank you so much it worked❤

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

    Which program do you used to make that diagram? And model of tablet, btw cool video.

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

      Thank you, it's the iPad Pro 12,9" with the "concepts" app

  • @MLMLML41910
    @MLMLML41910 6 หลายเดือนก่อน

    How do you use it

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

    nice

  • @KietTuan-ss2co
    @KietTuan-ss2co 3 หลายเดือนก่อน

    Tôi lên 96.7%

  • @trangghuyen2941
    @trangghuyen2941 6 หลายเดือนก่อน

    Giờ lên 96,5