章鱼总结
00:00 / 22:57

Paul J Lipsky · 22:57

说话人 0

so i'm not a coder or a developer, but for the past month, i've been using google anti-gravity to build apps and games right on my computer.

我不是程序员,也不是开发者,但过去一个月里,我一直在用 Google Anti-Gravity,直接在自己的电脑上开发应用和游戏。

because with anti-gravity 2.0, it's as easy as prompting what you want in plain english, and then it builds and launches the app for you.

因为有了 Anti-Gravity 2.0,只要用简单的英语描述你想要什么,它就能轻松为你构建并启动应用。

zero technical experience needed.

完全不需要技术经验。

a lot of people know that you can use ai to build your own apps, but most ai tools won't launch the app on your computer where you're actually going to be using it.

很多人都知道可以用 AI 来开发自己的应用,但大多数 AI 工具都不会在你的电脑上启动应用,而你真正会在电脑上使用它。

anti-gravity can do that, and i promise you, it's much easier than you think.

Anti-Gravity 可以做到这一点,而且我向你保证,它比你想象的简单得多。

so today i'm going to walk you through google anti-gravity step by step, from getting it set up the right way to building real apps with a few simple prompts.

所以今天,我会一步步带你了解 Google Anti-Gravity,从正确设置它,到用几个简单的提示词构建真正的应用。

so this is anti-gravity.

这就是 Anti-Gravity。

it's google's coding app, which is similar to anthropic's claude code or OpenAI's codex.

这是 Google 的编程应用,类似于 Anthropic 的 Claude Code 或 OpenAI 的 Codex。

and unlike a traditional ai chat, you can give this more access to your computer, which allows it to build apps right in your device.

与传统的 AI 聊天工具不同,你可以让它访问电脑上的更多内容,从而让它直接在你的设备上构建应用。

now, when antigravity first launched, it was built mainly for software developers.

Anti-Gravity 刚推出时,主要是为软件开发者打造的。

it opened up as a full code editor packed with panels and lines of code, which is pretty intimidating if you don't come from a technical background.

它以完整代码编辑器的形式呈现,里面塞满了各种面板和代码行。如果你没有技术背景,看起来会相当令人望而生畏。

and that's why i never touched that version of antigravity.

所以我从来没碰过那个版本的 Anti-Gravity。

that changed with antigravity 2.0.

Anti-Gravity 2.0 改变了这一切。

google now offers a clean desktop app that strips away all the developer clutter.

现在,Google 推出了一款简洁的桌面应用,去掉了所有开发者工具带来的繁杂界面。

there's no wall of code staring back at you.

你眼前不再是一整面代码。

it looks and feels a lot like regular gemini with your conversations and projects over here on the left and a simple prompt box right in the middle.

它看起来、用起来都很像普通的 Gemini:左侧是你的对话和项目,中间则是一个简单的提示词输入框。

and with this, i have built some really cool apps and games.

用它,我开发了一些非常酷的应用和游戏。

so first, we have this app, which i call project tracker.

首先,这是我称为 Project Tracker 的应用。

it allows me to keep track of all of the projects that i'm working on with my ai agents.

它可以让我跟踪所有正在和 AI 智能体一起处理的项目。

and i can see exactly which agents have been assigned.

而且我可以清楚地看到具体分配了哪些智能体。

to the task in the pipeline.

在工作流中的任务。

i could also reassign the task to different agents, and it's one place where i can keep track of everything.

我也可以把任务重新分配给不同的智能体,而且可以在这里跟踪所有事情。

and all of this was created with one prompt.

这一切都只用一个提示词就完成了。

about 15 minutes later, i came back to my computer, and this was open, ready for me to use.

大约15分钟后,我回到电脑前,发现它已经打开,随时可以使用。

next, we have this capture the flag paintball game that i created using antigravity.

接下来,这是我用 Antigravity 创建的一款夺旗彩弹游戏。

and of course, you don't have to build games, but it is a lot of fun.

当然,你不一定非要开发游戏,不过这确实很有趣。

and it's kind of neat to make a game be exactly what you want it to be and to remove all the stuff you don't like.

而且,能让游戏完全符合自己的想法,并去掉所有不喜欢的内容,感觉还挺棒的。

and all this is very easy to do in antigravity.

在 Antigravity 里,这一切都很容易实现。

i'll show you how to set this up as well and how to create fun games just like this one.

我也会向你展示如何设置,以及如何制作像这款一样有趣的游戏。

and then once you learn how it works, there's so many cool things you can do with it.

等你了解它的工作原理后,就会发现能用它做的酷炫事情多得数不清。

so i had to create this for me.

所以我得为自己做一个这个。

this is not an image.

这不是一张图片。

it used entirely code to create this.

它完全是用代码创建的。

i'm also using it for motion graphics, just like this one.

我也用它制作动态图形,比如这个。

And you can even edit videos using anti gravity.

你甚至可以用 Antigravity 编辑视频。

All of that was built with just a few simple prompts inside of anti gravity.

这一切都只是在 Antigravity 里用几个简单的提示词完成的。

It built the apps out and then launched them on my computer for me.

它构建了这些应用,然后替我在电脑上启动了它们。

Now in the past, anti gravity could help you with coding, but you still needed the expertise to actually launch the app yourself.

过去,Antigravity 可以帮你编写代码,但你仍然需要具备专业知识,才能自己启动应用。

And that's no longer the case.

但现在已经不需要了。

Anti gravity can do everything.

Antigravity 什么都能做。

You just have to know a few simple things about anti gravity and the rest is easy.

你只需要了解一些关于 Antigravity 的简单知识,剩下的就很容易了。

To get started, you will want to download the anti gravity desktop app.

首先,你需要下载 Antigravity 桌面应用。

