Procedural Content Generation in Godot Part 2: Using Mazes

Поділитися
Вставка
  • Опубліковано 17 жов 2024

КОМЕНТАРІ • 35

  • @StradexEngine
    @StradexEngine 3 роки тому +2

    THANK YOU so much for the info about getting and setting seeds, because this will help me a lot with a multiplayer project!!!!, I can just send the terrain tiles seed to a client, instead of setting ALL THE tiles info via netcode, THANK YOU SO MUCH sir!!

  • @yasinalptekin7257
    @yasinalptekin7257 6 років тому +5

    That was awesome as always! Thank you very much

  • @TheCivildecay
    @TheCivildecay 5 років тому +4

    So instead of tiles can we make 16 scenes that have their exits in the same spots as those bitwise tiles and build a random map from actuall gamerooms?

    • @Kidscancode
      @Kidscancode  5 років тому +2

      Absolutely you could do that!

    • @TheCivildecay
      @TheCivildecay 5 років тому

      @@Kidscancode that's awesome!

  • @jb_1558
    @jb_1558 4 роки тому

    I’m making a maze survival game and I am wounding if there is a way of making randomly generated rooms within the maze?

  • @Woffelson
    @Woffelson 5 років тому

    Hey, how to make sure that erase_walls() will be always executed only after make_maze() is finished? For me the code does seem to mess them up unless yield(get_tree(), 'idle_frame') is active in erase_walls() and not in make_maze(). So, how to order those functions without yield()? (Their order in _ready() does not solve this for me.)

    • @HordeCommander
      @HordeCommander 2 роки тому

      I have been having the same problem. They both seem to run simultaneously, which I thought would not be possible.

    • @HordeCommander
      @HordeCommander 2 роки тому +1

      I figured it out. I moved the erase walls, to the end of make maze, now they run in series and not in tandem. I do think it i intresting that they ran in tandem, and I may see if I can use this in other places. but in a code where subtracting makes a difference, it was just screwing up how everything looked.

  • @Nevarek_
    @Nevarek_ 6 років тому +13

    In v3.0.6, I had to add `$Camera2D.make_current()` (without the backticks) to get the main scene to properly modify the zoom and position properties.
    So, your `_ready()` function should read:
    ```
    func _ready():
    $Camera2D.make_current()
    $Camera2D.zoom = Vector2(3, 3)
    $Camera2D.position = Map.map_to_world(Vector2(width / 2, height / 2))
    ```

    • @tw0pers0nalities
      @tw0pers0nalities 3 роки тому

      Thank you

    • @hossumquat
      @hossumquat 2 роки тому

      Excellent. Not sure how you figured that out but I am glad you did!

  • @Snaps12345
    @Snaps12345 4 роки тому

    Whenever I try to change the map so that it has spaces in between the paths it crashes. What should I do?

    • @Kidscancode
      @Kidscancode  4 роки тому

      Depends on why it crashes. Fix what the error says is wrong.

    • @Snaps12345
      @Snaps12345 4 роки тому

      @@Kidscancode Nothing was wrong tho. There was no error. The programm just wouldnt respond. It works now. Even tho I changed absolutely nothing. I have no idea why

    • @hossumquat
      @hossumquat 2 роки тому

      @@Snaps12345 Heh, you said in your first post that it crashes. Now you say there is no error. It seems like your description of the situation is buggy.

  • @makimahonkai4514
    @makimahonkai4514 2 роки тому

    how to make it without dead ends like pac-man, just looping around or something, there is only one starting point and exit point and how to identify a certain point in a path (coordinates, if i wanted to open a certain path)

    • @matthewparker9276
      @matthewparker9276 2 роки тому

      If you don't want dead ends, when you reach a cell and all its neighbours are visited, you can pick a random neighbour to connect to before you start backtracking. You will need some logic to ensure you aren't adding a connection for each cell along the backtrack, and that you are connecting to the cell that is already connected to.

  • @alodu89
    @alodu89 6 років тому

    Hi,
    I don't fully understand but the more i watch, the more i understand.
    There is still something that i try to do but with no success.
    I don't know how to change the spacing (from 2 to like 3 or 4). How to make it work properly.
    Sorry if i'm not clear, i'm not a native speaker so ask me if you don't understand ^^'

    • @alodu89
      @alodu89 6 років тому

      another question that i can't answer for now is : how to make variation in tiles.
      I tried to change the "0s" tiles by changing their region but it only changes all the 0s tiles. not randomly. So how can i randomly change the tiles sprite ?

  • @wesleycampbell7802
    @wesleycampbell7802 6 років тому

    When will you finish space rocks

    • @Kidscancode
      @Kidscancode  6 років тому

      Space rocks got disrupted by the release of Godot 3.0, and I decided to start on the Tank game instead. There is a complete version of the game in my book, which you can find the code for here: github.com/PacktPublishing/Godot-Game-Engine-Projects

    • @digitalman2112
      @digitalman2112 4 роки тому

      @@Kidscancode Funny, when I was learning GameMaker I called my game "Big Space Rocks" danduda.com/Arcade/BigSpaceRocks

  • @THEGIGOLO05
    @THEGIGOLO05 4 місяці тому

    Thaks men

  • @masonterry3192
    @masonterry3192 6 років тому +1

    Can u do online pvp coding

    • @Crisisdarkness
      @Crisisdarkness 6 років тому

      Good Idea bro

    • @masonterry3192
      @masonterry3192 6 років тому

      Crisisdarkness ikr

    • @Crisisdarkness
      @Crisisdarkness 6 років тому

      Mason Terry You've heard about the game Battlerite Royale?, what's your opinion about it?, I recommend you check some gameplays, I feel that Fornite style games will become like a specific genre of game, I can assure you that games will continue to appear under this essence, since this genre has had a lot of fans

  • @masonterry3192
    @masonterry3192 6 років тому +1

    How to make counter strike, and fortnite

    • @Kidscancode
      @Kidscancode  6 років тому +5

      Well, to start with you need an enormous bank account. ;) Fortnite took many years to develop by a large team of programmers, designers, artists, etc. It's not the kind of project that any individual developer can make.
      That said, if you're interested in learning about 3D, there's an FPS tutorial in the Godot official docs: docs.godotengine.org/en/latest/tutorials/3d/fps_tutorial/part_one.html

    • @masonterry3192
      @masonterry3192 6 років тому

      KidsCanCode thx so much I might try that that seems cool I play fortnite and FPS everyday

    • @masonterry3192
      @masonterry3192 6 років тому

      KidsCanCode I’ll do that with my dad he he does tech support with all the coding stuff

    • @murlokkiller4743
      @murlokkiller4743 6 років тому +2

      Looks like trolling

    • @feriante777
      @feriante777 6 років тому +1

      with a professional studio with multiple employees and a big budget ;)