Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
amitp
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
amitp
3y ago
I don't know how to do that with the built-in drag-and-drop API. With mouse or pointer events: 1. When I get the event, I update the underlying state , but leave the DOM element alone. 2. I can apply constraints to that state. To rest
62.
▲
by
amitp
3y ago
I don't worry about it. I usually wait a few years before using some browser feature. I'm not writing a production app and I have no customers. If I had customers, then I'd be looking at what browsers they use and making a de
63.
▲
by
amitp
3y ago
Oh wow, FidoNet, that brings back memories. :-) I still miss Usenet of old.
64.
▲
by
amitp
3y ago
I agree, more should be written about Perlin Noise range. You might find this useful: https://digitalfreepen.com/2017/06/20/range-perlin-noise.htm... In addition to range I'd like to see the distribution
65.
▲
by
amitp
3y ago
Thanks! The short answer is: no. The longer answer is: I'm not actually sure how to solve this problem. The second site, simblob.blogspot.com, is an actual blog. It's time ordered. It has posts. But the main site, redblobgames.com
66.
▲
by
amitp
3y ago
Many of the interactions I'm working on aren't about dragging elements, but instead using the drag motion to do some action. I also had trouble getting the drag-and-drop API to work inside SVG elements. I think it's solving a
67.
▲
by
amitp
3y ago
Thank you! I treat them as documents , with some interactive elements. I tend to avoid traditional animations because they're outside the reader's control. I want the reader to be able to pause, slow down, speed up, rewind, etc.
68.
▲
by
amitp
3y ago
That's great to hear — thank you!
69.
▲
by
amitp
3y ago
1. I use words for variable names instead of single letters like the textbooks do. I use "priority" instead of "F", "cost_so_far" instead of "G", "heuristic" instead of "H", "
70.
▲
by
amitp
3y ago
This year I've mostly been updating existing pages in small ways (examples: [1] [2]). This week I've been fixing broken links, which isn't a good HN submission. I think the best candidate is https://www.redblobgame
71.
▲
by
amitp
3y ago
Thank you everyone! What a surprise to be on HN today. Happy to answer questions!
72.
▲
by
amitp
3y ago
BTW the newer RotMG maps are based on this http://www-cs-students.stanford.edu/~amitp/game-programming/...
73.
▲
by
amitp
3y ago
During the ice ages there were huge ice dams along the Columbia River, and when they broke it was crazy. There are lots of neat formations in central WA resulting from the floods [1]. I second the recommendation for Geology Nick but some of
74.
▲
by
amitp
3y ago
Tarjan's Algorithm can be used to find choke points, although I haven't tried it myself [1]. I think what I would try is Breadth First Search with multiple start points to calculate various metrics for the map [2] and maybe All-Pa
75.
▲
by
amitp
3y ago
Client-side proxies were a great deal of fun. I started in 1997 with the idea that I could intercept java applets and inspect/modify the byte code. For example I scanned for "new Sound()" and created a gui frame with play
76.
▲
by
amitp
3y ago
There are some bits of Factorio source code on github — https://gist.github.com/Rseding91 and https://old.reddit.com/r/factorio/comments/13bsf3s/technical... is fascinating reading (thin
77.
▲
by
amitp
3y ago
Agreed, having control over what you see makes a big difference. I've been using Twitter this way for several years and it's been nice ("Lists" feature and TweetDeck).
78.
▲
by
amitp
3y ago
It's interesting to see many people here post about their blog being 20 years old. Was that the golden age of RSS? It turns out my blogs are also 20 years old (although my web site is older). My first posts[1][2] were not so interest
79.
▲
by
amitp
3y ago
It's a blog post from yesterday.
80.
▲
by
amitp
3y ago
I haven't tried this yet but the configuration on https://www.digihunch.com/2022/11/key-mapping-on-external-pc... looks like it will run when the keyboard is connected.
81.
▲
by
amitp
3y ago
Agreed. I do have that, but I also want to use the same keyboard with Mac, Linux, Windows. So far I've been switching keyboard configurations on the keyboard every time I use a different OS, but I'd like to move that to the OS s
82.
▲
by
amitp
3y ago
Thank you! That looks great.
83.
▲
by
amitp
4y ago
I loved Distill! My own experience with interactive content (not through Distill) was that it was so much extra work that it was hard to justify, except as a passion project, so I wasn't surprised by their (permanent) hiatus.
84.
▲
by
amitp
4y ago
Braitenberg vehicles are fascinating. The doll story reminded me that there's tech out there that is expensive and hard in a way that makes engineers happy, but there could be some other much simpler tech that makes the end users h
85.
▲
by
amitp
4y ago
Wow, thank you for this! I got to see Dollhouse in late 1996( ). Having loved SimCity, SimEarth, etc., I admit I didn't "get it" when I saw Dollhouse. I had plans this morning but I'm going to watch these videos instead
86.
▲
by
amitp
4y ago
Thank you! I love the site. And also thank you for not having ads.
87.
▲
by
amitp
4y ago
It's calculating the graph distance from start node(s) to all other nodes. Although in theory it's Dijkstra's Algorithm, in practice I see people use Breadth First Search in roguelike grid worlds. The algorithm isn't lim
88.
▲
by
amitp
4y ago
It's around 3% of my pageviews as measured by javascript (e.g. statcounter) but it's 15-20% of my pageviews as seen in my server logs. Now, we might say that the server stats are wrong. But it could also be that the javascript s
89.
▲
by
amitp
4y ago
I think about this a lot. My site is now 28 years old [1], older than wikipedia or google or even slashdot. People still read the gamedev pages, and I still update them. Coincidentally, I was just writing some notes on this topic last week
90.
▲
by
amitp
4y ago
I had a problem with the combination of Google Meet, my bluetooth headphones (Aftershokz), and Mac OS Monterey. It would keep beeping and putting it on hold. https://chrome.google.com/webstore/detail/disable-automa
More ›