Programming a Traffic System for my Game | Devlog #3

  Рет қаралды 34,047

AAlex

AAlex

Күн бұрын

Пікірлер: 78
@quirkymarshmallow9324
@quirkymarshmallow9324 Жыл бұрын
I love the sounds effects :D
@christinaVennegerts
@christinaVennegerts 2 жыл бұрын
Hey, this looks great! You made it Sound so easy :D Loved the Sound fx, too :D
@RogueFireflyProductions
@RogueFireflyProductions 3 жыл бұрын
This is looking up! I can't wait to play this when it's fully developed. Wish you luck on your developing endeavors!
@Gamermastershopify
@Gamermastershopify 4 ай бұрын
me too
@Astoaria
@Astoaria 3 жыл бұрын
Hahah great video dude! Sfx spot on!
@AAlexDoesStuff
@AAlexDoesStuff 3 жыл бұрын
Thank you, means a lot coming from you because I always enjoy your videos :)
@mannyw_
@mannyw_ 2 жыл бұрын
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 2 жыл бұрын
Thinmatrix will like this DevLog. :D
@Tudvari
@Tudvari 3 жыл бұрын
Cool devlog, I like its humour and mood! :) (also it's pretty informational) Cheers, keep it up!
@AAlexDoesStuff
@AAlexDoesStuff 3 жыл бұрын
Thanks a lot :)
@galtouzgames9357
@galtouzgames9357 3 жыл бұрын
Omg your project seams so cool! Keep it up!
@edenbwicey7250
@edenbwicey7250 3 жыл бұрын
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 жыл бұрын
Thank you, best of luck to you with your city builder :)
@TheBugB
@TheBugB 2 жыл бұрын
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 2 жыл бұрын
I feel you. The more in depth you go with search algorithms the worse they become.
@connor7217
@connor7217 2 жыл бұрын
Oh no! I've just stumbled across this playing and now I need more!
@KamranWali
@KamranWali 3 жыл бұрын
Awesome video! Really liking how the game is coming together. Keep it up! :)
@AAlexDoesStuff
@AAlexDoesStuff 3 жыл бұрын
Thanks, will do :)
@nikkeuser
@nikkeuser 2 жыл бұрын
As a fellow game developer, I am impressed!
@marcheck3400
@marcheck3400 Жыл бұрын
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.
@yogpanjarale
@yogpanjarale 2 жыл бұрын
The game looks noice
@vast634
@vast634 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 2 жыл бұрын
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 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 2 жыл бұрын
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.
@TheBugB
@TheBugB 2 жыл бұрын
I’ll see you in the next one!
@ImilkowskiDev
@ImilkowskiDev 3 жыл бұрын
Nice devlog, keep it up! 😊
@ribou_
@ribou_ 2 жыл бұрын
Very satisfying
@StarOnCheek
@StarOnCheek 2 жыл бұрын
This is not the channel i though i would see when i clicked on this video, but i am not mad
@barlauch9292
@barlauch9292 3 жыл бұрын
Wann fragst du lets game it out das Spiel auszuprobieren?
@AAlexDoesStuff
@AAlexDoesStuff 3 жыл бұрын
April
@andrewty37
@andrewty37 3 жыл бұрын
Keep up the great work! I will get it at any price! From USA
@AAlexDoesStuff
@AAlexDoesStuff 3 жыл бұрын
Thanks for your support, will then release my game for one billion dollars per copy.... Never mind I think steam doesn't allow that :(
@DinkDevs
@DinkDevs 2 жыл бұрын
Awesome stuff!!
@rodrigoferriz8267
@rodrigoferriz8267 2 жыл бұрын
HI tutorial and/or where can i buy the asset 😶‍🌫
@NKCSS
@NKCSS 2 жыл бұрын
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 2 жыл бұрын
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.
@xaph1
@xaph1 2 жыл бұрын
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 2 жыл бұрын
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: kzbin.info/www/bejne/bKnWYYaXm8tsapI )
@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.
@victorwidell9751
@victorwidell9751 2 жыл бұрын
The car's turning axis needs to be between the rear wheels, or the rear wheels will slide. It looks weird.
@AAlexDoesStuff
@AAlexDoesStuff 2 жыл бұрын
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 2 жыл бұрын
@@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 2 жыл бұрын
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 :)
@cadetcondog6482
@cadetcondog6482 3 жыл бұрын
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 жыл бұрын
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 жыл бұрын
@@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 жыл бұрын
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
@meowcycles
@meowcycles 2 жыл бұрын
funny, i subbed
@Zer0Flash
@Zer0Flash 2 жыл бұрын
epik
@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 :)
@Ozblivion-Official
@Ozblivion-Official 2 жыл бұрын
ur tellin me they exported all their car models without applying transforms? come on people
@thg1nrediar
@thg1nrediar 2 жыл бұрын
Good
@kairu_b
@kairu_b 2 жыл бұрын
Noice
@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, ...)
@majorbedhead7451
@majorbedhead7451 2 жыл бұрын
The name of the pathing algo is truly the most important design criterion
@terminus8497
@terminus8497 2 жыл бұрын
your voice scares me
@golddorf
@golddorf 2 жыл бұрын
Hey, coole Sache! Falls du mal etwas Rat während der Entwicklung brauchst, schreib mir gerne mal!
@toastyPredicament
@toastyPredicament 2 жыл бұрын
then what is something i got robbed of
@Idev-32
@Idev-32 4 ай бұрын
can i have this video game
@webplace8268
@webplace8268 2 жыл бұрын
da hoere ich doch Deutsch raus
@AAlexDoesStuff
@AAlexDoesStuff 2 жыл бұрын
Psst
@ttt-ml9dj
@ttt-ml9dj 2 жыл бұрын
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 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 2 жыл бұрын
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 2 жыл бұрын
Yep definitely, will even try to make car free citys possible.
@centigames
@centigames 2 жыл бұрын
@@AAlexDoesStuff Awesome, I'm gonna make a city with only railways and trains as the only type of transportation 😎😎😎
Creating Electricity and Meltdowns for my Game | Devlog
6:48
Adding PORTALS to my Game | Devlog
5:11
AAlex
Рет қаралды 41 М.
Creative Justice at the Checkout: Bananas and Eggs Showdown #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 35 МЛН
Deadpool family by Tsuriki Show
00:12
Tsuriki Show
Рет қаралды 7 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 47 МЛН
Adding Tons of Levels to My Indie Game
6:39
Goodgis
Рет қаралды 89 М.
Adding Tsunamis and Daily Routines to my Game| Devlog
7:02
I made a Speedrunning Game with Intentional Bugs
10:50
AAlex
Рет қаралды 678 М.
3 Months of Learning Game Development
10:48
Byte of Michael
Рет қаралды 970 М.
How Traffic Works in Cities: Skylines | AI and Games #54
17:26
AI and Games
Рет қаралды 138 М.
How to Code (almost) Any Feature
9:48
DaFluffyPotato
Рет қаралды 704 М.
Starting Fresh - An Elaborate History of Chess - DevLog 1
7:53
Iteration Games
Рет қаралды 18 М.