Programming a Traffic System for my Game | Devlog #3

  Рет қаралды 33,254

AAlex

AAlex

Күн бұрын

I made a traffic system and some nice new buildings
| Wishlist City Worlds |
store.steampow...
| Links |
Discord: / discord
Twitch: / aalexdoesstuff
Twitter: / aalexdoesstuff
| About my game |
I want to create a fun city builder that is inspired by games like cities:skylines but focuses on fun crazy stuff, like full freedom over taxes, coal plants that fill the city full of smog or a financial divide between city worlds and much more.
| About me |
I am a 22ish year old electrical engineer in my masters working on my city building game. I accidentally got a part time game dev job a few years ago and have loved making games ever since. So here I am doing devlogs from time to time and maybe something other spicy in between.
| other stuff you might like |
I Made Squid Game, But it's a Multiplayer Game
Dani • I Made Squid Game, But...
A Day as an Indie Game Developer
ThinMatrix • A Day as an Indie Game...
Spending $20,000 On My Indie Game! (XXL Devlog)
Jonas Tyroller • Spending $20,000 On My...
#unity #cityBuilder #gamedev #gamedevelopment #madewithunity #indiedev #indiegame

Пікірлер: 78
@Ferenc-Racz
@Ferenc-Racz 2 жыл бұрын
Thinmatrix will like this DevLog. :D
@christinaVennegerts
@christinaVennegerts 2 жыл бұрын
Hey, this looks great! You made it Sound so easy :D Loved the Sound fx, too :D
@quirkymarshmallow9324
@quirkymarshmallow9324 9 ай бұрын
I love the sounds effects :D
@mannyw_
@mannyw_ Жыл бұрын
Fantastic devlog! I’m working on a building game that has basic traffic, so learning about how you approached these problems was really helpful.
@RogueFireflyProductions
@RogueFireflyProductions 2 жыл бұрын
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 2 ай бұрын
me too
@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!
@galtouzgames9357
@galtouzgames9357 2 жыл бұрын
Omg your project seams so cool! Keep it up!
@Astoaria
@Astoaria 2 жыл бұрын
Hahah great video dude! Sfx spot on!
@AAlexDoesStuff
@AAlexDoesStuff 2 жыл бұрын
Thank you, means a lot coming from you because I always enjoy your videos :)
@edenbwicey7250
@edenbwicey7250 2 жыл бұрын
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 2 жыл бұрын
Thank you, best of luck to you with your city builder :)
@Tudvari
@Tudvari 2 жыл бұрын
Cool devlog, I like its humour and mood! :) (also it's pretty informational) Cheers, keep it up!
@AAlexDoesStuff
@AAlexDoesStuff 2 жыл бұрын
Thanks a lot :)
@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.
@KamranWali
@KamranWali 2 жыл бұрын
Awesome video! Really liking how the game is coming together. Keep it up! :)
@AAlexDoesStuff
@AAlexDoesStuff 2 жыл бұрын
Thanks, will do :)
@ImilkowskiDev
@ImilkowskiDev 2 жыл бұрын
Nice devlog, keep it up! 😊
@nikkeuser
@nikkeuser 2 жыл бұрын
As a fellow game developer, I am impressed!
@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.
@DinkDevs
@DinkDevs 2 жыл бұрын
Awesome stuff!!
@yogpanjarale
@yogpanjarale 2 жыл бұрын
The game looks noice
@TheBugB
@TheBugB 2 жыл бұрын
I’ll see you in the next one!
@StarOnCheek
@StarOnCheek 2 жыл бұрын
This is not the channel i though i would see when i clicked on this video, but i am not mad
@ribou_
@ribou_ Жыл бұрын
Very satisfying
@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.
@andrewty37
@andrewty37 2 жыл бұрын
Keep up the great work! I will get it at any price! From USA
@AAlexDoesStuff
@AAlexDoesStuff 2 жыл бұрын
Thanks for your support, will then release my game for one billion dollars per copy.... Never mind I think steam doesn't allow that :(
@meowcycles
@meowcycles 2 жыл бұрын
funny, i subbed
@Ozblivion
@Ozblivion 2 жыл бұрын
ur tellin me they exported all their car models without applying transforms? come on people
@cadetcondog6482
@cadetcondog6482 2 жыл бұрын
Suggestion: 3% of cars will recklessly drive and 1% will crash. Then a tow truck or fire department can deal with them.
@AAlexDoesStuff
@AAlexDoesStuff 2 жыл бұрын
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 2 жыл бұрын
@@AAlexDoesStuff Ya that would be awesome!
@cadetcondog6482
@cadetcondog6482 2 жыл бұрын
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 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 2 жыл бұрын
@@AAlexDoesStuff True
@barlauch9292
@barlauch9292 2 жыл бұрын
Wann fragst du lets game it out das Spiel auszuprobieren?
@AAlexDoesStuff
@AAlexDoesStuff 2 жыл бұрын
April
@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 :)
@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 :)
@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.
@majorbedhead7451
@majorbedhead7451 2 жыл бұрын
The name of the pathing algo is truly the most important design criterion
@thg1nrediar
@thg1nrediar 2 жыл бұрын
Good
@rodrigoferriz8267
@rodrigoferriz8267 Жыл бұрын
HI tutorial and/or where can i buy the asset 😶‍🌫
@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, ...)
@kairu_b
@kairu_b 2 жыл бұрын
Noice
@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
@terminus8497
@terminus8497 2 жыл бұрын
your voice scares me
@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 😎😎😎
@Adingra-974
@Adingra-974 2 ай бұрын
can i have this video game
@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
@webplace8268
@webplace8268 2 жыл бұрын
da hoere ich doch Deutsch raus
@AAlexDoesStuff
@AAlexDoesStuff 2 жыл бұрын
Psst
@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
Creating Electricity and Meltdowns for my Game | Devlog
6:48
ADDING RIOTS to my GAME
9:03
AAlex
Рет қаралды 205 М.
This mother's baby is too unreliable.
00:13
FUNNY XIAOTING 666
Рет қаралды 22 МЛН
iPhone or Chocolate??
00:16
Hungry FAM
Рет қаралды 52 МЛН
🍉😋 #shorts
00:24
Денис Кукояка
Рет қаралды 3,8 МЛН
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 69 МЛН
Programming the Road System for my City-Builder Game
9:25
ThinMatrix
Рет қаралды 234 М.
Adding PORTALS to my Game | Devlog
5:11
AAlex
Рет қаралды 41 М.
AI Plays Minecraft Forever (and dies)
23:22
Emergent Garden
Рет қаралды 376 М.
Adding Extreme Time Control to my Game
9:03
AAlex
Рет қаралды 32 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 717 М.
Programming New Road Features for my City-Builder
12:34
ThinMatrix
Рет қаралды 103 М.
My 1 Year of Learning Unreal Engine
10:20
Hazardous
Рет қаралды 79 М.
20 Advanced Coding Tips For Big Unity Projects
22:23
Tesseract
Рет қаралды 187 М.
This mother's baby is too unreliable.
00:13
FUNNY XIAOTING 666
Рет қаралды 22 МЛН