8 Commits

Author SHA1 Message Date
Garrett Kaiser
65001c0ecb Rocket deals damage 2026-01-29 15:30:38 -08:00
Garrett Kaiser
2ae2697845 Better Rocket 2026-01-22 13:55:57 -08:00
Garrett Kaiser
3c743071c0 Rocket Go NEOM 2026-01-20 15:34:36 -08:00
Garrett Kaiser
ef830fd4ac Boss Hurts PLayer 2026-01-15 14:54:58 -08:00
Garrett Kaiser
3d0dbd029a WEEEE 2026-01-13 15:34:35 -08:00
Garrett Kaiser
6a89355a5e Boss Jump and Lunge 2026-01-09 14:45:35 -08:00
Garrett Kaiser
6929a4cdb2 Boss Jump Above you 2026-01-07 15:24:56 -08:00
Garrett Kaiser
e53a53e48f we 2026-01-05 14:05:58 -08:00
28 changed files with 877 additions and 11 deletions

View File

@@ -20,8 +20,7 @@ Material:
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: -1 m_CustomRenderQueue: -1
stringTagMap: {} stringTagMap: {}
disabledShaderPasses: disabledShaderPasses: []
- MOTIONVECTORS
m_LockedProperties: m_LockedProperties:
m_SavedProperties: m_SavedProperties:
serializedVersion: 3 serializedVersion: 3

View File

@@ -20,8 +20,7 @@ Material:
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: -1 m_CustomRenderQueue: -1
stringTagMap: {} stringTagMap: {}
disabledShaderPasses: disabledShaderPasses: []
- MOTIONVECTORS
m_LockedProperties: m_LockedProperties:
m_SavedProperties: m_SavedProperties:
serializedVersion: 3 serializedVersion: 3

BIN
Assets/New Terrain 1.asset Normal file

Binary file not shown.

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: bb90d637fa5a642da99b630af5e39341
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 15600000
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/New Terrain 2.asset Normal file

