Nikhil0987 commited on
Commit
1094903
·
verified ·
1 Parent(s): 2a09e63

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -0
app.py ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import pygame
2
+ from pygame.locals import *
3
+
4
+ # Initialize Pygame
5
+ pygame.init()
6
+
7
+ # Load the 3D model of Talking Tom's face
8
+ face_model = pygame.image.load('talking_tom_face.png')
9
+
10
+ # Create a display surface
11
+ screen = pygame.display.set_mode((640, 480), 0, 32)
12
+
13
+ # Main game loop
14
+ running = True
15
+ while running:
16
+ for event in pygame.event.get():
17
+ if event.type == QUIT:
18
+ running = False
19
+
20
+ # Draw the 3D model of Talking Tom's face
21
+ screen.blit(face_model, (100, 100))
22
+
23
+ # Update the display
24
+ pygame.display.flip()
25
+
26
+ # Quit Pygame
27
+ pygame.quit()