Done with level preview

This commit is contained in:
Glence 2023-03-02 17:33:02 +08:00
parent 2834414115
commit 8c74ec85d3
12 changed files with 431 additions and 210 deletions

View File

@ -4118,8 +4118,9 @@
Scale: {x: 60, y: 60, z: 60} Scale: {x: 60, y: 60, z: 60}
IsActive: true IsActive: true
Text Renderer Component: Text Renderer Component:
Text: My name is Brandon. Text: "Score: 0"
Font: 176667660 Font: 176667660
Color: {x: 1, y: 1, z: 1, w: 1}
IsActive: true IsActive: true
Scripts: ~ Scripts: ~
- EID: 206 - EID: 206
@ -4133,8 +4134,9 @@
Scale: {x: 60, y: 60, z: 60} Scale: {x: 60, y: 60, z: 60}
IsActive: true IsActive: true
Text Renderer Component: Text Renderer Component:
Text: My name is Brandon. Text: "Time Left: 200"
Font: 176667660 Font: 176667660
Color: {x: 1, y: 1, z: 1, w: 1}
IsActive: true IsActive: true
Scripts: ~ Scripts: ~
- EID: 238 - EID: 238
@ -4150,6 +4152,7 @@
Text Renderer Component: Text Renderer Component:
Text: "" Text: ""
Font: 176667660 Font: 176667660
Color: {x: 1, y: 1, z: 1, w: 1}
IsActive: true IsActive: true
Scripts: ~ Scripts: ~
- EID: 236 - EID: 236
@ -4163,7 +4166,7 @@
winScene: 86098106 winScene: 86098106
loseScene: 91685359 loseScene: 91685359
currGameState: 0 currGameState: 0
totalItemCount: 0 totalItemCount: 4
Score: 0 Score: 0
timer: 200 timer: 200
scoreText: 237 scoreText: 237
@ -4184,8 +4187,8 @@
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: 0.406909943, y: 0.100000001, z: -2} Translate: {x: 2.13981342, y: 0.0490087792, z: -1.96055627}
Rotate: {x: -0, y: 0, z: -0} Rotate: {x: 0, y: -1.53675354, z: 0}
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
Renderable Component: Renderable Component:
@ -4292,8 +4295,8 @@
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: 3.71994686, y: 1.14058578, z: -9.35119247} Translate: {x: 3.71994758, y: 1.0997268, z: -9.35119152}
Rotate: {x: -0, y: 0, z: -0} Rotate: {x: 4.18975469e-06, y: -1.08915871e-11, z: -5.03928231e-06}
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
Renderable Component: Renderable Component:
@ -4335,7 +4338,7 @@
dontReturn: false dontReturn: false
soundDistance: 10 soundDistance: 10
highlightSpeed: 200 highlightSpeed: 200
highlightThickness: 600 highlightThickness: 120
highlightLowerClamp: 0.25 highlightLowerClamp: 0.25
- EID: 227 - EID: 227
Name: Mesh_Cheese Name: Mesh_Cheese
@ -4343,8 +4346,8 @@
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: 3.22328258, y: 1.08429813, z: -0.57395637} Translate: {x: 3.22328258, y: 1.02709854, z: -0.57395637}
Rotate: {x: -0, y: 0, z: -0} Rotate: {x: 5.62993963e-09, y: -7.03049191e-17, z: -1.92319405e-08}
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
Renderable Component: Renderable Component:
@ -4386,7 +4389,7 @@
dontReturn: false dontReturn: false
soundDistance: 10 soundDistance: 10
highlightSpeed: 200 highlightSpeed: 200
highlightThickness: 600 highlightThickness: 50
highlightLowerClamp: 0.25 highlightLowerClamp: 0.25
- EID: 65778 - EID: 65778
Name: Mesh_Apple Name: Mesh_Apple
@ -4394,8 +4397,8 @@
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: -2.5, y: 0.778462529, z: -5} Translate: {x: -2.50000072, y: 0.799999774, z: -5.00000095}
Rotate: {x: -0, y: 0, z: -0} Rotate: {x: -4.09249949e-08, y: 1.40052995e-13, z: 2.95086267e-08}
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
Renderable Component: Renderable Component:
@ -4437,7 +4440,7 @@
dontReturn: false dontReturn: false
soundDistance: 10 soundDistance: 10
highlightSpeed: 200 highlightSpeed: 200
highlightThickness: 600 highlightThickness: 60
highlightLowerClamp: 0.25 highlightLowerClamp: 0.25
- EID: 216 - EID: 216
Name: Mesh_Apple Name: Mesh_Apple
@ -4445,8 +4448,8 @@
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: -2.5, y: 0.778462529, z: -4.28408813} Translate: {x: -2.50000072, y: 0.799999893, z: -4.28408909}
Rotate: {x: -0, y: 0, z: -0} Rotate: {x: -5.83341553e-08, y: 7.48974247e-14, z: 1.10461471e-08}
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
Renderable Component: Renderable Component:
@ -4488,7 +4491,7 @@
dontReturn: false dontReturn: false
soundDistance: 10 soundDistance: 10
highlightSpeed: 200 highlightSpeed: 200
highlightThickness: 600 highlightThickness: 60
highlightLowerClamp: 0.25 highlightLowerClamp: 0.25
- EID: 229 - EID: 229
Name: ====ScoreZonePool==== Name: ====ScoreZonePool====
@ -4503,7 +4506,7 @@
Components: Components:
Transform Component: Transform Component:
Translate: {x: -7.47360849, y: 1.4327563, z: -2.44241929} Translate: {x: -7.47360849, y: 1.4327563, z: -2.44241929}
Rotate: {x: -0, y: 0, z: -0} Rotate: {x: -0, y: 0, z: 0}
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
RigidBody Component: RigidBody Component:
@ -4565,7 +4568,7 @@
Components: Components:
Transform Component: Transform Component:
Translate: {x: 1.97487497, y: 1.3500793, z: -10.195508} Translate: {x: 1.97487497, y: 1.3500793, z: -10.195508}
Rotate: {x: -0, y: 0, z: -0} Rotate: {x: -0, y: 0, z: 0}
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
RigidBody Component: RigidBody Component:
@ -4626,8 +4629,8 @@
NumberOfChildren: 1 NumberOfChildren: 1
Components: Components:
Transform Component: Transform Component:
Translate: {x: -5.47656059, y: 1.4327563, z: -2.44241929} Translate: {x: -5.47656107, y: 1.4327563, z: -2.44241929}
Rotate: {x: -0, y: 0, z: -0} Rotate: {x: -0, y: 0, z: 0}
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
RigidBody Component: RigidBody Component:
@ -4689,7 +4692,7 @@
Components: Components:
Transform Component: Transform Component:
Translate: {x: 6.09239721, y: 1.4327563, z: -6.03106117} Translate: {x: 6.09239721, y: 1.4327563, z: -6.03106117}
Rotate: {x: -0, y: 0, z: -0} Rotate: {x: -0, y: 0, z: 0}
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
RigidBody Component: RigidBody Component:
@ -4751,7 +4754,7 @@
Components: Components:
Transform Component: Transform Component:
Translate: {x: 6.09239721, y: 1.4327563, z: -3.94262314} Translate: {x: 6.09239721, y: 1.4327563, z: -3.94262314}
Rotate: {x: -0, y: 0, z: -0} Rotate: {x: -0, y: 0, z: 0}
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
RigidBody Component: RigidBody Component:
@ -4901,7 +4904,7 @@
Components: Components:
Transform Component: Transform Component:
Translate: {x: -8, y: 1.142977, z: -4} Translate: {x: -8, y: 1.142977, z: -4}
Rotate: {x: -0, y: 1.57079637, z: -0} Rotate: {x: -0, y: 1.57079649, z: 0}
Scale: {x: 0.999999881, y: 1, z: 0.999999881} Scale: {x: 0.999999881, y: 1, z: 0.999999881}
IsActive: true IsActive: true
Renderable Component: Renderable Component:
@ -4963,6 +4966,10 @@
rayHeight: 0.100000001 rayHeight: 0.100000001
aimingFOV: 50 aimingFOV: 50
defaultFOV: 45 defaultFOV: 45
- Type: StateMachine
Enabled: true
currentStateName: Idle State
currentAnimName: ""
- EID: 65733 - EID: 65733
Name: HoldingPoint Name: HoldingPoint
IsActive: true IsActive: true
@ -4981,13 +4988,13 @@
Components: Components:
Transform Component: Transform Component:
Translate: {x: 0, y: -2.98023224e-08, z: 4.76837158e-07} Translate: {x: 0, y: -2.98023224e-08, z: 4.76837158e-07}
Rotate: {x: 0, y: 4.71238899, z: 2.23517329e-08} Rotate: {x: -0.173316926, y: 3.1415925, z: 2.23517329e-08}
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
Camera Component: Camera Component:
Position: {x: 2.12735963, y: 0.362327784, z: 7.98933029} Position: {x: -8.9091711, y: 2.05214882, z: -4}
Pitch: 0 Pitch: -9.93032837
Yaw: 360 Yaw: 270
Roll: 1.28065994e-06 Roll: 1.28065994e-06
Width: 1920 Width: 1920
Near: 0.00999999978 Near: 0.00999999978
@ -4998,7 +5005,7 @@
Camera Arm Component: Camera Arm Component:
Arm Pitch: 45 Arm Pitch: 45
Arm Yaw: -90 Arm Yaw: -90
Arm Length: 1 Arm Length: 3
Look At Camera Origin: true Look At Camera Origin: true
Target Offset: {x: 0, y: 0.75, z: 0} Target Offset: {x: 0, y: 0.75, z: 0}
Camera Collision: true Camera Collision: true
@ -5121,52 +5128,26 @@
IsActive: true IsActive: true
NumberOfChildren: 3 NumberOfChildren: 3
Components: ~ Components: ~
Scripts: ~ Scripts:
- Type: SHADE_Scripting.UI.PreviewLevel
Enabled: true
endPoint1: [-5.5, 1.5, -2]
endPoint2: [1, 1.5, -7.5]
endPoint3: [2.5, 1.5, -3]
playerCamera: 65730
duration: 3
- EID: 453 - EID: 453
Name: PreviewLevel1 Name: PreviewLevel1
IsActive: true IsActive: true
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: -7.59216642, y: 1.49918437, z: -1.37255788} Translate: {x: -7.5, y: 1.5, z: -2}
Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 1, y: 1, z: 1}
IsActive: true
Scripts: ~
- EID: 452
Name: PreviewLevel2
IsActive: true
NumberOfChildren: 0
Components:
Transform Component:
Translate: {x: -3.13806891, y: 1.33345056, z: -7.42731333}
Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 1, y: 1, z: 1}
IsActive: true
Scripts: ~
- EID: 451
Name: PreviewLevel3
IsActive: true
NumberOfChildren: 0
Components:
Transform Component:
Translate: {x: 4.74025965, y: 1.62911224, z: -7.82088184}
Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 1, y: 1, z: 1}
IsActive: true
Scripts: ~
- EID: 459
Name: PreviewLevelCamera
IsActive: true
NumberOfChildren: 0
Components:
Transform Component:
Translate: {x: 0, y: 0, z: 0}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
Camera Component: Camera Component:
Position: {x: 0, y: 0, z: 0} Position: {x: -5.5, y: 1.5, z: -2}
Pitch: 0 Pitch: 0
Yaw: 0 Yaw: 0
Roll: 0 Roll: 0
@ -5177,16 +5158,60 @@
FOV: 90 FOV: 90
IsActive: true IsActive: true
Scripts: ~ Scripts: ~
- EID: 452
Name: PreviewLevel2
IsActive: true
NumberOfChildren: 0
Components:
Transform Component:
Translate: {x: -1.5, y: 1.5, z: -7.5}
Rotate: {x: 0, y: -3.14159274, z: 0}
Scale: {x: 1, y: 1, z: 1}
IsActive: true
Camera Component:
Position: {x: -0.24528563, y: 1.5, z: -7.5}
Pitch: 0
Yaw: -180
Roll: 0
Width: 1920
Near: 0.00999999978
Far: 10000
Perspective: true
FOV: 90
IsActive: true
Scripts: ~
- EID: 451
Name: PreviewLevel3
IsActive: true
NumberOfChildren: 0
Components:
Transform Component:
Translate: {x: 2.5, y: 1.5, z: -7.5}
Rotate: {x: 0, y: 4.71238899, z: 0}
Scale: {x: 1, y: 1, z: 1}
IsActive: true
Camera Component:
Position: {x: 2.5, y: 1.5, z: -7.5}
Pitch: 0
Yaw: 270
Roll: 0
Width: 1920
Near: 0.00999999978
Far: 10000
Perspective: true
FOV: 90
IsActive: true
Scripts: ~
- EID: 458 - EID: 458
Name: PauseCanvas Name: PauseCanvas
IsActive: true IsActive: false
NumberOfChildren: 4 NumberOfChildren: 4
Components: Components:
Canvas Component: Canvas Component:
Canvas Width: 1920 Canvas Width: 1920
Canvas Height: 1080 Canvas Height: 1080
Scale by canvas width: false Scale by canvas width: false
IsActive: true IsActive: false
Scripts: ~ Scripts: ~
- EID: 457 - EID: 457
Name: ResumeButton Name: ResumeButton
@ -5203,9 +5228,9 @@
Material: 129340704 Material: 129340704
IsActive: true IsActive: true
Button Component: Button Component:
Default Texture: 52901020 Default Texture: 63979907
Hovered Texture: 62235279 Hovered Texture: 51379325
Clicked Texture: 64722619 Clicked Texture: 66788278
IsActive: true IsActive: true
UI Component: UI Component:
Canvas ID: 458 Canvas ID: 458
@ -5228,9 +5253,9 @@
Material: 129340704 Material: 129340704
IsActive: true IsActive: true
Button Component: Button Component:
Default Texture: 66477839 Default Texture: 61602036
Hovered Texture: 65045286 Hovered Texture: 58910810
Clicked Texture: 58607560 Clicked Texture: 57786063
IsActive: true IsActive: true
UI Component: UI Component:
Canvas ID: 458 Canvas ID: 458
@ -5253,9 +5278,9 @@
Material: 129340704 Material: 129340704
IsActive: true IsActive: true
Button Component: Button Component:
Default Texture: 55782622 Default Texture: 64806384
Hovered Texture: 58972174 Hovered Texture: 58347825
Clicked Texture: 55224464 Clicked Texture: 63234380
IsActive: true IsActive: true
UI Component: UI Component:
Canvas ID: 458 Canvas ID: 458
@ -5276,6 +5301,7 @@
Text Renderer Component: Text Renderer Component:
Text: Game Pause Text: Game Pause
Font: 176667660 Font: 176667660
Color: {x: 1, y: 1, z: 1, w: 1}
IsActive: false IsActive: false
UI Component: UI Component:
Canvas ID: 458 Canvas ID: 458
@ -5302,7 +5328,7 @@
Transform Component: Transform Component:
Translate: {x: 0, y: 0, z: 0.100000001} Translate: {x: 0, y: 0, z: 0.100000001}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 1920, y: 1080, z: 1} Scale: {x: 2500, y: 1080, z: 1}
IsActive: true IsActive: true
Renderable Component: Renderable Component:
Mesh: 141771688 Mesh: 141771688
@ -5317,5 +5343,5 @@
- Type: SHADE_Scripting.UI.SceneFadeInOut - Type: SHADE_Scripting.UI.SceneFadeInOut
Enabled: true Enabled: true
alphaValue: 1 alphaValue: 1
fadeInTime: 0.300000012 fadeInTime: 0.5
fadeOutTime: 0.300000012 fadeOutTime: 0.5

