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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: SNES Style Canvas Effects

18 点作者 __BrianDGLS__超过 8 年前

2 条评论

zenobit256超过 8 年前
How exactly are these &quot;SNES Style&quot;?<p>Just looks like particle effects. I was hoping to see effects that were actually specific to the SNES.
评论 #12538073 未加载
评论 #12533604 未加载
bitwize超过 8 年前
The first DirectX program I ever wrote was called Santa Robotnik.<p>I drew a sprite of Dr. Robotnik (from Sonic) in his egg-shaped vehicle, which had been fitted with sleigh runners and a sinister-looking robot reindeer. I made it move across the screen with a snow effect in the foreground much like the one see here.<p>It&#x27;s real simple to do: just add Brownian motion (a tiny random positive or negative x displacement and a tiny random positive or negative y displacement) to a velocity vector that points down and slightly to the side, and increment the snowflake&#x27;s position by that per frame. Multiply that by a hundred snowflakes or so, each of which reset, or die and respawn, once they fall off the bottom and you&#x27;re set.