chat gpt 超强编码能力 code interpreter 无基础,一分钟完成二六幺行。游戏编程只需要简单三步第一步写下提示词。第二步 time processing 网站创建并保存草图。第三步导入素材启动。首先进入 chat gpt, 写下这个提示,为小行星编写批五 js 代码,用鼠标控制宇宙飞船。然后点击复制。搜索 open processing, 需要登入免费进入个人主页后点击左上角创建草稿。随后创建新的草图,将内容粘贴。 先进行保存。红色按键确定,点击发要素文件,将飞船、陨石、背景素材加入进去。关键点来了,看到这几串绿色字符了吗?他们分别对 背景飞船、陨石素材导入的图片名称要与他一致。随后点击中间播放按钮,大功告成。 如果想要,还可以让 ai 帮你加音效,非常强大。另外可能会遇到很多报错,这时候更能体现 chat gpt 的强大。将问题送给 chat gpt, 他保证能改好。 另外,你对模型有什么不满意,随时都能叫他帮你改。输入指令,他还能作为一个老师为你讲解拆分。新人制作不易,感谢小红心!
粉丝31获赞196

gbt 的代码解释器能够让人人都成为程序员,但很多人不知道怎么样运行代码,今天呢就来教大家如何运行拍摄文件,俄罗斯方块,贪吃蛇彩虹条,只要你能够给出需求, gbt 就能够帮你写出相应的代码。首先我们来到拍摄的官网,点击它最新的版本进行下载, 下载完成后呢,我们点击自定义安装啊,然后把它安装到我们想要的位置,这里能勾选的就全部勾选,然后点击下一步。 安装完 python 之后呢,我们要安装一个 payer 的开发环境,然后我们打开它官网,之后呢点击下载, 下载后呢,我们选择安装的位置啊,这里可以把它选在 d 盘,这里呢也是跟上面一样,能勾选的尽量多 勾选上,然后点击安装,安装完成后呢,我们打开 pan, 可以发现啊,他是需要激活的,需要激活码的可以在评论区留言,我看到了会给大家发激活。之后我们就进入到了主界面,点击创建新的程序,然后打开一个新的页面, 然后我们在主程序上面再新建一个 python 文件,然后呢我们就复制 ppt 帮我们写的贪吃蛇代码,复制下来,右键点击运行, 可以看到呢,他这里报错啊,他是提示我们没有拍 game 的这个运行环境,这时候我们点击 setting, 点击项目,然后选择拍摄 interpret, 点左边的加号搜索拍 game, 然后点击安装即可。 这时候我们再次返回,然后右键点击运行,可以看到你第一个拍摄游戏贪吃蛇就已经做好了,赶紧去试试吧。

真的太牛了,建议程序员直接划走我一名编程小白,拆 gpt, 竟然让我在一分钟之内做出了一款游戏!首先我们问拆 gpt, 你是否知道贪吃蛇游戏, 并且让他带入程序员的身份,帮我描述出游戏规则,让他按照以上规则帮我写一个贪吃蛇的游戏代码。哇,这速度真的太快了,千万不要让你的程序员朋友看到,否则他会哭晕在厕所。一分钟不到,代码搞定。这时我追问, 作为一个小白,我该如何运行上述的代码?他会把每一步详详细细的介绍给你。按照他的步骤,第一步,下载 python, 夸张的是,他竟然连 python 的下载地址都已经提供给你。第二步,输入这份指令,下载 packm 库。第三步,将刚才生成的代码复制到文本编辑器里, 注意这里要使用重文本编辑器,然后将这个文本的后缀改为点 p y。 打开电脑的终端,输入菜 gpt 里的指令,运行游戏。一个简单的贪吃车游戏就做好了。关注墨子老师,下期我们制作扫雷游戏!

