How to create Destructible Terrain in Godot.

Поделиться
HTML-код
  • Опубликовано: 6 сен 2024
  • Repo: gitlab.com/god...
    Further Reading:
    QuadTrees (not maps, oops): en.wikipedia.o...
    Normals: en.wikipedia.o...)
    Different approach: / how_we_created_destruc...
    Music:
    "Leaving Home" Kevin MacLeod (incompetech.com)
    Licensed under Creative Commons: By Attribution 4.0 License
    creativecommons....

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

  • @Crisisdarkness
    @Crisisdarkness 4 года назад +1

    I hope you come back soon, your content is so valuable, thank you friend for the videos you have created

  • @Crisisdarkness
    @Crisisdarkness 4 года назад +1

    Wow I did not realize you had uploaded new content like this, you are someone very talented, wow this is great, thanks friend, I admire you

  • @sanyi9667
    @sanyi9667 4 года назад +1

    all your tutorials are top tier - insta subscribed

  • @_Garm_
    @_Garm_ 4 года назад +8

    bit fast but great tutorial, so in essence when you create the map, you fill out the "cut out" with alpha color, have i understod it right ? :D

    • @optionaldev2876
      @optionaldev2876  4 года назад +2

      Yes. And for the physics keep a 2D array copy of the map, since reading the alpha of the sprite every frame takes forever

  • @FredBednarski
    @FredBednarski 4 года назад +1

    This is awesome! All we are missing is a tutorial for ninja rope and we can remake worms! :D

    • @optionaldev2876
      @optionaldev2876  4 года назад

      Well, as a starting point I have a tutorial on the grappling hook from Teeworlds: ruclips.net/video/Wzrw6_KDMl4/видео.html

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

      @@optionaldev2876 this comments are from 5 months ago. Do we have Gworms already? If not I would be happy to aid with the art.

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

      @@robertoaguiar6230 Thank you very much for the offer, but I'm actually not working on any Godot game right now. I just like tinkering with the engine and implementing small mechanics. (Also, I haven't done *any* real GameDev in the past 5 months anyway)

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

    High quality content here, keep making these vids please.

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

    Hello, is there anyway to add an grass on top of the terrain? Like the green grass on top brown land of the worms reload video you showed?

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

    Actually - using marching squares you _could_ possibly generate a collision mesh for the image.

  • @truenincillo805
    @truenincillo805 2 месяца назад

    Please🙏🙏, tutorial, tree cutting, the tree shakes when cut, ((The tree will fall when it reaches the number of times required by the player's skill (cut) - ((example: small tree 2 to 5 times )), (and that the tree drops objects when the tree ends up falling and disappears)

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

    Thank you for this tut.

  • @fecu2394
    @fecu2394 4 года назад +1

    Worm is one of those tricky English words, it's pronounced "wurm". Nice tutorial, how would you approach this in 3d? In the shader I guess. Might be tricky.

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

    Hi Thanks for the content you are extremely knowledgeable, I'd love to see some slower paced more basic tutorials. I feel like the beginner tutorials on youtube at the moment aren't teaching to do things the proper way, thanks!

  • @voidfalse
    @voidfalse 4 года назад

    Can you make terrain destruction like in Scorched Earth? There you don’t have parts of terrain float in the air, but they fall to the ground

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

    I searched the internet everywhere and can't find a tutorial on top down 2d bridges such as going under and over all with collisions. I'm so lost could you make a tutorial for this?

  • @andermetalbrasil
    @andermetalbrasil 4 года назад

    Nice tutorial.

  • @skar0ps
    @skar0ps 4 года назад

    Your videos are super helpful ! Thank you for making those tutorials :D

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

    Can't believe is GDScript, we seem to use different language, how do you leran this?

  • @TackerTacker
    @TackerTacker 4 года назад

    Thanks for sharing

  • @junndeb2421
    @junndeb2421 4 года назад

    When you said you have to make a physics engine for this, is it something that I need to learn or is it already here in the tutorial? I'm kinda new to gamedev and in Godot. Is it also ok to do the script in Godot and does it make a difference, you seem to be using visual studio. Last, how do you use visual studio code for Godot? I apologise for the amount of questions.

    • @optionaldev2876
      @optionaldev2876  4 года назад

      For the physics engine it's what I'm talking about really briefly and superficially at 2:23-2:50. You need to understand how to calculate the angle to bounce off surfaces. You need the normal (en.wikipedia.org/wiki/Normal_(geometry) ) for that, but I don't know how to break it down simpler.
      If you wanna look at my code (with comments!) for it you can look at do_steps() here: gitlab.com/godotdemos/destructable-terrain-demo/-/blob/master/Grenade.gd#L31
      and collision_normal() here: gitlab.com/godotdemos/destructable-terrain-demo/-/blob/master/Collision.gd#L29
      It doesn't matter if you code in Godot or in VSC. I just prefer VSC. (Here's how to use VSC docs.godotengine.org/en/stable/getting_started/editor/external_editor.html )
      I personally am really bad at explaining basic stuff, which I think is more what you need.
      This specific prototype combines intermediate Godot techniques with intermediate physics so it's maybe a bit difficult if you are not well versed in one or the other.
      Maybe a tutorial on programming physics (without a physics engine) would help you.
      For example, I found this adamdempsey90.github.io/python/bouncing_ball/bouncing_ball.html
      I've only skimmed it, but it seems like it might be a good introduction. Or maybe you find something better...

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

    Omg I LOVE worms :O

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

    New videos please

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

    Pocket Tanks!

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

    mehr vids plz ;P

  • @user-lq1jn5nd4d
    @user-lq1jn5nd4d 3 года назад

    where r new videos):

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

    The method texture.set_data doesnt exist anymore

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

      Probably you figured out by now but for whoever has the same issue:
      You can solve this by:
      var imageTexture = ImageTexture.new()
      imageTexture.create_from_image(fg_data)
      fg.texture=imageTexture

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

      @@mmxgn also get_data() doesn't work anymore, what's the replacement?

  • @kingzeeb319
    @kingzeeb319 4 года назад

    BRUH

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

    what the f*** is this, i can't understand anithing, what?

  • @demosthenes7902
    @demosthenes7902 4 года назад +1

    Not a beginner friendly engine at all lol..