View File

@ -2025,9 +2025,9 @@
NumberOfChildren: 5 NumberOfChildren: 5
Components: Components:
Transform Component: Transform Component:
Translate: {x: 1.65356398, y: 0.333341181, z: 5.9183445} Translate: {x: 1.62003577, y: 0.241820931, z: 5.90758133}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: -0, y: 0, z: -0}
Scale: {x: 0.999979734, y: 1, z: 0.999979734} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
Renderable Component: Renderable Component:
Mesh: 134305891 Mesh: 134305891
@ -2039,7 +2039,7 @@
Angular Drag: 0.100000001 Angular Drag: 0.100000001
Use Gravity: true Use Gravity: true
Interpolate: false Interpolate: false
Sleeping Enabled: true Sleeping Enabled: false
Freeze Position X: false Freeze Position X: false
Freeze Position Y: false Freeze Position Y: false
Freeze Position Z: false Freeze Position Z: false
@ -2080,21 +2080,21 @@
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: 0.0218036175, y: 5.38527966e-05, z: 0.202852726} Translate: {x: 0, y: 0, z: 0}
Rotate: {x: 0, y: 3.6088712e-09, z: 1.97286229e-16} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: false IsActive: false
Renderable Component: Renderable Component:
Mesh: 144023586 Mesh: 0
Material: 122370915 Material: 0
IsActive: false IsActive: false
RigidBody Component: RigidBody Component:
Type: Dynamic Type: Dynamic
Drag: 0.00999999978 Drag: 0.00999999978
Angular Drag: 0.100000001 Angular Drag: 0.100000001
Use Gravity: true Use Gravity: true
Interpolate: false Interpolate: true
Sleeping Enabled: true Sleeping Enabled: false
Freeze Position X: false Freeze Position X: false
Freeze Position Y: false Freeze Position Y: false
Freeze Position Z: false Freeze Position Z: false
@ -2125,57 +2125,6 @@
highlightSpeed: 300 highlightSpeed: 300
highlightThickness: 250 highlightThickness: 250
highlightLowerClamp: 0.25 highlightLowerClamp: 0.25
- EID: 524
Name: Piece2
IsActive: false
NumberOfChildren: 0
Components:
Transform Component:
Translate: {x: 0.0812162161, y: 0.0825212598, z: -0.0991339684}
Rotate: {x: 0, y: 3.6088712e-09, z: 1.97286229e-16}
Scale: {x: 1, y: 1, z: 1}
IsActive: false
Renderable Component:
Mesh: 142132679
Material: 122370915
IsActive: false
RigidBody Component:
Type: Dynamic
Drag: 0.00999999978
Angular Drag: 0.100000001
Use Gravity: true
Interpolate: false
Sleeping Enabled: true
Freeze Position X: false
Freeze Position Y: false
Freeze Position Z: false
Freeze Rotation X: false
Freeze Rotation Y: false
Freeze Rotation Z: false
IsActive: false
Collider Component:
Colliders:
- Is Trigger: false
Collision Tag: 2
Type: Box
Half Extents: {x: 0.300000012, y: 0.200000003, z: 0.200000003}
Friction: 0.400000006
Bounciness: 0
Density: 1
Position Offset: {x: 0, y: 0, z: 0}
Rotation Offset: {x: 0, y: 0, z: -0.34906584}
IsActive: false
Scripts:
- Type: Item
Enabled: true
Score: 50
currCategory: 1
density: 3
dontReturn: false
soundDistance: 10
highlightSpeed: 300
highlightThickness: 250
highlightLowerClamp: 0.25
- EID: 525 - EID: 525
Name: Piece3 Name: Piece3
IsActive: false IsActive: false
@ -2329,6 +2278,57 @@
highlightSpeed: 300 highlightSpeed: 300
highlightThickness: 250 highlightThickness: 250
highlightLowerClamp: 0.25 highlightLowerClamp: 0.25
- EID: 524
Name: Piece2
IsActive: false
NumberOfChildren: 0
Components:
Transform Component:
Translate: {x: -1.62003577, y: -0.241820931, z: -5.90758133}
Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 1, y: 1, z: 1}
IsActive: false
Renderable Component:
Mesh: 142132679
Material: 122370915
IsActive: false
RigidBody Component:
Type: Dynamic
Drag: 0.00999999978
Angular Drag: 0.100000001
Use Gravity: true
Interpolate: false
Sleeping Enabled: true
Freeze Position X: false
Freeze Position Y: false
Freeze Position Z: false
Freeze Rotation X: false
Freeze Rotation Y: false
Freeze Rotation Z: false
IsActive: false
Collider Component:
Colliders:
- Is Trigger: false
Collision Tag: 2
Type: Box
Half Extents: {x: 0.300000012, y: 0.200000003, z: 0.200000003}
Friction: 0.400000006
Bounciness: 0
Density: 1
Position Offset: {x: 0, y: 0, z: 0}
Rotation Offset: {x: 0, y: 0, z: -0.34906584}
IsActive: false
Scripts:
- Type: Item
Enabled: true
Score: 50
currCategory: 1
density: 3
dontReturn: false
soundDistance: 10
highlightSpeed: 300
highlightThickness: 250
highlightLowerClamp: 0.25
- EID: 131228 - EID: 131228
Name: Watermelon Name: Watermelon
IsActive: true IsActive: true
@ -3449,7 +3449,7 @@
- Type: PauseMenu - Type: PauseMenu
Enabled: true Enabled: true
resumeBtn: 8 resumeBtn: 8
retryBtn: 461 retryBtn: 459
quitBtn: 0 quitBtn: 0
canvas: 10 canvas: 10
- EID: 199 - EID: 199
@ -3476,6 +3476,7 @@
Text Renderer Component: Text Renderer Component:
Text: My name is Brandon. Text: My name is Brandon.
Font: 174412429 Font: 174412429
Color: {x: 1, y: 1, z: 1, w: 1}
IsActive: true IsActive: true
UI Component: UI Component:
Canvas ID: 199 Canvas ID: 199
@ -3483,7 +3484,7 @@
Clicked: false Clicked: false
IsActive: true IsActive: true
Scripts: ~ Scripts: ~
- EID: 522 - EID: 521
Name: Score BG Name: Score BG
IsActive: true IsActive: true
NumberOfChildren: 0 NumberOfChildren: 0
@ -3516,6 +3517,7 @@
Text Renderer Component: Text Renderer Component:
Text: My name is Brandon. Text: My name is Brandon.
Font: 176667660 Font: 176667660
Color: {x: 1, y: 1, z: 1, w: 1}
IsActive: true IsActive: true
UI Component: UI Component:
Canvas ID: 199 Canvas ID: 199
@ -3536,6 +3538,7 @@
Text Renderer Component: Text Renderer Component:
Text: X2 Text: X2
Font: 174412429 Font: 174412429
Color: {x: 1, y: 1, z: 1, w: 1}
IsActive: true IsActive: true
UI Component: UI Component:
Canvas ID: 199 Canvas ID: 199
@ -3548,7 +3551,7 @@
maxSize: 1 maxSize: 1
minSize: 0.300000012 minSize: 0.300000012
minAlpha: 0.300000012 minAlpha: 0.300000012
- EID: 523 - EID: 520
Name: Multiplier BG Name: Multiplier BG
IsActive: true IsActive: true
NumberOfChildren: 0 NumberOfChildren: 0
@ -5763,7 +5766,7 @@
Rotation Offset: {x: 0, y: 0, z: 0} Rotation Offset: {x: 0, y: 0, z: 0}
IsActive: false IsActive: false
Scripts: ~ Scripts: ~
- EID: 520 - EID: 461
Name: Piece3 Name: Piece3
IsActive: false IsActive: false
NumberOfChildren: 0 NumberOfChildren: 0
@ -5804,7 +5807,7 @@
Rotation Offset: {x: 0, y: 0, z: 0} Rotation Offset: {x: 0, y: 0, z: 0}
IsActive: false IsActive: false
Scripts: ~ Scripts: ~
- EID: 521 - EID: 460
Name: Piece4 Name: Piece4
IsActive: false IsActive: false
NumberOfChildren: 0 NumberOfChildren: 0
@ -6107,7 +6110,7 @@
Components: Components:
Transform Component: Transform Component:
Translate: {x: 0, y: -300, z: 0} Translate: {x: 0, y: -300, z: 0}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: -4.5, y: 2, z: -2.5}
Scale: {x: 400, y: 100, z: 500} Scale: {x: 400, y: 100, z: 500}
IsActive: true IsActive: true
Renderable Component: Renderable Component:
@ -6133,7 +6136,7 @@
onReleaseSound: event:/Music/player_undetected onReleaseSound: event:/Music/player_undetected
hoverScale: 1.10000002 hoverScale: 1.10000002
clickScale: 0.899999976 clickScale: 0.899999976
- EID: 461 - EID: 459
Name: RetryButton Name: RetryButton
IsActive: true IsActive: true
NumberOfChildren: 0 NumberOfChildren: 0
@ -6179,6 +6182,7 @@
Text Renderer Component: Text Renderer Component:
Text: Game Pause Text: Game Pause
Font: 176667660 Font: 176667660
Color: {x: 1, y: 1, z: 1, w: 1}
IsActive: false IsActive: false
UI Component: UI Component:
Canvas ID: 10 Canvas ID: 10
@ -11908,7 +11912,7 @@
Rotation Offset: {x: 0, y: 0, z: 0} Rotation Offset: {x: 0, y: 0, z: 0}
IsActive: true IsActive: true
Scripts: ~ Scripts: ~
- EID: 460 - EID: 458
Name: Exterior Name: Exterior
IsActive: true IsActive: true
NumberOfChildren: 5 NumberOfChildren: 5
@ -14587,7 +14591,7 @@
Material: 131956078 Material: 131956078
IsActive: true IsActive: true
Scripts: ~ Scripts: ~
- EID: 458 - EID: 174
Name: Exterior_Bush01 Name: Exterior_Bush01
IsActive: true IsActive: true
NumberOfChildren: 0 NumberOfChildren: 0
@ -14602,7 +14606,7 @@
Material: 131956078 Material: 131956078
IsActive: true IsActive: true
Scripts: ~ Scripts: ~
- EID: 459 - EID: 173
Name: Exterior_Bush02 Name: Exterior_Bush02
IsActive: true IsActive: true
NumberOfChildren: 0 NumberOfChildren: 0
@ -14617,7 +14621,7 @@
Material: 131956078 Material: 131956078
IsActive: true IsActive: true
Scripts: ~ Scripts: ~
- EID: 174 - EID: 172
Name: TweenManager Name: TweenManager
IsActive: true IsActive: true
NumberOfChildren: 0 NumberOfChildren: 0
@ -14625,7 +14629,7 @@
Scripts: Scripts:
- Type: SHADE_Scripting.UI.TweenManager - Type: SHADE_Scripting.UI.TweenManager
Enabled: true Enabled: true
- EID: 172 - EID: 548
Name: StealFoodCanvas Name: StealFoodCanvas
IsActive: true IsActive: true
NumberOfChildren: 1 NumberOfChildren: 1
@ -14636,7 +14640,7 @@
Scale by canvas width: false Scale by canvas width: false
IsActive: true IsActive: true
Scripts: ~ Scripts: ~
- EID: 173 - EID: 549
Name: StealFoodLogo Name: StealFoodLogo
IsActive: true IsActive: true
NumberOfChildren: 0 NumberOfChildren: 0
@ -14651,7 +14655,7 @@
Material: 127459277 Material: 127459277
IsActive: true IsActive: true
UI Component: UI Component:
Canvas ID: 172 Canvas ID: 548
Hovered: false Hovered: false
Clicked: false Clicked: false
IsActive: true IsActive: true
@ -14664,7 +14668,7 @@
rotationAmt: 1800 rotationAmt: 1800
scaleAmtX: 538 scaleAmtX: 538
scaleAmtY: 377 scaleAmtY: 377
- EID: 548 - EID: 550
Name: TransitionCanvas Name: TransitionCanvas
IsActive: true IsActive: true
NumberOfChildren: 1 NumberOfChildren: 1
@ -14675,7 +14679,7 @@
Scale by canvas width: false Scale by canvas width: false
IsActive: true IsActive: true
Scripts: ~ Scripts: ~
- EID: 549 - EID: 551
Name: Transition Name: Transition
IsActive: true IsActive: true
NumberOfChildren: 0 NumberOfChildren: 0
@ -14683,14 +14687,14 @@
Transform Component: Transform Component:
Translate: {x: 0, y: 0, z: 0.100000001} Translate: {x: 0, y: 0, z: 0.100000001}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 1920, y: 1080, z: 1} Scale: {x: 2500, y: 1080, z: 1}
IsActive: true IsActive: true
Renderable Component: Renderable Component:
Mesh: 141771688 Mesh: 141771688
Material: 120016136 Material: 120016136
IsActive: true IsActive: true
UI Component: UI Component:
Canvas ID: 548 Canvas ID: 550
Hovered: false Hovered: false
Clicked: false Clicked: false
IsActive: true IsActive: true
@ -14700,11 +14704,90 @@
alphaValue: 1 alphaValue: 1
fadeInTime: 0.5 fadeInTime: 0.5
fadeOutTime: 0.5 fadeOutTime: 0.5
- EID: 172 - EID: 552
Name: TweenManager Name: TweenManager
IsActive: true IsActive: true
NumberOfChildren: 0 NumberOfChildren: 0
Components: ~ Components: ~
Scripts: Scripts:
- Type: SHADE_Scripting.UI.TweenManager - Type: SHADE_Scripting.UI.TweenManager
Enabled: true Enabled: true
- EID: 553
Name: CameraPoints
IsActive: true
NumberOfChildren: 3
Components: ~
Scripts:
- Type: SHADE_Scripting.UI.PreviewLevel
Enabled: true
endPoint1: [-3.5, 1.5, -4.5]
endPoint2: [0, 2, 4.5]
endPoint3: [1.14999998, 2.20000005, 2]
playerCamera: 4
duration: 3
- EID: 554
Name: PreviewLevel1
IsActive: true
NumberOfChildren: 0
Components:
Transform Component:
Translate: {x: -5, y: 1.5, z: -3}
Rotate: {x: 0, y: -2.3561945, z: 0}
Scale: {x: 1, y: 1, z: 1}
IsActive: true
Camera Component:
Position: {x: -5.5, y: 1.5, z: -2}
Pitch: 0
Yaw: -135
Roll: 0
Width: 1920
Near: 0.00999999978
Far: 10000
Perspective: true
FOV: 90
IsActive: true
Scripts: ~
- EID: 555
Name: PreviewLevel2
IsActive: true
NumberOfChildren: 0
Components:
Transform Component:
Translate: {x: 3, y: 2, z: 4.5}
Rotate: {x: -0.5497787, y: 0, z: 0}
Scale: {x: 1, y: 1, z: 1}
IsActive: true
Camera Component:
Position: {x: -0.24528563, y: 1.5, z: -7.5}
Pitch: -31.5
Yaw: 0
Roll: 0
Width: 1920
Near: 0.00999999978
Far: 10000
Perspective: true
FOV: 90
IsActive: true
Scripts: ~
- EID: 556
Name: PreviewLevel3
IsActive: true
NumberOfChildren: 0
Components:
Transform Component:
Translate: {x: 1.29999995, y: 2.20000005, z: -4}
Rotate: {x: -0.34906584, y: -1.57079637, z: 0}
Scale: {x: 1, y: 1, z: 1}
IsActive: true
Camera Component:
Position: {x: 2.5, y: 1.5, z: -7.5}
Pitch: -20
Yaw: -90
Roll: 0
Width: 1920
Near: 0.00999999978
Far: 10000
Perspective: true
FOV: 90
IsActive: true
Scripts: ~

