Hoşgeldin Misafir

Python ile kodlarken siyah ekran hatası

GozGoz

26 Ara 2017
599 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
Python:panoya kopyala

Kod:
import pygame
pygame.init()

pencere = pygame.display.set_mode((800,600))
pygame.display.set_caption("deneme")

pygame.mixer.music.load("arkaplan.wav")
pygame.mixer.music.play(-1, 0.0)

char = pygame.image.load("heart.png")
char_coor = char.get_rect()
char_coor.topleft = (10,10)

font_list=pygame.font.get_fonts()
for font in font_list:
 print(font)
font_ismi=pygame.font.SysFont('consolas', 64)

yazi=font_ismi.render("DENEME", True, (255,0,0))
yazi_koordinat = yazi.get_rect()...

Read more