You can find that at anti gravity dot google and then click on download.

你可以访问 antigravity.google,然后点击“下载”。

This is available for both Mac and Windows.

它同时支持 Mac 和 Windows。

And even though I'm going to be showing you this on a Mac, I tried it out on my Windows PC and it looks and works exactly the same.

虽然我会在 Mac 上给你演示,但我也在自己的 Windows 电脑上试用过,外观和操作方式完全一样。

Once you download and open the app, go ahead and sign in using your Google account.

下载并打开应用后,使用你的 Google 账号登录即可。

If you are paying for Google Gemini, you will want to sign in with that account because then you'll get additional usage that you can use inside of antigravity.

如果你付费订阅了 Google Gemini,最好使用那个账号登录,这样你就能获得额外的使用额度,并在 Antigravity 中使用。

Now that you're signed in, let me give you a quick tour so you can kind of get acquainted with the UI before we actually start using it.

现在你已经登录了,我先带你快速熟悉一下界面,然后我们再开始实际使用。

so right here, this is the prompt box.

这里就是提示框。

this is where you're going to send your prompt, telling it what you want it to build or create for you.

你可以在这里发送提示词,告诉它你想让它为你构建或创建什么。

over here on the left is the left side menu.

左边这里是侧边菜单。

so of course, this starts a new conversation.

当然,这个按钮可以开始新的对话。

you could also set up anti-gravity with automations that can run periodically throughout the day.

你还可以为 Antigravity 设置自动化任务,让它们在一天中的不同时间定期运行。

and there are customizations which allow you to add different connectors, such as google docs, google slides, and google calendar.

还有一些自定义选项,可以让你添加不同的连接器,比如 Google 文档、Google 幻灯片和 Google 日历。

What's interesting about this is that some of the tools that you can add, you cannot add inside of Gemini, but you can inside of antigravity.

有意思的是,有些工具你可以添加到这里,却无法在 Gemini 中添加。

So for instance, right here, you can connect antigravity to your Notion workspace, which is something you cannot do inside of Gemini.

例如,你可以在这里将 Antigravity 连接到你的 Notion 工作区,而这在 Gemini 中是做不到的。

So if you're a big fan of Notion and you want to be able to use Gemini with Notion, you can do that inside of antigravity, even though you can't do it inside of Gemini.

所以,如果你很喜欢 Notion,并且想在使用 Gemini 时也能连接 Notion,就可以在 Antigravity 中实现,尽管你无法在 Gemini 中这样做。

Moving further down the left side menu, we have my pinned conversations.

继续往下看左侧菜单,这里是我置顶的对话。

You're not going to have any of those yet.

你现在还不会有任何置顶对话。

but at any point, you can pin a conversation up here so you can easily find it later.

不过,你随时都可以在这里置顶一段对话,方便之后快速找到它。

and then you have your projects.

然后就是你的项目。

when you are creating things inside of anti-gravity, you want to create a new project for every new thing that you are creating.

在 Anti-Gravity 中创建内容时,每创建一项新内容,都要为它创建一个新项目。

so if you're creating a new app, you'll create a project for that app.

比如,你要创建一个新应用,就为这个应用创建一个项目。

or if you're creating a game, you will create a project for that game.

或者,如果你要创建一款游戏,就为这款游戏创建一个项目。

and anytime you want to make changes to that app or game, you will start a new conversation in that project.

每当你想修改这个应用或游戏时,就在该项目中开始一段新的对话。

so everything stays nice and organized.

这样一来,所有内容都会井井有条。

but before we set up our first project, let's jump into the settings real quick.

不过,在设置第一个项目之前,我们先快速看看设置。

so click down here where it says settings.

点击这里写着“设置”的地方。

and there are just a few things that i suggest you change in here.

这里有几项我建议你修改。

so first, inside of general, which should be the first tab that you have open, and come down to permission preset.

首先,在“常规”选项卡中(它应该是你打开的第一个选项卡),找到“权限预设”。

this is where you can choose what decisions and tasks anti-gravity can do without your permission.

在这里,你可以选择 Anti-Gravity 无需征求你许可就能做出的决定和执行的任务。

so if you choose this one up here that says request review, then every command is going to require your approval.

如果你选择上面这个“请求审核”选项,那么每条指令都需要你批准。

that is the safest option, but it will get annoying because anti-gravity, if you send it a task, it will keep asking, hey, am i allowed to do this?

这是最安全的选项,但也会让人烦,因为你给 Anti-Gravity 分配任务后,它会不停地问:“嘿,我可以这么做吗?”

you'll say yes.

你会说:“可以。”

then a few seconds later, it'll say, can i do this?

几秒钟后,它又会问:“我可以这么做吗?”

and you'll say yes.

你会说:“可以。”

and it's just very, very tedious.

这实在是非常、非常繁琐。

by contrast, if you choose turbo, then it's sort of like yolo mode.

相比之下,如果你选择“Turbo”,那就有点像 YOLO 模式。

you select that and it'll just run.

选中它之后,它就会直接运行。

it'll never ask for your permission to do anything.

它绝不会征求你的许可就去做任何事。

if you see the option for auto, that is my preferred choice.

如果你看到“自动”选项,那是我首选的设置。

that will automatically approve any commands that are relatively safe and fine.

它会自动批准相对安全、没有问题的命令。

and anything more important, it will ask for your permission.

对于更重要的操作,它会征求你的许可。

the other thing i would change is right here under execution.

我还会在这里的“执行”选项下更改一项设置。

there is the option for queued messages to be queued or sent immediately.

这里有一个选项,可以让排队的消息继续排队,或者立即发送。

what that means is when you send a task to anti-gravity, if you send it another prompt before it's finished with the first one, if you have a queue selected, it will wait until after it's finished with whatever it's doing before it looks at your prompt.

