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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Row scrolling for parallax effects in Street Fighters 2

64 点作者 kryptonomist超过 4 年前

4 条评论

percentcer超过 4 年前
There&#x27;s a more detailed writeup on this technique here: <a href="http:&#x2F;&#x2F;www.extentofthejam.com&#x2F;pseudo&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.extentofthejam.com&#x2F;pseudo&#x2F;</a><p>You can get some really cool effects with minimal code, here&#x27;s a shader I wrote that makes use of it: <a href="https:&#x2F;&#x2F;www.shadertoy.com&#x2F;view&#x2F;wdcSWf" rel="nofollow">https:&#x2F;&#x2F;www.shadertoy.com&#x2F;view&#x2F;wdcSWf</a>
评论 #24877079 未加载
JohnBooty超过 4 年前
These simple techniques were really, really effective in 2D games.<p>When done well (as they were in SF2) they created a wonderful illusion of depth.<p>From a programmer&#x27;s perspective, creating these sorts of effects surely gave you a true feeling of &quot;racing the beam&quot; - ie the nuts and bolts of the CRT itself.<p>The way scrolling worked on this systems was that you defined your tilemaps and then changed the <i>scroll register</i> to change the position at which they were drawn.<p>By changing the scroll register in the <i>vertical blanking interval</i> (the time between the bottom line was drawn) and before the topmost row was redrawn, you could shift the entire tile map left, right, up, or down en masse. That would move the entire tilemap like a flat sheet of paper.<p>However, if you changed the scroll register during the <i>horizontal blanking interval</i> - the time between individual horizontal lines were drawn on the screen - you could achieve fancier effects like the row scrolling effect described in the linked article.
评论 #24874272 未加载
评论 #24874066 未加载
qwertox超过 4 年前
Here&#x27;s a video showing the scene in action: <a href="https:&#x2F;&#x2F;youtu.be&#x2F;6OlenbCC4WI?t=373" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;6OlenbCC4WI?t=373</a>
vernie超过 4 年前
Mod please fix title (Street Fighter II)