gpt 四发布了,我让他给我们写个贪吃蛇的游戏啊,我告诉他我是麦克电脑,然后用的是拍摄好,这个时候他首先提示我先要装一个库,好,他这边开始帮我写代码了,然后我这边就按照他提示去 装了一个库,那么看着他代码哗哗一行往外蹦啊,我的心情是非常非常的激动啊,因为我已经二十多年没有碰过程序了,确切说我除了大学学过程序,我就没有写过程序,但是对于贪吃蛇上游戏,他能不能运行起来呢?我们看,哇,真的运行起来了,哎,我还可以玩,我还可以玩。 你要知道,我不仅二十多年没有写程序,我连拍摄你是什么都不知道,长什么样我也不知道,我也不知道如何在麦克底下去搭建这样的环境,完全是跟拆的 gpt 一句一句的问,中间没有找过任何人,没有考过任何网页资料,我就把这个开发环境搭起来了。 看起来人人都可以是程序员的时代到来了,程序员开发出的人工智能模型,居然首先要颠覆的是程序员这个行业吗?人族的程序员们,大家要加油啊!

朋友们,这个太酷了啊!国外有一个网友在完全不懂编程的情况下,用 g p t 四和 mid 之内就自己构建了一个横版过关的小游戏,看起来就像当年我们玩的魂斗罗一样,你可以操纵这个小人在里面上蹿下跳的,而且整个背景里面所有的元素全都是由 mid 之内形成的。 你要做的只需要在 gbt 里面输入提示词, gbt 呢就会把对应的程序的代码全都告诉你, 然后呢,你用 midjurd 去生成里面这些小怪兽的照片,还有他的背景图,放到这个对应的文件里面, 你就可以实现这么一个小游戏了。用这个题词 d p t 四呢写了一段代码出来,我们假设我们不会任何的程序员,那我就接着问他,我说, i don't know anything about coding where to put this script and how to run it。 我们来看看他能不能手把手的教我们如何去运行他给我们的这个代码,他说没有问题,我会一步一步的告诉你怎么安装这个环境,以及怎么运行这个游戏。这里呢,他一步一步的确实也列出来了。 第一步呢,你需要去下载一个叫做 visual studio code 这个软件,对吧?链接都给你了,然后安装的时候呢,你就怎么样巴拉巴拉去 extension, 然后巴拉巴拉你就可以运行了哦,看起来相当不错。也就是说呢,你通过 chat gbt, 像这个博主老哥说的,你是非常有可能能够自己实现一个这样的小游戏的。

唱 gdp 一句话就能生成出一个完整运行的小游戏,不如在这里跟他说一句,给我写一个贪吃蛇的小游戏,能完整运行的, 发出奖励,就立马会给出相应的一个完整代码,再把这个代码保存, 这是一个网页文件的代码, 这个是保存出 js 的一个文件代码, 然后再用浏览器打开这个网页文件就可以直接运行,看效果。