这意味着,当你向 Anti-Gravity 发送一项任务后,如果它还没完成,你又发送了另一个提示词,那么如果你选择了排队,它就会等当前任务完成后,才处理你的提示词。

and personally, i want to be able to send that prompt immediately because a lot of times i'm making a correction.

我个人希望提示词能立即发送,因为很多时候我是在进行修正。

So say for instance, you send a task along saying, make me an app, make it yellow.

比如说,你发送了一项任务:“给我做一个应用,要黄色的。”

And then immediately you're like, oh shoot, I wanted it to be blue.

然后你马上想到:“哎呀,我想要蓝色的。”

So you'll send another follow up prompt saying, actually make it blue.

于是你会再发一个后续提示词:“其实,改成蓝色吧。”

You want that to be sent out right away.

你会希望它马上发送出去。

That's personal choice.

这取决于个人喜好。

I prefer having it on send immediately.

我更喜欢设置成“立即发送”。

And the final thing I'll just point out inside of general is open links in.

最后,我来指出“常规”设置里的“在以下位置打开链接”。

There is a built in browser in antigravity and I suggest that you use that, but you could choose to have those links open in an external browser.

Anti-Gravity 内置了浏览器,我建议你使用它,不过也可以选择在外部浏览器中打开这些链接。

Next, let's come over on the left here and click on application.

接下来,我们来看看左侧,点击“应用程序”。

Then right here where it says prevent sleep.

然后就在这里,找到“防止休眠”。

I like to toggle this on.

我喜欢把这个选项打开。

What that will do is if I have antigravity open and basically I only have it open when it's actually doing something for me, I don't want my computer to go to sleep because if it goes to sleep, it will stop running the task and then I'll come back and the task is incomplete because the computer went to sleep.

这样一来,如果我开着 Anti-Gravity——基本上我只会在它确实在帮我做事时才开着它——我就不希望电脑进入休眠状态,因为电脑一旦休眠,任务就会停止运行;等我回来时,任务就没完成,因为电脑休眠了。

So I like to toggle that one on.

所以我喜欢把这个选项打开。

And I also like to toggle on enable remote control.

我也喜欢开启“启用远程控制”。

You can then scan this QR code with your phone and you can control antigravity from your phone when you're away from your computer.

然后你可以用手机扫描这个二维码,这样即使不在电脑旁,也能用手机控制 antigravity。

All right, with all of that set up, let's start using antigravity and that all starts with a new project.

好了,完成这些设置后,我们就来开始使用 antigravity,而一切都从创建新项目开始。

so come over here on the left where it says projects, and then click on this icon right here to create a new project.

请看左侧写着“项目”的地方,然后点击这里的这个图标来创建新项目。

now, here's the secret.

现在,秘诀就在这里。

a project is really just a folder on your computer where everything is going to live.

项目其实就是电脑上的一个文件夹,所有内容都会存放在里面。

so if it's creating code for you, if it's creating any files for you, whenever you're doing that inside of a project, all that means is that those things are then going to exist in a folder on your computer.

所以,如果它要为你生成代码或创建任何文件,只要你是在项目中进行操作,这就意味着这些内容会存放在电脑上的一个文件夹里。

so find a place where you want that folder to live.

所以,找一个你想存放这个文件夹的位置。

i'll come into icloud drive.

我会打开 iCloud 云盘。

i have a folder here called documents, and i'll create the project inside here.

这里有一个名为“文稿”的文件夹,我会在里面创建项目。

so i'll click on new folder, and let's say we're developing a new app.

我会点击“新建文件夹”,假设我们正在开发一个新应用。

you can put the name of the app.

你可以填入应用的名称。

i'm just going to name this new app and then click on create and then click on open.

我就把它命名为“新应用”,然后点击“创建”,再点击“打开”。

so now over here on the left, you'll be able to see that project.

现在,你就能在左侧看到这个项目了。

here it is right here, new app.

就在这里,它叫“新应用”。

and then also inside the prompt box, you'll be able to see that project right here as well.

你也能在提示框里看到这个项目,就在这里。

it says new app.

上面写着“新应用”。

eventually, you are going to have multiple projects here.

之后,你会在这里拥有多个项目。

so just make sure anytime you want to work on a certain app or a certain project, you come over to that folder, that project over here on the left, and you click on this plus icon to start a new conversation in that project.

所以,每当你想要使用某个应用或项目时,记得找到左侧对应的文件夹,也就是那个项目,然后点击这个加号图标,在该项目中开始新的对话。

you could also use this drop down right here for the same thing, but this only shows you your most recent projects.

你也可以用这里的下拉菜单做同样的事,不过这里只会显示你最近使用的项目。

next, you'll want to select the model that will power this conversation.

接下来,你需要选择为这段对话提供支持的模型。

and you can do that by clicking on the model selector right here.

点击这里的模型选择器就可以进行选择。

what's interesting about anti-gravity is that you're not limited to only using google's models.

Anti-Gravity 有趣的一点是,你不只能使用 Google 的模型。

you can see those here.

你可以在这里看到这些模型。

we have Gemini 4 argon and Gemini 3.8 flash.

我们有 Gemini 4 Argon 和 Gemini 3.8 Flash。

Although by the time you're watching this, there may be newer models like Gemini 4 carbon, but you also get anthropics models.

不过等你看到这段内容时,可能已经有更新的模型了,比如 Gemini 4 Carbon;此外,你也可以使用 Anthropic 的模型。

We have claude opus and claude sonnet and even a gpt model.

我们有 Claude Opus、Claude Sonnet,甚至还有一个 GPT 模型。

Now, personally, whenever i'm coding using anti-gravity, i'm always using google's best model, which right now is Gemini 4 argon.

