TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

A kids traffic mat in Elm

178 点作者 eliasson大约 1 年前

10 条评论

klemola大约 1 年前
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 未加载
grumpyprole大约 1 年前
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_fatal大约 1 年前
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.
falcor84大约 1 年前
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 未加载
k99x55大约 1 年前
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>
spicyusername大约 1 年前
Elm is a fun language to work with.
euroderf大约 1 年前
It reminds a bit of the classic phone game Centipede, which I guess could make it &quot;Liikenne-Mato&quot;.
tmountain大约 1 年前
Beautiful write up, thank you!
playingalong大约 1 年前
Like SimCity.
评论 #40406575 未加载
airstrike大约 1 年前
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>