猫史档案馆


安歌兴业

安歌兴业

Lv.1

I miss you.I miss you.I miss you.

获赞:212收藏:40浏览:1340作品收藏:50

签名:养成习惯,三连再看(给作品点个赞) 写作业,编程,做家务……

回复帖子评论
上一页8 页 / 共 22下一页

打字游戏(超级难) 中回复

yan第十一个

2020-04-25T15:22:11 点赞:0

打字游戏(超级难) 中回复

不想回了

2020-04-25T15:23:26 点赞:0

打字游戏(超级难) 中回复

我每一个都要想好久

2020-04-25T15:23:39 点赞:0

打字游戏(超级难) 中回复

莴wo

2020-04-25T15:24:46 点赞:0

打字游戏(超级难) 中回复

忈ren

2020-04-25T15:25:33 点赞:0

打字游戏(超级难) 中回复

你好多都是繁体字

2020-04-25T15:26:06 点赞:0

打字游戏(超级难) 中回复

嘚de

2020-04-25T19:06:31 点赞:0

打字游戏(超级难) 中回复

chou第五行第九个

2020-04-25T21:01:24 点赞:0

打字游戏(超级难) 中回复

繁体字不想说

2020-04-25T21:04:40 点赞:0

【V1.3.3-更新】海龟编辑器-新版发布! 中回复

我刚刚刷新好

2020-04-27T21:26:01 点赞:0

【V1.3.3-更新】海龟编辑器-新版发布! 中回复

好像还是不能做pygame

2020-04-27T21:26:25 点赞:0

【V1.3.3-更新】海龟编辑器-新版发布! 中回复

import pgzrun import random



WIDTH = 620 HEIGHT = 900 girl = Actor("co") girl.pos = 300, 550

 

hair_style = ['hair_1', 'hair_2', 'hair_3', 'hair_4'] hair = Actor("hair_1") hair.pos = 317, 469

 

dress_style = ['dress_1', 'dress_2', 'dress_3', 'dress_4'] dress = Actor("dress_1") dress.pos = 313, 653

 

shoes_style = ['shoes_1', 'shoes_2', 'shoes_3', 'shoes_4'] shoes = Actor("shoes_1") shoes.pos = 312, 780

 

button1 = Actor("rand") button1.pos = 120, 120

 

button2 = Actor("match") button2.pos = 500, 120



def draw(): screen.blit('background', (0, 0)) girl.draw() hair.draw() dress.draw() shoes.draw() button1.draw() button2.draw()



def changestyle(obj, styleList): style = styleList.index(obj.image) if(style < 3): obj.image = styleList[style + 1] else: obj.image = styleList[0]



def change_all(): suit = random.randint(0, 3) dress.image = dress_style[suit] hair.image = hair_style[suit] shoes.image = shoes_style[suit]



def rand_change(): dress.image = random.choice(dress_style) hair.image = random.choice(hair_style) shoes.image = random.choice(shoes_style)



def on_mouse_down(pos): if dress.collidepoint(pos): changestyle(dress, dress_style) elif hair.collidepoint(pos): changestyle(hair, hair_style) elif shoes.collidepoint(pos): changestyle(shoes, shoes_style) elif button1.collidepoint(pos): rand_change() elif button2.collidepoint(pos): change_all()

 

pgzrun.go() 这种代码运行不了

2020-04-27T21:32:23 点赞:0

你们谁来运行一下 中回复

顺便说一句,这个代码得先把行分一下

2020-04-28T17:53:25 点赞:0

【代码师考核】在地图里你的作用有多大? 中回复

建筑系的围观

2020-04-28T17:54:28 点赞:0

快来看看啊。 中回复

好看

2020-05-01T13:53:56 点赞:0

【有人想盗我号?】不是说知道我密码吗,我把账号给你你把密码改了吧 中回复

前面带有edu的号应该是未来教室的

2020-05-01T14:19:36 点赞:0

我来送代码啦 中回复

据我所运行,没有错误

2020-05-01T14:24:08 点赞:0

我来送代码啦 中回复

2020-05-01T14:28:24 点赞:0

我来送代码啦 中回复

2020-05-01T14:28:30 点赞:0

时间胶囊。。。 中回复

洛阳铲上线

2020-05-02T16:43:39 点赞:0

【工作室】违规警告!招人不是抢人! 中回复

Dd

2020-05-02T16:50:15 点赞:0

为什么有些源码积木这次用时有,下次用时却找不到了? 中回复

每次重新进入源码编辑器积木栏会刷新的,亲。

2020-05-02T19:28:02 点赞:0

你们是学生吗 中回复

小学6

2020-05-02T20:12:59 点赞:0

为什么不能跳到下一个屏幕? 中回复

我看看

2020-05-02T21:25:23 点赞:0

为什么不能跳到下一个屏幕? 中回复

把重复执行里的侦测拆分成三段,每一段再套一个重复执行试试

2020-05-02T21:26:38 点赞:0

为什么不能跳到下一个屏幕? 中回复

你设置的是物理边界啊。。。(思考中)

2020-05-02T21:28:15 点赞:0

为什么不能跳到下一个屏幕? 中回复

你把设置物理边界这个积木去掉试试

2020-05-02T21:29:07 点赞:0

请问在源码编辑器里咋开启录音权限 中回复

你连麦克风了吗

2020-05-02T21:31:33 点赞:0

请问在源码编辑器里咋开启录音权限 中回复

你带耳机了吗?耳机上有麦克风吗?线插紧了吗

2020-05-02T21:34:59 点赞:0

搞笑测试嘿嘿嘿 中回复

安额兴?什么玩意?

2020-05-05T16:22:37 点赞:0