就我个人而言,每次用 Anti-Gravity 编程时,我都会使用 Google 最好的模型,目前是 Gemini 4 Argon。

So i'm going to hover over that and then you'll see three choices right here.

所以我会把鼠标悬停在它上面,然后你就会看到这里有三个选项。

this is the thinking level or the effort level, and i always set this to high to get the best results.

这是思考级别,也就是投入程度;为了获得最佳结果,我总是把它设为高。

but that will burn through your usage a lot faster than using something like flash and even using the best model on a lower effort level.

不过,与使用 Flash 之类的模型相比,这样会更快地消耗你的使用额度;即使使用最好的模型,把投入程度调低也会省一些。

but you do get better results.

但你确实能得到更好的结果。

so that's why i'm selecting, in this case, Gemini 4 argon on high.

所以这次我选择将 Gemini 4 Argon 设为高投入程度。

okay, now you're ready to enter in your prompt and tell it to build something for you.

好了,现在你可以输入提示词,告诉它为你构建一些东西了。

so we're going to use this to build an app.

我们要用它来开发一款应用。

so my idea right now is i have this app, which some of you may be familiar with.

我现在的想法是,我有一款应用,可能有些人听说过。

it's called obsidian.

它叫 Obsidian。

it is a note-taking app.

这是一款笔记应用。

and generally, this is a very good app.

总的来说,这是一款很不错的应用。

it has all your files stored locally on your computer, and it allows you to have full control over all your notes, as opposed to using something like notion, where everything just exists in the cloud.

它会把你的所有文件都存储在本地电脑上,让你完全掌控自己的所有笔记;而 Notion 之类的应用则不同,在那里所有内容都存在云端。

so i really like it for notes.

所以我真的很喜欢用它记笔记。

But it can be a little bit overwhelming.

但它有时会让人有点不知所措。

I don't really love the UI all the time.

我并不是一直都喜欢它的界面。

So what I want to do is create a note taking app that uses that local setup that we have with Obsidian, but that looks a little bit more like Notion.

所以我想做的是,创建一款笔记应用,使用我们在 Obsidian 中采用的本地设置,但界面看起来更像 Notion。

So it's just a cleaner UI that's easier to use.

也就是说,它的界面更简洁,也更容易使用。

So I'm going to use the dictate button right here.

所以我会用这里的听写按钮。

This will allow me to talk out loud and then I'll just write down everything that I said.

这样我就可以大声说出来,然后它会把我说的内容都记录下来。

And this is my preferred way to prompt inside of every AI tool I use.

这是我在使用的每一种 AI 工具中最喜欢的提示方式。

So I have Obsidian set up on my computer.

我在电脑上安装并设置好了 Obsidian。

and i generally really like it.

总体来说,我真的很喜欢它。

i like that it works with local markdown files because i have a whole folder on my computer full of markdown files that i use as my knowledge base.

我喜欢它能使用本地 Markdown 文件,因为我的电脑上有一个装满 Markdown 文件的文件夹,我用它们作为自己的知识库。

but i don't love the ui.

但我不喜欢它的界面。

i want a ui that's similar to notion, very clean.

我想要一个类似 Notion 的界面,非常简洁。

you don't see the markdown formatting.

看不到 Markdown 格式标记。

everything just kind of works and is very minimal.

一切都能顺畅运行,而且非常简约。

create that app for me.

帮我创建这个应用。

call it local notes and allow me to select a folder on my computer that will be the vault for that app.

把它叫作 Local Notes,并允许我选择电脑上的一个文件夹作为这个应用的库。

in other words, i can choose any folder on my computer as the vault.

换句话说,我可以选择电脑上的任意文件夹作为库。

so notice what i did there.

注意我刚才做了什么。

i just explained what i want the app to do and generally what i want it to look like.

我只是解释了我希望这个应用能做什么,以及大致想让它看起来是什么样子。

don't overthink this.

别想得太复杂。

just explain what it is that you want.

只要解释清楚你想要什么。

now, with that said, sometimes when you start working with these different models and these different tools, you'll notice that consistently it does things for you that you don't want.

话虽如此,有时候你开始使用这些不同的模型和工具时,会发现它们总是会帮你做一些你不想要的事。

and to avoid that, you'll just want to enter in the prompt what you want it to not do.

为了避免这种情况,你只要在提示词里写明你不希望它做什么。

so i've discovered that antigravity does two things that i don't like.

我发现 Antigravity 有两件事让我不太喜欢。

the first is that it prioritizes functionality over the way an app will look.

第一,它会把功能性放在应用的外观之上。

So I always tell it this.

所以我总会这样告诉它。

I'll have this down below in the description of this video for you to copy, but it basically tells it that the visuals and the way that it looks is just as important as the way the app functions.

我会把这段话放在视频简介里,方便你复制。它基本上是在告诉它,视觉效果和外观与应用的功能同样重要。

And the second thing I've noticed is that unless you tell it to build the app as a native app on your computer, it will usually build it as a local web app instead, which you can only use inside your browser.

我注意到的第二件事是,除非你告诉它要把应用做成电脑上的原生应用,否则它通常会把它做成本地网页应用,只能在浏览器里使用。

That isn't necessarily bad.

这不一定不好。

Sometimes you might want that.

有时候你可能就想要这样的结果。

And if it's just something quick or you just want a proof of concept, it's usually fine to make it a web based app instead of a native app, which can take longer to build out.

如果只是做个快速的小东西,或者只想验证一下概念,通常做成网页应用就可以了;原生应用则可能需要更长时间来开发。

but if you do want it to be a native app on your computer, you'll want to tell it that.

但如果你想让它成为电脑上的原生应用,就要告诉它。

