Readit News logoReadit News
0x389 commented on Show HN: America – Road Trip Simulator   4m3ric4.com... · Posted by u/0x389
naikrovek · 3 years ago
is there a way to reset? I guess I could clear cookies.
0x389 · 3 years ago
"reset" button has been added to "settings"
0x389 commented on Show HN: America – Road Trip Simulator   4m3ric4.com... · Posted by u/0x389
raldi · 3 years ago
Are you saying the car picks random options at each intersection?
0x389 · 3 years ago
Not quite. Initially, it gets general direction, say the West Coast. Then, depending on vehicle choice, it has a list of preferred waypoint categories. After arriving to a waypoint it makes a decision where to go next.

For example, if you picked a camper van, your next stop may be a gas station (for snacks), after that it may decide to head for an RV-park, then for some natural attraction and so on.

0x389 commented on Show HN: America – Road Trip Simulator   4m3ric4.com... · Posted by u/0x389
naikrovek · 3 years ago
is there a way to reset? I guess I could clear cookies.
0x389 · 3 years ago
Currently there is no accessible way to reset. You can try run "reset()" from the console though.
0x389 commented on Show HN: America – Road Trip Simulator   4m3ric4.com... · Posted by u/0x389
milchek · 3 years ago
Thanks! I'm guessing some other photos from landmarks are taken from elsewhere? For example, in Kansas there is a 'Geographical center of the 48 states' monument (sorry, I'm from Australia so not familiar with what this is called) that looks like a photo taken not from the road.
0x389 · 3 years ago
Some of the photos are not taken from the road, which I love, but they all come from the same API.
0x389 commented on Show HN: America – Road Trip Simulator   4m3ric4.com... · Posted by u/0x389
milchek · 3 years ago
It works, people are shy. I had a crack at talking to some folks, more to comment on how interesting the application itself is. I wonder how the app deals with many people connected? Maybe different instances?
0x389 · 3 years ago
Think, most browsers limit number of peers to 256. Not sure what happens after exceeding the limit. Never tested, honestly.

Having 256 people on a call must be a crazy experience, but the app only connects you to other drivers in vicinity, the radius is about 100 km.

0x389 commented on Show HN: America – Road Trip Simulator   4m3ric4.com... · Posted by u/0x389
felipemnoa · 3 years ago
The game is quite intriguing. However, I'm way more interested in the technology for building this web app. Does anybody know of any tutorials to learn how to build a hello world of this type of app?
0x389 · 3 years ago
Thanks for trying it out!

The frontend is built with Svelte. This was my first time using the framework and I found their website super helpful: https://svelte.dev/docs

Used Mapbox API and geolib (https://github.com/manuelbieh/geolib/) for building routes and for other geospatial tasks.

"Talkie" was built with simple-peer (https://github.com/feross/simple-peer) and WebRTC. Great tutorial can be found on MDN: https://developer.mozilla.org/en-US/docs/Web/Guide/API/WebRT...

On the backend I use Vercel's serverless functions which are mostly acting as trivial proxies for various open API's.

Feel free to email me if you need more info.

0x389 commented on Show HN: America – Road Trip Simulator   4m3ric4.com... · Posted by u/0x389
audiometry · 3 years ago
Is there a way to mute the weird static sound? I turned off the radio, but the static persists. When I turned on walkie-talkie, the static moved to the speaker of the my mic/speaker combo. Turning off walk-talkie just moved the static back to original speaker.
0x389 · 3 years ago
Maybe you have the "vehicle" application open? It generate grey noise to simulate background noise in real vehicle. Can be turned off by closing the window.
0x389 commented on Show HN: America – Road Trip Simulator   4m3ric4.com... · Posted by u/0x389
molotovh · 3 years ago
Is there any way to set current location and destination? I very much like the radio interface, though I only seem to be able to get two stations. I'd like to explore the radio stations available in different metro areas.
0x389 · 3 years ago
There is no way to set current location and destination currently.

Starting point is always the geographical center of the US near Lebanon, Kansas. The route and general direction are not pre-determined and depend on the vehicle choice. There is no destination really, you can stop at any time.

Available radios change as you progress depending on your location in the game.

0x389 commented on Show HN: America – Road Trip Simulator   4m3ric4.com... · Posted by u/0x389
wikidani · 3 years ago
Hey, the save file breaks notepad++ when I try to open it. Is it ok if I ask you what's inside? Just curious :D

>edit: nevermind, I managed to open it after the third try, there must be something wrong on my end lol

0x389 · 3 years ago
Inside there is a JSON of the application state with LZ-compressed values.
0x389 commented on Show HN: America – Road Trip Simulator   4m3ric4.com... · Posted by u/0x389
raldi · 3 years ago
Am I supposed to be able to control or even know the destination, or is that only revealed by watching it run for many days?
0x389 · 3 years ago
The destination is not pre-determined and depends on the vehicle you chose.

Everyone start at the geographical center of the United States in Lebanon, Kansas and later statistically most likely find themselves on one of the coasts. Just because of the overall direction of the highways.

Ended up in Anchorage once. Must say rural Canadian craigslist is wild.

u/0x389

KarmaCake day448September 9, 2022
About
designer and engineer based in barcelona, catalunya my websites: https://the389.net • https://4m3ric4.com previously, software engineer at https://www.samara.com
View Original