# # Contains configuration data for each avatar on the bus # Their cfg file # Which seat they are in # Their story/background info (?) import viz import vizfx from Bunch import Bunch as struct import BusSeatPositionsUncleNigel as Seats AVATAR_DATA = [ struct ( file = 'Homeless Avatars/Uncle_Nigel_A3.cfg', seat = 'l6', state = 239, teleSeatIDs = ['l6','l5','l4','l3','l2'], #teleSeatIDs = ['l5','l4','l3','l2'], story = None ), struct ( file = 'Homeless Avatars/Thief/CC2_m012_hipoly_A2_v2.cfg', seat = 'r1', state = 68, teleSeatIDs = None, story = None ) ] # Reads the AVATAR_DATA data # and adds the homeless avatars def initAvatars(scene=viz.MainScene):
# Homeless study 2015 - Apartment Scene # # This file manages the data for all interactive # objects (child nodes of the apartment osgb # model) that are in the apartment scene. import viz from Bunch import Bunch as struct OBJ_DATA = [ struct ( name = 'Bookshelf.OSGB', cost = 40, narration = False, narrationFile = None, sellable = True, ), struct ( name = 'Television.OSGB', cost = 100, narration = False, narrationFile = None, sellable = True, ), struct ( name = 'Couch.OSGB', cost = 150, narration = False, narrationFile = None, sellable = True, ),
# Contains configuration data for each avatar on the bus # Their cfg file # Which seat they are in # Their story/background info (?) import viz import vizfx from Bunch import Bunch as struct import BusSeatPositions as Seats AVATAR_DATA = [ struct ( file = 'Homeless Avatars/Old woman/CC2_f015_hipoly_A2_v2.cfg', seat = 'r1', state = 1, story = 'Audio/AvatarStories_OlderWoman.wav', name = 'old_woman', done = False, scale = 1 ), struct ( file = 'Homeless Avatars/Veteran/CC2_m006_hipoly_A2_v2.cfg', seat = 'l2', state = 1, story = 'Audio/AvatarStories_Man.wav', name = 'veteran', done = False, scale = 1.1 ), struct ( file = 'Homeless Avatars/Father/NewShirt/CC2_m003_hipoly_A2_v2.cfg',
import viz import vizact import viztask from vhil_devkit import * SELECTED_OBJECT = None SELL_ON_CLICK = True SELL_DELAY = 1.5 # If not selling on click, the amount of time to wait between selecting an object and selling the object OBJ_FADETIME = 1 OBJ_FADE_ACTION = vizact.fadeTo(0, time=OBJ_FADETIME) DAYS_PASS_PER_SELL = 3 LABEL_DATA = [ struct ( text = 'Days Left to Pay Debt', value = 12 ), struct ( text = 'Amount Left to Pay', value = 700.0 ), ] SELL_AUDIO = 'Audio/Apartment Scene/ChaChingSound.wav' # Audio to play upon selling an object PLEASE_SELL_AUDIO = 'Audio/Apartment Scene/ItemSelling_Directions_Pt2.wav' # Audio to ask user to sell next object FINAL_EVICT_NARRATIVE = 'Audio/Apartment Scene/LandlordScene2.wav' global sellNarrative, chaChingSound, finalEvictNarrative chaChingSound = viz.addAudio(SELL_AUDIO) sellNarrative = viz.addAudio(PLEASE_SELL_AUDIO) finalEvictNarrative = viz.addAudio(FINAL_EVICT_NARRATIVE)