View File

@ -59,7 +59,7 @@ public class PickAndThrow : Script
} }
protected override void update() protected override void update()
{ {
if (GameManager.Instance.GamePause || GameManager.Instance.stealFoodPopUp) if (GameManager.Instance.GamePause || !GameManager.Instance.stealFoodPopUpDone)
{ {
return; return;
} }
@ -142,7 +142,7 @@ public class PickAndThrow : Script
protected override void fixedUpdate() protected override void fixedUpdate()
{ {
if (GameManager.Instance.GamePause || GameManager.Instance.stealFoodPopUp) if (GameManager.Instance.GamePause || !GameManager.Instance.stealFoodPopUpDone)
{ {
return; return;
} }

View File

@ -139,7 +139,7 @@ public class PlayerController : Script
protected override void update() protected override void update()
{ {
if (GameManager.Instance.GamePause || GameManager.Instance.stealFoodPopUp) if (GameManager.Instance.GamePause || !GameManager.Instance.stealFoodPopUpDone)
{ {
return; return;
} }
@ -189,7 +189,7 @@ public class PlayerController : Script
protected override void fixedUpdate() protected override void fixedUpdate()
{ {
if (GameManager.Instance.GamePause || GameManager.Instance.stealFoodPopUp) if (GameManager.Instance.GamePause || !GameManager.Instance.stealFoodPopUpDone)
{ {
return; return;
} }

View File

@ -41,7 +41,7 @@ namespace SHADE_Scripting
protected override void update() protected override void update()
{ {
if (GameManager.Instance.GamePause || GameManager.Instance.stealFoodPopUp) if (GameManager.Instance.GamePause || !GameManager.Instance.stealFoodPopUpDone)
{ {
return; return;
} }

View File

@ -41,7 +41,8 @@ public class GameManager : Script
public static GameManager Instance { get; private set; } public static GameManager Instance { get; private set; }
public bool GamePause { get; set; } public bool GamePause { get; set; }
public bool stealFoodPopUp { get; set; } public bool stealFoodPopUpDone { get; set; }
public bool PreviewLevelDone { get; set; }
public bool itemShatter { get; set; } public bool itemShatter { get; set; }
@ -65,7 +66,8 @@ public class GameManager : Script
fontScalar = new Vector3(multiplierFont / maxMultiplierDuration, multiplierFont / maxMultiplierDuration , multiplierFont / maxMultiplierDuration); fontScalar = new Vector3(multiplierFont / maxMultiplierDuration, multiplierFont / maxMultiplierDuration , multiplierFont / maxMultiplierDuration);
itemShatter = false; itemShatter = false;
GamePause = false; GamePause = false;
stealFoodPopUp = true; stealFoodPopUpDone = false;
PreviewLevelDone = false;
AudioHandler.audioClipHandlers["BGMWin"] = Audio.CreateAudioClip("event:/Music/stingers/game_win"); AudioHandler.audioClipHandlers["BGMWin"] = Audio.CreateAudioClip("event:/Music/stingers/game_win");
AudioHandler.audioClipHandlers["BGMLose"] = Audio.CreateAudioClip("event:/Music/stingers/game_lose"); AudioHandler.audioClipHandlers["BGMLose"] = Audio.CreateAudioClip("event:/Music/stingers/game_lose");
@ -98,7 +100,7 @@ public class GameManager : Script
protected override void update() protected override void update()
{ {
if (GamePause || stealFoodPopUp) if (GamePause || !stealFoodPopUpDone)
{ {
return; return;
} }

View File

@ -3,45 +3,156 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
public class PreviewLevel : Script
namespace SHADE_Scripting.UI
{ {
public GameObject previewLevelPoints; public class PreviewLevel : Script
private List<Transform> listOfpreviewLevelPoints;
private Transform tran;
public Vector3 endPoint1;
public Vector3 endPoint2;
public Vector3 endPoint3;
public float duration = 3.0f;
private bool point1Done;
private bool point2Done;
private bool point3Done;
protected override void awake()
{ {
//GetComponent<Camera>().SetMainCamera(); private List<Camera> listOfCamera;
if (previewLevelPoints) public Vector3 endPoint1;
listOfpreviewLevelPoints = previewLevelPoints.GetComponentsInChildren<Transform>().ToList(); public Vector3 endPoint2;
else public Vector3 endPoint3;
Debug.LogError("MISSING PREVIEW POINTS");
if(listOfpreviewLevelPoints.Count == 0) public GameObject playerCamera;
Debug.LogError("EMPTY PREVIEW POINTS"); public float duration = 3.0f;
tran = GetComponent<Transform>(); private bool point1Done = false;
if (!tran) private bool point2Done = false;
Debug.LogError("MISSING PREVIEW TRANSFORM"); private bool point3Done = false;
else
tran.LocalPosition = listOfpreviewLevelPoints[0].LocalPosition; private bool reset2 = true;
private bool reset3 = true;
private bool skip = false;
[NonSerialized]
private TweenThreadVec3 moveToEndPoint1;
[NonSerialized]
private TweenThreadVec3 moveToEndPoint2;
[NonSerialized]
private TweenThreadVec3 moveToEndPoint3;
protected override void awake()
{
listOfCamera = GameObject.GetComponentsInChildren<Camera>().ToList();
if (listOfCamera.Count == 0)
Debug.LogError("EMPTY PREVIEW POINTS");
listOfCamera[0].SetMainCamera();
moveToEndPoint1 = TweenManager.CreateTweenThreadVec3(duration, listOfCamera[0].GetComponent<Transform>().LocalPosition, endPoint1, EASING_METHOD.EASE_IN_SINE);
moveToEndPoint2 = TweenManager.CreateTweenThreadVec3(duration, listOfCamera[1].GetComponent<Transform>().LocalPosition, endPoint2, EASING_METHOD.EASE_IN_SINE);
moveToEndPoint3 = TweenManager.CreateTweenThreadVec3(duration, listOfCamera[2].GetComponent<Transform>().LocalPosition, endPoint3, EASING_METHOD.EASE_IN_SINE);
}
protected override void update()
{
if (!SceneFadeInOut.Instance.FadeOutFinished() && !point1Done)
{
moveToEndPoint1.Reset();
return;
}
if (Input.GetKeyUp(Input.KeyCode.Space))
{
skip = true;
point1Done = true;
SceneFadeInOut.Instance.CallFadeIn();
SceneFadeInOut.Instance.alphaValue = 0.01f;
}
if (skip && SceneFadeInOut.Instance.FadeInFinished())
{
playerCamera.GetComponent<Camera>().SetMainCamera();
SceneFadeInOut.Instance.CallFadeOut();
}
if (skip && SceneFadeInOut.Instance.FadeOutFinished())
{
GameManager.Instance.PreviewLevelDone = true;
}
if (!skip)
{
if (!point1Done)
{
listOfCamera[0].GetComponent<Transform>().LocalPosition = moveToEndPoint1.GetValue();
if (moveToEndPoint1.IsCompleted())
{
point1Done = true;
SceneFadeInOut.Instance.CallFadeIn();
SceneFadeInOut.Instance.alphaValue = 0.01f;
}
}
if (SceneFadeInOut.Instance.FadeInFinished() && point1Done)
{
listOfCamera[1].SetMainCamera();
SceneFadeInOut.Instance.CallFadeOut();
}
if (SceneFadeInOut.Instance.FadeOutFinished() && point1Done)
{
if (!point2Done)
{
if (reset2)
{
moveToEndPoint2.Reset();
reset2 = false;
}
listOfCamera[1].GetComponent<Transform>().LocalPosition = moveToEndPoint2.GetValue();
if (moveToEndPoint2.IsCompleted())
{
point2Done = true;
SceneFadeInOut.Instance.CallFadeIn();
SceneFadeInOut.Instance.alphaValue = 0.01f;
}
}
}
if (SceneFadeInOut.Instance.FadeInFinished() && point2Done)
{
listOfCamera[2].SetMainCamera();
SceneFadeInOut.Instance.CallFadeOut();
}
if (SceneFadeInOut.Instance.FadeOutFinished() && point2Done)
{
if (!point3Done)
{
if (reset3)
{
moveToEndPoint3 = TweenManager.CreateTweenThreadVec3(duration, listOfCamera[2].GetComponent<Transform>().LocalPosition, endPoint3, EASING_METHOD.EASE_IN_SINE);
reset3 = false;
}
listOfCamera[2].GetComponent<Transform>().LocalPosition = moveToEndPoint3.GetValue();
if (moveToEndPoint3.IsCompleted())
{
point3Done = true;
SceneFadeInOut.Instance.CallFadeIn();
SceneFadeInOut.Instance.alphaValue = 0.01f;
}
}
}
if (SceneFadeInOut.Instance.FadeInFinished() && point3Done)
{
playerCamera.GetComponent<Camera>().SetMainCamera();
SceneFadeInOut.Instance.CallFadeOut();
}
if (SceneFadeInOut.Instance.FadeOutFinished() && point3Done)
{
GameManager.Instance.PreviewLevelDone = true;
}
}
}
} }
protected override void update()
{
}
} }

View File

@ -52,12 +52,12 @@ namespace SHADE_Scripting.UI
private static float EaseInSine(float value) private static float EaseInSine(float value)
{ {
return (float)(1.0f - Math.Cos((value * Math.PI) / 2.0f)); return (float)(1.0f - Math.Cos((value * Math.PI / 2.0f)));
} }
private static float EaseOutSine(float value) private static float EaseOutSine(float value)
{ {
return (float)(Math.Sin(value * Math.PI) / 2.0f); return (float)(Math.Sin(value * Math.PI / 2.0f));
} }

View File

@ -88,7 +88,7 @@ public class PauseMenu : Script
protected override void update() protected override void update()
{ {
if (Input.GetKeyDown(Input.KeyCode.Escape) && !GameManager.Instance.GamePause && !GameManager.Instance.stealFoodPopUp) if (Input.GetKeyDown(Input.KeyCode.Escape) && !GameManager.Instance.GamePause && GameManager.Instance.stealFoodPopUpDone)
{ {
GameManager.Instance.GamePause = true; GameManager.Instance.GamePause = true;
AudioHandler.PauseAllSounds(true); AudioHandler.PauseAllSounds(true);

View File

@ -65,7 +65,6 @@ namespace SHADE_Scripting.UI
if (alphaValue >= 1.0f) if (alphaValue >= 1.0f)
{ {
alphaValue = 1.0f; alphaValue = 1.0f;
GameObject.Parent.SetActive(false);
} }
} }

View File

@ -51,7 +51,7 @@ namespace SHADE_Scripting.UI
//538x377 //538x377
protected override void update() protected override void update()
{ {
if (!SceneFadeInOut.Instance.FadeOutFinished()) if (!GameManager.Instance.PreviewLevelDone)
{ {
rot.Reset(); rot.Reset();
scaleX.Reset(); scaleX.Reset();
@ -86,7 +86,7 @@ namespace SHADE_Scripting.UI
if (scaleOutX.IsCompleted() && scaleOutY.IsCompleted()) if (scaleOutX.IsCompleted() && scaleOutY.IsCompleted())
{ {
GameObject.SetActive(false); GameObject.SetActive(false);
GameManager.Instance.stealFoodPopUp = false; GameManager.Instance.stealFoodPopUpDone = true;
} }
} }
} }

View File

@ -207,10 +207,10 @@ namespace SHADE
if constexpr (YAML::HasYAMLConv<ComponentType>()) if constexpr (YAML::HasYAMLConv<ComponentType>())
{ {
auto component = SHComponentManager::GetComponent_s<ComponentType>(eid); auto component = SHComponentManager::GetComponent_s<ComponentType>(eid);
if (componentsNode.IsNull() || !component) if (!component)
return false; return false;
auto componentNode = GetComponentNode<ComponentType>(componentsNode, eid); auto componentNode = GetComponentNode<ComponentType>(componentsNode, eid);
if (componentNode.IsNull() || !componentNode.IsDefined()) if (!componentNode.IsDefined())
return false; return false;
if (componentNode[IsActive.data()].IsDefined()) if (componentNode[IsActive.data()].IsDefined())
component->isActive = componentNode[IsActive.data()].as<bool>(); component->isActive = componentNode[IsActive.data()].as<bool>();
@ -220,7 +220,7 @@ namespace SHADE
else else
{ {
ComponentType* component = SHComponentManager::GetComponent_s<ComponentType>(eid); ComponentType* component = SHComponentManager::GetComponent_s<ComponentType>(eid);
if (componentsNode.IsNull() && !component) if (!component)
return false; return false;
auto rttrType = rttr::type::get<ComponentType>(); auto rttrType = rttr::type::get<ComponentType>();
auto componentNode = componentsNode[rttrType.get_name().data()]; auto componentNode = componentsNode[rttrType.get_name().data()];