Hello Pygame程序
来源:互联网 发布:英国网络运营商 编辑:程序博客网 时间:2024/05/16 07:01
# Hello Pygame project
import pygame
from pygame.locals import *
white = 255,255,255
blue = 0,0,255
# initialize Pygame
pygame.init()
screen = pygame.display.set_mode((600,500))
# support TrueType font type."None"will be lead to the default Pygame font type
myfont = pygame.font.Font(None,60)
textImage = myfont.render("Hello Pygame",True,white)
while True:
for event in pygame.event.get():
if event.type in (QUIT,KEYDOWN):
pygame.quit()
screen.fill(blue)
screen.blit(textImage,(100,100))
pygame.display.update()
0 0
- Hello Pygame程序
- Hello, PyGame
- Hello! Pygame
- 第一个pygame程序
- 用Pygame绘制圆程序
- Python(Pygame)入门程序
- pygame
- pygame
- pygame
- 【pygame】
- Python:pygame游戏编程之旅一(Hello World)
- Python:pygame游戏编程之旅一(Hello World)
- 《Hello World》python学习之pygame画图模块
- 一個簡單的HELLO程序
- 一个Hello World程序
- 6个hello程序
- hello world程序
- QT Hello World 程序
- 110. Balanced Binary Tree
- 谈谈C++中的string
- Caused by: java.lang.NullPointerException: Location is required.
- HTML5基础(三)——input表单
- 以终为始
- Hello Pygame程序
- HDU 5154 Harry and Magical Computer (强连通分量)
- 别想太多,还是写代码
- 洛谷1351 联合权值
- C++保留标识符
- 2016_icpc_dalian_onsite
- 使用JDBC操作Mysql数据库
- 第6天
- ELK技术栈实践(一)