-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
70 lines (53 loc) · 1.62 KB
/
main.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
60
61
62
63
64
65
66
67
68
69
70
from direct.showbase.ShowBase import ShowBase
# Als je nieuwe modules hebt voor bij *, voeg de verwijzing
# toe in __init__.py van de module!
from Controls import *
from Entities import *
from Entities.Objects import *
import sys
print(sys.version)
class Thunderstruck_server():
def __init__(self):
pass
# Entities
# Load terrain hgtmap
# Load Objects
# Game Logic
# Receive control input from client
# Game Goals/Rules
# Physics
# Define truck behavior
# Output
# Send data to clients
class Thunderstruck_client(ShowBase):
def __init__(self,server):
ShowBase.__init__(self)
# Init the Global Clock
self.Clock = Clock.Clock(self)
# ----- ENTITIES -----
# World
self.Terrain = Terrain.Terrain()
self.SkyDome = skyDome.skyDome()
#Light Sources? (or weather, see also particles)
# Objects
self.Truck1 = Trucks.Basic(self)
# Particles
# Sparks, fire, LIGHTNING
self.Camera = Camera.Camera(self)
# User input
self.CM = Manager.ControlManager(self)
# Server communication
# Send User controls
# Receive Trucks locations
# Graphics
# Renderer
# Camera behavior
# GUI frontend
# Sound
# Music Player
# Sound effects
if __name__ == "__main__":
server = Thunderstruck_server()
#server.run()
client = Thunderstruck_client(server)
client.run()