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.

Show HN: SNES Style Canvas Effects

18 pointsby __BrianDGLS__over 8 years ago

2 comments

zenobit256over 8 years ago
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 未加载
bitwizeover 8 years ago
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.