Binary file not shown.

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 6007277cfe490427ea53da88a2d31543
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 15600000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,248 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &6281744304644670800
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 320933365499213468}
- component: {fileID: 3592753358299808266}
- component: {fileID: 4766475707642360040}
- component: {fileID: 3004434195874442965}
m_Layer: 0
m_Name: Cube
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &320933365499213468
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6281744304644670800}
serializedVersion: 2
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0.347}
m_LocalScale: {x: 0.5, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7162905310341900034}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &3592753358299808266
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6281744304644670800}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!23 &4766475707642360040
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6281744304644670800}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RayTracingAccelStructBuildFlagsOverride: 0
m_RayTracingAccelStructBuildFlags: 1
m_SmallMeshCulling: 1
m_ForceMeshLod: -1
m_MeshLodSelectionBias: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_GlobalIlluminationMeshLod: 0
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!65 &3004434195874442965
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6281744304644670800}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 1
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 1, y: 1, z: 1}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &8931432904472574268
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7162905310341900034}
- component: {fileID: 4267357293232814043}
- component: {fileID: 1542960080867434396}
- component: {fileID: 4388427338992522625}
- component: {fileID: 3414398117399416944}
m_Layer: 0
m_Name: Rocket
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &7162905310341900034
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8931432904472574268}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 584.0582, y: 3.21429, z: 197.778}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 320933365499213468}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &4267357293232814043
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8931432904472574268}
m_Mesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0}
--- !u!23 &1542960080867434396
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8931432904472574268}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RayTracingAccelStructBuildFlagsOverride: 0
m_RayTracingAccelStructBuildFlags: 1
m_SmallMeshCulling: 1
m_ForceMeshLod: -1
m_MeshLodSelectionBias: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_GlobalIlluminationMeshLod: 0
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!136 &4388427338992522625
CapsuleCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8931432904472574268}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 1
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 2
m_Radius: 0.5
m_Height: 2
m_Direction: 1
m_Center: {x: 0, y: 0, z: 0}
--- !u!114 &3414398117399416944
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8931432904472574268}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fc567df950c9c44c2a3ada34152072e4, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Rocket
player: {fileID: 0}
TargetPosition: {x: 0, y: 0, z: 0}
playerDistance: 0
direction: {x: 0, y: 0, z: 0}
targetRotation: {x: 0, y: 0, z: 0, w: 0}
rotationSpeed: 30
isStuck: 0
despawnTimer: 10

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 943ff1d96bb9e4320be1b0be5cf63a1b
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -33,7 +33,8 @@ Transform:
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0.4, y: 0.5, z: 0.4} m_LocalScale: {x: 0.4, y: 0.5, z: 0.4}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children:
- {fileID: 9031458065949887395}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 45, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 45, y: 0, z: 0}
--- !u!33 &5688607449888095492 --- !u!33 &5688607449888095492
@@ -51,7 +52,7 @@ MeshRenderer:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6611039685471789196} m_GameObject: {fileID: 6611039685471789196}
m_Enabled: 1 m_Enabled: 0
m_CastShadows: 1 m_CastShadows: 1
m_ReceiveShadows: 1 m_ReceiveShadows: 1
m_DynamicOccludee: 1 m_DynamicOccludee: 1
@@ -112,7 +113,7 @@ CapsuleCollider:
m_Enabled: 1 m_Enabled: 1
serializedVersion: 2 serializedVersion: 2
m_Radius: 0.5 m_Radius: 0.5
m_Height: 2 m_Height: 4
m_Direction: 1 m_Direction: 1
m_Center: {x: 0, y: 0, z: 0} m_Center: {x: 0, y: 0, z: 0}
--- !u!114 &7066644236778025839 --- !u!114 &7066644236778025839
@@ -130,6 +131,7 @@ MonoBehaviour:
rb: {fileID: 6393509116105302420} rb: {fileID: 6393509116105302420}
player: {fileID: 0} player: {fileID: 0}
TargetPosition: {x: 0, y: 0, z: 0} TargetPosition: {x: 0, y: 0, z: 0}
playerDistance: 0
currentRotation: {x: 0, y: 0, z: 0} currentRotation: {x: 0, y: 0, z: 0}
targetRotation: {x: 0, y: 0, z: 0, w: 0} targetRotation: {x: 0, y: 0, z: 0, w: 0}
isStuck: 0 isStuck: 0
@@ -161,3 +163,81 @@ Rigidbody:
m_Interpolate: 0 m_Interpolate: 0
m_Constraints: 0 m_Constraints: 0
m_CollisionDetection: 1 m_CollisionDetection: 1
--- !u!1001 &9195834916317290860
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 2838261725573212642}
m_Modifications:
- target: {fileID: 200414994334902991, guid: aab294e47e7d04c89bbe94d901f8e108, type: 3}
propertyPath: m_LocalScale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 200414994334902991, guid: aab294e47e7d04c89bbe94d901f8e108, type: 3}
propertyPath: m_LocalScale.y
value: 0.88888884
objectReference: {fileID: 0}
- target: {fileID: 200414994334902991, guid: aab294e47e7d04c89bbe94d901f8e108, type: 3}
propertyPath: m_LocalScale.z
value: 0.88888884
objectReference: {fileID: 0}
- target: {fileID: 200414994334902991, guid: aab294e47e7d04c89bbe94d901f8e108, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 200414994334902991, guid: aab294e47e7d04c89bbe94d901f8e108, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 200414994334902991, guid: aab294e47e7d04c89bbe94d901f8e108, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 200414994334902991, guid: aab294e47e7d04c89bbe94d901f8e108, type: 3}
propertyPath: m_LocalRotation.w
value: 0
objectReference: {fileID: 0}
- target: {fileID: 200414994334902991, guid: aab294e47e7d04c89bbe94d901f8e108, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 200414994334902991, guid: aab294e47e7d04c89bbe94d901f8e108, type: 3}
propertyPath: m_LocalRotation.y
value: 0.7071068
objectReference: {fileID: 0}
- target: {fileID: 200414994334902991, guid: aab294e47e7d04c89bbe94d901f8e108, type: 3}
propertyPath: m_LocalRotation.z
value: -0.7071068
objectReference: {fileID: 0}
- target: {fileID: 200414994334902991, guid: aab294e47e7d04c89bbe94d901f8e108, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 90
objectReference: {fileID: 0}
- target: {fileID: 200414994334902991, guid: aab294e47e7d04c89bbe94d901f8e108, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 180
objectReference: {fileID: 0}
- target: {fileID: 200414994334902991, guid: aab294e47e7d04c89bbe94d901f8e108, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 200414994334902991, guid: aab294e47e7d04c89bbe94d901f8e108, type: 3}
propertyPath: m_ConstrainProportionsScale
value: 1
objectReference: {fileID: 0}
- target: {fileID: 685625544054550645, guid: aab294e47e7d04c89bbe94d901f8e108, type: 3}
propertyPath: m_Name
value: gun(2)
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: aab294e47e7d04c89bbe94d901f8e108, type: 3}
--- !u!4 &9031458065949887395 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 200414994334902991, guid: aab294e47e7d04c89bbe94d901f8e108, type: 3}
m_PrefabInstance: {fileID: 9195834916317290860}
m_PrefabAsset: {fileID: 0}

View File

