
Python pygame
天下皆白_唯我独黑
爱我所爱,恨我所恨,墨眉无锋,似剑非攻。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Pygame 键盘按钮的状态
#!/usr/bin/env python3# -*- coding: utf-8 -*-# @Date : 2018/10/31import pygamePANEL_width = 640PANEL_highly = 480winSur = pygame.display.set_mode((PANEL_width, PANEL_highly))while True: ...原创 2019-08-01 16:23:04 · 682 阅读 · 0 评论 -
Python 实现黑客帝国代码雨效果
1.需要pygame模块2.需要后缀为.ttf的字体文件效果图:代码:#!/usr/bin/env python3# -*- coding: utf-8 -*-# @Date : 2018/10/23import randomimport pygamePANEL_width = 600PANEL_highly = 500FONT_PX = 15pyg...转载 2018-11-01 10:22:18 · 18934 阅读 · 5 评论 -
Python pygame获取键盘按下数值
1。#!/usr/bin/env python3# -*- coding: utf-8 -*-# @Date : 2018/10/31import pygamePANEL_width = 640PANEL_highly = 480winSur = pygame.display.set_mode((PANEL_width, PANEL_highly))while Tru...原创 2018-10-31 18:06:07 · 3781 阅读 · 0 评论