Corrected 'Ennemy' => 'Enemy'
This commit is contained in:
@@ -16,7 +16,7 @@ GameObject:
|
|||||||
- component: {fileID: 2411932740123829751}
|
- component: {fileID: 2411932740123829751}
|
||||||
m_Layer: 6
|
m_Layer: 6
|
||||||
m_Name: Bringer of Death
|
m_Name: Bringer of Death
|
||||||
m_TagString: Ennemy
|
m_TagString: Enemy
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
@@ -193,7 +193,7 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: f4b3c6920a262c94696eed7deeec570f, type: 3}
|
m_Script: {fileID: 11500000, guid: f4b3c6920a262c94696eed7deeec570f, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
|
Life: 1000
|
||||||
Speed: 1
|
Speed: 1
|
||||||
Damages: 100
|
Damages: 100
|
||||||
Life: 1000
|
|
||||||
_orb: {fileID: 4247841200454641178, guid: 5f995817aeb7ddc4e841633e73c7ff59, type: 3}
|
_orb: {fileID: 4247841200454641178, guid: 5f995817aeb7ddc4e841633e73c7ff59, type: 3}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using UnityEngine;
|
|||||||
RequireComponent(typeof(Animator)),
|
RequireComponent(typeof(Animator)),
|
||||||
RequireComponent(typeof(BoxCollider2D))
|
RequireComponent(typeof(BoxCollider2D))
|
||||||
]
|
]
|
||||||
public class Ennemy : MonoBehaviour
|
public class Enemy : MonoBehaviour
|
||||||
{
|
{
|
||||||
private SpriteRenderer _sr;
|
private SpriteRenderer _sr;
|
||||||
private Transform _player;
|
private Transform _player;
|
||||||
@@ -16,7 +16,7 @@ GameObject:
|
|||||||
- component: {fileID: 5118712594196875348}
|
- component: {fileID: 5118712594196875348}
|
||||||
m_Layer: 6
|
m_Layer: 6
|
||||||
m_Name: Mayor
|
m_Name: Mayor
|
||||||
m_TagString: Ennemy
|
m_TagString: Enemy
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
@@ -121,9 +121,9 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: f4b3c6920a262c94696eed7deeec570f, type: 3}
|
m_Script: {fileID: 11500000, guid: f4b3c6920a262c94696eed7deeec570f, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
|
Life: 100
|
||||||
Speed: 0.2
|
Speed: 0.2
|
||||||
Damages: 10
|
Damages: 10
|
||||||
Life: 100
|
|
||||||
_orb: {fileID: 4247841200454641178, guid: 5f995817aeb7ddc4e841633e73c7ff59, type: 3}
|
_orb: {fileID: 4247841200454641178, guid: 5f995817aeb7ddc4e841633e73c7ff59, type: 3}
|
||||||
--- !u!61 &247299863115505385
|
--- !u!61 &247299863115505385
|
||||||
BoxCollider2D:
|
BoxCollider2D:
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ GameObject:
|
|||||||
- component: {fileID: 5506280093993411831}
|
- component: {fileID: 5506280093993411831}
|
||||||
m_Layer: 6
|
m_Layer: 6
|
||||||
m_Name: Minautor
|
m_Name: Minautor
|
||||||
m_TagString: Ennemy
|
m_TagString: Enemy
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
@@ -193,7 +193,7 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: f4b3c6920a262c94696eed7deeec570f, type: 3}
|
m_Script: {fileID: 11500000, guid: f4b3c6920a262c94696eed7deeec570f, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
|
Life: 500
|
||||||
Speed: 0.7
|
Speed: 0.7
|
||||||
Damages: 75
|
Damages: 75
|
||||||
Life: 500
|
|
||||||
_orb: {fileID: 4247841200454641178, guid: 5f995817aeb7ddc4e841633e73c7ff59, type: 3}
|
_orb: {fileID: 4247841200454641178, guid: 5f995817aeb7ddc4e841633e73c7ff59, type: 3}
|
||||||
|
|||||||
@@ -36,9 +36,9 @@ public class Spawner : MonoBehaviour
|
|||||||
|
|
||||||
private void Update()
|
private void Update()
|
||||||
{
|
{
|
||||||
_spawnedMayors = Array.FindAll(GameObject.FindGameObjectsWithTag("Ennemy"), (value) => value.name.Contains("Mayor")).Length;
|
_spawnedMayors = Array.FindAll(GameObject.FindGameObjectsWithTag("Enemy"), (value) => value.name.Contains("Mayor")).Length;
|
||||||
_spawnedMinautor = Array.FindAll(GameObject.FindGameObjectsWithTag("Ennemy"), (value) => value.name.Contains("Minautor")).Length;
|
_spawnedMinautor = Array.FindAll(GameObject.FindGameObjectsWithTag("Enemy"), (value) => value.name.Contains("Minautor")).Length;
|
||||||
_spawnedBringerOfDeath = Array.FindAll(GameObject.FindGameObjectsWithTag("Ennemy"), (value) => value.name.Contains("Bringer of Death")).Length;
|
_spawnedBringerOfDeath = Array.FindAll(GameObject.FindGameObjectsWithTag("Enemy"), (value) => value.name.Contains("Bringer of Death")).Length;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SpawnWave()
|
private void SpawnWave()
|
||||||
|
|||||||
@@ -23,10 +23,10 @@ public class Arrow : MonoBehaviour
|
|||||||
|
|
||||||
private void OnTriggerEnter2D(Collider2D collision)
|
private void OnTriggerEnter2D(Collider2D collision)
|
||||||
{
|
{
|
||||||
if (collision.CompareTag("Ennemy"))
|
if (collision.CompareTag("Enemy"))
|
||||||
{
|
{
|
||||||
collision.gameObject.GetComponent<Ennemy>().Life -= _manager.ArrowDamages;
|
collision.gameObject.GetComponent<Enemy>().Life -= _manager.ArrowDamages;
|
||||||
collision.gameObject.GetComponent<Ennemy>().AnimateHit();
|
collision.gameObject.GetComponent<Enemy>().AnimateHit();
|
||||||
Destroy(gameObject);
|
Destroy(gameObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ GameObject:
|
|||||||
- component: {fileID: 1122248669417151642}
|
- component: {fileID: 1122248669417151642}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: Arrow
|
m_Name: Arrow
|
||||||
m_TagString: Ennemy
|
m_TagString: Untagged
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
@@ -143,5 +143,4 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 07290ccb39a0b6f4b9054a0ddfbf0010, type: 3}
|
m_Script: {fileID: 11500000, guid: 07290ccb39a0b6f4b9054a0ddfbf0010, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
Damages: 10
|
Target: {fileID: 0}
|
||||||
target: {fileID: 0}
|
|
||||||
|
|||||||
@@ -33,17 +33,17 @@ public class Beam : MonoBehaviour
|
|||||||
|
|
||||||
private void OnTriggerEnter2D(Collider2D collision)
|
private void OnTriggerEnter2D(Collider2D collision)
|
||||||
{
|
{
|
||||||
if (collision.CompareTag("Ennemy"))
|
if (collision.CompareTag("Enemy"))
|
||||||
{
|
{
|
||||||
collision.gameObject.GetComponent<Ennemy>().AnimateHit();
|
collision.gameObject.GetComponent<Enemy>().AnimateHit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnTriggerStay2D(Collider2D collision)
|
private void OnTriggerStay2D(Collider2D collision)
|
||||||
{
|
{
|
||||||
if (collision.CompareTag("Ennemy"))
|
if (collision.CompareTag("Enemy"))
|
||||||
{
|
{
|
||||||
collision.gameObject.GetComponent<Ennemy>().Life -= (int)(_manager.BeamDamages * Time.deltaTime);
|
collision.gameObject.GetComponent<Enemy>().Life -= (int)(_manager.BeamDamages * Time.deltaTime);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -30,10 +30,10 @@ public class Sword : MonoBehaviour
|
|||||||
|
|
||||||
private void OnTriggerEnter2D(Collider2D collision)
|
private void OnTriggerEnter2D(Collider2D collision)
|
||||||
{
|
{
|
||||||
if (collision.CompareTag("Ennemy") && collision.gameObject != null)
|
if (collision.CompareTag("Enemy") && collision.gameObject != null)
|
||||||
{
|
{
|
||||||
collision.GetComponent<Ennemy>().Life -= _manager.SwordsDamages;
|
collision.GetComponent<Enemy>().Life -= _manager.SwordsDamages;
|
||||||
collision.gameObject.GetComponent<Ennemy>().AnimateHit();
|
collision.gameObject.GetComponent<Enemy>().AnimateHit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 72 KiB |
@@ -0,0 +1,127 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e7b29201e6fec474b929b023e47d5081
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 12
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
flipGreenChannel: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 0
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 1
|
||||||
|
wrapV: 1
|
||||||
|
wrapW: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 1
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 8
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Server
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID: 5e97eb03825dee720800000000000000
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
nameFileIdTable: {}
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -12,8 +12,8 @@ PlayerSettings:
|
|||||||
targetDevice: 2
|
targetDevice: 2
|
||||||
useOnDemandResources: 0
|
useOnDemandResources: 0
|
||||||
accelerometerFrequency: 60
|
accelerometerFrequency: 60
|
||||||
companyName: Ynov
|
companyName: "L'\xC9picierie"
|
||||||
productName: Vampire Survivor
|
productName: Vampire Survivor Replica
|
||||||
defaultCursor: {fileID: 0}
|
defaultCursor: {fileID: 0}
|
||||||
cursorHotspot: {x: 0, y: 0}
|
cursorHotspot: {x: 0, y: 0}
|
||||||
m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}
|
m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}
|
||||||
@@ -40,7 +40,7 @@ PlayerSettings:
|
|||||||
width: 1
|
width: 1
|
||||||
height: 1
|
height: 1
|
||||||
m_SplashScreenLogos: []
|
m_SplashScreenLogos: []
|
||||||
m_VirtualRealitySplashScreen: {fileID: 0}
|
m_VirtualRealitySplashScreen: {fileID: 2800000, guid: e7b29201e6fec474b929b023e47d5081, type: 3}
|
||||||
m_HolographicTrackingLossScreen: {fileID: 0}
|
m_HolographicTrackingLossScreen: {fileID: 0}
|
||||||
defaultScreenWidth: 1920
|
defaultScreenWidth: 1920
|
||||||
defaultScreenHeight: 1080
|
defaultScreenHeight: 1080
|
||||||
@@ -156,7 +156,7 @@ PlayerSettings:
|
|||||||
androidSupportedAspectRatio: 1
|
androidSupportedAspectRatio: 1
|
||||||
androidMaxAspectRatio: 2.1
|
androidMaxAspectRatio: 2.1
|
||||||
applicationIdentifier:
|
applicationIdentifier:
|
||||||
Standalone: com.DefaultCompany.2DProject
|
Standalone: fr.LEpicerie.VampireSurvivor
|
||||||
buildNumber:
|
buildNumber:
|
||||||
Standalone: 0
|
Standalone: 0
|
||||||
VisionOS: 0
|
VisionOS: 0
|
||||||
@@ -277,7 +277,14 @@ PlayerSettings:
|
|||||||
AndroidMinifyDebug: 0
|
AndroidMinifyDebug: 0
|
||||||
AndroidValidateAppBundleSize: 1
|
AndroidValidateAppBundleSize: 1
|
||||||
AndroidAppBundleSizeToValidate: 150
|
AndroidAppBundleSizeToValidate: 150
|
||||||
m_BuildTargetIcons: []
|
m_BuildTargetIcons:
|
||||||
|
- m_BuildTarget:
|
||||||
|
m_Icons:
|
||||||
|
- serializedVersion: 2
|
||||||
|
m_Icon: {fileID: 2800000, guid: e7b29201e6fec474b929b023e47d5081, type: 3}
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_Kind: 0
|
||||||
m_BuildTargetPlatformIcons: []
|
m_BuildTargetPlatformIcons: []
|
||||||
m_BuildTargetBatching: []
|
m_BuildTargetBatching: []
|
||||||
m_BuildTargetShaderSettings: []
|
m_BuildTargetShaderSettings: []
|
||||||
@@ -566,8 +573,8 @@ PlayerSettings:
|
|||||||
ps4IncludedModules: []
|
ps4IncludedModules: []
|
||||||
ps4attribVROutputEnabled: 0
|
ps4attribVROutputEnabled: 0
|
||||||
monoEnv:
|
monoEnv:
|
||||||
splashScreenBackgroundSourceLandscape: {fileID: 0}
|
splashScreenBackgroundSourceLandscape: {fileID: 21300000, guid: e7b29201e6fec474b929b023e47d5081, type: 3}
|
||||||
splashScreenBackgroundSourcePortrait: {fileID: 0}
|
splashScreenBackgroundSourcePortrait: {fileID: 21300000, guid: e7b29201e6fec474b929b023e47d5081, type: 3}
|
||||||
blurSplashScreenBackground: 1
|
blurSplashScreenBackground: 1
|
||||||
spritePackerPolicy:
|
spritePackerPolicy:
|
||||||
webGLMemorySize: 32
|
webGLMemorySize: 32
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ TagManager:
|
|||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
tags:
|
tags:
|
||||||
- Orb
|
- Orb
|
||||||
- Ennemy
|
|
||||||
- Beam
|
- Beam
|
||||||
|
- Enemy
|
||||||
layers:
|
layers:
|
||||||
- Default
|
- Default
|
||||||
- TransparentFX
|
- TransparentFX
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ The player win after 15 minutes.
|
|||||||
- 3 differents attacks:
|
- 3 differents attacks:
|
||||||
- A temporary laser beam
|
- A temporary laser beam
|
||||||
- A swords halo around the player
|
- A swords halo around the player
|
||||||
- An arrow that shoot the nearest ennemy
|
- An arrow that shoot the nearest enemy
|
||||||
- Enemies
|
- Enemies
|
||||||
- Differents specs (speed, health, damage)
|
- Differents specs (speed, health, damage)
|
||||||
- Spawn randomly outside the player screen all along the game
|
- Spawn randomly outside the player screen all along the game
|
||||||
|
|||||||
Reference in New Issue
Block a user