创建

登录 ReadmeX

或

了解我们如何处理你的信息: 隐私政策

ReadmeX

陪你读懂 AI 动态

今天,想先了解什么?

选一份动态总结,或直接聊聊你的问题。

社区和关注动态总结只属于你自己。

资讯

开发者称Claude Opus用纯代码生成游戏Star Hop的美术与音乐

AI 总结

一位独立开发者在r/ClaudeAI发帖称,其免费浏览器游戏Star Hop中没有任何图片或音频文件,所有画面与声音都是Claude编写的代码,并用Claude Code完成开发。他说Opus先写了一套包含星空、天空、行星、飞船、引擎尾迹和火花的SVG工具集,再用三层视差加一个主体元素合成100张可收集飞行员卡牌,全部共152 kB代码,另有22艘用canvas路径绘制的飞船和19种重新着色的涂装。两段生成式配乐在浏览器中实时合成,层次、速度与停顿会随连击、超空间和坠毁变化;开发者称整个游戏gzip压缩后约0.5 MB,另加字体。

深度见解

这是一个具体的代码级案例:模型以程序化方式生成了游戏全部美术与音频资源流程,而非直接生成图片或声音文件。

Star Hop is a one-tap space game: your ship orbits a planet, you tap to launch and try to land in the next planet's orbit. Free in the browser, no sign-up: https://www.star-hop.app/?utm_source=reddit&utm_medium=post&utm_campaign=claudeai-code There isn't a single image or sound file in it. Every picture and every sound is code Claude wrote: The prompt behind the music (I wrote it in Czech, this is a translation): I'm wondering if we should improve the music in the game. Make it more dynamic, more fun, right now it's pretty gloomy. We could put a switch in settings between the original and something upbeat. I'm imagining something like Beat Saber: the music reacts to the game, speeding up, bonuses, crashes. Get what I mean? What options do we have to make it? Maybe ElevenLabs? Claude laid out the options, I said "let's just do it in code", and half an hour later it was in production. What didn't work at first: the cards used SVG filters (turbulence clouds, blurs), and phones re-rendered them on every tilt. Now each layer is painted once into a canvas. The starry backdrop had a similar problem on Firefox for Android and moved to WebGL there. Solo project, built with Claude Code. Happy to answer questions about how it's made. And if you play, turn the sound on: can you hear your combo? submitted by /u/jaboos91 [link] [comments]

#Star Hop#Claude Opus#Claude Code#Anthropic

原文约 1 分钟读完阅读原文
群聊

还没有评论,来说说你的看法。