/
RowanZombieSurvival.py
62 lines (53 loc) · 1.54 KB
/
RowanZombieSurvival.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
########################################################
##Matt Donow
##Electrical and computer Engineering
##Rowan University '15
##Intro to Virtual Reality Spring 2014
##
##Project: Rowan Zombie Survival
##Name: Rowan Zombie Survival
##filename:RowanZombieSurvival
##
##Purpose: Main file for Zombie Survival Game
##Dependencies:
##License:
######################################################################
# Pound Includes
import viz
import pregame
import SceneManager
import viztask
import Human
import GameWrap
import vizcam
import postgame
viz.go()
sceneManager=SceneManager.SceneManager()
#Game
def ZombieGame():
Status=True
while(Status):
print viz.MainScene
viz.scene(1)
ActiveProgram=pregame.Intro() #Destructions info
yield ActiveProgram.done.wait() #Wailt for intro screen to be done
sceneManager.switchtoScene('Charactor')
ActiveProgram=pregame.CharacterCreation()
playerName=yield ActiveProgram.done.wait() #Wailt for charactor creation to be done
playerName=playerName.data
sceneManager.switchtoScene('GameWorld')
ActiveProgram=GameWrap.GameWrap(playerName)
viz.link(viz.MainView,ActiveProgram.player.model)
winStatus=yield ActiveProgram.done.wait()
print 'You won?'
print winStatus.data
viz.scene(4)
ActiveProgram=postgame.WinLose(winStatus.data)
Status=yield ActiveProgram.done.wait()
Status=Status.data
print 'SHOULD I RESTART THE GAME'
print Status
#viz.scene(3)
#Schedule the task.
viztask.schedule(ZombieGame())
#print 'onto next'