New Sprites

This commit is contained in:
2023-06-29 16:37:37 +03:00
parent f3b0eb6234
commit d8f70ffef3
10 changed files with 73 additions and 217 deletions
+6 -5
View File
@@ -561,7 +561,7 @@ TilemapRenderer:
m_SortingLayer: 2 m_SortingLayer: 2
m_SortingOrder: 0 m_SortingOrder: 0
m_ChunkSize: {x: 32, y: 32, z: 32} m_ChunkSize: {x: 32, y: 32, z: 32}
m_ChunkCullingBounds: {x: 0.019230783, y: 0.0153846145, z: 0} m_ChunkCullingBounds: {x: 0.038461566, y: 0.0153846145, z: 0}
m_MaxChunkCount: 16 m_MaxChunkCount: 16
m_MaxFrameAge: 16 m_MaxFrameAge: 16
m_SortOrder: 0 m_SortOrder: 0
@@ -2862,7 +2862,7 @@ GameObject:
- component: {fileID: 411449915} - component: {fileID: 411449915}
- component: {fileID: 411449916} - component: {fileID: 411449916}
m_Layer: 0 m_Layer: 0
m_Name: Sprite m_Name: Visual
m_TagString: Untagged m_TagString: Untagged
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
@@ -2924,7 +2924,7 @@ SpriteRenderer:
m_SortingLayerID: -133646357 m_SortingLayerID: -133646357
m_SortingLayer: 2 m_SortingLayer: 2
m_SortingOrder: 0 m_SortingOrder: 0
m_Sprite: {fileID: 21300000, guid: 0ad2983bed21bb049b065cbc6efc57e8, type: 3} m_Sprite: {fileID: 2032460506, guid: 7c2d6acd22d2d0c40b84d99967afb42a, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1} m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0 m_FlipX: 0
m_FlipY: 0 m_FlipY: 0
@@ -3458,6 +3458,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: b3ead8e41e973dd43b93a8638ea30a36, type: 3} m_Script: {fileID: 11500000, guid: b3ead8e41e973dd43b93a8638ea30a36, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
_openDoor: {fileID: -1152093481, guid: 7c2d6acd22d2d0c40b84d99967afb42a, type: 3}
--- !u!61 &679297303 --- !u!61 &679297303
BoxCollider2D: BoxCollider2D:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -4521,7 +4522,7 @@ TilemapRenderer:
m_SortingLayer: 2 m_SortingLayer: 2
m_SortingOrder: 0 m_SortingOrder: 0
m_ChunkSize: {x: 32, y: 32, z: 32} m_ChunkSize: {x: 32, y: 32, z: 32}
m_ChunkCullingBounds: {x: 0.019230783, y: 0.007692337, z: 0} m_ChunkCullingBounds: {x: 0.0153846145, y: 0.007692337, z: 0}
m_MaxChunkCount: 16 m_MaxChunkCount: 16
m_MaxFrameAge: 16 m_MaxFrameAge: 16
m_SortOrder: 0 m_SortOrder: 0
@@ -5054,7 +5055,7 @@ TilemapRenderer:
m_SortingLayer: 2 m_SortingLayer: 2
m_SortingOrder: 0 m_SortingOrder: 0
m_ChunkSize: {x: 32, y: 32, z: 32} m_ChunkSize: {x: 32, y: 32, z: 32}
m_ChunkCullingBounds: {x: 0.019230783, y: 0.0038461685, z: 0} m_ChunkCullingBounds: {x: 0.019230783, y: 0, z: 0}
m_MaxChunkCount: 16 m_MaxChunkCount: 16
m_MaxFrameAge: 16 m_MaxFrameAge: 16
m_SortOrder: 0 m_SortOrder: 0
@@ -3,10 +3,14 @@ using UnityEngine;
public class Door : MonoBehaviour,IDoor public class Door : MonoBehaviour,IDoor
{ {
[SerializeField]
private Sprite _openDoor;
public void OpenDoor() public void OpenDoor()
{ {
//PlayOpenAnimation //PlayOpenAnimation
GetComponentInChildren<SpriteRenderer>().sprite= _openDoor;
//Disable box collider //Disable box collider
gameObject.GetComponent<BoxCollider2D>().enabled=false; gameObject.GetComponent<BoxCollider2D>().enabled=false;
} }
Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

After

Width:  |  Height:  |  Size: 105 KiB

+62 -40
View File
@@ -110,12 +110,12 @@ TextureImporter:
serializedVersion: 2 serializedVersion: 2
sprites: sprites:
- serializedVersion: 2 - serializedVersion: 2
name: Tileset_0 name: StoneWithDirt
rect: rect:
serializedVersion: 2 serializedVersion: 2
x: 91 x: 7
y: 175 y: 248
width: 135 width: 140
height: 133 height: 133
alignment: 0 alignment: 0
pivot: {x: 0.5, y: 0.5} pivot: {x: 0.5, y: 0.5}
@@ -131,12 +131,12 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
- serializedVersion: 2 - serializedVersion: 2
name: Tileset_1 name: Ladder
rect: rect:
serializedVersion: 2 serializedVersion: 2
x: 230 x: 163
y: 176 y: 248
width: 135 width: 134
height: 132 height: 132
alignment: 0 alignment: 0
pivot: {x: 0.5, y: 0.5} pivot: {x: 0.5, y: 0.5}
@@ -152,13 +152,13 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
- serializedVersion: 2 - serializedVersion: 2
name: Tileset_2 name: Bridge
rect: rect:
serializedVersion: 2 serializedVersion: 2
x: 371 x: 310
y: 177 y: 350
width: 135 width: 135
height: 131 height: 23
alignment: 0 alignment: 0
pivot: {x: 0.5, y: 0.5} pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0} border: {x: 0, y: 0, z: 0, w: 0}
@@ -173,11 +173,11 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
- serializedVersion: 2 - serializedVersion: 2
name: Tileset_3 name: Chest
rect: rect:
serializedVersion: 2 serializedVersion: 2
x: 519 x: 457
y: 176 y: 302
width: 105 width: 105
height: 68 height: 68
alignment: 0 alignment: 0
@@ -194,11 +194,11 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
- serializedVersion: 2 - serializedVersion: 2
name: Tileset_4 name: OpenChest
rect: rect:
serializedVersion: 2 serializedVersion: 2
x: 633 x: 571
y: 176 y: 302
width: 102 width: 102
height: 72 height: 72
alignment: 0 alignment: 0
@@ -215,11 +215,11 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
- serializedVersion: 2 - serializedVersion: 2
name: Tileset_5 name: Stone
rect: rect:
serializedVersion: 2 serializedVersion: 2
x: 91 x: 7
y: 35 y: 108
width: 135 width: 135
height: 134 height: 134
alignment: 0 alignment: 0
@@ -236,13 +236,13 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
- serializedVersion: 2 - serializedVersion: 2
name: Tileset_6 name: Breakable
rect: rect:
serializedVersion: 2 serializedVersion: 2
x: 242 x: 170
y: 32 y: 104
width: 133 width: 135
height: 131 height: 133
alignment: 0 alignment: 0
pivot: {x: 0.5, y: 0.5} pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0} border: {x: 0, y: 0, z: 0, w: 0}
@@ -257,15 +257,15 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
- serializedVersion: 2 - serializedVersion: 2
name: Tileset_7 name: DoorClosed
rect: rect:
serializedVersion: 2 serializedVersion: 2
x: 425 x: 315
y: 113 y: 106
width: 40 width: 133
height: 32 height: 131
alignment: 0 alignment: 0
pivot: {x: 0, y: 0} pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0} border: {x: 0, y: 0, z: 0, w: 0}
outline: [] outline: []
physicsShape: [] physicsShape: []
@@ -277,6 +277,27 @@ TextureImporter:
indices: indices:
edges: [] edges: []
weights: [] weights: []
- serializedVersion: 2
name: DoorOpen
rect:
serializedVersion: 2
x: 462
y: 106
width: 133
height: 131
alignment: 0
pivot: {x: 0.5, y: 0.5}
border: {x: 0, y: 0, z: 0, w: 0}
outline: []
physicsShape: []
tessellationDetail: 0
bones: []
spriteID: f84bf45c4e72f0e469f1871ee52dab15
internalID: -1152093481
vertices: []
indices:
edges: []
weights: []
outline: [] outline: []
physicsShape: [] physicsShape: []
bones: [] bones: []
@@ -288,14 +309,15 @@ TextureImporter:
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
nameFileIdTable: nameFileIdTable:
Tileset_0: 1045964120 Breakable: -1109035998
Tileset_1: -974747892 Bridge: 606517438
Tileset_2: 606517438 Chest: -277072053
Tileset_3: -277072053 DoorClosed: 2032460506
Tileset_4: 362627935 DoorOpen: -1152093481
Tileset_5: 221868806 Ladder: -974747892
Tileset_6: -1109035998 OpenChest: 362627935
Tileset_7: 2032460506 Stone: 221868806
StoneWithDirt: 1045964120
mipmapLimitGroupName: mipmapLimitGroupName:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
userData: userData:
Binary file not shown.

Before

Width:  |  Height:  |  Size: 526 B

After

Width:  |  Height:  |  Size: 1.5 KiB

-36
View File
@@ -1,36 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 13312, guid: 0000000000000000e000000000000000, type: 0}
m_Name: wooden-ladder
m_EditorClassIdentifier:
m_Sprite: {fileID: 21300000, guid: 89ef4f64706367d498e9e80cd9d2819b, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Transform:
e00: 1
e01: 0
e02: 0
e03: 0
e10: 0
e11: 1
e12: 0
e13: 0
e20: 0
e21: 0
e22: 1
e23: 0
e30: 0
e31: 0
e32: 0
e33: 1
m_InstancedGameObject: {fileID: 0}
m_Flags: 1
m_ColliderType: 1
-8
View File
@@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 54907339171673047ba183db663902df
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

Before

Width:  |  Height:  |  Size: 330 KiB

-127
View File
@@ -1,127 +0,0 @@
fileFormatVersion: 2
guid: 89ef4f64706367d498e9e80cd9d2819b
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: 1
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: 1000
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: 512
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: