Spaces:
Build error
Build error
File size: 576 Bytes
1094903 8db5aac 1094903 6a131c5 1094903 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
import pygame
from pygame.locals import *
import os
# Initialize Pygame
pygame.init()
# Load the 3D model of Talking Tom's face
face_model = pygame.image.load('talking_tom_face.png')
# Create a display surface
screen = pygame.display.set_mode((640, 480), 0, 32)
# Main game loop
running = True
while running:
for event in pygame.event.get():
if event.type == QUIT:
running = False
# Draw the 3D model of Talking Tom's face
screen.blit(face_model, (100, 100))
# Update the display
pygame.display.flip()
# Quit Pygame
pygame.quit() |