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: I made a Sonic runner game in JavaScript

52 pointsby JSLegendDev7 months ago

10 comments

VyseofArcadia7 months ago
Slick. I thought it was too slow at first, but that changed. Love the parallax scrolling background.<p>Might I suggest a remix of Chemical Plant Zone for background music instead of traffic noises? I like this one: <a href="https:&#x2F;&#x2F;ocremix.org&#x2F;remix&#x2F;OCR04552" rel="nofollow">https:&#x2F;&#x2F;ocremix.org&#x2F;remix&#x2F;OCR04552</a>
评论 #41918327 未加载
agentultra7 months ago
The rings are in jumping just before an enemy touches you. If you time it right you don&#x27;t have to jump &quot;on&quot; them. Although sometimes this will throw you into an unavoidable collision.<p>I&#x27;d suggest adding a state transition on sonic that only let&#x27;s the character destroy enemies when coming down from the peak of the jump. Or else make it a double click to be able to destroy enemies from take off as a special trick move.<p>The parallax effect on the vertical axis doesn&#x27;t really make sense in terms of perspective.. the camera isn&#x27;t travelling up, just the character.... and even then, depending on the distance it probably wouldn&#x27;t be pronounced like it is here. It&#x27;s a nice effect but I think the game would be fine if it was a horizontal parallax instead or non at all.<p>Good job! Great game, fun.
评论 #41918460 未加载
评论 #41918436 未加载
daniel_sim7 months ago
If SEGA have a problem with it, I say you swap the sprites for steamboat willie.
评论 #41920986 未加载
评论 #41918468 未加载
kingsloi7 months ago
Awesome! Great job!<p>I made something similar to wish my wife a happy birthday with GDevelop&#x2F;JavaScript. I thought I had opened the source up... I should do that.<p>&gt; <a href="https:&#x2F;&#x2F;happybirthdaymaddie.com&#x2F;2020&#x2F;" rel="nofollow">https:&#x2F;&#x2F;happybirthdaymaddie.com&#x2F;2020&#x2F;</a> &gt; <a href="https:&#x2F;&#x2F;editor.gdevelop.io&#x2F;?project=example:&#x2F;&#x2F;platformer" rel="nofollow">https:&#x2F;&#x2F;editor.gdevelop.io&#x2F;?project=example:&#x2F;&#x2F;platformer</a>
alucardo7 months ago
Simple and very nice! i wonder if adding the possibility to lose the rings and die only when hit while having no rings left just like in a real Sonic game would add more fun.
netol7 months ago
source code: <a href="https:&#x2F;&#x2F;github.com&#x2F;JSLegendDev&#x2F;sonic-runner">https:&#x2F;&#x2F;github.com&#x2F;JSLegendDev&#x2F;sonic-runner</a>
dankwizard7 months ago
I really don&#x27;t like the camera shifting on jump. Can that be a toggle?
dandigangi7 months ago
Watched some bits of your video on YT. Really well done! Great lessons.
评论 #41918867 未加载
menacingly7 months ago
This is great!
ramiborni997 months ago
I love it! how did you make it, with plain javascript code? or with specific engine?
评论 #41887031 未加载