so here i would tell it, build this as a native mac app.

所以我会告诉它:把它做成原生 Mac 应用。

in this case, though, i do want to see what this looks like first before i go through all that.

不过这次,我想先看看它做出来是什么样,再决定要不要进行后续操作。

so i'm just going to tell it, build this as a local web app.

所以我只会告诉它:把它做成本地网页应用。

with all that entered in, i can send that message.

输入这些内容后,我就可以发送消息了。

and now we just wait.

现在我们只要等着就行。

and while we're waiting, this would be a good time to hear from the sponsor of today's video, fish audio.

等待的时候,正好可以听听今天视频的赞助商 Fish Audio 介绍。

fish audio is a voice ai platform that turns text into really emotive speech.

Fish Audio 是一个语音 AI 平台,可以将文本转换成富有情感表现力的语音。

its newest model, drama 3, is open weight and lets you direct how each line is delivered just by describing in plain english, kind of like giving notes to a voice actor.

它最新的模型 Drama 3 采用开放权重。你只要用通俗的英语描述,就能指导每句台词的演绎方式,有点像给配音演员提要求。

and with the fish audio api, you can build that into your own projects, even if you're not a developer.

借助 Fish Audio API,你可以把它集成到自己的项目中,即使你不是开发者也没问题。

fish audio even has a skill that teaches claude code how to use their api.

Fish Audio 甚至还提供了一项技能,可以教 Claude Code 如何使用他们的 API。

so let's say i want a voiceover for one of my motion graphics.

比如说,我想为一段动态图形制作配音。

i ask claude to build a tool that sends my script to fish audio and saves the audio.

我让 Claude 构建一个工具,把我的脚本发送给 Fish Audio 并保存音频。

from there, it creates this.

然后,它就生成了这个。

说话人 1

this looks like an ordinary animation, but here's the secret.

这看起来像一段普通的动画,但秘密就在这里。

the entire voiceover was created with ai.

整段配音都是用 AI 制作的。

说话人 0

now that already sounds pretty natural, but i can add a direction before the first line, like excited, letting the viewer in on a secret, plus a pause right after the reveal.

现在听起来已经相当自然了,但我可以在第一句前加上演绎指示,比如“兴奋地”,让观众感觉你要揭晓一个秘密,并在揭晓后停顿一下。

说话人 1

This looks like an ordinary animation, but here's the secret.

这看起来像一段普通的动画,但秘密就在这里。

the entire voiceover was created with ai.

整段配音都是用 AI 制作的。

说话人 0

so notice how the voice is the same and the words are the same, but it's a completely different delivery.

所以你会发现,声音没变,台词也没变,但演绎方式却完全不同。

if a line doesn't land, you can change the direction and run it again.

如果某句的效果不理想,你可以调整指示,再生成一次。

and the api is pay-as-you-go with no monthly minimums.

而且这个 API 按量付费,没有每月最低消费。

you can try fish audio api using the link in the description, and drama3 api pricing is 80% off until november 12th.

你可以通过简介中的链接试用 Fish Audio API;Drama 3 API 的价格在 11 月 12 日前优惠 80%。

now let's get back to the video.

现在我们回到视频。

all right, the app is now finished.

好了,这款应用现在已经完成了。

so let's take a look at it.

我们来看看吧。

here you can see everything that it did, blah, blah, blah.

你可以在这里看到它做的所有事情,等等等等。

i never end up reading that.

我最后从来都不会去看那些。

i just want to look and see what the app looks like.

我只是想看看这个应用是什么样子。

so it gives me a link for it right here.

所以它在这里给了我一个链接。

i will click on that.

我会点击它。

now, because we selected in the settings to open up everything in the built-in browser, it's going to launch this local web app in the built-in browser.

现在,因为我们在设置中选择了在内置浏览器中打开所有内容,它就会在内置浏览器中启动这个本地 Web 应用。

you can see that right here.

你可以在这里看到。

And then I will maximize this so we can see it a little bit better.

然后我会将它最大化,这样我们就能看得更清楚一些。

And check that out.

看看这个。

This is exactly what I looked for.

这正是我想要的。

This is actually looking a lot better than I expected.

它看起来确实比我预期的好得多。

I mean, look how wonderful that looks.

瞧瞧,效果多棒啊。

This feels very similar to Notion, but it's using local files on my computer that I own and I have control over.

这感觉和 Notion 非常相似,不过它用的是我电脑上的本地文件,这些文件属于我,也由我掌控。

We can see the different pages in here.

我们可以看到这里的不同页面。

We have different folders.

还有不同的文件夹。

Honestly, I am super impressed with this.

说实话,我对这个印象非常深刻。

And this all came from one simple prompt.

而这一切都来自一个简单的提示词。

i can change anything, of course.

当然,我可以修改任何内容。

i can highlight text and change the font to bold.

我可以选中文本并将字体改为粗体。

so everything works exactly the way i expected it to, and honestly, a lot better.

所以一切都完全按我预期的方式运行,说实话,效果还好得多。

now, if i want to open this in chrome or safari, i can click up here on the top right where it says open in external browser.

现在,如果我想在 Chrome 或 Safari 中打开它,可以点击右上角这里写着“在外部浏览器中打开”的按钮。

so here it is now inside my browser.

现在它就在我的浏览器里了。

let's switch it over to dark mode.

我们把它切换到深色模式吧。

that looks much better.

这样好多了。

i love the way that this came out.

我很喜欢最终的效果。

next, let's build a game using anti-gravity.

接下来,我们用 Anti-Gravity 来制作一款游戏。

so once again, we'll create a new project for this.

所以,我们再一次为此创建一个新项目。

click over on the left here where it says create new project.

点击左边这里写着“创建新项目”的地方。

we'll create a new folder for this.

