|
@@ -21,7 +21,9 @@ def endpoint(funct, motion, dict, cont):
|
21
|
21
|
shoeL = scene.objects['Char4:Shoes02.L']
|
22
|
22
|
deck = scene.objects["deck"]
|
23
|
23
|
throw_deck = scene.objectsInactive["throw_deck"]
|
24
|
|
- cam = scene.objects['Camera.003']
|
|
24
|
+ cam = scene.objects['Camera.003']
|
|
25
|
+ cam2 = scene.objects['freecam']
|
|
26
|
+ cam3 = scene.objects['followcam']
|
25
|
27
|
c_move = .025 #color move amount
|
26
|
28
|
if funct == 'exit':
|
27
|
29
|
#print("exit function", motion)
|
|
@@ -457,7 +459,20 @@ def endpoint(funct, motion, dict, cont):
|
457
|
459
|
b -= 2
|
458
|
460
|
dict['focal_length'] = b
|
459
|
461
|
|
460
|
|
-
|
|
462
|
+ if funct == 'min dist':
|
|
463
|
+ b = dict['cam_min']
|
|
464
|
+ if motion == 'inc':
|
|
465
|
+ b += .1
|
|
466
|
+ else:
|
|
467
|
+ b -= .1
|
|
468
|
+ dict['cam_min'] = round(b,2)
|
|
469
|
+ if funct == 'max dist':
|
|
470
|
+ b = dict['cam_max']
|
|
471
|
+ if motion == 'inc':
|
|
472
|
+ b += .1
|
|
473
|
+ else:
|
|
474
|
+ b -= .1
|
|
475
|
+ dict['cam_max'] = round(b,2)
|
461
|
476
|
|
462
|
477
|
|
463
|
478
|
#levels
|
|
@@ -601,7 +616,7 @@ def endpoint(funct, motion, dict, cont):
|
601
|
616
|
def get_c_list(dict):
|
602
|
617
|
#main menu
|
603
|
618
|
if dict['mlevel'] == 0:
|
604
|
|
- dict['current_list'] = ['settings', 'level', 'replay', 'restart', 'exit']
|
|
619
|
+ dict['current_list'] = ['settings', 'level', 'replay', 'exit']
|
605
|
620
|
|
606
|
621
|
#opt = dict['current_list'][dict['current_index']]
|
607
|
622
|
|
|
@@ -660,9 +675,14 @@ def get_inputs(dict, cont):
|
660
|
675
|
obj['sound'] = aud.Factory(bge.logic.expandPath('//sounds/select.wav'))
|
661
|
676
|
obj['sound_a'] = aud.Factory(bge.logic.expandPath('//sounds/a.wav'))
|
662
|
677
|
obj['sound_b'] = aud.Factory(bge.logic.expandPath('//sounds/b.wav'))
|
663
|
|
-
|
|
678
|
+
|
|
679
|
+ obj['sound'] = obj['sound'].pitch(.8)
|
|
680
|
+ obj['sound_a'] = obj['sound_a'].pitch(.8)
|
|
681
|
+ obj['sound_b'] = obj['sound_b'].pitch(.8)
|
|
682
|
+ sound = aud.Factory(bge.logic.expandPath('//sounds/select.wav'))
|
|
683
|
+ sound = sound.pitch(.8)
|
|
684
|
+
|
664
|
685
|
if keyboard.events[bge.events.LEFTARROWKEY] == JUST_ACTIVATED or (dict['bBut'] == False and dict['last_bBut'] == True):
|
665
|
|
-
|
666
|
686
|
aud.device().play(obj['sound_b'])
|
667
|
687
|
if dict['current_index'] not in dict['menu_end_points']:
|
668
|
688
|
#print('lkey')
|
|
@@ -677,9 +697,7 @@ def get_inputs(dict, cont):
|
677
|
697
|
dict['current_index'] = dict['lv2_index']
|
678
|
698
|
else:
|
679
|
699
|
pass
|
680
|
|
-# funct = dict['current_index']
|
681
|
|
-# motion = 'dec'
|
682
|
|
-# endpoint(funct, motion, dict)
|
|
700
|
+
|
683
|
701
|
#a
|
684
|
702
|
if (keyboard.events[bge.events.RIGHTARROWKEY] == JUST_ACTIVATED) or (dict['aBut'] == False and dict['last_aBut'] == True):
|
685
|
703
|
aud.device().play(obj['sound_a'])
|
|
@@ -773,7 +791,7 @@ def init(own, dict):
|
773
|
791
|
dict['mlevel'] = 0
|
774
|
792
|
dict['current_opt'] = ''
|
775
|
793
|
dict['pause_menu_text'] = ''
|
776
|
|
- dict['menu_end_points'] = ['exit', 'restart', 'shirt color r', 'shirt color g', 'shirt color b', 'shoe color r', 'shoe color g', 'shoe color b','deck color r', 'deck color g', 'deck color b', 'shirt logo', 'brightness / contrast on', 'brightness value', 'contrast value', 'hdr on', 'avgL', 'hdr strength', 'ao on', 'ao radius', 'ao width', 'ao only', 'dof on', 'sun strength', 'sun rot x', 'sun rot y', 'shadow on', 'ambient strength', 'Demo Scene', 'Empty Lot', 'Park A', 'Training', 'Spine', 'Warehouse', '1920x1080', '1280x720', '1024x768', '800x600', 'fullscreen', 'bloom on', 'cam height', 'focal length', 'min dist', 'max dist']
|
|
794
|
+ dict['menu_end_points'] = ['exit', 'restart', 'shirt color r', 'shirt color g', 'shirt color b', 'shoe color r', 'shoe color g', 'shoe color b','deck color r', 'deck color g', 'deck color b', 'shirt logo', 'brightness / contrast on', 'brightness value', 'contrast value', 'hdr on', 'avgL', 'hdr strength', 'ao on', 'ao radius', 'ao width', 'ao only', 'dof on', 'sun strength', 'sun rot x', 'sun rot y', 'shadow on', 'ambient strength', 'Demo Scene', 'Empty Lot', 'Park A', 'Training', 'Spine', 'Warehouse', '1920x1080', '1280x720', '1024x768', '800x600', 'fullscreen', 'bloom on', 'cam height', 'focal length', 'min dist', 'max dist', 'enter replay', 'recorder on', 'record length']
|
777
|
795
|
|
778
|
796
|
def output(dict):
|
779
|
797
|
try:
|
|
@@ -869,9 +887,14 @@ def output(dict):
|
869
|
887
|
outp = outp + ': ' + str(dict['bloom_on'])
|
870
|
888
|
|
871
|
889
|
if dict['current_opt'] == 'cam height':
|
872
|
|
- outp = outp + ': ' + str(dict['cam_height'])
|
|
890
|
+ outp = outp + '(-0.4): ' + str(dict['cam_height'])
|
873
|
891
|
if dict['current_opt'] == 'focal length':
|
874
|
|
- outp = outp + ': ' + str(dict['focal_length'])
|
|
892
|
+ outp = outp + '(16): ' + str(dict['focal_length'])
|
|
893
|
+
|
|
894
|
+ if dict['current_opt'] == 'min dist':
|
|
895
|
+ outp = outp + '(1.6): ' + str(dict['cam_min'])
|
|
896
|
+ if dict['current_opt'] == 'max dist':
|
|
897
|
+ outp = outp + '(2.4): ' + str(dict['cam_max'])
|
875
|
898
|
|
876
|
899
|
dict['pause_menu_text'] = outp
|
877
|
900
|
def main(cont):
|