forked from Quinny18/Tinkering-Graphics---Team-3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tinkering Graphics #2.py
59 lines (46 loc) · 1.28 KB
/
Tinkering Graphics #2.py
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import pygame
import LevelOptions
import random
import time
ChunkSize = 32
ScreenSizeX = 1024
ScreenSizeY = 576
Dirt = 0
Grass = 1
Water = 2
pit2 = 3
pit3 = 4
Campfire2 = 0
Shrine2 = 1
pit = 2
Textures = {
Dirt: pygame.image.load('Dirt2.png'),
Grass: pygame.image.load('Grass2.png'),
Water: pygame.image.load('Water2.png'),
pit2: pygame.image.load('Pit2.png'),
pit3: pygame.image.load('Pit3.png')
}
Line3 = {
Campfire2: pygame.image.load('Campfire2.png'),
Shrine2: pygame.image.load('Shrine2.png'),
pit: pygame.image.load('Pit.png')
}
Main_Window = pygame.display.set_mode((ScreenSizeX, ScreenSizeY))
running = True
def tile_assignment():
for x in range(0, 1024, 32):
Main_Window.blit(random.choice(Line3), (x, 480))
for x in range(0, 1024, 32):
Main_Window.blit(random.choice(Textures), (x, 512))
for x in range(0, 1024, 32):
Main_Window.blit(random.choice(Textures), (x, 544))
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
Main_Window.fill((135, 206, 235))
tile_assignment()
pygame.display.flip()
Main_Window.blit(random.choice(Textures), (0, 0))
time.sleep(5)
pygame.quit()