@@ -0,0 +1,59 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &379073252485696804
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: 9cfcfcb1b0db4456bb0c5dbea19e3a70, type: 3}
propertyPath: m_LocalPosition.x
value: 527.1048
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 9cfcfcb1b0db4456bb0c5dbea19e3a70, type: 3}
propertyPath: m_LocalPosition.y
value: 25.502022
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 9cfcfcb1b0db4456bb0c5dbea19e3a70, type: 3}
propertyPath: m_LocalPosition.z
value: 216.44846
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 9cfcfcb1b0db4456bb0c5dbea19e3a70, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 9cfcfcb1b0db4456bb0c5dbea19e3a70, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 9cfcfcb1b0db4456bb0c5dbea19e3a70, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 9cfcfcb1b0db4456bb0c5dbea19e3a70, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 9cfcfcb1b0db4456bb0c5dbea19e3a70, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 9cfcfcb1b0db4456bb0c5dbea19e3a70, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 9cfcfcb1b0db4456bb0c5dbea19e3a70, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 9cfcfcb1b0db4456bb0c5dbea19e3a70, type: 3}
propertyPath: m_Name
value: gun(2)
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 9cfcfcb1b0db4456bb0c5dbea19e3a70, type: 3}

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: aab294e47e7d04c89bbe94d901f8e108
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

BIN
Assets/Scenes/Scene1-Boss.unity LFS Normal file

