开发者用 Claude Code 打造浏览器度假游戏
AI 总结
开发者称其使用 Claude Code 构建了免费像素风赌场度假游戏 Sunspire,玩家无需注册即可在浏览器中游玩。游戏包含约 40 台老虎机、桌面游戏、街机、保龄球馆、奖品兑换处和可装饰顶层公寓,iOS 版正在测试。项目使用 JavaScript 和 Canvas 2D 开发且未使用游戏引擎,账号与共享大厅由 Supabase 和 Cloudflare 支持。
深度见解
Sunspire 是一个具体的开发者自述案例,展示了 Claude Code 如何协助开发包含多种游戏系统和在线功能的浏览器游戏。
| I built this game with Claude Code, and I wanted to share how it went. The game is called Sunspire. It’s a cozy pixel art casino resort, kind of like Stardew Valley but in a casino. You walk around the resort in a pixel world, and when you sit down at a slot machine or a table, the view switches to a hi-res game screen(I am thinking about making these screens more pixel than hi-res). There are around 40 slot machines, table games, an arcade downstairs with skill cabinets that pay out tickets, a bowling alley, a prize counter, and a penthouse you can decorate. It all runs on fake coins. There’s no cash out and no in app purchases, so no real money anywhere. It’s free. You can play it in your browser at play.sunspireresort.com and don't need an account to try it, and there’s an iOS version in testing too. It’s plain JavaScript and Canvas 2D with Capacitor for the iOS shell, no game engine. All the art is drawn in code and all the sound is synthesized. The online side (accounts, a shared lobby you can see other players in) runs on Supabase and Cloudflare. My routine for a big feature is to have Claude plan it first, then build it on its own git branch, then have a fresh Claude session review it without having seen the build. I run a few of these in parallel. For anything visual, I have it render two or three options on a sample page and I pick one before it builds the real thing, because describing a look in words never worked well for me. Happy to answer questions and truly appreciate any feedback if you do check this out. submitted by /u/TheGrowthYardGaming [link] [comments] |
#Sunspire#Claude Code#Supabase#Cloudflare#Capacitor#Canvas 2D