-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlotr.py
executable file
·49 lines (40 loc) · 978 Bytes
/
lotr.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
#-------------------------------------------------------------------------------
# Name: LotR: Confrontation
# Purpose:
#
# Author: Rafal Nowicki
#
# Created: 10-06-2012
# Copyright: (c) novirael 2012
# Licence: <your licence>
#-------------------------------------------------------------------------------
#!/usr/bin/env python
# libraries
import pygame
import pickle
from pygame.locals import *
from display import DrawGameplay
from events import Events
from variables import MainVariables
from logic import Logic
# pygame init
pygame.init()
clock = pygame.time.Clock()
var = MainVariables()
draw = DrawGameplay(var)
events = Events(var)
logic = Logic(var)
# try open save
try:
pickle.load(open('save'))
var.saved = True
except:
var.saved = False
# main loop
while True:
clock.tick(15)
events.get()
logic.game()
draw.things()
#print var.errors
pygame.display.update()