我们为此创建一个新文件夹。

and the key with games is you want anti-gravity to use two tools that it can download for you onto your computer.

制作游戏的关键是,你要让 Anti-Gravity 使用两个工具,它可以帮你下载到电脑上。

the first one is called godot.

第一个叫 Godot。

and the second one is called blender.

第二个叫 Blender。

so all you want to do to start out is ask antigravity if these are installed, and if not, install them.

所以,开始时你只需要问 Anti-Gravity 有没有安装这两个工具;如果没有,就让它安装。

now, in my case, i've already installed these in the past, so it's just telling me that they're already on my computer.

就我而言,我以前已经安装过它们了,所以它只是告诉我它们已经在我的电脑上了。

but if they're not, it's going to do everything it needs and set up everything that needs to be set up to get both those apps on your computer.

但如果还没安装,它就会完成所有必要的操作,并做好一切设置,把这两个应用装到你的电脑上。

what's interesting about this is that you are not going to be using these two apps ever, if you don't want to.

有意思的是,如果你不想用,你完全不必亲自使用这两个应用。

anti-gravity or other coding harnesses, they are going to use them for you to build out things like games.

Anti-Gravity 或其他编程工具框架会替你使用它们,来制作游戏之类的东西。

you don't even need to know what these do, but these just basically make your games look better.

你甚至不需要知道它们是做什么的;它们基本上就是让你的游戏看起来更好。

so once those are installed, you can tell it what you want it to create in terms of a game.

所以,安装好之后,你就可以告诉它你想制作什么样的游戏。

once again, you should use the same language as before, which i'll have down below, which tells it that visual quality is top priority.

同样,你应该使用和之前一样的提示语,我会放在下面,它会告诉它视觉效果是首要任务。

and then you can just describe the game that you want.

然后你只要描述你想要的游戏就行了。

create a game for me.

帮我制作一款游戏。

it's a runner style game where the character is continually moving forward and you have to move left and right and jump to avoid different holes in the ground or gaps or whatever.

这是一款跑酷风格的游戏,角色会不断向前移动,你需要左右移动和跳跃,避开地上的各种坑洞、缺口之类的东西。

and i want it to be like a cute, colorful, marshmallow type looking character.

我想要一个可爱、色彩鲜艳、看起来像棉花糖一样的角色。

like sort of like a candyland type world that he's inside of.

有点像他身处糖果乐园那样的世界。

not a super great description, but i think it will work.

描述得不是特别好,不过我觉得应该能行。

and we'll let it start building out that game.

我们就让它开始制作这款游戏吧。

okay, the game is now complete, but we have a problem here.

好了,游戏现在已经完成了,不过这里出了点问题。

it tells us right here to play the game.

它在这里告诉我们要运行游戏。

we have to run some command in terminal.

我们得在终端里运行一条命令。

but maybe you don't know how to use terminal.

不过你可能不知道怎么用终端。

well, it's actually not that hard, but just to make this easy, you can literally just tell anti-gravity, launch the game for me.

其实这并不难,不过为了让事情更简单,你完全可以直接告诉 Anti-Gravity:“帮我启动游戏。”

and there you go.

就这样,搞定了。

so let's go ahead and try this out.

那我们来试试看吧。

oops.

哎呀。

we'll have to fix that so we can get it to not kill me right away, but now we're looking pretty good.

我们得修一下,让它别一开始就把我干掉,不过现在看起来已经挺不错了。

so overall, i think visually the game looks really nice.

总的来说,我觉得这款游戏的视觉效果真的很棒。

all the controls work.

所有操作都能正常使用。

i think i would probably modify the gameplay a little bit.

我想我可能会稍微调整一下玩法。

i think the jumping mechanics can use a slight improvement to them because it's too easy to jump and not land soon enough to be able to jump again.

我觉得跳跃机制还可以稍微改进一下,因为现在跳起来太容易了,而且落地不够快,没法及时再次起跳。

and overall, you know, biggest problem is that i'm just really bad at the game, which is not anti-gravity's fault.

总的来说,最大的难题就是我玩得实在太差了,这可不是 Anti-Gravity 的错。

but i think visually it looks really great and a very playable, fun game.

不过我觉得它的视觉效果真的很棒,而且是一款很好上手、玩起来也很有趣的游戏。

but of course, if you want to make any changes, you just have to go into anti-gravity, into the same conversation and tell it what changes you are looking for.

不过,当然,如果你想做任何修改,只要进入 Antigravity,在同一个对话里告诉它你想做哪些改动就行。

maybe you can make it a little bit easier, like a slider, so you can make it a little easier if you want.

也许你可以把它弄得简单一点,比如加个滑块,这样你想要的话就能调得简单一些。

but overall, like that is exactly what i was looking for in terms of a game.

但总的来说,这完全就是我想要的游戏。

so let me show you how to create some other stuff using antigravity.

接下来我来演示如何用 Antigravity 创作其他东西。

so i showed you an image before, an image that was made with code.

之前我给你们看过一张图片,一张用代码制作的图片。

and this, all you have to do is come in and tell it to create an image using only code.

你只要进来告诉它,只用代码创作一张图片就行了。

now, you can describe what image you wanted to create, or you can upload a reference image.

你可以描述想创作什么样的图片,也可以上传一张参考图。

i've never tried this, to be honest, but i uploaded an image of myself.

说实话,我以前从没试过这个,不过我上传了一张自己的照片。

this is a hike i went on recently, so i uploaded that and then told it, recreate this image using only code.

这是我最近去徒步时拍的,所以我把它上传了,然后告诉它:只用代码重现这张图片。

and it looks like it's almost done, and here we go.

看起来它快完成了,来看看吧。

so let's check it out.

我们来看看效果。

