A 2D Versus Shmup made in Unity
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Test Background and Generic Enemies

james7132 c6749380 520211a7

+73 -4
Assets/Materials/testBackground.png

This is a binary file and will not be displayed.

+47
Assets/Materials/testBackground.png.meta
··· 1 + fileFormatVersion: 2 2 + guid: a68d8cf4f36b60941955a58dbf52e8d2 3 + TextureImporter: 4 + fileIDToRecycleName: {} 5 + serializedVersion: 2 6 + mipmaps: 7 + mipMapMode: 0 8 + enableMipMap: 1 9 + linearTexture: 0 10 + correctGamma: 0 11 + fadeOut: 0 12 + borderMipMap: 0 13 + mipMapFadeDistanceStart: 1 14 + mipMapFadeDistanceEnd: 3 15 + bumpmap: 16 + convertToNormalMap: 0 17 + externalNormalMap: 0 18 + heightScale: .25 19 + normalMapFilter: 0 20 + isReadable: 0 21 + grayScaleToAlpha: 0 22 + generateCubemap: 0 23 + seamlessCubemap: 0 24 + textureFormat: -1 25 + maxTextureSize: 1024 26 + textureSettings: 27 + filterMode: -1 28 + aniso: -1 29 + mipBias: -1 30 + wrapMode: -1 31 + nPOTScale: 0 32 + lightmap: 0 33 + compressionQuality: 50 34 + spriteMode: 1 35 + spriteExtrude: 1 36 + spriteMeshType: 1 37 + alignment: 0 38 + spritePivot: {x: .5, y: .5} 39 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} 40 + spritePixelsToUnits: 100 41 + alphaIsTransparency: 1 42 + textureType: 8 43 + buildTargetSettings: [] 44 + spriteSheet: 45 + sprites: [] 46 + spritePackingTag: 47 + userData:
+5
Assets/Prefabs/Enemies/Bottom Left.meta
··· 1 + fileFormatVersion: 2 2 + guid: a9f8503a718af3044ad74727033a9a6d 3 + folderAsset: yes 4 + DefaultImporter: 5 + userData:
+5
Assets/Prefabs/Enemies/Bottom Right.meta
··· 1 + fileFormatVersion: 2 2 + guid: 005d06b2b1852dd4e8d883d393e14c92 3 + folderAsset: yes 4 + DefaultImporter: 5 + userData:
+5
Assets/Prefabs/Enemies/Top Left.meta
··· 1 + fileFormatVersion: 2 2 + guid: 6d92133c77ccd934486c4fb659123e1a 3 + folderAsset: yes 4 + DefaultImporter: 5 + userData:
+5
Assets/Prefabs/Enemies/Top Right.meta
··· 1 + fileFormatVersion: 2 2 + guid: 69a44587a0380cb47a1ce0f2b28f52b0 3 + folderAsset: yes 4 + DefaultImporter: 5 + userData:
+5 -4
Assets/Scripts/Enemy.cs
··· 5 5 [RequireComponent(typeof(Rigidbody2D))] 6 6 [RequireComponent(typeof(Collider2D))] 7 7 [RequireComponent(typeof(FieldMovementPattern))] 8 - [RequireComponent(typeof(AttackPattern))] 9 8 public class Enemy : CachedObject { 10 9 11 10 [SerializeField] ··· 21 20 void Start() { 22 21 health = maxHealth; 23 22 EnemyManager.RegisterEnemy (this); 24 - attacks = GetComponent<AttackPattern> (); 25 23 fmp = GetComponent<FieldMovementPattern> (); 26 - attacks.Initialize (fmp.field); 27 - attacks.Fire (); 24 + attacks = GetComponent<AttackPattern> (); 25 + if (attacks != null) { 26 + attacks.Initialize (fmp.field); 27 + attacks.Fire (); 28 + } 28 29 } 29 30 30 31 void OnTriggerEnter2D(Collider2D other) {
+1
Assets/Scripts/EnemyBasicAttack.cs
··· 7 7 public float velocity; 8 8 public float angV; 9 9 private float currentDelay; 10 + [SerializeField] 10 11 private float generalRange; 11 12 12 13 public ProjectilePrefab basicPrefab;