Programming a Traffic System for my Game | Devlog #3

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

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

  • @quirkymarshmallow9324
    @quirkymarshmallow9324 Год назад +5

    I love the sounds effects :D

  • @christinaVennegerts
    @christinaVennegerts 3 года назад +11

    Hey, this looks great! You made it Sound so easy :D Loved the Sound fx, too :D

  • @RogueFireflyProductions
    @RogueFireflyProductions 3 года назад +9

    This is looking up! I can't wait to play this when it's fully developed. Wish you luck on your developing endeavors!

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

    Fantastic devlog! I’m working on a building game that has basic traffic, so learning about how you approached these problems was really helpful.

  • @Ferenc-Racz
    @Ferenc-Racz 3 года назад +5

    Thinmatrix will like this DevLog. :D

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

    Hahah great video dude! Sfx spot on!

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

      Thank you, means a lot coming from you because I always enjoy your videos :)

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

    Cool devlog, I like its humour and mood! :) (also it's pretty informational)
    Cheers, keep it up!

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

    Oh no! I've just stumbled across this playing and now I need more!

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

    This looks amazing bro! Well done, I'm working on my own city builder aswell with my own twists, you have promising content to make it big! Keep it up :)

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

      Thank you, best of luck to you with your city builder :)

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

    Omg your project seams so cool! Keep it up!

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

    The game looks noice

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

    Yay traffic! Everyone’s favorite past time. I always hated the search algorithms in my CS classes. Maybe it just wasn’t taught to me well. Who knows

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

      I feel you. The more in depth you go with search algorithms the worse they become.

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

    Awesome video! Really liking how the game is coming together. Keep it up! :)

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

    As a fellow game developer, I am impressed!

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

    Funny I was just toying with this idea too and this vid came to my recommended list 💀. Fear the almighty algo gods. I did thought of various ways this can break, so I am looking forward to see how you would solve it.

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

    Very satisfying

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

    Nice devlog, keep it up! 😊

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

    Smart idea to keep cars just offset from the central path, instead of making separate paths for both lanes. That will work unless you plan to make some really complex highway intersections.

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

      Yeah you're right, I'll need to create special path rules for different kinds of streets. That's why I will probably postpone working on the streets until the game is more fleshed out ;)

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

      @@AAlexDoesStuff Looked quite ok to me. If you also implement parking the car in a driveway/garage or on the side. And trive-throughs for specific buildings, you pretty much have all the mechanics related to cars going around in a small city. Also think about one-way streets, wich can be repurposed to highway lanes. And pulled trailers, wich can also be used for semitrucks.

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

      Except for pulled trailers, I wanted to implement all of these in the future. Trailers as stationary buildings would be fine but I think them being mobile would be a bit to much to implement.

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

    Awesome stuff!!

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

    I’ll see you in the next one!

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

    Keep up the great work! I will get it at any price! From USA

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

      Thanks for your support, will then release my game for one billion dollars per copy.... Never mind I think steam doesn't allow that :(

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

    This is not the channel i though i would see when i clicked on this video, but i am not mad

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

    funny, i subbed

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

    Wann fragst du lets game it out das Spiel auszuprobieren?

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

    Hi! Great devlog, I will follow your journey with your game! A question; where/how did you learn how to create a grid system with roads and how did you learn to make your cars follow the right side of the road for example?

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

      Hey I used the mesh / bezier curve generation tutorial from Freya Holmer for the streets and expanded upon it. I figured the rest out for myself. (Here's the tutorial I used but it explains a lot more stuff: ruclips.net/video/6xs0Saff940/видео.html )

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

      @@AAlexDoesStuff Thanks for the reply! Do you have a guide or tutorial for car AI and how you make the cars go on the right side on every road tile you place?

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

      Not really, figured it out myself. In my implementation every road tile has information about the start and endpoint and the cars simply follow them and I offset the cars with their transform.right to be in the correct lane. The path finding will depend on your implementation and for collision checking I used raycasts.

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

      @@AAlexDoesStuff Thank you for answering my questions! Can I ask you one more? :) How to know what size to create the grid cells in Unity and the size on the houses/road in Blender?

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

      @@xaph1 I don't know, I don't use a grid.

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

    epik

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

    Suggestion:
    3% of cars will recklessly drive and 1% will crash. Then a tow truck or fire department can deal with them.

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

      Great idea! Will definitely consider it and try it out as soon as I am at the point where I can flesh out details of the game.

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

      @@AAlexDoesStuff Ya that would be awesome!

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

      I don’t think any city builders really spend the time with first responders, security, military etc. Like if there was a concert there would be police doing traffic control, or a Ambulance bringing someone out of the crowd to the hospital.

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

      I think it's always a balance between detail and performance. Big cities means lots of humans, so you only show them when you zoomed in close enough. This results in detail not really being worth it for bigger studios a lot of times. But I am not a big studio so I can make stupid little details from time to time ;)

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

      @@AAlexDoesStuff True

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

    Good

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

    The car's turning axis needs to be between the rear wheels, or the rear wheels will slide. It looks weird.

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

      Yeah I agree, but I already tried that and somehow it looked even weirder, maybe it's because they don't slow down in curves yet. I'll try it again when I implement them driving more realistically when turning.

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

      @@AAlexDoesStuff You might want to use a C2-continous curve instead of just a circular arc. The front wheels need time to turn, so the rotation has an acceleration too.

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

      I am already using bezier curves. Yeah I think the look will probably improve a lot when I'll improve the accelerations. Thanks for the tips :)

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

    Noice

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

    3:38 you could solve that by parenting it in a game object and setting the rotation on them; would have been a quick fix 😅

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

      Yeah but that feels wrong, also if I want to add new vehicles in the future I won't have to purposely rotate them wrongly.

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

    HI
    tutorial and/or where can i buy the asset 😶‍🌫

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

    Ohne nach zu schauen hört man das hier ein Deutscher am Werk ist :D
    Nices Video :))
    Kennst du das Spiel Mini Motorways? Könntest du mal erklären wie man sowas Grob erstellen kann? also das Verschiedene Gebäude (Arbeit) auf einer Map Spawnen und man die passenden Häuser (Arbeiter) mit Straßen verbinden muss :)

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

    The name of the pathing algo is truly the most important design criterion

  • @Ozblivion-Official
    @Ozblivion-Official 3 года назад +1

    ur tellin me they exported all their car models without applying transforms? come on people

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

    Are you basically recreating cities skylines?

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

      More or less. The basic city building concepts will be the same. Yet your playstyle directly impacts the environment and people of your city. (Too many coal plants cause fog over time, riots if your citizens are unhappy, ...)

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

    your voice scares me

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

    then what is something i got robbed of

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

    Hey, coole Sache! Falls du mal etwas Rat während der Entwicklung brauchst, schreib mir gerne mal!

  • @Idev-32
    @Idev-32 5 месяцев назад

    can i have this video game

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

    da hoere ich doch Deutsch raus

  • @ttt-ml9dj
    @ttt-ml9dj 3 года назад

    good luck with your game. your voice kinda makes me wanna fall asleep tho! you don't sound that excited, tho I know you are :)

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

      yeah I've been told that, maybe I should just rebrand as an asmr channel

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

    turning cars physics is not realistic enough : no streering wheel rotation and the rear axle is drifting way too much. I'm trying to develop a well optimized better car physics than yours following an array of points or a spline and its VERY VERY hard

  • @centigames
    @centigames 3 года назад +7

    Wow, looking really good! The cars driving around really adds a lot to the city and makes it feel much more alive! Do you think you will add pedestrians/public transport/bicycles/pedestrian-only-streets in the future as well?

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

      Yep definitely, will even try to make car free citys possible.

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

      @@AAlexDoesStuff Awesome, I'm gonna make a city with only railways and trains as the only type of transportation 😎😎😎