Wow.

哇。

Is that really all code.

这真的全都是代码吗?

That is really, really impressive.

这真的、真的太厉害了。

There's a little slider here.

这里有个小滑块。

I guess it just changes the sun glare on my glasses.

我猜它只是改变了我眼镜上的阳光反光。

I'm not sure why that is.

我不太确定为什么会这样。

That is crazy.

太不可思议了。

That is absolutely wild.

简直太神奇了。

I mean, look at the real image and then look at this.

我是说,看看原图,再看看这个。

Absolutely incredible.

简直不可思议。

You can even remove different parts of it.

你甚至可以移除其中的不同部分。

Check that out.

看看这个。

I'm not sure why you would want to do that.

我不太确定你为什么会想这么做。

Oops, what did I do that?

哎呀,我刚才做了什么?

Show all later.

稍后显示全部。

Wow, that is really cool.

哇,这真的很酷。

Or you can even watch it paint.

或者你甚至可以看着它绘制。

So a little time lapse there of it painting.

这里有一段它绘制过程的延时视频。

Totally cool.

太酷了。

And finally, you can also use this to create motion graphics, which is all just code.

最后,你还可以用它来制作动态图形,这一切都只是代码。

So here, for instance, I told it to create a motion graphic for me.

比如,我在这里让它帮我制作一段动态图形。

I want an animated title card that says cool anti gravity.

我想要一张动画标题卡,上面写着“酷炫反重力”。

Then under that, list out the things that you can do with it, bullet it, things like apps, games, images, motion graphics, video editing, and more.

然后在下面列出你能用它做的事情,用项目符号列出来,比如应用、游戏、图像、动态图形、视频剪辑等等。

And then I said a clean, minimal design.

然后我说要采用干净简约的设计。

And this is what it created for me.

这就是它为我制作的效果。

As a way of another example, here I asked it to create a motion graphic that teaches kids how clouds are formed.

再举一个例子,我在这里让它制作一段动态图形,教孩子们云是如何形成的。

And I want it to be about thirty seconds and I want a claymation style.

我希望时长大约三十秒,并且采用黏土动画风格。

And then it created this one for me.

然后它就为我制作了这个。

So that's how to get started with Google anti gravity.

这就是如何开始使用 Google 反重力。

There's a lot more you can do with it and a lot more for you to explore.

你可以用它做的事情多得多,还有更多内容等着你去探索。

But honestly, what I showed you today is more than enough to get you started with building apps and games and different fun projects.

不过说实话,我今天展示给你的内容,已经足够让你开始构建应用、游戏和各种有趣的项目了。

please give it a whirl and let me know in the comments section down below what you end up creating with anti-gravity.

请试试看,然后在下方评论区告诉我,你最终用 anti-gravity 创作了什么。

the only thing i didn't mention in this video is that anti-gravity has now been merged into the gemini desktop app into what i'm calling an ai super app.

我在这段视频里唯一没提到的是,anti-gravity 现在已经并入 Gemini 桌面应用,也就是我所说的 AI 超级应用。

so if you want to learn what that super app is all about, click on this video right here.

如果你想了解这个超级应用究竟是什么,请点击这里的视频。

it also goes over my take on it.

视频里也讲了我对它的看法。

it kind of brings the best of all of google's ai tools into one app.

它把 Google 所有 AI 工具中最出色的部分整合到了一个应用里。

so it's definitely worth checking out.

所以绝对值得一看。

click on this and i'll see you over there in one second.

点击这个视频,一秒后我们在那里见。

bye for now.

先再见了。

摘要

视频以无编程经验也能使用 Google Antigravity 为主线,展示如何下载安装、创建项目、选择模型并调整权限,再用自然语言生成应用和游戏。实践部分从本地 Markdown 笔记应用出发,说明如何描述功能与视觉要求、检查生成结果并继续修改;随后展示借助 Godot 和 Blender 制作游戏,以及用代码生成图像和动态图形。内容还穿插 Fish Audio API 的语音合成示例。视频提供了面向初学者的操作思路,同时提醒生成结果仍可能需要调整,尤其是视觉品质、游戏机制和运行方式。

章节

00:00 Antigravity 的定位与创作范围

Antigravity 被描述为 Google 的编码应用,能够获得更多电脑访问权限,并在本机创建、启动应用。相较于面向开发者、界面布满代码和面板的早期版本,2.0 桌面应用采用更简洁的对话式界面。实例包括用于追踪 AI 代理任务的项目管理应用,以及夺旗彩弹游戏;此外还展示了代码生成的图像和动态图形,说明它的用途不局限于传统软件开发。

展示开发者版界面中的代码编辑器、面板与代码行
展示 Antigravity 2.0 简化后的桌面应用界面
展示左侧对话与项目列表及中央提示框

01:33 下载安装、熟悉界面并组织项目

界面以中央提示框和左侧菜单为主,支持新对话、定期自动化、连接 Google Docs、Slides、Calendar 和 Notion,也能固定常用对话。软件可在 Mac 和 Windows 上使用;登录时,付费 Gemini 用户可使用相应账户获得额外用量。创建内容时应为不同应用或游戏分别建立项目,因为项目实际对应电脑上的文件夹;后续修改则在该项目中开启新对话,以保持文件和工作记录有序。

项目跟踪器中显示任务分配给哪些代理
展示用 Antigravity 创建的夺旗彩弹游戏
下载 Antigravity 桌面应用
界面中的提示词输入框
为不同创作内容分别建立项目

05:19 设置权限、任务执行与电脑运行选项

