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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Terminal Phase – Terminal-based space shooter

217 点作者 paroneayea超过 5 年前

15 条评论

paroneayea超过 5 年前
Oh, nice to see this getting attention on HN!<p>Author here, happy to answer any questions about how this was made, though I&#x27;ll answer a few things up front:<p>- It&#x27;s made in Racket, and as for why there&#x27;s a whole section about that if you scroll down on on: <a href="https:&#x2F;&#x2F;dustycloud.org&#x2F;blog&#x2F;terminal-phase-prototype&#x2F;" rel="nofollow">https:&#x2F;&#x2F;dustycloud.org&#x2F;blog&#x2F;terminal-phase-prototype&#x2F;</a><p>- I showed a playthrough (pre-1.0) as well as how to add new levels and enemies on a live stream I did last week: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=wxt2dqqulQc" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=wxt2dqqulQc</a><p>- &quot;Why?&quot; This is actually a test program for some stuff I&#x27;m building for the future of the federated social web (if you are familiar with ActivityPub, I&#x27;m one of the authors of that), an ocap-actor-model-framework called Spritely Goblins. More on Spritely here: <a href="http:&#x2F;&#x2F;dustycloud.org&#x2F;blog&#x2F;spritely&#x2F;" rel="nofollow">http:&#x2F;&#x2F;dustycloud.org&#x2F;blog&#x2F;spritely&#x2F;</a><p>- (Shameless shill) If you think this is cool, this was actually funded by people who donate to my Patreon account and was a reward. If you donate, you can show up in the credits of the game: <a href="https:&#x2F;&#x2F;www.patreon.com&#x2F;cwebber" rel="nofollow">https:&#x2F;&#x2F;www.patreon.com&#x2F;cwebber</a><p>BTW a newer version of Racket is needed, at least 7.3 (maybe 7.2 is fine). If you play the game, let me know! I&#x27;ll be adding more stuff soon, including powerups, more levels, a boss, and better balance for level 2 (which is probably a bit too brutal for a second level).
评论 #22123309 未加载
zenojevski超过 5 年前
If you like terminal games, you might be interested in my Bash Arkanoid clone!<p>It&#x27;s packed with cool text graphics, animations, sound effects, paddle acceleration, side spin, and power-ups. Clone, inspect, play with Q and P keys.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;zenoamaro&#x2F;arkanoid.sh" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zenoamaro&#x2F;arkanoid.sh</a><p>I employed a number of tricks. The ones I am particularly proud of are:<p>- The title screen, which uses the iconic old-school wavy text effect. To make this fast in Bash, I ended up precomputing the table of sin that determines the offset of each slice:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;zenoamaro&#x2F;arkanoid.sh&#x2F;blob&#x2F;master&#x2F;src&#x2F;title.sh" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zenoamaro&#x2F;arkanoid.sh&#x2F;blob&#x2F;master&#x2F;src&#x2F;tit...</a><p>- The rendering system required to get all this to run a smooth, consistent 60fps on both linux and macs, without blocking key reading. It sends itself an ALRM signal trap to run the game loop in a co-process, much similarly to how it&#x27;s usually done with `requestAnimationFrame`:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;zenoamaro&#x2F;arkanoid.sh&#x2F;blob&#x2F;master&#x2F;arkanoid.sh#L21" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zenoamaro&#x2F;arkanoid.sh&#x2F;blob&#x2F;master&#x2F;arkanoi...</a><p>- The deferred frame-buffer drawing mode:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;zenoamaro&#x2F;arkanoid.sh&#x2F;blob&#x2F;master&#x2F;src&#x2F;gfx.sh#L25" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zenoamaro&#x2F;arkanoid.sh&#x2F;blob&#x2F;master&#x2F;src&#x2F;gfx...</a><p>Hope you enjoy it :)
评论 #22121976 未加载
isoprophlex超过 5 年前
Whoa this looks sweet. I&#x27;m looking forward to vicariously installing and playing this on way too expensive hardware, meant to be used for boring work things, and paid for by other people than myself ;)
tempodox超过 5 年前
Wow, this actually looks like Defender, an ancient arcade space shooter. At the time I found that lethally difficult, never survived even three minutes of it. Maybe Terminal Phase will grant me some revenge after all this time :)
评论 #22121140 未加载
评论 #22121296 未加载
ashton314超过 5 年前
The first thing I thought when I saw this was “oh nice that looks fun”, but then I saw it was in Racket and thought “holy cow I have GOT to play that”! I’m just entering the world of PL, and Racket is a gorgeous language. I love seeing it used for game development. If you were at RacketConf 2019 I probably bumped into you. :)
cbm-vic-20超过 5 年前
I&#x27;m not sure my terminal (VT420) will be able to keep up with this.
mixmastamyk超过 5 年前
Neat, would be cool if it could use unicode.
评论 #22120290 未加载
评论 #22118668 未加载
bitwize超过 5 年前
Written in Racket. Good stuff. I&#x27;ve done demoeffects in the terminal in Gambit.
nessunodoro超过 5 年前
The credits transferred to terminal at what looks like 1200 baud makes me happy.
评论 #22119787 未加载
EdSharkey超过 5 年前
Let me charge the beam like in R-Type for more damage!
matthewhartmans超过 5 年前
Very cool OP! Love it!
slim超过 5 年前
that map in the gif looks like the first level of r-type
kitd超过 5 年前
Nice, though slightly disappointed it&#x27;s not written in bash ;)
评论 #22121662 未加载
评论 #22119956 未加载
6510超过 5 年前
needs weapon upgrades
austinshea超过 5 年前
gradius