3D / app.py
Nikhil0987's picture
Update app.py
6a131c5 verified
raw
history blame
576 Bytes
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()