腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(3954)
视频
沙龙
1
回答
UnboundLocalError:赋值前引用的局部变量“事件”
python
、
pygame
: else: var_quit = 0 var_quit = 0
浏览 3
提问于2021-05-31
得票数 0
回答已采纳
2
回答
我怎样才能在背景上看到汽车?
python
、
pygame
、
layer
、
racing
((130, 180, 20))VEHICLE1 = pygame.image.load("YellowLambo.png")#blitting computer's car
screen.blit
camera -= bike.velocity
浏览 5
提问于2018-06-21
得票数 1
回答已采纳
1
回答
Pygame让立方体慢慢地从屏幕的顶部移动到底部
python
、
pygame
for x in range(7)] # 20 cubes cb[1] += 10 # cube moves down 2 pixels cb[1] += 10 # cube moves down 2 pixels
浏览 18
提问于2020-12-12
得票数 1
1
回答
Pygame在后台加载数据
python
、
pygame
我一直在构建lumines的克隆(带音乐的俄罗斯方块...有点)。我希望能够在后台加载音乐和图像,以减少内存占用并减少初始加载时间。有没有办法在pygame中做到这一点?
浏览 3
提问于2013-06-25
得票数 0
1
回答
Pygame blit在另一个游戏之上?
python
、
pygame
、
blit
screen.blit
(healthbar, (5,5))
screen.blit
(health, (health1+8,8)) 建议还是我做得完全错了?
浏览 0
提问于2014-10-29
得票数 0
1
回答
派克不是在加载图像
python
、
pygame
for event in pygame.event.get(): sys.exit()
screen.blit
(backgroundImg,(0,0))图像文件:
浏览 4
提问于2020-05-20
得票数 0
3
回答
为什么会出现"NameError: name 'draw_Objects‘is not defined“
python
(self.red_potion,(50,530)) #red1
screen.blit
(self.red_potion,(600,280)) #red4
screen.blit
(self.red_potion,(800
浏览 301
提问于2019-10-16
得票数 0
回答已采纳
1
回答
在Pygame中显示然后隐藏
python
、
pygame
4, 30): screen.fill([105, 105, 105])
screen.blit
(Gun.image, Gun.rect)
screen.b
浏览 4
提问于2013-07-11
得票数 1
1
回答
为什么我的文字没有出现在游戏中,当它清楚地闪现在屏幕上?
python
、
pygame
pygame.font.SysFont('Calibri', 25, True, False)
screen.blit
(text, [10, 10]) while run: pygame.display.update()
screen.b
浏览 3
提问于2021-09-22
得票数 0
2
回答
为什么有一个以上的球,我如何修复它?
python
、
python-2.7
、
pygame
、
pong
pygame.display.set_mode((800, 368))background.convert() if ballrect.top < 0 or ballrect.bottom > height:
screen.blit</e
浏览 2
提问于2013-07-10
得票数 0
回答已采纳
1
回答
我在玩游戏动画上有问题
python
、
animation
、
pygame
stepIndex if stepIndex >= 8: if move_left: elif move_right:
screen.blit
(Stationary,
浏览 3
提问于2021-04-01
得票数 1
回答已采纳
0
回答
我怎么做才能让我按下一个键时弹出一个图像,并一直停留在那里直到我松开为止?
python
、
pygame
(player_1, [170, 333])
screen.blit
(player_1, [331, 500])
screen.blit
(player_1, [170, 665])
screen.blit
(player_1, [10, 500])
screen.blit<
浏览 1
提问于2017-06-12
得票数 0
回答已采纳
1
回答
游戏跳跃动画不起作用-虽然步行是
python
、
animation
、
pygame
、
sprite
jumpCount = 10 clock.tick(60) player_rect.centery = player_movement
screen.blit
(player_idle, player_rect
浏览 5
提问于2020-09-27
得票数 0
回答已采纳
1
回答
pygame.rect不可调用
python-2.7
、
pygame
player1rect.w < 0 or player1rect.s > heght:
screen.blit
Traceback (most recent call last):
screen.blit
浏览 0
提问于2013-07-09
得票数 0
回答已采纳
1
回答
Pygame - Background不工作
python
、
pygame
depositphotos_159346790-stock-photo-
screen.blit
浏览 3
提问于2017-10-12
得票数 0
1
回答
Python中的Python游戏:
Screen.Blit
问题
image
、
python-2.7
、
pygame
gameplay3 File "/Volumes/JARED'S USB 3/Python/Pie Game.py", line 255, in game_over
screen.blit
(lives1, (450, 0))
浏览 3
提问于2013-07-27
得票数 0
回答已采纳
2
回答
如何从pygame窗口中删除绘制对象?
python
、
window
、
pygame
、
reset
、
rect
event in evc: screen.fill((255,255,255))
screen.blit
浏览 5
提问于2014-02-03
得票数 0
1
回答
图像没有加载python。
python
、
python-3.x
、
pygame
game_over_text():
screen.blit
(game_over_text, (350, 400))
screen.blit
(playerImg, (x, y))
screen.blit
(enemyImg[i], (x, y)) def fire
浏览 4
提问于2022-03-17
得票数 -1
1
回答
敌不出现
python
、
pygame
spaceship.y -= 0.5 spaceship.y += 0.5 enemy.update()
screen.blit
(spaceship.image
浏览 3
提问于2021-03-20
得票数 0
回答已采纳
2
回答
如何将一张图片放在其他图片的前面?
python
、
pygame
boltAnim.blit(winsurface,(pos-50,pos1-100)??)
浏览 3
提问于2015-10-06
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
利用Python实现敲击木鱼积累功德效果 功德+N
Python游戏设计—Part1
如何使用 Python 进行游戏开发?
python项目实战 打飞机(一)
利用Python实现智能五子棋,实现之后发现我下不过它了!
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券