i wanted to know if chat gpt could make a video game so i asked it to make flappy bird for me, but we're gonna have one rule i'm not going to write a single line of code any code that we use is going to be written by chat gpt i'm just going to copy paste it over this could go very wrong i wrote a brief description of all the components that go into flappy bird real quick it spit out a six step plan to make flappy bird in the unity game engine, so following the instructions for steps one and two we're going to set up an empty game project and add our art for the background and the bird which brings us the step three which is to write a script to give life to the bird so it can flap its wings while flying to the right but we're not gonna write the script chagi bt is we're just gonna copy paste the script over tada it works, but there's a problem the bird is flying off the screen so we're gonna ask chat gpt to fix that and write a some code to have a camera follow the bird as it moves to the right, but you may have noticed that the bird is flying off the background that was a mistake i made setting up the background in the first place so i'm gonna chalk that one up to human error my bad with a quick adjustment we now have a script working great at this point i realized we don't want the game to start right away when the game loads we have to wait for the player to click at least once to flap their wings before the bird starts moving otherwise you go barreling into the ground as soon as the game starts as per our main rule i had chat gpt write all of the code to delay movement until the player had flapped their wings for the first time and success the game now waits until the first click and then you can flap flap flap your heart away have you been wondering where the art we've been using came from since chat gpt is writing all of the code well, if you haven't guessed already the art is generated by ai as well, i fed rough blockout sketches into mid journey and had it fill in the details for the background environment, the bird and the pipe obst this brings us to step number four things are going to get really interesting in step four obstacle pipes are going to start appearing chat gpt has given us instructions to hook up the physics for the pipe, which will cause the bird to collide with the pipe, which is how the game is going to end but as i was reading the instructions chat gpt have provided this line caught my eye chat gpt was planning to create the opposite goes off to the right of the screen that seems fine, but then it proposed moving the pipes left at a constant speed i can see why it suggested that since the pipes do appear to move to the left when you're playing you see the bird and camera are already moving to the right so the pipes should actually remain stationary and allow the bird to fly up to them i pointed this out to chat gpt and chat gpt agreed you're right it said and it proceeded to correct itself i copy pasted the code back in and now it works great except wait wait what's going on the birds flipping around like a like like some kind of cuckoo bird this is the first curveball that i'm going to throw at chat gpt because this was not part of the original design specification we're going to ask it to rotate the bird based on whether the bird is moving up or down without any hesitation chad gpt said sure you want the bird to tilt up and down you got it and it gave me the code to do so, and now we've got this awesome little bird that tilts up and down based on the direction it's moving rather than spinning around like a pinwheel and that brings us on to step number five to implement game over and scoring conditions what i really like about this process is that while chat gpt is taking care of the code i get to focus my attention on design work i get the position text elements on the screen i decide the distance between the pipes or the exact tuning numbers for how hard the bird flaps its wings so now we have scoring working but if you'll notice the points are actually incrementing before i get to the pipe that seems wrong i actually want the score to increment when the player passes through the happen the pipes so we're gonna ask chat gpt to adjust the code to give us more control over the exact moment in time that the point is awarded to the player the player now gets points when they actually pass through the pipe at this point i realized that we're missing a ground for the game the ground and flappy bird is really helpful to provide that constant sense of forward movement other than the pipes the ground was not part of the original specification, but i said nope we're gonna need it i let chat gpt know that we're gonna be adding a ground to the game and it gave me step by step directions how to set up a never ending ground the bird would be able to crash into and now we have an infinitely long ground along the bottom of the screen reinforcing that set of ford movement and then move on to step six which is to have a game over screen come up when the player makes a collision with the pipe or with the ground our coding assistant chat gpt didn't hesitate to provide us with detailed instructions as well as all of the code to set up the game over screen once again i was able to focus on the design elements like deciding what font size and color to use the sizing of the buttons and then paste the code that chat gpt had provided me to make the whole thing work and now we have a proper game over screen but wait there's one problem after the game over screen pops up the player input is still being received which means the bird can jump up after it has fallen to the ground that's kind of ridiculous so i told chat gpt that when the game over screen pops up, we need to stop the camera and stop movement so that the player shouldn't be able to control the bird anymore, but here's another mistake chat gpt made there was a simple coating error and the game wouldn't run at all i just told chat gpt that the error existed to see what it would do polite is always it apologize for the error and provided the correction after following its instructions we now disable player input when the game over screen is reached now this is where we're gonna get to our second curveball we're gonna add a high score system let's see how well chat gpt adjust this brand new request after we had basically finished all six steps of the original plan i copy pasted all the code it had provided me, but watch what happens when i run the game with the new high square code enabled i scored two points on this flappy bird run, but my high score was only listed as zero chat gpt wrote all this complicated logic with a simple error i told chat gpt i thought the problem was with the ad score function and it replied your right it's almost like we're working together we now have a high score system that works on this round i got a high score of nine and the score is retained between rounds so could somebody with no coding knowledge use chat gpt to make a game probably not yet, but we're getting there i'm definitely going to repeat this exercise with more complicated game types on future ai models so i hope you'll join me for that in the meantime happy game making。

