TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A kids traffic mat in Elm

178 pointsby eliassonabout 1 year ago

10 comments

klemola12 months ago
Whoa, didn’t expect to make it here. Thanks, OP!<p>This has been a fun (and rather long) project. I craved for a simple city builder that a toddler could play and understand. You might want to start from the first devlog entry to see where Liikennematto came from.<p>You can play Liikennematto in your browser on itch.io[1] (the link is buried at the end of the article).<p>[1] <a href="https:&#x2F;&#x2F;yourmagicisworking.itch.io&#x2F;liikennematto" rel="nofollow">https:&#x2F;&#x2F;yourmagicisworking.itch.io&#x2F;liikennematto</a>
评论 #40407005 未加载
评论 #40414741 未加载
grumpyprole12 months ago
Well done to the author on this project. A beautiful architecture and code base with not an &quot;object&quot; in sight. Projects such as this demonstrate how complex interactive applications can be built without pervasive mutable state. Pure functions are everywhere, which makes it much easier to reason about, test and reuse this code
评论 #40408227 未加载
hombre_fatal12 months ago
This is really polished. It&#x27;s one thing to make cars drive around a city, but really cool to also make them go into and exit parking.<p>I&#x27;ve done some basic game dev in Elm and was surprised how nice it was. In one game, I had melee fighters moving around a map fighting each other. Much later I came back to add a projectile class.<p>Having not touched the game code in months, adding an archer was a matter of adding an `Archer` model (with archer specific state) to an enum and then following the errors until I&#x27;d handled the archer at every switch site in the code. It blew my mind that I had a working archer system without even running the code once and without having to reload the whole code base into my head.
falcor8412 months ago
An amazing project, kudos!<p>I wonder if there is some reasonably priced flexible display I could use to make this into an actual &quot;mat&quot; for kids to play on.<p>EDIT: I just found this; anyone here with experience with this kind of tech? <a href="https:&#x2F;&#x2F;www.aliexpress.com&#x2F;item&#x2F;1005006497423497.html" rel="nofollow">https:&#x2F;&#x2F;www.aliexpress.com&#x2F;item&#x2F;1005006497423497.html</a>
评论 #40413753 未加载
k99x5512 months ago
Good intention but car-centric infra is the worst example we can give to our children.<p>You should teach how to build those streets for people first, bicycles second, public transportation third, cars last.<p>Build for people not for machines.<p>Bicycle are all age inclusive, all ability inclusive. Cars is the most discriminatory mode of transport.<p>Those crosswalks should be continuous: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=9OfBpQgLXUc" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=9OfBpQgLXUc</a>
spicyusername12 months ago
Elm is a fun language to work with.
euroderf12 months ago
It reminds a bit of the classic phone game Centipede, which I guess could make it &quot;Liikenne-Mato&quot;.
tmountain12 months ago
Beautiful write up, thank you!
playingalong12 months ago
Like SimCity.
评论 #40406575 未加载
airstrike12 months ago
Pretty cool! Sounds like a fun project to try to port over to Rust using iced if anyone is looking for ideas ;-)<p><a href="https:&#x2F;&#x2F;github.com&#x2F;iced-rs&#x2F;iced">https:&#x2F;&#x2F;github.com&#x2F;iced-rs&#x2F;iced</a>