pygame.Font
来源:互联网 发布:java微信号自定义菜单 编辑:程序博客网 时间:2024/06/08 06:17
import pygame,sys
from pygame.locals import *
pygame.init()
DISPLAYSURF = pygame.display.set_mode((800,600))
#使用系统字体,或者自己加载字体库
myFont = pygame.font.SysFont("arial", 14)
words = myFont.render("hello world",True,(255,0,0))
while True:
DISPLAYSURF.fill((255,255,255))
for event in pygame.event.get():
if event.type == pygame.QUIT:
sys.exit()
DISPLAYSURF.blit(words,(0,0))
pygame.display.update()
- pygame.Font
- pygame.font
- pygame系列font游戏字体源码下载
- pygame使用anaconda安装找不到font模块的问题
- pygame
- pygame
- pygame
- 【pygame】
- font
- font
- Font
- font
- font
- font
- font
- font
- Font
- font
- 本地连接图标丢失,上网正常
- Android的系统架构
- jquery特效,不用再写繁琐的js脚本
- 备忘:Delphi
- C#内存分配
- pygame.Font
- 关键字static、extern、volatile 、const
- 社保公积金问题农村城镇户口等
- JDBC 数据库连接
- hdu 敌兵布阵
- firebird的基本数据类型(转)
- C语言经典题目螺旋矩阵
- VC获取当前时间,时间格式化详解
- 状态机