Implemented Animation Clip asset and animation controller #410
|
@ -3,6 +3,6 @@
|
|||
SubPass: UI
|
||||
Properties:
|
||||
data.color: {x: 1, y: 1, z: 1, w: 1}
|
||||
data.textureIndex: 62200943
|
||||
data.textureIndex: 52834559
|
||||
data.alpha: 1
|
||||
data.beta: {x: 1, y: 1, z: 1}
|
|
@ -3,6 +3,6 @@
|
|||
SubPass: UI
|
||||
Properties:
|
||||
data.color: {x: 1, y: 1, z: 1, w: 1}
|
||||
data.textureIndex: 53303669
|
||||
data.textureIndex: 60762613
|
||||
data.alpha: 1
|
||||
data.beta: {x: 1, y: 1, z: 1}
|
|
@ -3,6 +3,6 @@
|
|||
SubPass: UI
|
||||
Properties:
|
||||
data.color: {x: 1, y: 1, z: 1, w: 1}
|
||||
data.textureIndex: 61780097
|
||||
data.textureIndex: 53309226
|
||||
data.alpha: 1
|
||||
data.beta: {x: 1, y: 1, z: 1}
|
|
@ -3,6 +3,6 @@
|
|||
SubPass: UI
|
||||
Properties:
|
||||
data.color: {x: 1, y: 1, z: 1, w: 1}
|
||||
data.textureIndex: 59178524
|
||||
data.textureIndex: 63002526
|
||||
data.alpha: 1
|
||||
data.beta: {x: 1, y: 1, z: 1}
|
|
@ -0,0 +1,8 @@
|
|||
- VertexShader: 46580970
|
||||
FragmentShader: 50110174
|
||||
SubPass: UI
|
||||
Properties:
|
||||
data.color: {x: 0, y: 0, z: 0, w: 1}
|
||||
data.textureIndex: 0
|
||||
data.alpha: 0
|
||||
data.beta: {x: 1, y: 1, z: 1}
|
|
@ -0,0 +1,3 @@
|
|||
Name: UIMat_Black
|
||||
ID: 120016136
|
||||
Type: 7
|
|
@ -0,0 +1,8 @@
|
|||
- VertexShader: 46580970
|
||||
FragmentShader: 35983630
|
||||
SubPass: UI
|
||||
Properties:
|
||||
data.color: {x: 1, y: 1, z: 1, w: 1}
|
||||
data.textureIndex: 59379300
|
||||
data.alpha: 1
|
||||
data.beta: {x: 1, y: 1, z: 1}
|
|
@ -0,0 +1,3 @@
|
|||
Name: UIMat_Credits
|
||||
ID: 120332672
|
||||
Type: 7
|
|
@ -0,0 +1,8 @@
|
|||
- VertexShader: 46580970
|
||||
FragmentShader: 35983630
|
||||
SubPass: UI
|
||||
Properties:
|
||||
data.color: {x: 1, y: 1, z: 1, w: 1}
|
||||
data.textureIndex: 52018575
|
||||
data.alpha: 1
|
||||
data.beta: {x: 1, y: 1, z: 1}
|
|
@ -0,0 +1,3 @@
|
|||
Name: UIMat_Multiplier
|
||||
ID: 133784677
|
||||
Type: 7
|
|
@ -0,0 +1,8 @@
|
|||
- VertexShader: 46580970
|
||||
FragmentShader: 35983630
|
||||
SubPass: UI
|
||||
Properties:
|
||||
data.color: {x: 1, y: 1, z: 1, w: 1}
|
||||
data.textureIndex: 54238246
|
||||
data.alpha: 1
|
||||
data.beta: {x: 1, y: 1, z: 1}
|
|
@ -0,0 +1,3 @@
|
|||
Name: UIMat_Score
|
||||
ID: 127527215
|
||||
Type: 7
|
|
@ -0,0 +1,8 @@
|
|||
- VertexShader: 46580970
|
||||
FragmentShader: 35983630
|
||||
SubPass: UI
|
||||
Properties:
|
||||
data.color: {x: 1, y: 1, z: 1, w: 1}
|
||||
data.textureIndex: 60494030
|
||||
data.alpha: 1
|
||||
data.beta: {x: 1, y: 1, z: 1}
|
|
@ -0,0 +1,3 @@
|
|||
Name: UIMat_Timer
|
||||
ID: 126220632
|
||||
Type: 7
|
|
@ -5290,3 +5290,39 @@
|
|||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.TweenManager
|
||||
Enabled: true
|
||||
- EID: 461
|
||||
Name: TransitionCanvas
|
||||
IsActive: true
|
||||
NumberOfChildren: 1
|
||||
Components:
|
||||
Canvas Component:
|
||||
Canvas Width: 1920
|
||||
Canvas Height: 1080
|
||||
Scale by canvas width: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
- EID: 459
|
||||
Name: Transition
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: 0, y: 0, z: 0}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 1920, y: 1080, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 120016136
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 461
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.SceneFadeInOut
|
||||
Enabled: true
|
||||
alphaValue: 1
|
||||
fadeInTime: 0.5
|
||||
fadeOutTime: 0.5
|
|
@ -2228,24 +2228,54 @@
|
|||
gamePauseText: 11
|
||||
canvas: 10
|
||||
- EID: 199
|
||||
Name: =====Text====
|
||||
Name: Gameplay Canvas
|
||||
IsActive: true
|
||||
NumberOfChildren: 4
|
||||
Components: ~
|
||||
NumberOfChildren: 3
|
||||
Components:
|
||||
Canvas Component:
|
||||
Canvas Width: 1920
|
||||
Canvas Height: 1080
|
||||
Scale by canvas width: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
- EID: 237
|
||||
Name: Score
|
||||
Name: Score Text
|
||||
IsActive: true
|
||||
NumberOfChildren: 1
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -800, y: 365, z: 0.600000024}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 100, y: 100, z: 60}
|
||||
IsActive: true
|
||||
Text Renderer Component:
|
||||
Text: My name is Brandon.
|
||||
Font: 174412429
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 199
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
- EID: 522
|
||||
Name: Score BG
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -800, y: 400, z: 0}
|
||||
Translate: {x: 0.300000012, y: 0.600000024, z: 0.98999995}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 60, y: 60, z: 60}
|
||||
Scale: {x: 3.45600009, y: 2, z: 1}
|
||||
IsActive: true
|
||||
Text Renderer Component:
|
||||
Text: My name is Brandon.
|
||||
Font: 176667660
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 127527215
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 199
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
- EID: 206
|
||||
|
@ -2262,36 +2292,56 @@
|
|||
Text: My name is Brandon.
|
||||
Font: 176667660
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 199
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
- EID: 139
|
||||
Name: Multiplier
|
||||
Name: Multiplier Text
|
||||
IsActive: true
|
||||
NumberOfChildren: 1
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -800, y: 250, z: 0.100000001}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 50, y: 50, z: 60}
|
||||
IsActive: true
|
||||
Text Renderer Component:
|
||||
Text: X2
|
||||
Font: 174412429
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 199
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.MultiplierTextFx
|
||||
Enabled: true
|
||||
maxSize: 1
|
||||
minSize: 0.300000012
|
||||
minAlpha: 0.300000012
|
||||
- EID: 523
|
||||
Name: Multiplier BG
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -800, y: 300, z: 0}
|
||||
Translate: {x: 0.400000006, y: 0.400000006, z: 0.98999995}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 60, y: 60, z: 60}
|
||||
Scale: {x: 4.26499987, y: 2, z: 1}
|
||||
IsActive: true
|
||||
Text Renderer Component:
|
||||
Text: TEST
|
||||
Font: 176667660
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 133784677
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
- EID: 11
|
||||
Name: GamePause
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -250, y: 300, z: 0}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 100, y: 100, z: 100}
|
||||
UI Component:
|
||||
Canvas ID: 199
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Text Renderer Component:
|
||||
Text: Game Pause
|
||||
Font: 176667660
|
||||
IsActive: false
|
||||
Scripts: ~
|
||||
- EID: 198
|
||||
Name: ====Raccoon====
|
||||
|
@ -2414,7 +2464,7 @@
|
|||
armLength: 3
|
||||
turnSpeedPitch: 0.200000003
|
||||
turnSpeedYaw: 0.400000006
|
||||
inverseXControls: false
|
||||
inverseXControls: true
|
||||
inverseYControls: false
|
||||
pitchUpperClamp: 45
|
||||
pitchLowerClamp: 5
|
||||
|
@ -4782,9 +4832,9 @@
|
|||
- Type: JumpPad
|
||||
Enabled: true
|
||||
- EID: 10
|
||||
Name: Canvas
|
||||
Name: Pause Canvas
|
||||
IsActive: true
|
||||
NumberOfChildren: 3
|
||||
NumberOfChildren: 4
|
||||
Components:
|
||||
Canvas Component:
|
||||
Canvas Width: 1920
|
||||
|
@ -4800,23 +4850,31 @@
|
|||
Transform Component:
|
||||
Translate: {x: 0, y: 100, z: 0}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 300, y: 200, z: 500}
|
||||
Scale: {x: 400, y: 100, z: 500}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 129340704
|
||||
IsActive: true
|
||||
Button Component:
|
||||
Default Texture: 52901020
|
||||
Hovered Texture: 62235279
|
||||
Clicked Texture: 64722619
|
||||
Default Texture: 63979907
|
||||
Hovered Texture: 51379325
|
||||
Clicked Texture: 66788278
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 10
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.ButtonFX
|
||||
Enabled: true
|
||||
onHoverEnterSound: event:/Music/player_undetected
|
||||
onHoverExitSound: event:/Music/player_undetected
|
||||
onClickSound: event:/Music/player_undetected
|
||||
onReleaseSound: event:/Music/player_undetected
|
||||
hoverScale: 1.10000002
|
||||
clickScale: 0.899999976
|
||||
- EID: 0
|
||||
Name: QuitButton
|
||||
IsActive: true
|
||||
|
@ -4825,23 +4883,31 @@
|
|||
Transform Component:
|
||||
Translate: {x: 0, y: -300, z: 0}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 300, y: 200, z: 500}
|
||||
Scale: {x: 400, y: 100, z: 500}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 129340704
|
||||
IsActive: true
|
||||
Button Component:
|
||||
Default Texture: 66477839
|
||||
Hovered Texture: 65045286
|
||||
Clicked Texture: 58607560
|
||||
Default Texture: 61602036
|
||||
Hovered Texture: 58910810
|
||||
Clicked Texture: 57786063
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 10
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.ButtonFX
|
||||
Enabled: true
|
||||
onHoverEnterSound: event:/Music/player_undetected
|
||||
onHoverExitSound: event:/Music/player_undetected
|
||||
onClickSound: event:/Music/player_undetected
|
||||
onReleaseSound: event:/Music/player_undetected
|
||||
hoverScale: 1.10000002
|
||||
clickScale: 0.899999976
|
||||
- EID: 461
|
||||
Name: RetryButton
|
||||
IsActive: true
|
||||
|
@ -4850,22 +4916,50 @@
|
|||
Transform Component:
|
||||
Translate: {x: 0, y: -100, z: 0}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 300, y: 200, z: 500}
|
||||
Scale: {x: 400, y: 100, z: 500}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 129340704
|
||||
IsActive: true
|
||||
Button Component:
|
||||
Default Texture: 55782622
|
||||
Hovered Texture: 58972174
|
||||
Clicked Texture: 55224464
|
||||
Default Texture: 64806384
|
||||
Hovered Texture: 58347825
|
||||
Clicked Texture: 63234380
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 10
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.ButtonFX
|
||||
Enabled: true
|
||||
onHoverEnterSound: event:/Music/player_undetected
|
||||
onHoverExitSound: event:/Music/player_undetected
|
||||
onClickSound: event:/Music/player_undetected
|
||||
onReleaseSound: event:/Music/player_undetected
|
||||
hoverScale: 1.10000002
|
||||
clickScale: 0.899999976
|
||||
- EID: 11
|
||||
Name: GamePause
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -250, y: 300, z: 0}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 100, y: 100, z: 100}
|
||||
IsActive: true
|
||||
Text Renderer Component:
|
||||
Text: Game Pause
|
||||
Font: 176667660
|
||||
IsActive: false
|
||||
UI Component:
|
||||
Canvas ID: 10
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
- EID: 19
|
||||
Name: ====EnvironmentMaster====
|
||||
|
@ -13298,3 +13392,47 @@
|
|||
Material: 131956078
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
- EID: 174
|
||||
Name: TransitionCanvas
|
||||
IsActive: true
|
||||
NumberOfChildren: 1
|
||||
Components:
|
||||
Canvas Component:
|
||||
Canvas Width: 1920
|
||||
Canvas Height: 1080
|
||||
Scale by canvas width: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
- EID: 173
|
||||
Name: Transition
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: 0, y: 0, z: 0}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 1920, y: 1080, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 120016136
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 174
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.SceneFadeInOut
|
||||
Enabled: true
|
||||
alphaValue: 1
|
||||
fadeInTime: 0.5
|
||||
fadeOutTime: 0.5
|
||||
- EID: 172
|
||||
Name: TweenManager
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components: ~
|
||||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.TweenManager
|
||||
Enabled: true
|
|
@ -20,6 +20,7 @@
|
|||
Canvas Component:
|
||||
Canvas Width: 1920
|
||||
Canvas Height: 1080
|
||||
Scale by canvas width: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
- EID: 2
|
||||
|
@ -28,7 +29,7 @@
|
|||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: 0, y: 0, z: 0}
|
||||
Translate: {x: 0, y: 0, z: 0.100000001}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 1920, y: 1080, z: 1}
|
||||
IsActive: true
|
||||
|
@ -38,6 +39,8 @@
|
|||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 1
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
- EID: 5
|
||||
|
@ -48,24 +51,34 @@
|
|||
Transform Component:
|
||||
Translate: {x: 0, y: 75, z: 0}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 400, y: 200, z: 1}
|
||||
Scale: {x: 400, y: 100, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 129340704
|
||||
IsActive: true
|
||||
Button Component:
|
||||
Default Texture: 65788519
|
||||
Hovered Texture: 55999018
|
||||
Clicked Texture: 66382894
|
||||
Default Texture: 58945566
|
||||
Hovered Texture: 58758882
|
||||
Clicked Texture: 50335070
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 1
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts:
|
||||
- Type: ChangeSceneButton
|
||||
Enabled: true
|
||||
sceneID: 97158628
|
||||
- Type: SHADE_Scripting.UI.ButtonFX
|
||||
Enabled: true
|
||||
onHoverEnterSound: event:/Music/player_undetected
|
||||
onHoverExitSound: event:/Music/player_undetected
|
||||
onClickSound: event:/Music/player_undetected
|
||||
onReleaseSound: event:/Music/player_undetected
|
||||
hoverScale: 1.10000002
|
||||
clickScale: 0.899999976
|
||||
- EID: 6
|
||||
Name: Quit Button
|
||||
IsActive: true
|
||||
|
@ -74,23 +87,33 @@
|
|||
Transform Component:
|
||||
Translate: {x: 0, y: -200, z: 0}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 400, y: 200, z: 1}
|
||||
Scale: {x: 400, y: 100, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 129340704
|
||||
IsActive: true
|
||||
Button Component:
|
||||
Default Texture: 66477839
|
||||
Hovered Texture: 65045286
|
||||
Clicked Texture: 58607560
|
||||
Default Texture: 61602036
|
||||
Hovered Texture: 58910810
|
||||
Clicked Texture: 57786063
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 1
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts:
|
||||
- Type: QuitButton
|
||||
Enabled: true
|
||||
- Type: SHADE_Scripting.UI.ButtonFX
|
||||
Enabled: true
|
||||
onHoverEnterSound: event:/Music/player_undetected
|
||||
onHoverExitSound: event:/Music/player_undetected
|
||||
onClickSound: event:/Music/player_undetected
|
||||
onReleaseSound: event:/Music/player_undetected
|
||||
hoverScale: 1.10000002
|
||||
clickScale: 0.899999976
|
||||
- EID: 3
|
||||
Name: Camera
|
||||
IsActive: true
|
||||
|
@ -107,10 +130,10 @@
|
|||
Yaw: 0
|
||||
Roll: 0
|
||||
Width: 1920
|
||||
Height: 1080
|
||||
Near: 0.00999999978
|
||||
Far: 10000
|
||||
Perspective: true
|
||||
FOV: 90
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
- EID: 4
|
||||
|
@ -123,3 +146,11 @@
|
|||
Enabled: true
|
||||
mainGameScene: 86098106
|
||||
mainMainScene: 97158628
|
||||
- EID: 7
|
||||
Name: TweenManager
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components: ~
|
||||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.TweenManager
|
||||
Enabled: true
|
|
@ -1,7 +1,7 @@
|
|||
- EID: 0
|
||||
Name: Main Menu Canvas
|
||||
IsActive: true
|
||||
NumberOfChildren: 9
|
||||
NumberOfChildren: 3
|
||||
Components:
|
||||
Canvas Component:
|
||||
Canvas Width: 1920
|
||||
|
@ -29,161 +29,6 @@
|
|||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
- EID: 5
|
||||
Name: Start Game Button
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -700, y: 100, z: 0.400000006}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 450, y: 100, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 129340704
|
||||
IsActive: true
|
||||
Button Component:
|
||||
Default Texture: 52901020
|
||||
Hovered Texture: 62235279
|
||||
Clicked Texture: 64722619
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 0
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts:
|
||||
- Type: ChangeSceneButton
|
||||
Enabled: true
|
||||
sceneID: 96668835
|
||||
- EID: 6
|
||||
Name: Quit Game Button
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -700, y: -400, z: 0.400000006}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 450, y: 100, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 129340704
|
||||
IsActive: true
|
||||
Button Component:
|
||||
Default Texture: 66477839
|
||||
Hovered Texture: 65045286
|
||||
Clicked Texture: 58607560
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 0
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts:
|
||||
- Type: QuitButton
|
||||
Enabled: true
|
||||
- EID: 7
|
||||
Name: Level Select Button
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -700, y: 0, z: 0.400000006}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 450, y: 100, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 129340704
|
||||
IsActive: true
|
||||
Button Component:
|
||||
Default Texture: 52901020
|
||||
Hovered Texture: 62235279
|
||||
Clicked Texture: 64722619
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 0
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
- EID: 9
|
||||
Name: How To Play Button
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -700, y: -100, z: 0.400000006}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 450, y: 100, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 129340704
|
||||
IsActive: true
|
||||
Button Component:
|
||||
Default Texture: 65084899
|
||||
Hovered Texture: 58647112
|
||||
Clicked Texture: 55758383
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 0
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
- EID: 10
|
||||
Name: Credits Button
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -700, y: -200, z: 0.400000006}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 450, y: 100, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 129340704
|
||||
IsActive: true
|
||||
Button Component:
|
||||
Default Texture: 52901020
|
||||
Hovered Texture: 62235279
|
||||
Clicked Texture: 64722619
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 0
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
- EID: 11
|
||||
Name: Options Button
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -700, y: -300, z: 0.400000006}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 450, y: 100, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 129340704
|
||||
IsActive: true
|
||||
Button Component:
|
||||
Default Texture: 52901020
|
||||
Hovered Texture: 62235279
|
||||
Clicked Texture: 64722619
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 0
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
- EID: 12
|
||||
Name: Game Icon
|
||||
IsActive: true
|
||||
|
@ -210,25 +55,236 @@
|
|||
maxScale: 1.20000005
|
||||
duration: 1.5
|
||||
- EID: 54
|
||||
Name: test
|
||||
IsActive: false
|
||||
NumberOfChildren: 0
|
||||
Name: Main Menu Button Group
|
||||
IsActive: true
|
||||
NumberOfChildren: 6
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: 0, y: 0, z: 0}
|
||||
Rotate: {x: 0, y: 0, z: 3.14159274}
|
||||
Scale: {x: 1920, y: 500, z: 1}
|
||||
IsActive: false
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 129138332
|
||||
IsActive: false
|
||||
Translate: {x: -60, y: 0, z: 0}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 0.899999976, y: 0.899999976, z: 1}
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 0
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
- EID: 5
|
||||
Name: Start Game Button
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -700, y: 100, z: 0.400000006}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 450, y: 100, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 129340704
|
||||
IsActive: true
|
||||
Button Component:
|
||||
Default Texture: 63979907
|
||||
Hovered Texture: 51379325
|
||||
Clicked Texture: 66788278
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 0
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts:
|
||||
- Type: ChangeSceneButton
|
||||
Enabled: true
|
||||
sceneID: 96668835
|
||||
- Type: SHADE_Scripting.UI.ButtonFX
|
||||
Enabled: true
|
||||
onHoverEnterSound: event:/Music/player_undetected
|
||||
onHoverExitSound: "event:/Music/player_undetected\x00<30><30><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
onClickSound: event:/Music/player_undetected
|
||||
onReleaseSound: event:/Music/player_undetected
|
||||
hoverScale: 1.10000002
|
||||
clickScale: 0.899999976
|
||||
- EID: 6
|
||||
Name: Quit Game Button
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -700, y: -525, z: 0.400000006}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 450, y: 100, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 129340704
|
||||
IsActive: true
|
||||
Button Component:
|
||||
Default Texture: 61602036
|
||||
Hovered Texture: 58910810
|
||||
Clicked Texture: 57786063
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 0
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts:
|
||||
- Type: QuitButton
|
||||
Enabled: true
|
||||
- Type: SHADE_Scripting.UI.ButtonFX
|
||||
Enabled: true
|
||||
onHoverEnterSound: event:/Music/player_undetected
|
||||
onHoverExitSound: event:/Music/player_undetected
|
||||
onClickSound: event:/Music/player_undetected
|
||||
onReleaseSound: event:/Music/player_undetected
|
||||
hoverScale: 1.10000002
|
||||
clickScale: 0.899999976
|
||||
- EID: 7
|
||||
Name: Level Select Button
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -700, y: -25, z: 0.400000006}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 450, y: 100, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 129340704
|
||||
IsActive: true
|
||||
Button Component:
|
||||
Default Texture: 66852025
|
||||
Hovered Texture: 65992947
|
||||
Clicked Texture: 57197441
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 0
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.ButtonFX
|
||||
Enabled: true
|
||||
onHoverEnterSound: event:/Music/player_undetected
|
||||
onHoverExitSound: event:/Music/player_undetected
|
||||
onClickSound: event:/Music/player_undetected
|
||||
onReleaseSound: event:/Music/player_undetected
|
||||
hoverScale: 1.10000002
|
||||
clickScale: 0.899999976
|
||||
- Type: SHADE_Scripting.UI.ChangeCanvasButton
|
||||
Enabled: true
|
||||
canvasToActivate: 50
|
||||
- EID: 9
|
||||
Name: How To Play Button
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -700, y: -150, z: 0.400000006}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 450, y: 100, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 129340704
|
||||
IsActive: true
|
||||
Button Component:
|
||||
Default Texture: 66240282
|
||||
Hovered Texture: 61984910
|
||||
Clicked Texture: 58181792
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 0
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.ButtonFX
|
||||
Enabled: true
|
||||
onHoverEnterSound: event:/Music/player_undetected
|
||||
onHoverExitSound: event:/Music/player_undetected
|
||||
onClickSound: event:/Music/player_undetected
|
||||
onReleaseSound: event:/Music/player_undetected
|
||||
hoverScale: 1.10000002
|
||||
clickScale: 0.899999976
|
||||
- Type: SHADE_Scripting.UI.ChangeCanvasButton
|
||||
Enabled: true
|
||||
canvasToActivate: 13
|
||||
- EID: 10
|
||||
Name: Credits Button
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -700, y: -275, z: 0.400000006}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 450, y: 100, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 129340704
|
||||
IsActive: true
|
||||
Button Component:
|
||||
Default Texture: 64474447
|
||||
Hovered Texture: 55990309
|
||||
Clicked Texture: 51792742
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 0
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.ButtonFX
|
||||
Enabled: true
|
||||
onHoverEnterSound: event:/Music/player_undetected
|
||||
onHoverExitSound: event:/Music/player_undetected
|
||||
onClickSound: event:/Music/player_undetected
|
||||
onReleaseSound: event:/Music/player_undetected
|
||||
hoverScale: 1.10000002
|
||||
clickScale: 0.899999976
|
||||
- Type: SHADE_Scripting.UI.ChangeCanvasButton
|
||||
Enabled: true
|
||||
canvasToActivate: 46
|
||||
- EID: 11
|
||||
Name: Options Button
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -700, y: -400, z: 0.400000006}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 450, y: 100, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 129340704
|
||||
IsActive: true
|
||||
Button Component:
|
||||
Default Texture: 58867111
|
||||
Hovered Texture: 54697998
|
||||
Clicked Texture: 62936121
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 0
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.ButtonFX
|
||||
Enabled: true
|
||||
onHoverEnterSound: event:/Music/player_undetected
|
||||
onHoverExitSound: event:/Music/player_undetected
|
||||
onClickSound: event:/Music/player_undetected
|
||||
onReleaseSound: event:/Music/player_undetected
|
||||
hoverScale: 1.10000002
|
||||
clickScale: 0.899999976
|
||||
- Type: SHADE_Scripting.UI.ChangeCanvasButton
|
||||
Enabled: true
|
||||
canvasToActivate: 19
|
||||
- EID: 2
|
||||
Name: Light
|
||||
IsActive: true
|
||||
|
@ -296,23 +352,23 @@
|
|||
Scripts: ~
|
||||
- EID: 14
|
||||
Name: BackGround
|
||||
IsActive: true
|
||||
IsActive: false
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: 0, y: 0, z: 0.5}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 1920, y: 1080, z: 1}
|
||||
IsActive: true
|
||||
IsActive: false
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 121834459
|
||||
IsActive: true
|
||||
IsActive: false
|
||||
UI Component:
|
||||
Canvas ID: 13
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
IsActive: false
|
||||
Scripts: ~
|
||||
- EID: 15
|
||||
Name: Instruction Image
|
||||
|
@ -333,7 +389,14 @@
|
|||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.MultiImageList
|
||||
Enabled: true
|
||||
imageAssetList:
|
||||
- 124926341
|
||||
- 128721520
|
||||
- 124482180
|
||||
- 129768803
|
||||
- EID: 16
|
||||
Name: NextButton
|
||||
IsActive: true
|
||||
|
@ -342,23 +405,35 @@
|
|||
Transform Component:
|
||||
Translate: {x: 800, y: 0, z: 0}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 100, y: 100, z: 1}
|
||||
Scale: {x: 100, y: 382, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 129340704
|
||||
IsActive: true
|
||||
Button Component:
|
||||
Default Texture: 0
|
||||
Hovered Texture: 0
|
||||
Clicked Texture: 0
|
||||
Default Texture: 55358401
|
||||
Hovered Texture: 59400474
|
||||
Clicked Texture: 52333376
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 13
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.MultiImageListControlButton
|
||||
Enabled: true
|
||||
isNext: true
|
||||
multiImageList: 15
|
||||
- Type: SHADE_Scripting.UI.ButtonFX
|
||||
Enabled: true
|
||||
onHoverEnterSound: event:/Music/player_undetected
|
||||
onHoverExitSound: event:/Music/player_undetected
|
||||
onClickSound: event:/Music/player_undetected
|
||||
onReleaseSound: event:/Music/player_undetected
|
||||
hoverScale: 1.10000002
|
||||
clickScale: 0.899999976
|
||||
- EID: 17
|
||||
Name: PrevButton
|
||||
IsActive: true
|
||||
|
@ -366,24 +441,36 @@
|
|||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -800, y: 0, z: 0}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 100, y: 100, z: 1}
|
||||
Rotate: {x: 0, y: 0, z: 3.14159274}
|
||||
Scale: {x: 100, y: 382, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 129340704
|
||||
IsActive: true
|
||||
Button Component:
|
||||
Default Texture: 0
|
||||
Hovered Texture: 0
|
||||
Clicked Texture: 0
|
||||
Default Texture: 55358401
|
||||
Hovered Texture: 59400474
|
||||
Clicked Texture: 52333376
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 13
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.MultiImageListControlButton
|
||||
Enabled: true
|
||||
isNext: false
|
||||
multiImageList: 15
|
||||
- Type: SHADE_Scripting.UI.ButtonFX
|
||||
Enabled: true
|
||||
onHoverEnterSound: event:/Music/player_undetected
|
||||
onHoverExitSound: event:/Music/player_undetected
|
||||
onClickSound: event:/Music/player_undetected
|
||||
onReleaseSound: event:/Music/player_undetected
|
||||
hoverScale: 1.10000002
|
||||
clickScale: 0.899999976
|
||||
- EID: 18
|
||||
Name: BackButton
|
||||
IsActive: true
|
||||
|
@ -391,7 +478,7 @@
|
|||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -800, y: 450, z: 0}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Rotate: {x: 0, y: 0, z: 3.14159274}
|
||||
Scale: {x: 100, y: 100, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
|
@ -399,16 +486,35 @@
|
|||
Material: 129340704
|
||||
IsActive: true
|
||||
Button Component:
|
||||
Default Texture: 0
|
||||
Hovered Texture: 0
|
||||
Clicked Texture: 0
|
||||
Default Texture: 55358401
|
||||
Hovered Texture: 59400474
|
||||
Clicked Texture: 52333376
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 13
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.ChangeCanvasButton
|
||||
Enabled: true
|
||||
canvasToActivate: 0
|
||||
- Type: SHADE_Scripting.UI.ButtonFX
|
||||
Enabled: true
|
||||
onHoverEnterSound: event:/Music/player_undetected
|
||||
onHoverExitSound: event:/Music/player_undetected
|
||||
onClickSound: event:/Music/player_undetected
|
||||
onReleaseSound: event:/Music/player_undetected
|
||||
hoverScale: 1.10000002
|
||||
clickScale: 0.899999976
|
||||
- Type: SHADE_Scripting.UI.ButtonFX
|
||||
Enabled: true
|
||||
onHoverEnterSound: event:/Music/player_undetected
|
||||
onHoverExitSound: event:/Music/player_undetected
|
||||
onClickSound: event:/Music/player_undetected
|
||||
onReleaseSound: event:/Music/player_undetected
|
||||
hoverScale: 1.10000002
|
||||
clickScale: 0.899999976
|
||||
- EID: 19
|
||||
Name: Options Canvas
|
||||
IsActive: false
|
||||
|
@ -447,7 +553,7 @@
|
|||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -800, y: 450, z: 0}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Rotate: {x: 0, y: 0, z: 3.14159274}
|
||||
Scale: {x: 100, y: 100, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
|
@ -455,23 +561,26 @@
|
|||
Material: 129340704
|
||||
IsActive: true
|
||||
Button Component:
|
||||
Default Texture: 0
|
||||
Hovered Texture: 0
|
||||
Clicked Texture: 0
|
||||
Default Texture: 55358401
|
||||
Hovered Texture: 59400474
|
||||
Clicked Texture: 52333376
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 19
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.ChangeCanvasButton
|
||||
Enabled: true
|
||||
canvasToActivate: 0
|
||||
- EID: 22
|
||||
Name: Options Title Text
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -150, y: 400, z: -0.5}
|
||||
Translate: {x: -150, y: 400, z: 0.100000001}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 100, y: 100, z: 1}
|
||||
IsActive: true
|
||||
|
@ -491,7 +600,7 @@
|
|||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -900, y: 300, z: -0.5}
|
||||
Translate: {x: -900, y: 300, z: 0.100000001}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 100, y: 100, z: 1}
|
||||
IsActive: true
|
||||
|
@ -527,7 +636,7 @@
|
|||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: 0, y: 0, z: -0.5}
|
||||
Translate: {x: 0, y: 0, z: 0.100000001}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 75, y: 75, z: 1}
|
||||
IsActive: true
|
||||
|
@ -547,7 +656,7 @@
|
|||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: 0, y: -100, z: -0.5}
|
||||
Translate: {x: 0, y: -100, z: 0.100000001}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 75, y: 75, z: 1}
|
||||
IsActive: true
|
||||
|
@ -567,7 +676,7 @@
|
|||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: 0, y: -200, z: -0.5}
|
||||
Translate: {x: 0, y: -200, z: 0.100000001}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 75, y: 75, z: 1}
|
||||
IsActive: true
|
||||
|
@ -672,7 +781,7 @@
|
|||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -900, y: -120, z: -0.5}
|
||||
Translate: {x: -900, y: -120, z: 0.100000001}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 100, y: 100, z: 1}
|
||||
IsActive: true
|
||||
|
@ -708,7 +817,7 @@
|
|||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: 0, y: 0, z: -0.5}
|
||||
Translate: {x: 0, y: 0, z: 0.100000001}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 75, y: 75, z: 1}
|
||||
IsActive: true
|
||||
|
@ -728,7 +837,7 @@
|
|||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: 0, y: -100, z: -0.5}
|
||||
Translate: {x: 0, y: -100, z: 0.100000001}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 75, y: 75, z: 1}
|
||||
IsActive: true
|
||||
|
@ -826,7 +935,7 @@
|
|||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: 0, y: 0, z: 0}
|
||||
Translate: {x: 0, y: 0, z: 1}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 75, y: 75, z: 1}
|
||||
IsActive: true
|
||||
|
@ -839,14 +948,19 @@
|
|||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.SliderText
|
||||
Enabled: true
|
||||
sliderObj: 29
|
||||
minValue: 0
|
||||
maxValue: 100
|
||||
- EID: 41
|
||||
Name: SFX Volume Slider Text
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: 0, y: -100, z: 0.5}
|
||||
Translate: {x: 0, y: -100, z: 1}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 75, y: 75, z: 1}
|
||||
IsActive: true
|
||||
|
@ -859,14 +973,19 @@
|
|||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.SliderText
|
||||
Enabled: true
|
||||
sliderObj: 30
|
||||
minValue: 0
|
||||
maxValue: 100
|
||||
- EID: 42
|
||||
Name: BGM Volume Slider Text
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: 0, y: -200, z: 0.5}
|
||||
Translate: {x: 0, y: -200, z: 1}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 75, y: 75, z: 1}
|
||||
IsActive: true
|
||||
|
@ -879,7 +998,12 @@
|
|||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.SliderText
|
||||
Enabled: true
|
||||
sliderObj: 31
|
||||
minValue: 0
|
||||
maxValue: 100
|
||||
- EID: 43
|
||||
Name: Camera Slider Text Group
|
||||
IsActive: true
|
||||
|
@ -902,7 +1026,7 @@
|
|||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: 0, y: 0, z: 0}
|
||||
Translate: {x: 0, y: 0, z: 1}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 75, y: 75, z: 1}
|
||||
IsActive: true
|
||||
|
@ -915,14 +1039,19 @@
|
|||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.SliderText
|
||||
Enabled: true
|
||||
sliderObj: 37
|
||||
minValue: 0
|
||||
maxValue: 100
|
||||
- EID: 45
|
||||
Name: Sensitivity Slider Text
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: 0, y: -100, z: 0.5}
|
||||
Translate: {x: 0, y: -100, z: 1}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 75, y: 75, z: 1}
|
||||
IsActive: true
|
||||
|
@ -935,7 +1064,12 @@
|
|||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.SliderText
|
||||
Enabled: true
|
||||
sliderObj: 38
|
||||
minValue: 0
|
||||
maxValue: 100
|
||||
- EID: 46
|
||||
Name: Credits Canvas
|
||||
IsActive: false
|
||||
|
@ -949,23 +1083,23 @@
|
|||
Scripts: ~
|
||||
- EID: 47
|
||||
Name: BackGround
|
||||
IsActive: false
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: 0, y: 0, z: 1}
|
||||
Translate: {x: 0, y: -3800, z: 0.100000001}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 1920, y: 1080, z: 1}
|
||||
IsActive: false
|
||||
Scale: {x: 1920, y: 8026, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 121834459
|
||||
IsActive: false
|
||||
Material: 120332672
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 46
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
- EID: 48
|
||||
Name: BackButton
|
||||
|
@ -974,7 +1108,7 @@
|
|||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -800, y: 450, z: 0}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Rotate: {x: 0, y: 0, z: 3.14159274}
|
||||
Scale: {x: 100, y: 100, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
|
@ -982,23 +1116,26 @@
|
|||
Material: 129340704
|
||||
IsActive: true
|
||||
Button Component:
|
||||
Default Texture: 0
|
||||
Hovered Texture: 0
|
||||
Clicked Texture: 0
|
||||
Default Texture: 55358401
|
||||
Hovered Texture: 59400474
|
||||
Clicked Texture: 52333376
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 46
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.ChangeCanvasButton
|
||||
Enabled: true
|
||||
canvasToActivate: 0
|
||||
- EID: 49
|
||||
Name: Credits Title Text
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -150, y: 400, z: -0.5}
|
||||
Translate: {x: -150, y: 400, z: 0.100000001}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 100, y: 100, z: 1}
|
||||
IsActive: true
|
||||
|
@ -1050,7 +1187,7 @@
|
|||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -800, y: 450, z: 0}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Rotate: {x: 0, y: 0, z: 3.14159274}
|
||||
Scale: {x: 100, y: 100, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
|
@ -1058,23 +1195,26 @@
|
|||
Material: 129340704
|
||||
IsActive: true
|
||||
Button Component:
|
||||
Default Texture: 0
|
||||
Hovered Texture: 0
|
||||
Clicked Texture: 0
|
||||
Default Texture: 55358401
|
||||
Hovered Texture: 59400474
|
||||
Clicked Texture: 52333376
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 50
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.ChangeCanvasButton
|
||||
Enabled: true
|
||||
canvasToActivate: 0
|
||||
- EID: 53
|
||||
Name: Level Select Title Text
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: -150, y: 400, z: -0.5}
|
||||
Translate: {x: -150, y: 400, z: 0.100000001}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 100, y: 100, z: 1}
|
||||
IsActive: true
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
Canvas Component:
|
||||
Canvas Width: 1920
|
||||
Canvas Height: 1080
|
||||
Scale by canvas width: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
- EID: 2
|
||||
|
@ -28,7 +29,7 @@
|
|||
NumberOfChildren: 0
|
||||
Components:
|
||||
Transform Component:
|
||||
Translate: {x: 0, y: 0, z: 0}
|
||||
Translate: {x: 0, y: 0, z: 0.100000001}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 1920, y: 1080, z: 1}
|
||||
IsActive: true
|
||||
|
@ -38,6 +39,8 @@
|
|||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 1
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts: ~
|
||||
- EID: 5
|
||||
|
@ -48,24 +51,34 @@
|
|||
Transform Component:
|
||||
Translate: {x: 0, y: 75, z: 0}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 400, y: 200, z: 1}
|
||||
Scale: {x: 400, y: 100, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 129340704
|
||||
IsActive: true
|
||||
Button Component:
|
||||
Default Texture: 65788519
|
||||
Hovered Texture: 55999018
|
||||
Clicked Texture: 66382894
|
||||
Default Texture: 58945566
|
||||
Hovered Texture: 58758882
|
||||
Clicked Texture: 50335070
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 1
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts:
|
||||
- Type: ChangeSceneButton
|
||||
Enabled: true
|
||||
sceneID: 97158628
|
||||
- Type: SHADE_Scripting.UI.ButtonFX
|
||||
Enabled: true
|
||||
onHoverEnterSound: event:/Music/player_undetected
|
||||
onHoverExitSound: event:/Music/player_undetected
|
||||
onClickSound: event:/Music/player_undetected
|
||||
onReleaseSound: event:/Music/player_undetected
|
||||
hoverScale: 1.10000002
|
||||
clickScale: 0.899999976
|
||||
- EID: 6
|
||||
Name: Quit Button
|
||||
IsActive: true
|
||||
|
@ -74,23 +87,33 @@
|
|||
Transform Component:
|
||||
Translate: {x: 0, y: -200, z: 0}
|
||||
Rotate: {x: 0, y: 0, z: 0}
|
||||
Scale: {x: 400, y: 200, z: 1}
|
||||
Scale: {x: 400, y: 100, z: 1}
|
||||
IsActive: true
|
||||
Renderable Component:
|
||||
Mesh: 141771688
|
||||
Material: 129340704
|
||||
IsActive: true
|
||||
Button Component:
|
||||
Default Texture: 66477839
|
||||
Hovered Texture: 65045286
|
||||
Clicked Texture: 58607560
|
||||
Default Texture: 61602036
|
||||
Hovered Texture: 58910810
|
||||
Clicked Texture: 57786063
|
||||
IsActive: true
|
||||
UI Component:
|
||||
Canvas ID: 1
|
||||
Hovered: false
|
||||
Clicked: false
|
||||
IsActive: true
|
||||
Scripts:
|
||||
- Type: QuitButton
|
||||
Enabled: true
|
||||
- Type: SHADE_Scripting.UI.ButtonFX
|
||||
Enabled: true
|
||||
onHoverEnterSound: event:/Music/player_undetected
|
||||
onHoverExitSound: event:/Music/player_undetected
|
||||
onClickSound: event:/Music/player_undetected
|
||||
onReleaseSound: event:/Music/player_undetected
|
||||
hoverScale: 1.10000002
|
||||
clickScale: 0.899999976
|
||||
- EID: 3
|
||||
Name: Camera
|
||||
IsActive: true
|
||||
|
@ -107,7 +130,6 @@
|
|||
Yaw: 0
|
||||
Roll: 0
|
||||
Width: 1920
|
||||
Height: 1080
|
||||
Near: 0.00999999978
|
||||
Far: 10000
|
||||
Perspective: true
|
||||
|
@ -124,3 +146,11 @@
|
|||
Enabled: true
|
||||
mainGameScene: 86098106
|
||||
mainMainScene: 97158628
|
||||
- EID: 7
|
||||
Name: TweenManager
|
||||
IsActive: true
|
||||
NumberOfChildren: 0
|
||||
Components: ~
|
||||
Scripts:
|
||||
- Type: SHADE_Scripting.UI.TweenManager
|
||||
Enabled: true
|
|
@ -12,7 +12,7 @@ namespace SHADE_Scripting.Audio
|
|||
public static Dictionary<string, AudioClipHandler> audioClipHandlers = new Dictionary<string, AudioClipHandler>();
|
||||
|
||||
//Functions here, maybe
|
||||
public static void stopAllSounds(bool fadeOut)
|
||||
public static void StopAllSounds(bool fadeOut)
|
||||
{
|
||||
foreach (KeyValuePair<string, AudioClipHandler> h in audioClipHandlers)
|
||||
{
|
||||
|
@ -20,7 +20,7 @@ namespace SHADE_Scripting.Audio
|
|||
}
|
||||
}
|
||||
|
||||
public static void pauseAllSounds(bool pause)
|
||||
public static void PauseAllSounds(bool pause)
|
||||
{
|
||||
foreach (KeyValuePair<string, AudioClipHandler> h in audioClipHandlers)
|
||||
{
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
using SHADE;
|
||||
using SHADE_Scripting.Audio;
|
||||
using SHADE_Scripting.UI;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
@ -43,6 +44,10 @@ public class GameManager : Script
|
|||
|
||||
public bool itemShatter { get; set; }
|
||||
|
||||
//For scene transitions
|
||||
private bool goingToWin;
|
||||
private bool goingToLose;
|
||||
|
||||
protected override void awake()
|
||||
{
|
||||
if (Instance != null && Instance != this)
|
||||
|
@ -61,11 +66,13 @@ public class GameManager : Script
|
|||
|
||||
AudioHandler.audioClipHandlers["BGMWin"] = Audio.CreateAudioClip("event:/Music/stingers/game_win");
|
||||
AudioHandler.audioClipHandlers["BGMLose"] = Audio.CreateAudioClip("event:/Music/stingers/game_lose");
|
||||
|
||||
goingToWin = false;
|
||||
goingToLose = false;
|
||||
}
|
||||
|
||||
protected override void start()
|
||||
{
|
||||
|
||||
AudioHandler.audioClipHandlers["BGMAdaptive"] = Audio.CreateAudioClip("event:/Music/bgm_adaptive");
|
||||
AudioHandler.audioClipHandlers["BGMAdaptive"].Play();
|
||||
|
||||
|
@ -77,6 +84,8 @@ public class GameManager : Script
|
|||
AudioHandler.audioClipHandlers["SFXHumming"] = Audio.CreateAudioClip("event:/Homeowner/homeowner_humming");
|
||||
AudioHandler.audioClipHandlers["SFXHumming"].SetVolume(0.15f);
|
||||
AudioHandler.audioClipHandlers["SFXHumming"].Play();
|
||||
|
||||
SceneFadeInOut.Instance.CallFadeOut();
|
||||
}
|
||||
|
||||
protected override void update()
|
||||
|
@ -90,13 +99,13 @@ public class GameManager : Script
|
|||
{
|
||||
timer -= Time.DeltaTimeF;
|
||||
if(scoreText)
|
||||
scoreText.GetComponent<TextRenderable>().Text = $"Score: {Score}";
|
||||
scoreText.GetComponent<TextRenderable>().Text = $"{Score}";
|
||||
if(timeText)
|
||||
timeText.GetComponent<TextRenderable>().Text = $"Time Left: {timer.ToString("0.00")}";
|
||||
|
||||
if (itemScored)
|
||||
{
|
||||
multiplierText.GetComponent<TextRenderable>().Text = $"X {currMultiplierCombo}";
|
||||
//multiplierText.GetComponent<TextRenderable>().Text = $"X {currMultiplierCombo}";
|
||||
//multiplierText.GetComponent<Transform>().LocalScale -= fontScalar * Time.DeltaTimeF;
|
||||
currMultiplierDuration += Time.DeltaTimeF;
|
||||
|
||||
|
@ -113,21 +122,34 @@ public class GameManager : Script
|
|||
//multiplierText.GetComponent<Transform>().LocalScale = Vector3.Zero;
|
||||
}
|
||||
|
||||
if ((timer > 0 && totalItemCount <= 0 && !itemShatter) || Input.GetKeyDown(Input.KeyCode.F1))
|
||||
if (!goingToLose && ((timer > 0 && totalItemCount <= 0 && !itemShatter) || Input.GetKeyDown(Input.KeyCode.F1)))
|
||||
{
|
||||
currGameState = GameState.WIN;
|
||||
AudioHandler.stopAllSounds(false);
|
||||
AudioHandler.StopAllSounds(false);
|
||||
AudioHandler.audioClipHandlers["BGMWin"].Play();
|
||||
SceneManager.ChangeScene(winScene);
|
||||
|
||||
goingToWin = true;
|
||||
SceneFadeInOut.Instance.CallFadeIn();
|
||||
}
|
||||
else if(timer < 0 || Input.GetKeyDown(Input.KeyCode.F2))
|
||||
else if(!goingToWin && (timer < 0 || Input.GetKeyDown(Input.KeyCode.F2)))
|
||||
{
|
||||
currGameState = GameState.LOSE;
|
||||
AudioHandler.stopAllSounds(false);
|
||||
AudioHandler.StopAllSounds(false);
|
||||
AudioHandler.audioClipHandlers["BGMLose"].Play();
|
||||
SceneManager.ChangeScene(loseScene);
|
||||
goingToLose = true;
|
||||
SceneFadeInOut.Instance.CallFadeIn();
|
||||
}
|
||||
}
|
||||
|
||||
//Handling transitions
|
||||
if (SceneFadeInOut.Instance.FadeInFinished())
|
||||
{
|
||||
if (goingToWin)
|
||||
{
|
||||
SceneManager.ChangeScene(winScene);
|
||||
}
|
||||
if (goingToLose)
|
||||
{
|
||||
SceneManager.ChangeScene(loseScene);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -143,9 +165,17 @@ public class GameManager : Script
|
|||
totalItemCount -= 1;
|
||||
itemScored = true;
|
||||
currMultiplierDuration = 0;
|
||||
multiplierText.GetComponent<Transform>().LocalScale = new Vector3(multiplierFont, multiplierFont, multiplierFont);
|
||||
//multiplierText.GetComponent<Transform>().LocalScale = new Vector3(multiplierFont, multiplierFont, multiplierFont);
|
||||
|
||||
if (currMultiplierCombo < maxMultiplierCombo)
|
||||
currMultiplierCombo += 1;
|
||||
}
|
||||
|
||||
MultiplierTextFx fx = multiplierText.GetScript<MultiplierTextFx>();
|
||||
if (fx)
|
||||
{
|
||||
fx.ShowMultiplier(currMultiplierCombo, maxMultiplierDuration);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ namespace SHADE_Scripting.UI
|
|||
|
||||
private static float EaseOutSine(float value)
|
||||
{
|
||||
return (float)(1.0f - Math.Sin(value * Math.PI) / 2.0f);
|
||||
return (float)(Math.Sin(value * Math.PI) / 2.0f);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,10 +1,19 @@
|
|||
using System;
|
||||
using System.Reflection.Metadata.Ecma335;
|
||||
using SHADE;
|
||||
using SHADE_Scripting.UI;
|
||||
|
||||
public class ChangeSceneButton : Script
|
||||
{
|
||||
public uint sceneID = 0;
|
||||
|
||||
//Whether the scene changing button has been clicked
|
||||
private bool clickedFlag;
|
||||
|
||||
protected override void awake()
|
||||
{
|
||||
clickedFlag = false;
|
||||
}
|
||||
|
||||
protected override void start()
|
||||
{
|
||||
|
@ -17,8 +26,11 @@ public class ChangeSceneButton : Script
|
|||
if (sceneID != 0)
|
||||
{
|
||||
Audio.PlaySFXOnce2D("event:/UI/success");
|
||||
SceneManager.ChangeScene(sceneID);
|
||||
|
||||
Audio.StopAllSounds();
|
||||
|
||||
SceneFadeInOut.Instance.CallFadeIn();
|
||||
clickedFlag = true;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -30,6 +42,9 @@ public class ChangeSceneButton : Script
|
|||
}
|
||||
protected override void update()
|
||||
{
|
||||
|
||||
if (clickedFlag && sceneID != 0 && SceneFadeInOut.Instance.FadeInFinished())
|
||||
{
|
||||
SceneManager.ChangeScene(sceneID);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ public class EndScene : Script
|
|||
{
|
||||
//Audio.PlaySFXOnce2D("event:/UI/success");
|
||||
//Audio.StopAllSounds();
|
||||
AudioHandler.stopAllSounds(false);
|
||||
AudioHandler.StopAllSounds(false);
|
||||
AudioHandler.audioClipHandlers["SFXUISuccess"].Play();
|
||||
SceneManager.ChangeScene(mainGameScene);
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ public class EndScene : Script
|
|||
{
|
||||
//Audio.PlaySFXOnce2D("event:/UI/success");
|
||||
//Audio.StopAllSounds();
|
||||
AudioHandler.stopAllSounds(false);
|
||||
AudioHandler.StopAllSounds(false);
|
||||
AudioHandler.audioClipHandlers["SFXUISuccess"].Play();
|
||||
SceneManager.ChangeScene(mainMainScene);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,76 @@
|
|||
using SHADE;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SHADE_Scripting.UI
|
||||
{
|
||||
public class MultiplierTextFx : Script
|
||||
{
|
||||
[NonSerialized]
|
||||
private TweenThread sizeThread;
|
||||
private TweenThread alphaThread;
|
||||
|
||||
|
||||
public float maxSize = 1.0f;
|
||||
public float minSize = 0.3f;
|
||||
public float minAlpha = 0.3f;
|
||||
|
||||
|
||||
private bool showMultiplier = false;
|
||||
|
||||
[NonSerialized]
|
||||
private Vector3 defaultScale;
|
||||
|
||||
protected override void start()
|
||||
{
|
||||
sizeThread = TweenManager.CreateTweenThread(0.0f, maxSize, minSize, EASING_METHOD.EASE_IN_SINE);
|
||||
alphaThread = TweenManager.CreateTweenThread(0.0f, 1.0f, minAlpha, EASING_METHOD.EASE_OUT_SINE);
|
||||
Transform transform = GetComponent<Transform>();
|
||||
if (transform != null)
|
||||
{
|
||||
defaultScale = transform.LocalScale;
|
||||
transform.LocalScale = Vector3.Zero;
|
||||
}
|
||||
|
||||
|
||||
showMultiplier = false;
|
||||
|
||||
}
|
||||
|
||||
protected override void update()
|
||||
{
|
||||
Transform transform = GetComponent<Transform>();
|
||||
if (transform != null && showMultiplier == true)
|
||||
{
|
||||
if(sizeThread.IsCompleted())
|
||||
{
|
||||
transform.LocalScale = Vector3.Zero;
|
||||
showMultiplier = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
transform.LocalScale = defaultScale * sizeThread.GetValue();
|
||||
GetComponentInChildren<Renderable>().Material.SetProperty<float>("data.alpha",alphaThread.GetValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void ShowMultiplier(int multiplier, float duration)
|
||||
{
|
||||
GetComponent<TextRenderable>().Text = $"X {multiplier}";
|
||||
sizeThread.duration = duration;
|
||||
alphaThread.duration = duration;
|
||||
|
||||
sizeThread.Reset();
|
||||
alphaThread.Reset();
|
||||
showMultiplier = true;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
Name: SC_MultiplierTextFx
|
||||
ID: 158917210
|
||||
Type: 9
|
|
@ -39,7 +39,7 @@ public class PauseMenu : Script
|
|||
if (GameManager.Instance.GamePause)
|
||||
{
|
||||
GameManager.Instance.GamePause = false;
|
||||
AudioHandler.pauseAllSounds(false);
|
||||
AudioHandler.PauseAllSounds(false);
|
||||
if (gamePauseText)
|
||||
gamePauseText.GetComponent<TextRenderable>().Enabled = false;
|
||||
if (canvas)
|
||||
|
@ -89,7 +89,7 @@ public class PauseMenu : Script
|
|||
if (Input.GetKeyDown(Input.KeyCode.Escape) && !GameManager.Instance.GamePause)
|
||||
{
|
||||
GameManager.Instance.GamePause = true;
|
||||
AudioHandler.pauseAllSounds(true);
|
||||
AudioHandler.PauseAllSounds(true);
|
||||
if (gamePauseText)
|
||||
gamePauseText.GetComponent<TextRenderable>().Enabled = true;
|
||||
if (canvas)
|
||||
|
|
|
@ -0,0 +1,132 @@
|
|||
using SHADE;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SHADE_Scripting.UI
|
||||
{
|
||||
public class SceneFadeInOut : Script
|
||||
{
|
||||
//[Tooltip("If true, the panel fadeUI fades in (increasing alpha). If false, no fading. Mutually exclusive with fadeIn")]
|
||||
private bool fadeIn;
|
||||
|
||||
//[Tooltip("If true, the panel fadeUI fades out (decreasing alpha). If false, no fading. Mutually exclusive with fadeIn")]
|
||||
private bool fadeOut;
|
||||
|
||||
[Tooltip("The initial alpha value of the UI that is faded. Between 0 and 1 inclusive.")]
|
||||
public float alphaValue;
|
||||
|
||||
[SerializeField]
|
||||
private float fadeInTime;
|
||||
|
||||
[SerializeField]
|
||||
private float fadeOutTime;
|
||||
|
||||
private Renderable fadeR;
|
||||
|
||||
public static SceneFadeInOut Instance { get; private set; }
|
||||
|
||||
protected override void awake()
|
||||
{
|
||||
if (Instance != null && Instance != this)
|
||||
RemoveScript<SceneFadeInOut>();
|
||||
else
|
||||
Instance = this;
|
||||
|
||||
fadeR = GameObject.GetComponent<Renderable>();
|
||||
fadeR.Material.SetProperty<float>("data.alpha", alphaValue);
|
||||
GameObject.Parent.SetActive(false);
|
||||
//alphaValue = fadeR.Material.GetProperty<float>("data.alpha");
|
||||
}
|
||||
|
||||
protected override void start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected override void update()
|
||||
{
|
||||
if (fadeR != null)
|
||||
{
|
||||
if (fadeIn) //fading in
|
||||
{
|
||||
fadeOut = false;
|
||||
if (fadeInTime == 0.0f)
|
||||
{
|
||||
alphaValue = 1.0f;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
alphaValue += (1.0f / fadeInTime) * Time.DeltaTimeF;
|
||||
}
|
||||
if (alphaValue >= 1.0f)
|
||||
{
|
||||
alphaValue = 1.0f;
|
||||
GameObject.Parent.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
if (fadeOut) //fading out
|
||||
{
|
||||
fadeIn = false;
|
||||
if (fadeOutTime == 0.0f)
|
||||
{
|
||||
alphaValue = 0.0f;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
alphaValue -= (1.0f / fadeOutTime) * Time.DeltaTimeF;
|
||||
}
|
||||
if (alphaValue <= 0.0f)
|
||||
{
|
||||
alphaValue = 0.0f;
|
||||
GameObject.Parent.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
fadeR.Material.SetProperty<float>("data.alpha", alphaValue);
|
||||
}
|
||||
}
|
||||
|
||||
protected override void onDestroy()
|
||||
{
|
||||
if (Instance == this)
|
||||
Instance = null;
|
||||
}
|
||||
|
||||
public void CallFadeIn()
|
||||
{
|
||||
fadeIn = true;
|
||||
fadeOut = false;
|
||||
GameObject.Parent.SetActive(true);
|
||||
}
|
||||
|
||||
public void CallFadeOut()
|
||||
{
|
||||
fadeOut = true;
|
||||
fadeIn = false;
|
||||
GameObject.Parent.SetActive(true);
|
||||
}
|
||||
|
||||
public void CallFadeStop()
|
||||
{
|
||||
fadeOut = false;
|
||||
fadeIn = false;
|
||||
GameObject.Parent.SetActive(false);
|
||||
}
|
||||
|
||||
public bool FadeOutFinished()
|
||||
{
|
||||
return (alphaValue <= 0.0f);
|
||||
}
|
||||
|
||||
public bool FadeInFinished()
|
||||
{
|
||||
return (alphaValue >= 1.0f);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
Name: SC_SceneFadeInOut
|
||||
ID: 153328192
|
||||
Type: 9
|
|
@ -16,8 +16,6 @@ namespace SHADE_Scripting.UI
|
|||
private float value = 0.0f;
|
||||
public float startValue = 0.0f;
|
||||
public float endValue = 1.0f;
|
||||
|
||||
|
||||
public TweenThread(float duration, float startValue, float endValue, EASING_METHOD method)
|
||||
{
|
||||
this.duration = duration;
|
||||
|
@ -25,7 +23,6 @@ namespace SHADE_Scripting.UI
|
|||
this.startValue = startValue;
|
||||
this.endValue = endValue;
|
||||
}
|
||||
|
||||
public void Update(float deltaTime)
|
||||
{
|
||||
if (timer >= duration)
|
||||
|
@ -37,12 +34,10 @@ namespace SHADE_Scripting.UI
|
|||
|
||||
value = EasingHelper.EaseHelp(timer/duration, method) * (endValue - startValue) + startValue ;
|
||||
}
|
||||
|
||||
public bool IsCompleted()
|
||||
{
|
||||
return timer >= duration;
|
||||
}
|
||||
|
||||
public void Reset()
|
||||
{
|
||||
timer = 0.0f;
|
||||
|
@ -61,15 +56,69 @@ namespace SHADE_Scripting.UI
|
|||
startValue = endValue;
|
||||
endValue = temp;
|
||||
}
|
||||
|
||||
|
||||
public float GetValue()
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
public class TweenThreadVec3
|
||||
{
|
||||
private float timer = 0.0f;
|
||||
public float duration = 1.0f;
|
||||
public EASING_METHOD method;
|
||||
private Vector3 value = Vector3.Zero;
|
||||
public Vector3 startValue = Vector3.Zero;
|
||||
public Vector3 endValue = Vector3.Zero;
|
||||
public TweenThreadVec3(float duration, Vector3 startValue, Vector3 endValue, EASING_METHOD method)
|
||||
{
|
||||
this.duration = duration;
|
||||
this.method = method;
|
||||
this.startValue = startValue;
|
||||
this.endValue = endValue;
|
||||
}
|
||||
public void Update(float deltaTime)
|
||||
{
|
||||
if (timer >= duration)
|
||||
return;
|
||||
|
||||
timer += deltaTime;
|
||||
if (timer >= duration)
|
||||
timer = duration;
|
||||
|
||||
value = (endValue - startValue) * EasingHelper.EaseHelp(timer / duration, method) + startValue;
|
||||
}
|
||||
public bool IsCompleted()
|
||||
{
|
||||
return timer >= duration;
|
||||
}
|
||||
public void Reset()
|
||||
{
|
||||
timer = 0.0f;
|
||||
value = startValue;
|
||||
}
|
||||
public void Reset(Vector3 startValue, Vector3 endValue)
|
||||
{
|
||||
Reset();
|
||||
this.startValue = startValue;
|
||||
this.endValue = endValue;
|
||||
}
|
||||
public void ResetInvert()
|
||||
{
|
||||
Reset();
|
||||
Vector3 temp = startValue;
|
||||
startValue = endValue;
|
||||
endValue = temp;
|
||||
}
|
||||
public Vector3 GetValue()
|
||||
{
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class TweenManager : Script
|
||||
{
|
||||
public static TweenManager Instance { get; private set; }
|
||||
|
@ -77,6 +126,9 @@ namespace SHADE_Scripting.UI
|
|||
[NonSerialized]
|
||||
private List<TweenThread> threadList;
|
||||
|
||||
[NonSerialized]
|
||||
private List<TweenThreadVec3> threadVec3List;
|
||||
|
||||
protected override void awake()
|
||||
{
|
||||
if (Instance != null && Instance != this)
|
||||
|
@ -85,6 +137,7 @@ namespace SHADE_Scripting.UI
|
|||
Instance = this;
|
||||
|
||||
threadList = new List<TweenThread>();
|
||||
threadVec3List = new List<TweenThreadVec3>();
|
||||
|
||||
}
|
||||
|
||||
|
@ -101,6 +154,11 @@ namespace SHADE_Scripting.UI
|
|||
{
|
||||
thread.Update(Time.DeltaTimeF);
|
||||
}
|
||||
|
||||
foreach (TweenThreadVec3 thread in threadVec3List)
|
||||
{
|
||||
thread.Update(Time.DeltaTimeF);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -116,5 +174,20 @@ namespace SHADE_Scripting.UI
|
|||
return thread;
|
||||
}
|
||||
|
||||
public static TweenThreadVec3 CreateTweenThreadVec3(float duration, Vector3 startValue, Vector3 endValue, EASING_METHOD method)
|
||||
{
|
||||
if (Instance == null)
|
||||
return null;
|
||||
|
||||
|
||||
TweenThreadVec3 thread = new TweenThreadVec3(duration, startValue, endValue, method);
|
||||
Instance.threadVec3List.Add(thread);
|
||||
thread.Reset();
|
||||
return thread;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,117 @@
|
|||
#version 450
|
||||
|
||||
layout(local_size_x = 128) in;
|
||||
|
||||
struct EmitterParameters
|
||||
{
|
||||
vec4 angularMin;
|
||||
vec4 angularMax;
|
||||
vec4 lifeAndSizeRange; // min life, max life, min size, max size
|
||||
}
|
||||
|
||||
struct ParticleData
|
||||
{
|
||||
vec4 position;
|
||||
vec4 rotation;
|
||||
vec4 velocity;
|
||||
vec4 acceleration;
|
||||
vec4 scaleAndDecay;
|
||||
float life;
|
||||
uint textureIndex;
|
||||
}
|
||||
|
||||
struct GenericData
|
||||
{
|
||||
//! Delta time
|
||||
float dt;
|
||||
|
||||
//! Elapsed time of the application
|
||||
float elapsedTime;
|
||||
|
||||
//! Viewport width of the scene (excluding imgui, that means smaller than window)
|
||||
uint viewportWidth;
|
||||
|
||||
//! Ditto but for height
|
||||
uint viewportHeight;
|
||||
};
|
||||
|
||||
layout (set = 0, binding = 0) uniform GenericDataBuffer
|
||||
{
|
||||
GenericData data;
|
||||
} genericDataBuffer;
|
||||
|
||||
layout (std430, set = 2, binding = 0) readonly buffer EmitterBuffer
|
||||
{
|
||||
EmitterParameters data;
|
||||
} emitterParams;
|
||||
|
||||
layout (std430, set = 2, binding = 1) coherent restrict buffer ParticlesInputBuffer
|
||||
{
|
||||
ParticleData data[];
|
||||
} inputParticles;
|
||||
|
||||
// output buffer not needed
|
||||
// layout (std430, set = 2, binding = 2) coherent restrict buffer ParticlesOutputBuffer
|
||||
// {
|
||||
// ParticleData data[];
|
||||
// } outputParticles;
|
||||
|
||||
layout (std430, set = 2, binding = 3) coherent restrict buffer ParticlesFreelistBuffer
|
||||
{
|
||||
int freeCount;
|
||||
int freeIndices[];
|
||||
|
||||
} freelist;
|
||||
|
||||
|
||||
// push constants
|
||||
layout(std140, push_constant) uniform EmitterPushConstant
|
||||
{
|
||||
vec4 emitterPosition;
|
||||
uint emissionCount;
|
||||
|
||||
} emitterPushConstant;
|
||||
|
||||
uint pcg_hash(uint seed)
|
||||
{
|
||||
uint state = seed * 747796405u + 2891336453u;
|
||||
uint word = ((state >> ((state >> 28u) + 4u)) ^ state) * 277803737u;
|
||||
return (word >> 22u) ^ word;
|
||||
}
|
||||
|
||||
// Used to advance the PCG state.
|
||||
uint rand_pcg(inout uint rng_state)
|
||||
{
|
||||
uint state = rng_state;
|
||||
rng_state = rng_state * 747796405u + 2891336453u;
|
||||
uint word = ((state >> ((state >> 28u) + 4u)) ^ state) * 277803737u;
|
||||
return (word >> 22u) ^ word;
|
||||
}
|
||||
|
||||
// Advances the prng state and returns the corresponding random float.
|
||||
float rand(inout uint state)
|
||||
{
|
||||
uint x = rand_pcg(state);
|
||||
state = x;
|
||||
return float(x)*uintBitsToFloat(0x2f800004u);
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
uint emitterInvocationIndex = gl_GlobalInvocationID.x;
|
||||
|
||||
if (emitterInvocationIndex >= emitterPushConstant.emissionCount)
|
||||
return;
|
||||
|
||||
int freelistIndex = atomicAdd (freelist.freeCount, -1) - 1;
|
||||
if (freelistIndex < 0)
|
||||
atomicAdd (freelist.freeCount, 1);
|
||||
|
||||
ParticleData particle;
|
||||
|
||||
int index = freelist.freeIndices[freelistIndex];
|
||||
particle.position = emitterPosition;
|
||||
particle.life = emitterParams.10.0f;
|
||||
|
||||
particles[index] = particle;
|
||||
}
|
|
@ -0,0 +1,141 @@
|
|||
#version 450
|
||||
|
||||
layout(local_size_x = 128) in;
|
||||
|
||||
struct DrawArraysIndirectArgs
|
||||
{
|
||||
uint count;
|
||||
uint instanceCount;
|
||||
uint first;
|
||||
uint baseInstance;
|
||||
};
|
||||
|
||||
struct ParticleData
|
||||
{
|
||||
vec4 position;
|
||||
vec4 rotation;
|
||||
vec4 velocity;
|
||||
vec4 acceleration;
|
||||
vec4 scaleAndDecay;
|
||||
float life;
|
||||
uint textureIndex;
|
||||
}
|
||||
|
||||
struct GenericData
|
||||
{
|
||||
//! Delta time
|
||||
float dt;
|
||||
|
||||
//! Elapsed time of the application
|
||||
float elapsedTime;
|
||||
|
||||
//! Viewport width of the scene (excluding imgui, that means smaller than window)
|
||||
uint viewportWidth;
|
||||
|
||||
//! Ditto but for height
|
||||
uint viewportHeight;
|
||||
};
|
||||
|
||||
layout(set = 1, binding = 0) uniform CameraData
|
||||
{
|
||||
vec4 position;
|
||||
mat4 vpMat;
|
||||
mat4 viewMat;
|
||||
mat4 projMat;
|
||||
} cameraData;
|
||||
|
||||
|
||||
layout (set = 0, binding = 0) uniform GenericDataBuffer
|
||||
{
|
||||
GenericData data;
|
||||
} genericDataBuffer;
|
||||
|
||||
layout (std430, set = 2, binding = 1) coherent restrict readonly buffer ParticlesInputBuffer
|
||||
{
|
||||
ParticleData data[];
|
||||
} inputParticles;
|
||||
|
||||
// output buffer not needed
|
||||
layout (std430, set = 2, binding = 2) coherent restrict buffer ParticlesOutputBuffer
|
||||
{
|
||||
ParticleData data[];
|
||||
} outputParticles;
|
||||
|
||||
layout (std430, set = 2, binding = 3) coherent restrict buffer ParticlesFreelistBuffer
|
||||
{
|
||||
int freeCount;
|
||||
int freeIndices[];
|
||||
|
||||
} freelist;
|
||||
|
||||
layout (std430, set = 2, binding = 4) coherent restrict buffer IndicesData
|
||||
{
|
||||
uint indices[];
|
||||
};
|
||||
|
||||
layout (std140, set = 2, binding = 5) coherent restrict uniform IndirectDrawArgs
|
||||
{
|
||||
DrawArraysIndirectArgs indirectArgs;
|
||||
};
|
||||
|
||||
// push constants
|
||||
layout(std140, push_constant) uniform EmitterPushConstant
|
||||
{
|
||||
vec4 emitterPosition;
|
||||
uint emissionCount;
|
||||
|
||||
} emitterPushConstant;
|
||||
|
||||
uint pcg_hash(uint seed)
|
||||
{
|
||||
uint state = seed * 747796405u + 2891336453u;
|
||||
uint word = ((state >> ((state >> 28u) + 4u)) ^ state) * 277803737u;
|
||||
return (word >> 22u) ^ word;
|
||||
}
|
||||
|
||||
// Used to advance the PCG state.
|
||||
uint rand_pcg(inout uint rng_state)
|
||||
{
|
||||
uint state = rng_state;
|
||||
rng_state = rng_state * 747796405u + 2891336453u;
|
||||
uint word = ((state >> ((state >> 28u) + 4u)) ^ state) * 277803737u;
|
||||
return (word >> 22u) ^ word;
|
||||
}
|
||||
|
||||
// Advances the prng state and returns the corresponding random float.
|
||||
float rand(inout uint state)
|
||||
{
|
||||
uint x = rand_pcg(state);
|
||||
state = x;
|
||||
return float(x)*uintBitsToFloat(0x2f800004u);
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
uint index = gl_GlobalInvocationID.x;
|
||||
|
||||
ParticleData particle = inputParticles.data[index];
|
||||
|
||||
if (particle.lifetime > 0.0f)
|
||||
{
|
||||
// particle.position += particle.velocity * dt;
|
||||
|
||||
// particle.lifetime -= dt;
|
||||
// particle.size -= 1.2f * dt;
|
||||
// particle.color += 1.0f * dt;
|
||||
|
||||
if (particle.lifetime < 0.0f || particle.size < 0.0f)
|
||||
{
|
||||
particle.lifetime = 0.0f;
|
||||
particle.position.x = 99999.0f;
|
||||
|
||||
outputParticles.data[index] = particle;
|
||||
freelist.freeIndices[atomicAdd(freelist.freeCount, 1)] = int (index);
|
||||
return;
|
||||
}
|
||||
|
||||
outputParticles.data[index] = particle;
|
||||
uint drawIndex = atomicAdd (indirectArgs.instanceCount, 1);
|
||||
indices[drawIndex] = index;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,49 @@
|
|||
#version 450
|
||||
#extension GL_ARB_separate_shader_objects : enable
|
||||
#extension GL_ARB_shading_language_420pack : enable
|
||||
#extension GL_EXT_nonuniform_qualifier : require
|
||||
|
||||
struct MatPropData
|
||||
{
|
||||
vec4 color;
|
||||
int textureIndex;
|
||||
float alpha;
|
||||
};
|
||||
|
||||
layout(location = 0) in struct
|
||||
{
|
||||
vec4 vertPos; // location 0
|
||||
vec2 uv; // location = 1
|
||||
vec4 normal; // location = 2
|
||||
|
||||
} In;
|
||||
|
||||
// material stuff
|
||||
layout(location = 3) flat in struct
|
||||
{
|
||||
int materialIndex;
|
||||
uint eid;
|
||||
uint lightLayerIndex;
|
||||
} In2;
|
||||
|
||||
layout (set = 0, binding = 1) uniform sampler2D textures[]; // for textures (global)
|
||||
layout (std430, set = 2, binding = 0) buffer MaterialProperties // For materials
|
||||
{
|
||||
MatPropData data[];
|
||||
} MatProp;
|
||||
|
||||
layout(location = 0) out vec4 fragColor;
|
||||
layout(location = 1) out uint outEntityID;
|
||||
|
||||
void main()
|
||||
{
|
||||
fragColor = MatProp.data[In2.materialIndex].color;
|
||||
if (fragColor.a < 0.01f)
|
||||
{
|
||||
discard;
|
||||
}
|
||||
fragColor.a = MatProp.data[In2.materialIndex].alpha;
|
||||
|
||||
// fragColor.a = 1.0f;
|
||||
outEntityID = In2.eid;
|
||||
}
|
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
Name: UI_Black_FS
|
||||
ID: 50110174
|
||||
Type: 2
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
Name: Button_Credits_Hover
|
||||
ID: 55990309
|
||||
Type: 3
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
Name: Button_Credits_Idle
|
||||
ID: 64474447
|
||||
Type: 3
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
Name: Button_Credits_Pressed
|
||||
ID: 51792742
|
||||
Type: 3
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
Name: Button_HowToPlay_Hover
|
||||
ID: 61984910
|
||||
Type: 3
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
Name: Button_HowToPlay_Idle
|
||||
ID: 66240282
|
||||
Type: 3
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
Name: Button_HowToPlay_Pressed
|
||||
ID: 58181792
|
||||
Type: 3
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
Name: Button_LevelSelect_Hover
|
||||
ID: 65992947
|
||||
Type: 3
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
Name: Button_LevelSelect_Idle
|
||||
ID: 66852025
|
||||
Type: 3
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
Name: Button_LevelSelect_Pressed
|
||||
ID: 57197441
|
||||
Type: 3
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
Name: Button_MainMenu_Hover
|
||||
ID: 58758882
|
||||
Type: 3
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
Name: Button_MainMenu_Idle
|
||||
ID: 58945566
|
||||
Type: 3
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
Name: Button_MainMenu_Pressed
|
||||
ID: 50335070
|
||||
Type: 3
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
Name: Button_Options_Hover
|
||||
ID: 54697998
|
||||
Type: 3
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
Name: Button_Options_Idle
|
||||
ID: 58867111
|
||||
Type: 3
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
Name: Button_Options_Pressed
|
||||
ID: 62936121
|
||||
Type: 3
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
Name: Button_Quit_Hover
|
||||
ID: 58910810
|
||||
Type: 3
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
Name: Button_Quit_Idle
|
||||
ID: 61602036
|
||||
Type: 3
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
Name: Button_Quit_Pressed
|
||||
ID: 57786063
|
||||
Type: 3
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
Name: Button_Retry_Hover
|
||||
ID: 58347825
|
||||
Type: 3
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
Name: Button_Retry_Idle
|
||||
ID: 64806384
|
||||
Type: 3
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
Name: Button_Retry_Pressed
|
||||
ID: 63234380
|
||||
Type: 3
|
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue