mirror of
https://github.com/ConjureETS/Labo_2_equ_2_a15.git
synced 2026-03-24 01:21:07 +00:00
Added enemy prefab
This commit is contained in:
parent
0b0c015eb0
commit
b3c375d1a2
BIN
Assets/Graphics/enemy.png
Normal file
BIN
Assets/Graphics/enemy.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 113 KiB |
320
Assets/Graphics/enemy.png.meta
Normal file
320
Assets/Graphics/enemy.png.meta
Normal file
@ -0,0 +1,320 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d01a377b61762054b8f1c0e7fe5f88fd
|
||||
timeCreated: 1447093807
|
||||
licenseType: Free
|
||||
TextureImporter:
|
||||
fileIDToRecycleName:
|
||||
21300000: enemy_0
|
||||
21300002: enemy_1
|
||||
21300004: enemy_2
|
||||
21300006: enemy_3
|
||||
21300008: enemy_4
|
||||
21300010: enemy_5
|
||||
21300012: enemy_6
|
||||
21300014: enemy_7
|
||||
21300016: enemy_8
|
||||
21300018: enemy_9
|
||||
21300020: enemy_10
|
||||
21300022: enemy_11
|
||||
21300024: enemy_12
|
||||
21300026: enemy_13
|
||||
21300028: enemy_14
|
||||
21300030: enemy_15
|
||||
21300032: enemy_16
|
||||
21300034: enemy_17
|
||||
21300036: enemy_18
|
||||
21300038: enemy_19
|
||||
21300040: enemy_20
|
||||
21300042: enemy_21
|
||||
21300044: enemy_22
|
||||
21300046: enemy_23
|
||||
serializedVersion: 2
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
linearTexture: 0
|
||||
correctGamma: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: .25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 0
|
||||
cubemapConvolution: 0
|
||||
cubemapConvolutionSteps: 8
|
||||
cubemapConvolutionExponent: 1.5
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
filterMode: -1
|
||||
aniso: 16
|
||||
mipBias: -1
|
||||
wrapMode: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
rGBM: 0
|
||||
compressionQuality: 50
|
||||
allowsAlphaSplitting: 0
|
||||
spriteMode: 2
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: .5, y: .5}
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spritePixelsToUnits: 100
|
||||
alphaIsTransparency: 1
|
||||
textureType: 8
|
||||
buildTargetSettings: []
|
||||
spriteSheet:
|
||||
sprites:
|
||||
- name: enemy_0
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 17
|
||||
y: 84
|
||||
width: 33
|
||||
height: 72
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
- name: enemy_1
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 75
|
||||
y: 83
|
||||
width: 43
|
||||
height: 73
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
- name: enemy_2
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 129
|
||||
y: 83
|
||||
width: 58
|
||||
height: 71
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
- name: enemy_3
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 195
|
||||
y: 83
|
||||
width: 50
|
||||
height: 69
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
- name: enemy_4
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 265
|
||||
y: 84
|
||||
width: 39
|
||||
height: 70
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
- name: enemy_5
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 329
|
||||
y: 84
|
||||
width: 33
|
||||
height: 70
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
- name: enemy_6
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 389
|
||||
y: 83
|
||||
width: 37
|
||||
height: 73
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
- name: enemy_7
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 443
|
||||
y: 83
|
||||
width: 57
|
||||
height: 71
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
- name: enemy_8
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 504
|
||||
y: 83
|
||||
width: 55
|
||||
height: 69
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
- name: enemy_9
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 575
|
||||
y: 84
|
||||
width: 42
|
||||
height: 69
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
- name: enemy_10
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 13
|
||||
y: 9
|
||||
width: 33
|
||||
height: 71
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
- name: enemy_11
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 70
|
||||
y: 9
|
||||
width: 43
|
||||
height: 72
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
- name: enemy_12
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 126
|
||||
y: 8
|
||||
width: 58
|
||||
height: 71
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
- name: enemy_13
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 193
|
||||
y: 9
|
||||
width: 50
|
||||
height: 68
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
- name: enemy_14
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 259
|
||||
y: 9
|
||||
width: 39
|
||||
height: 71
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
- name: enemy_15
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 326
|
||||
y: 9
|
||||
width: 33
|
||||
height: 71
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
- name: enemy_16
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 387
|
||||
y: 8
|
||||
width: 37
|
||||
height: 72
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
- name: enemy_17
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 438
|
||||
y: 8
|
||||
width: 57
|
||||
height: 72
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
- name: enemy_18
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 504
|
||||
y: 9
|
||||
width: 55
|
||||
height: 68
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
- name: enemy_19
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 571
|
||||
y: 9
|
||||
width: 42
|
||||
height: 69
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
- name: enemy_20
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 1
|
||||
width: 24
|
||||
height: 5
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
- name: enemy_21
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 25
|
||||
y: 1
|
||||
width: 30
|
||||
height: 5
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
- name: enemy_22
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 56
|
||||
y: 1
|
||||
width: 9
|
||||
height: 5
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
- name: enemy_23
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 67
|
||||
y: 1
|
||||
width: 8
|
||||
height: 5
|
||||
alignment: 0
|
||||
pivot: {x: 0, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
spritePackingTag:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
13
Assets/Prefabs/Enemy.prefab
Normal file
13
Assets/Prefabs/Enemy.prefab
Normal file
@ -0,0 +1,13 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 0}
|
||||
m_IsPrefabParent: 1
|
||||
8
Assets/Prefabs/Enemy.prefab.meta
Normal file
8
Assets/Prefabs/Enemy.prefab.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 65c71f57a846ec04db773e9c26c6e2e9
|
||||
timeCreated: 1447095815
|
||||
licenseType: Free
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
15
Assets/Scripts/EnemyBehavior.cs
Normal file
15
Assets/Scripts/EnemyBehavior.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class EnemyBehavior : MonoBehaviour {
|
||||
|
||||
// Use this for initialization
|
||||
void Start () {
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update () {
|
||||
|
||||
}
|
||||
}
|
||||
12
Assets/Scripts/EnemyBehavior.cs.meta
Normal file
12
Assets/Scripts/EnemyBehavior.cs.meta
Normal file
@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2995a96f18c88c3499b43774e78a5e9b
|
||||
timeCreated: 1447095777
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -47,7 +47,6 @@ public class PlayerBehavior : MonoBehaviour {
|
||||
anim.SetFloat("Speed", Mathf.Abs(xMove));
|
||||
}
|
||||
|
||||
// ----- Private function(s)
|
||||
private void flip()
|
||||
{
|
||||
facingRight = !facingRight;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user