权限预设影响 Antigravity 执行操作时是否需要确认:Request review 最安全但会频繁打断,Turbo 不会征求许可,而 Auto 会自动批准相对安全的命令,并对重要操作询问用户。排队消息可以设为等待当前任务完成,也可以立即发送;讲者偏好立即发送,便于及时纠正需求。其他设置包括让链接在内置或外部浏览器打开、启用防止电脑休眠,以及通过手机扫码开启远程控制。

权限预设中的逐项审批选项
权限预设中的自动审批选项
任务提示词立即发送选项
开启防止电脑休眠选项
开启远程控制选项

08:10 建立项目文件夹并选择模型

新项目需要指定电脑上的文件夹作为存放代码和文件的位置;创建后可从左侧项目列表进入,并在项目中开启新对话。选择模型时,除 Google 模型外,还可选 Anthropic 模型和 GPT 模型。讲者以当时可用的 Gemini 4 Argon 为例,建议将思考或努力程度设为 High 来追求较好结果,同时提醒高强度设置会更快消耗使用额度;Flash 或较低努力程度则更节省用量。

创建新项目的界面操作
左侧项目列表中的新项目
模型选择器中的模型选项
将模型思考或努力级别设为高

10:41 用自然语言规划本地笔记应用

应用需求取自 Obsidian:保留本地 Markdown 文件和用户对笔记的控制权,同时采用更接近 Notion 的简洁界面,不直接呈现 Markdown 格式,并允许用户选择任意文件夹作为笔记库。提示词应说明应用的用途和大致外观;若工具反复做出不想要的设计,可明确写出限制。讲者还强调视觉质量应与功能同等重要,并指出若不指定原生应用,Antigravity 通常会先生成只能在浏览器中使用的本地 Web 应用;本次先选择 Web 版查看效果。

指向用于口述输入的按钮
说明应用需要支持选择本地文件夹作为 vault
展示选择构建本地 Web 应用的提示

14:01 Fish Audio API 语音合成示例

Fish Audio 的 Drama 3 可将文本转换为富有表现力的语音,并能通过英文描述为每句添加表演方向。示例中,工具把脚本发送到 Fish Audio API 并保存音频;同一句旁白可通过加入“兴奋地揭示秘密”等指示和停顿要求改变呈现方式。若某一行效果不理想,可调整指示后重新生成。文中还说明 API 按用量付费、没有月度最低消费。

展示动画成品
对比调整语气前后的语音演绎

15:35 检查并体验生成的笔记应用

生成完成后,打开 Antigravity 提供的链接即可在内置浏览器中查看本地 Web 应用,也可切换到外部浏览器。成品呈现了类似 Notion 的页面与文件夹界面,同时使用电脑上的本地文件;讲者认为外观超出预期,页面和文字编辑等功能也符合需求。还可以继续修改格式,例如将文字加粗,或切换暗色模式。

展示生成的笔记应用界面
展示应用中的不同页面
演示选中文字并设置粗体
展示在外部浏览器中打开应用的操作入口
展示切换到深色模式

17:05 为游戏生成准备工具并描述玩法

游戏项目应单独创建文件夹。讲者建议让 Antigravity 检查电脑是否安装 Godot 和 Blender,未安装时可以要求它完成安装与设置;用户即使不打算亲自使用这两个软件,也可让编码工具调用它们来构建游戏。提示需求时应继续明确视觉品质优先,并描述玩法、角色和世界观,例如不断向前奔跑、左右移动和跳跃来躲避地洞,角色采用可爱多彩的棉花糖风格,场景则像糖果乐园。

项目创建界面中的新建项目入口
Godot 和 Blender 已安装的确认结果

18:13 启动游戏并根据体验迭代

游戏生成后,若说明要求在终端运行命令,可以直接告诉 Antigravity“替我启动游戏”,不必自行操作终端。初次试玩时角色很快死亡,说明仍需调整;整体画面和控制表现不错,但跳跃机制需要改进,因为跳得太容易、角色落地不够及时,影响连续跳跃。可以回到同一项目对话中提出修改,例如加入难度滑杆,让玩家自行降低难度。

完成后的游戏界面及开始游玩的提示
调整后继续游玩,角色不再立即失败

20:19 用代码生成图像

生成图像时,可以直接描述画面,也可以上传参考图并要求用代码重现。讲者上传一次徒步时拍摄的个人照片,生成结果保留了明显的画面特征,还提供一个用于调整眼镜阳光眩光的滑块。作品支持移除部分元素,也能播放绘制过程的延时效果;讲者对仅用代码实现的视觉效果感到惊讶。

展示生成结果并确认其由代码生成
展示图像中的滑块
对比真实图像与代码生成的图像
展示移除图像不同部分的功能
展示图像绘制过程的延时效果

21:34 创建动态图形与其他创作

动态图形同样可以通过代码生成。示例包括一个标题卡,列出应用、游戏、图像、动态图形和视频编辑等用途,并采用简洁设计;另一个示例是面向儿童、约 30 秒、黏土动画风格的云朵形成过程说明。这些案例展示了用自然语言指定主题、时长和视觉风格的创作方式。

展示生成的动态标题卡
展示生成的黏土动画风格云朵形成教学图形

22:15 总结工具价值并提及 Gemini 桌面应用

视频总结,初学者可先从应用、游戏和其他创意项目入手,再逐步探索更多能力。结尾提到 Antigravity 已合并进 Gemini 桌面应用,并将其称为整合 Google 多种 AI 工具的“AI super app”,同时指向相关介绍内容。

说明 Anti-gravity 并入 Gemini 桌面应用

结论

00:16 自然语言提示和项目文件夹管理让没有编程经验的人也能尝试在本机创建并启动应用或游戏。

12:42 遇到反复出现的不合意行为时,应在提示词中明确说明不希望工具做什么。

19:32 AI 生成的作品仍需实际检查和迭代,游戏机制等细节可能需要根据试玩体验调整。