Binary file not shown.

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 4e0c2c5470ba3477ca0849aae9f0b6e7
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -41,8 +41,11 @@ public class GunThrown : MonoBehaviour
void Update() void Update()
{ {
//transform.position = Vector3.MoveTowards(transform.position, TargetPosition, 10 * Time.deltaTime); //transform.position = Vector3.MoveTowards(transform.position, TargetPosition, 10 * Time.deltaTime);
targetRotation = Quaternion.Euler (-20f, currentRotation.y, currentRotation.z); if (Time.timeScale == 1)
transform.rotation = Quaternion.RotateTowards(transform.rotation, targetRotation , -1); {
targetRotation = Quaternion.Euler(-20f, currentRotation.y, currentRotation.z);
transform.rotation = Quaternion.RotateTowards(transform.rotation, targetRotation, -0.8f);
}
if (transform.position == TargetPosition) if (transform.position == TargetPosition)
{ {

View File

@@ -0,0 +1,29 @@
using UnityEngine;
public class JumpHitbox : MonoBehaviour
{
public PlayerMovement playerMovement;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public void OnTriggerEnter(Collider other)
{
if (other.CompareTag("Player"))
{
Debug.Log("Hit Player");
playerMovement.HP -= 1;
}
else{
Debug.Log("Failed");
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: ba495adcc9de84e148094bc4f9073dfa

View File

@@ -0,0 +1,29 @@
using UnityEngine;
public class LungeHitbox : MonoBehaviour
{
public PlayerMovement playerMovement;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public void OnTriggerEnter(Collider other)
{
if (other.CompareTag("Player"))
{
Debug.Log("Hit Player");
playerMovement.HP -= 1.5f;
}
else{
Debug.Log("Failed");
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 982fdb439fe8344d68124ca1628747ae

View File

@@ -0,0 +1,16 @@
using UnityEngine;
public class MechBoss : MonoBehaviour
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 7f1d4c5acc0624759954b8d3abdb2f6d

56
Assets/Scripts/Rocket.cs Normal file
View File

@@ -0,0 +1,56 @@
using UnityEngine;
public class Rocket : MonoBehaviour
{
public PlayerMovement playerMovement;
public GameObject player;
public Vector3 TargetPosition;
public float playerDistance;
public Vector3 direction;
public Quaternion targetRotation;
public float rotationSpeed = 30;
public bool isStuck;
public float despawnTimer = 10;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
player = GameObject.Find("Player");
playerMovement = FindObjectOfType<PlayerMovement>();
TargetPosition = player.transform.position;
}
// Update is called once per frame
void Update()
{
if (playerDistance >= 25)
{
rotationSpeed = 60;
}
else{
rotationSpeed = 30;
}
direction = (player.transform.position - transform.position).normalized;
targetRotation = Quaternion.LookRotation(direction);
transform.rotation = Quaternion.RotateTowards(transform.rotation, targetRotation, 30 * Time.deltaTime);
playerDistance = Vector3.Distance(transform.position, player.transform.position);
transform.Translate(Vector3.forward * Time.deltaTime * (playerDistance/1.5f+8));
}
public void OnTriggerEnter(Collider other)
{
if (other.CompareTag("Player"))
{
Debug.Log("Hit Player");
playerMovement.HP -= 2f;
}
else if (other.CompareTag("Boss")){
Debug.Log("Shooting");
}
else if (other.CompareTag("Ground")){
Destroy(this.gameObject);
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: fc567df950c9c44c2a3ada34152072e4

View File

@@ -0,0 +1,184 @@
using UnityEngine;
public class SteampunkBoss : MonoBehaviour
{
public PlayerMovement playerMovement;
public GameObject Player;
public int randomNumber = 0;
public float stallTimer = 0;
public bool setTimer = false;
public Vector3 TargetPosition;
public bool setposition = false;
public GameObject JumpHitbox;
public GameObject LungeHitbox;
public float lungeBackup;
public GameObject Rocket;
public bool rocketShot = false;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
if (stallTimer <= 0)
{
transform.LookAt(Player.transform);
randomNumber = Random.Range(1, 6);
setTimer = false;
}
if (randomNumber == 1)
{
JumpAttack();
}
else if (randomNumber == 2)
{
RocketAttack();
}
else if (randomNumber == 3)
{
LungeAttack();
}
else if (randomNumber == 4)
{
SlashAttack();
}
else if (randomNumber == 5)
{
Block();
}
}
void JumpAttack()
{
if (!setTimer)
{
stallTimer = 1;
setTimer = true;
}
if (!setposition)
{
TargetPosition = Player.transform.position;
setposition = true;
}
transform.position = Vector3.MoveTowards(transform.position, new Vector3(TargetPosition.x, 20, TargetPosition.z), 20 * Time.deltaTime);
if ((transform.position.x == TargetPosition.x) && (transform.position.z == TargetPosition.z))
{
transform.position = Vector3.MoveTowards(transform.position, TargetPosition, 80 * Time.deltaTime);
JumpHitbox.SetActive(true);
}
if (transform.position == TargetPosition)
{
JumpHitbox.SetActive(false);
stallTimer -= Time.deltaTime;
}
if (stallTimer <= 0)
{
setposition = false;
}
}
void RocketAttack()
{
if (!setTimer)
{
stallTimer = 3;
setTimer = true;
}
if (!setposition)
{
TargetPosition = Player.transform.position;
setposition = true;
}
if (stallTimer >= 2.6 && randomNumber == 2)
{
transform.position = Vector3.MoveTowards(transform.position, TargetPosition, -30 * Time.deltaTime);
}
else if (!rocketShot)
{
Instantiate(Rocket, transform.position, transform.rotation);
rocketShot = true;
}
stallTimer -= Time.deltaTime;
if (stallTimer <= 0)
{
setposition = false;
rocketShot = false;
}
}
void LungeAttack()
{
if (!setTimer)
{
stallTimer = 0.5f;
setTimer = true;
}
if (!setposition)
{
TargetPosition = Player.transform.position;
setposition = true;
}
if (lungeBackup > 0)
{
transform.position = Vector3.MoveTowards(transform.position, TargetPosition, -10 * Time.deltaTime);
lungeBackup -= Time.deltaTime;
}
if (lungeBackup <= 0)
{
LungeHitbox.SetActive(true);
transform.position = Vector3.MoveTowards(transform.position, TargetPosition, 30 * Time.deltaTime);
}
if (transform.position == TargetPosition)
{
LungeHitbox.SetActive(false);
stallTimer -= Time.deltaTime;
}
if (stallTimer <= 0)
{
lungeBackup = 1;
setposition = false;
}
}
void SlashAttack()
{
if (!setTimer)
{
stallTimer = 1;
setTimer = true;
}
stallTimer -= Time.deltaTime;
}
void Block()
{
if (!setTimer)
{
stallTimer = 1;
setTimer = true;
}
stallTimer -= Time.deltaTime;
}
public void OnTriggerEnter(Collider other)
{
if (other.CompareTag("Player"))
{
Debug.Log("Hit Player");
playerMovement.HP -= 1;
}
else{
Debug.Log("Failed");
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 3d8198e3ebde5469e8ad7d54300da09f

BIN
Assets/models/gun(2).fbx LFS Normal file

Binary file not shown.

View File

@@ -0,0 +1,110 @@
fileFormatVersion: 2
guid: 9cfcfcb1b0db4456bb0c5dbea19e3a70
ModelImporter:
serializedVersion: 24200
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 2
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 0
motionNodeName:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importPhysicalCameras: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
nodeNameCollisionStrategy: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 0
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
optimizeBones: 1
generateMeshLods: 0
meshLodGenerationFlags: 0
maximumMeshLod: -1
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
strictVertexDataChecks: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
importBlendShapeDeformPercent: 1
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -9,6 +9,7 @@ TagManager:
- Sword - Sword
- WagonPoint - WagonPoint
- Ground - Ground
- Boss
layers: layers:
- Default - Default
- TransparentFX - TransparentFX