如何不花一分钱就能让 chat g p t 帮你写代码呢?告诉你两个网站轻松搞定,第一个呢是 chat g p t mirror, 这个网站呢很不错,不过呢就是你只能白嫖三四,来演示一下吧,他这有一个例子啊,如何用 g s 写一个 h t t p 的请求,点击一下,在这儿点击发送走, 接下来呢,那你看啊,那这个 ai 呢,就开始给你他的答案了,而且呢带代码非常的给力是吧,然后写了一个请求的一个一段代码啊,然后下面呢还有一个说明, 好,还挺挺长,挺详细的,那三次之后呢,就不能够再用了,那如果说不过瘾的话怎么办呢?我们再来看第二个网站,第二个网站呢,叫做小梅用 ai 啊,它使用的是三点五以及四的这个版本都可以,以及后期还会加上这个百度的文心一言这 模式啊,那我们也来上一个例子,比如说啊,在这提问啊,用用 gs 写个啊,冒泡排序好,然后呢点击发送走,这时候呢,我们就等 你看他开始写了,然后这个呢是代码是吧,声明了一个方式,接下来呢,循环嵌套了,循环里边呢有判断,判断之后呢,这样是交换是吧?交换,交换完之后呢, return, 这个 a r 二呢,就是排序之后的一个数组了, 然后呢他在下面呢还会给你一段文本进行一个说明,哎,这个也很不错吧啊,不过呢,这个网站呢,他每天可以免费使用三十次, 但是呢,就是我测试了一下,感觉就是每次呢他都是给我提示剩余二十九次,然后也不知道咋回事,是不是 bug 啊,你们可以去试一下好不好?这两个网站呢?在国内都可以正常的去访问,放心使用。

给大家推荐一个基于叉的 gbt 式模型,开发了一个二零一工具,就是这个,那么我们可以本地下载安装,他支持麦克、 windows 都支持,那么我们可以给予他强大的 aa 能力来帮助我们来编写代码,安装完成之后,他的界面是这样的, 那么我们可以用它来帮我们写代码,比如说我们可以用快捷键,那比如说实现一个轮播图,他就会给你自动的生成一个轮播图的代码, 我们可以还可以让它,比如说实现一个冒泡排序,那么它这地方实现是根据你文件的后地名来实现的。如果你是 gs 文件,那么它默认是 gs 的语法, 如果你是扎法,那默认是扎法语法,如果,如果你是拍审,那么默认的是拍审的语法,那么我们可以可以什么呢?选中这这个代码,然后我再进行编辑,比如说,呃,修改一些逻辑,可以, 比如说我们的业务代码有问题,我们可以修改这一块路直接回车,那么他会帮我们修改这一块逻辑,我可以接受,可以驳回,你觉得他修改的不对,那么我们可以就驳回,如果觉得可以呢,我会点接受,那么我还可以选择干嘛呢?可以添加注视, 自动的给你添加注视,看到没有,那么我们还可以选中他进行聊天,比如说实现一个快速排序,那么你在这地方实现之后,他这地方会出现快速排序的一些效果。我们还可以进行,比如说用 v u e 实现实现一个轮播图, 那么他可以辅助我们去写代码,比如说这时候你接手了别人的代码,你可能看不懂,那么我们可以选中这块别人的代码,然后去加一些注册,那么这个开发工具他会帮助你, 那么他这个工具他和 get up to 出的 cover 有什么区别?大家可以想象一下,准确来说他要比这个他要更加强大。

今天我们来摸一天鱼啊,让 gpt 帮我们干点事。其呢是我看到 github 上面有一个项目啊,它是用 python 的写的,用来抓取每日的 github 陈年数据, 然后把抓起来的数据保存成 madam 格式,再推送到 get up 上面去。代码只要一次写好之后,后面的每次执行都是交由 get up actions 来自动执行。推送的配置文件里面有一个 crown 任务来告诉 get up actions 每天十点左右要定时执行一次,所以这个项目一旦配置好之后,后面就有机器人来每天来定时执行任务啊。 我就不需要操心每天是否有查看当天的 gap 春令数据了,就算是哪天忘记了看,也可以返回回来看之前收入的数据啊。那么问题来了,脚本是使用 python 写的, 我并不会拍审,但是我想对这个项目做一点更改,然后让他产出了数据符合我的要求。这个问题嘛,放在以前是比较无解的,但是现在有了 gpt 之后,这个也不算很难呀。那么我使用到的 ai 工具呢,就是 carris, 这是目前最强的 ai 代码编辑器啊,这个编辑器 内部已经深度集成了汽车 gpt, 现在每个月可以摆票五十四。 gpt 四啊,咱们现在工具有了手感就干,玩的就是真实。咱们先把原项目的代码拉取到本地,实际上这个项目里面的所有胶布账码全部在这个 script 点 p y 里面, 总共也才七十五行代码。打开 cross, 咱们今天就只管摸鱼,要干的活全都由 ai 来包了。选中 cross 的下面这个 gp 四个选项,现在咱们只管给他输入命令,让他干活,那我给他的指令非常简单直接啊,让他把这张 python 代码改写成为 typescript 代码,然后咱们就只需要按下回车。兄弟们,我只是让他改写代码呀,没有给他任何其他的提示, 他非常的听话。那么右边这些 typescript 代码写前段的兄弟们肯定是认识的呀。 到这里代码就改写完了,因为 咱们使用的是 g p t 四啊,他理解并且改写代码的能力绝对是要比 g p t 三要强很多的。这里我们暂且相信他改写的代码是能够完全正常运行的。咱们先用 n p m e d 杠外来初始化一个 package 连 g s 文件,然后安装 t s 文件运行的时候所需要的一些依赖, 再在全局装一个 t x x 来执行 t s 文件。最后一步,全局装上 tabscrete, 并且用 t s c 来初始画一下。初始画好之后,咱们就可以直接使用 t x x 来执行对应的 t s 文件了。把右边生成的代码直接拷贝到一个 script 点 t s 文件中。 现在咱们让代码跑起来,这里我稍微改了一下,让生成的文件名以 ts 开头,那么结果已经有了。稍微有一点点小问题,就是出现了很多换行和空格,这里稍微对字母串做下处理,把空格换行给替换掉。依然是咱们不用动脑筋啊,把事情都交给 an 来做生成,结果稍微有点点小问题,他能够去除换行,但是去除不了空格。 再给他补上一句,把空格也换掉好了。现在 replace 函数的正在表示,就是直接把空格换行全部替换掉了,可以抬头这个字母串,应用 replace 函数进行字母串替换,再次执行脚本。现在生成了 mark 档,文档就完全正常了。 看一下 mark down 的晕染效果,非常的 nice。 最后呢,我还对整个文件的项目目录做了一些更改啊,并且在 redmi 中就可以看到当天的所有内容以及前七天的地址。好,那么今天 ai 帮我墨鱼的节目就结束了,兄弟们,好工具,咱们要用起来呀。

挑战不会写代码,把这张设计图开发到网页,你觉得有可能吗?这种事情要是放在一个月前,我会骂他是神经病,但是现在的话完全 ok。 首先我们把设计图丢到 gpd 里面去, 然后输入你的一些需求,不到一会他的代码就会写出来了。然后我们把这些代码复制到编辑器里面去,就是这里 就 ok 了。再打开这个网页,可以看到这简单的换算,他都是 ok 的。比如说你输入一千 usdt, 然后换算多少 eth, 一个 eth 换算多少 usdt。 虽然说这个 ui 比较简陋,但是他该有的字段他都是有的, 毕竟这都是他花三十秒写出来的代码呀。后续的话,如果需要上线,你可以找你们前端再微调一下,就可以拿去用了。快去试试吧。

来,同学,能不能用 gs 实现这样发送弹幕的效果呀?这还不简单吗?上来演示一下啊。 哎呀,行行行走走走走走,你这样搜索,搜索出很多很多代码是不方便的。介绍一个好用的小插件,在 vs cod 里面安装我们的叉的 gpt 中文版,当我们装完之后呢,这个地方有一个小按钮,我们只需要在这里面输入我们相关的问题就行了,咱们写一个 gs, 加上一个 css, 实现弹幕效果,哎, 回车稍等一下, two hours later。 好,这样的话,是不是实现了一个简单的弹幕功能呀?我们程序员只需要做我们最开心的复制和粘贴就行了,哎,这是一段 diy 标签, 复制一下 css, 我们也把它呢复制一下,粘贴到我们 css 里面去,稍微的修改一下。所以说啊,告诉我们答案,我们还是要懂代码才能实现啊。哎哎,做一个修改,那下面就是我们的 gs 了,复制一份粘贴到我们下面的 gs 上,这样 我们就实现了一个盏灯的弹幕发送功能,我们来看看效果吧。到我们的浏览器中,哎,比如说输入了今天很开心常回车走着,怎么样, 项目是不是自动就生成了呀?哎,我们再按一下回车,是不是又生成一个呀?那再比如说,我们 gs 中是不是学过很多数组方法呀?还记得吗?直接在我们这里面去查找就 ok 喽。哎,小伙伴是不是也能看到了,这是我们常见的一些数组的方法, 你看,他告诉我们了相关的答案,但是里面有一部分大码还是需要我们去做修改的,他可以帮助我们快速的去梳理思路,这个要记住哦。好了,小伙伴学会了吗?学会了,有点意思,下课。

你敢不敢挑战一分钟写一段游戏原代码,开干易赚,玩的就是真实。我们先打开我们的 ai 创作,然后通过给 ai 为指令得出想要的答案。我们通过大量指令实验,得出了一套完美的指令模板,就是令角色加数问题加定目标,加补要求。 比如这里,我要他帮我写一段游戏代码。我们的指定就是,假如你是程序员,我有一个写五子棋游戏代码的需求,请帮我写一段五子棋游戏代码。请注意,我要用 test 语言,我要代码简单高效。那么接下来挑战开始, 挑战成功好!

这么发展下去,以后六岁小孩张嘴也能写代码了。新发布的口拍 lines, 不光光圈接入了 g、 b、 d 四点零,你还可以对话语音的方式告诉他应该写什么程序,即使他能依据你要求的逻辑结构,给你写出代码的前后结构,然后再帮你把结构里剩下的代码也都给你写完,这不就等于动动嘴巴就能写代码了吗?其实啊, 不光是口拍了 x, 现在就连 gap 口拍了的功能都已经很强大了,而且步数还很方便,就想体验还不会的啊,你评论六,我拉你进群跟我学。就比如说在他喜欢的开发环境里, microsoft vjo studio 凶残的口拍了,就能直接自动识别我给他的工程师代码,直接显示出程序目前有哪些 bug, 然后他还会自动去分析啊和注解啊哪些代码是干嘛用的。同时有的时候还会建议我说,这代码可以这么改,那个代码可以那么改,很多东西甚至是我之前都没有想到的。就连 gihab 执政长自己都说,用自然语言写程序这件事,将成为人们从六岁开始就能学到的东西, 也将成为人生成长旅途中的一部分。这对于设计师来说啊,无疑是个天大的好消息。但是对于马龙来说,肯定是个噩耗,因为以后只要告诉口牌 lax 你要的什么功能,他就会呈现出 ui 界面设计, 就能够帮你写或者协助你完成。其实我相信啊,随着口拍的 x 发展,就以后哪怕是变成小白,也能够去理解软件 app 在开发结构上的逻辑,然后进一步的呢,去做出更合理更好的设计。所以无论你是想做网站还是做 app, 这都是个神器,你都需要学习。