├── .vscode ├── extensions.json ├── launch.json └── settings.json ├── Assets ├── Sprites │ ├── Square.png │ └── Square.png.meta ├── Scenes │ ├── Snake.unity.meta │ └── Snake.unity ├── Prefabs.meta ├── Prefabs │ ├── SnakeSegment.prefab.meta │ └── SnakeSegment.prefab ├── Scenes.meta ├── Scripts.meta ├── Sprites.meta └── Scripts │ ├── Food.cs.meta │ ├── Snake.cs.meta │ ├── Food.cs │ └── Snake.cs ├── ProjectSettings ├── ProjectVersion.txt ├── ClusterInputManager.asset ├── PresetManager.asset ├── NetworkManager.asset ├── XRSettings.asset ├── TimeManager.asset ├── EditorBuildSettings.asset ├── VFXManager.asset ├── AudioManager.asset ├── TagManager.asset ├── UnityConnectSettings.asset ├── PackageManagerSettings.asset ├── EditorSettings.asset ├── DynamicsManager.asset ├── NavMeshAreas.asset ├── Physics2DSettings.asset ├── GraphicsSettings.asset ├── QualitySettings.asset ├── InputManager.asset └── ProjectSettings.asset ├── README.md ├── .gitignore └── Packages ├── manifest.json └── packages-lock.json /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": [ 3 | "visualstudiotoolsforunity.vstuc" 4 | ] 5 | } -------------------------------------------------------------------------------- /Assets/Sprites/Square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zigurous/unity-snake-tutorial/HEAD/Assets/Sprites/Square.png -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2019.4.40f1 2 | m_EditorVersionWithRevision: 2019.4.40f1 (ffc62b691db5) 3 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /Assets/Scenes/Snake.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2cda990e2423bbf4892e6590ba056729 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_DefaultPresets: {} 8 | -------------------------------------------------------------------------------- /Assets/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1d53eaf5c604a8240b0828c6cabf3a34 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/SnakeSegment.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a20ea67b69b1572478630ab80ef547fd 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0c1c7ef60d4703f429387c45d3737ff6 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 35d42653255b3bc4bba782708e5f4b94 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Sprites.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a4b30889ced3256428848d9d22a8cf3b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.2.0", 3 | "configurations": [ 4 | { 5 | "name": "Attach to Unity", 6 | "type": "vstuc", 7 | "request": "attach" 8 | } 9 | ] 10 | } -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /Assets/Scripts/Food.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 83fcf82957452fc45895f6c8b0732d37 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Snake.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b875c4e64261bcb479b7e67869e417e8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 1 9 | path: Assets/Scenes/Snake.unity 10 | guid: 2cda990e2423bbf4892e6590ba056729 11 | m_configObjects: {} 12 | -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_StripUpdateShader: {fileID: 0} 10 | m_RenderPipeSettingsPath: 11 | m_FixedTimeStep: 0.016666668 12 | m_MaxDeltaTime: 0.05 13 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Volume: 1 8 | Rolloff Scale: 1 9 | Doppler Factor: 1 10 | Default Speaker Mode: 2 11 | m_SampleRate: 0 12 | m_DSPBufferSize: 1024 13 | m_VirtualVoiceCount: 512 14 | m_RealVoiceCount: 32 15 | m_SpatializerPlugin: 16 | m_AmbisonicDecoderPlugin: 17 | m_DisableAudio: 0 18 | m_VirtualizeEffects: 1 19 | m_RequestedDSPBufferSize: 1024 20 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: 7 | - Food 8 | - Obstacle 9 | - Wall 10 | layers: 11 | - Default 12 | - TransparentFX 13 | - Ignore Raycast 14 | - 15 | - Water 16 | - UI 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | - 41 | - 42 | - 43 | m_SortingLayers: 44 | - name: Default 45 | uniqueID: 0 46 | locked: 0 47 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Snake (2D) 2 | 3 | > Snake is the common name for a video game concept where the player maneuvers a line which grows in length, with the line itself being a primary obstacle. The concept originated in the 1976 arcade game Blockade, and the ease of implementing Snake has led to hundreds of versions (some of which have the word snake or worm in the title) for many platforms. After a variant was preloaded on Nokia mobile phones in 1998, there was a resurgence of interest in the snake concept as it found a larger audience. 4 | 5 | - **Topics**: Grid Movement, Data Structures 6 | - **Version**: Unity 2019.4 (LTS) 7 | - [**Download**](https://github.com/zigurous/unity-snake-tutorial/archive/refs/heads/main.zip) 8 | - [**Watch Video**](https://youtu.be/U8gUnpeaMbQ) 9 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_TestInitMode: 0 13 | CrashReportingSettings: 14 | m_EventUrl: https://perf-events.cloud.unity3d.com 15 | m_Enabled: 0 16 | m_LogBufferSize: 10 17 | m_CaptureEditorExceptions: 1 18 | UnityPurchasingSettings: 19 | m_Enabled: 0 20 | m_TestMode: 0 21 | UnityAnalyticsSettings: 22 | m_Enabled: 0 23 | m_TestMode: 0 24 | m_InitializeOnStartup: 1 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /ProjectSettings/PackageManagerSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &1 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 61 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 13960, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | m_ScopedRegistriesSettingsExpanded: 1 16 | oneTimeWarningShown: 0 17 | m_Registries: 18 | - m_Id: main 19 | m_Name: 20 | m_Url: https://packages.unity.com 21 | m_Scopes: [] 22 | m_IsDefault: 1 23 | m_UserSelectedRegistryName: 24 | m_UserAddingNewScopedRegistry: 0 25 | m_RegistryInfoDraft: 26 | m_ErrorMessage: 27 | m_Original: 28 | m_Id: 29 | m_Name: 30 | m_Url: 31 | m_Scopes: [] 32 | m_IsDefault: 0 33 | m_Modified: 0 34 | m_Name: 35 | m_Url: 36 | m_Scopes: 37 | - 38 | m_SelectedScopeIndex: 0 39 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 9 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 0 10 | m_DefaultBehaviorMode: 1 11 | m_PrefabRegularEnvironment: {fileID: 0} 12 | m_PrefabUIEnvironment: {fileID: 0} 13 | m_SpritePackerMode: 4 14 | m_SpritePackerPaddingPower: 1 15 | m_EtcTextureCompressorBehavior: 1 16 | m_EtcTextureFastCompressor: 1 17 | m_EtcTextureNormalCompressor: 2 18 | m_EtcTextureBestCompressor: 4 19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;asmref 20 | m_ProjectGenerationRootNamespace: 21 | m_CollabEditorSettings: 22 | inProgressEnabled: 1 23 | m_EnableTextureStreamingInEditMode: 1 24 | m_EnableTextureStreamingInPlayMode: 1 25 | m_AsyncShaderCompilation: 1 26 | m_EnterPlayModeOptionsEnabled: 0 27 | m_EnterPlayModeOptions: 3 28 | m_ShowLightmapResolutionOverlay: 1 29 | m_UseLegacyProbeSampleCount: 1 30 | m_AssetPipelineMode: 1 31 | m_CacheServerMode: 0 32 | m_CacheServerEndpoint: 33 | m_CacheServerNamespacePrefix: default 34 | m_CacheServerEnableDownload: 1 35 | m_CacheServerEnableUpload: 1 36 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 11 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_ClothInterCollisionDistance: 0 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 0 23 | m_ReuseCollisionCallbacks: 1 24 | m_ClothInterCollisionSettingsToggle: 0 25 | m_ContactPairsMode: 0 26 | m_BroadphaseType: 0 27 | m_WorldBounds: 28 | m_Center: {x: 0, y: 0, z: 0} 29 | m_Extent: {x: 250, y: 250, z: 250} 30 | m_WorldSubdivisions: 8 31 | m_FrictionType: 0 32 | m_EnableEnhancedDeterminism: 0 33 | m_EnableUnifiedHeightmaps: 1 34 | m_DefaultMaxAngluarSpeed: 7 35 | -------------------------------------------------------------------------------- /Assets/Scripts/Food.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | [RequireComponent(typeof(BoxCollider2D))] 4 | public class Food : MonoBehaviour 5 | { 6 | public Collider2D gridArea; 7 | private Snake snake; 8 | 9 | private void Awake() 10 | { 11 | snake = FindObjectOfType(); 12 | } 13 | 14 | private void Start() 15 | { 16 | RandomizePosition(); 17 | } 18 | 19 | public void RandomizePosition() 20 | { 21 | Bounds bounds = gridArea.bounds; 22 | 23 | // Pick a random position inside the bounds 24 | // Round the values to ensure it aligns with the grid 25 | int x = Mathf.RoundToInt(Random.Range(bounds.min.x, bounds.max.x)); 26 | int y = Mathf.RoundToInt(Random.Range(bounds.min.y, bounds.max.y)); 27 | 28 | // Prevent the food from spawning on the snake 29 | while (snake.Occupies(x, y)) 30 | { 31 | x++; 32 | 33 | if (x > bounds.max.x) 34 | { 35 | x = Mathf.RoundToInt(bounds.min.x); 36 | y++; 37 | 38 | if (y > bounds.max.y) { 39 | y = Mathf.RoundToInt(bounds.min.y); 40 | } 41 | } 42 | } 43 | 44 | transform.position = new Vector2(x, y); 45 | } 46 | 47 | private void OnTriggerEnter2D(Collider2D other) 48 | { 49 | RandomizePosition(); 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # This .gitignore file should be placed at the root of your Unity project directory 2 | # 3 | # Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore 4 | # 5 | /[Ll]ibrary/ 6 | /[Tt]emp/ 7 | /[Oo]bj/ 8 | /[Bb]uild/ 9 | /[Bb]uilds/ 10 | /[Ll]ogs/ 11 | /[Uu]ser[Ss]ettings/ 12 | 13 | # MemoryCaptures can get excessive in size. 14 | # They also could contain extremely sensitive data 15 | /[Mm]emoryCaptures/ 16 | 17 | # Asset meta data should only be ignored when the corresponding asset is also ignored 18 | !/[Aa]ssets/**/*.meta 19 | 20 | # Uncomment this line if you wish to ignore the asset store tools plugin 21 | # /[Aa]ssets/AssetStoreTools* 22 | 23 | # Autogenerated Jetbrains Rider plugin 24 | /[Aa]ssets/Plugins/Editor/JetBrains* 25 | 26 | # Visual Studio cache directory 27 | .vs/ 28 | 29 | # Gradle cache directory 30 | .gradle/ 31 | 32 | # Autogenerated VS/MD/Consulo solution and project files 33 | ExportedObj/ 34 | .consulo/ 35 | *.csproj 36 | *.unityproj 37 | *.sln 38 | *.suo 39 | *.tmp 40 | *.user 41 | *.userprefs 42 | *.pidb 43 | *.booproj 44 | *.svd 45 | *.pdb 46 | *.mdb 47 | *.opendb 48 | *.VC.db 49 | 50 | # Unity3D generated meta files 51 | *.pidb.meta 52 | *.pdb.meta 53 | *.mdb.meta 54 | 55 | # Unity3D generated file on crash reports 56 | sysinfo.txt 57 | 58 | # Builds 59 | *.apk 60 | *.aab 61 | *.unitypackage 62 | 63 | # Crashlytics generated file 64 | crashlytics-build.properties 65 | 66 | # Packed Addressables 67 | /[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin* 68 | 69 | # Temporary auto-generated Android Assets 70 | /[Aa]ssets/[Ss]treamingAssets/aa.meta 71 | /[Aa]ssets/[Ss]treamingAssets/aa/* 72 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.exclude": { 3 | "**/.DS_Store": true, 4 | "**/.git": true, 5 | "**/.vs": true, 6 | "**/.gitmodules": true, 7 | "**/.vsconfig": true, 8 | "**/*.booproj": true, 9 | "**/*.pidb": true, 10 | "**/*.suo": true, 11 | "**/*.user": true, 12 | "**/*.userprefs": true, 13 | "**/*.unityproj": true, 14 | "**/*.dll": true, 15 | "**/*.exe": true, 16 | "**/*.pdf": true, 17 | "**/*.mid": true, 18 | "**/*.midi": true, 19 | "**/*.wav": true, 20 | "**/*.gif": true, 21 | "**/*.ico": true, 22 | "**/*.jpg": true, 23 | "**/*.jpeg": true, 24 | "**/*.png": true, 25 | "**/*.psd": true, 26 | "**/*.tga": true, 27 | "**/*.tif": true, 28 | "**/*.tiff": true, 29 | "**/*.3ds": true, 30 | "**/*.3DS": true, 31 | "**/*.fbx": true, 32 | "**/*.FBX": true, 33 | "**/*.lxo": true, 34 | "**/*.LXO": true, 35 | "**/*.ma": true, 36 | "**/*.MA": true, 37 | "**/*.obj": true, 38 | "**/*.OBJ": true, 39 | "**/*.asset": true, 40 | "**/*.cubemap": true, 41 | "**/*.flare": true, 42 | "**/*.mat": true, 43 | "**/*.meta": true, 44 | "**/*.prefab": true, 45 | "**/*.unity": true, 46 | "build/": true, 47 | "Build/": true, 48 | "Library/": true, 49 | "library/": true, 50 | "obj/": true, 51 | "Obj/": true, 52 | "Logs/": true, 53 | "logs/": true, 54 | "ProjectSettings/": true, 55 | "UserSettings/": true, 56 | "temp/": true, 57 | "Temp/": true 58 | }, 59 | "dotnet.defaultSolution": "Snake.sln" 60 | } -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.2d.animation": "3.2.18", 4 | "com.unity.2d.pixel-perfect": "2.1.0", 5 | "com.unity.2d.psdimporter": "2.1.11", 6 | "com.unity.2d.sprite": "1.0.0", 7 | "com.unity.2d.spriteshape": "3.0.18", 8 | "com.unity.2d.tilemap": "1.0.0", 9 | "com.unity.ide.visualstudio": "2.0.22", 10 | "com.unity.textmeshpro": "2.1.6", 11 | "com.unity.ugui": "1.0.0", 12 | "com.unity.modules.ai": "1.0.0", 13 | "com.unity.modules.androidjni": "1.0.0", 14 | "com.unity.modules.animation": "1.0.0", 15 | "com.unity.modules.assetbundle": "1.0.0", 16 | "com.unity.modules.audio": "1.0.0", 17 | "com.unity.modules.cloth": "1.0.0", 18 | "com.unity.modules.director": "1.0.0", 19 | "com.unity.modules.imageconversion": "1.0.0", 20 | "com.unity.modules.imgui": "1.0.0", 21 | "com.unity.modules.jsonserialize": "1.0.0", 22 | "com.unity.modules.particlesystem": "1.0.0", 23 | "com.unity.modules.physics": "1.0.0", 24 | "com.unity.modules.physics2d": "1.0.0", 25 | "com.unity.modules.screencapture": "1.0.0", 26 | "com.unity.modules.terrain": "1.0.0", 27 | "com.unity.modules.terrainphysics": "1.0.0", 28 | "com.unity.modules.tilemap": "1.0.0", 29 | "com.unity.modules.ui": "1.0.0", 30 | "com.unity.modules.uielements": "1.0.0", 31 | "com.unity.modules.umbra": "1.0.0", 32 | "com.unity.modules.unityanalytics": "1.0.0", 33 | "com.unity.modules.unitywebrequest": "1.0.0", 34 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 35 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 36 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 37 | "com.unity.modules.unitywebrequestwww": "1.0.0", 38 | "com.unity.modules.vehicles": "1.0.0", 39 | "com.unity.modules.video": "1.0.0", 40 | "com.unity.modules.vr": "1.0.0", 41 | "com.unity.modules.wind": "1.0.0", 42 | "com.unity.modules.xr": "1.0.0" 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 4 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_JobOptions: 23 | serializedVersion: 2 24 | useMultithreading: 0 25 | useConsistencySorting: 0 26 | m_InterpolationPosesPerJob: 100 27 | m_NewContactsPerJob: 30 28 | m_CollideContactsPerJob: 100 29 | m_ClearFlagsPerJob: 200 30 | m_ClearBodyForcesPerJob: 200 31 | m_SyncDiscreteFixturesPerJob: 50 32 | m_SyncContinuousFixturesPerJob: 50 33 | m_FindNearestContactsPerJob: 100 34 | m_UpdateTriggerContactsPerJob: 100 35 | m_IslandSolverCostThreshold: 100 36 | m_IslandSolverBodyCostScale: 1 37 | m_IslandSolverContactCostScale: 10 38 | m_IslandSolverJointCostScale: 10 39 | m_IslandSolverBodiesPerJob: 50 40 | m_IslandSolverContactsPerJob: 50 41 | m_AutoSimulation: 1 42 | m_QueriesHitTriggers: 1 43 | m_QueriesStartInColliders: 1 44 | m_CallbacksOnDisable: 1 45 | m_ReuseCollisionCallbacks: 1 46 | m_AutoSyncTransforms: 0 47 | m_AlwaysShowColliders: 0 48 | m_ShowColliderSleep: 1 49 | m_ShowColliderContacts: 0 50 | m_ShowColliderAABB: 0 51 | m_ContactArrowScale: 0.2 52 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 53 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 54 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 55 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 56 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 57 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 13 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0} 37 | m_PreloadedShaders: [] 38 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 39 | type: 0} 40 | m_CustomRenderPipeline: {fileID: 0} 41 | m_TransparencySortMode: 0 42 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 43 | m_DefaultRenderingPath: 1 44 | m_DefaultMobileRenderingPath: 1 45 | m_TierSettings: [] 46 | m_LightmapStripping: 0 47 | m_FogStripping: 0 48 | m_InstancingStripping: 0 49 | m_LightmapKeepPlain: 1 50 | m_LightmapKeepDirCombined: 1 51 | m_LightmapKeepDynamicPlain: 1 52 | m_LightmapKeepDynamicDirCombined: 1 53 | m_LightmapKeepShadowMask: 1 54 | m_LightmapKeepSubtractive: 1 55 | m_FogKeepLinear: 1 56 | m_FogKeepExp: 1 57 | m_FogKeepExp2: 1 58 | m_AlbedoSwatchInfos: [] 59 | m_LightsUseLinearIntensity: 0 60 | m_LightsUseColorTemperature: 0 61 | m_LogWhenShaderIsCompiled: 0 62 | m_AllowEnlightenSupportForUpgradedProject: 1 63 | -------------------------------------------------------------------------------- /Assets/Sprites/Square.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b032c5177ca43c04dafb570388ade875 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 11 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: 0 35 | aniso: 1 36 | mipBias: 0 37 | wrapU: 0 38 | wrapV: 0 39 | wrapW: 0 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 3 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 4 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 0 53 | spriteTessellationDetail: -1 54 | textureType: 8 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | applyGammaDecoding: 0 61 | platformSettings: 62 | - serializedVersion: 3 63 | buildTarget: DefaultTexturePlatform 64 | maxTextureSize: 2048 65 | resizeAlgorithm: 0 66 | textureFormat: 4 67 | textureCompression: 1 68 | compressionQuality: 50 69 | crunchedCompression: 0 70 | allowsAlphaSplitting: 0 71 | overridden: 0 72 | androidETC2FallbackOverride: 0 73 | forceMaximumCompressionQuality_BC6H_BC7: 0 74 | spriteSheet: 75 | serializedVersion: 2 76 | sprites: [] 77 | outline: 78 | - - {x: -2, y: -2} 79 | - {x: -2, y: 2} 80 | - {x: 2, y: 2} 81 | - {x: 2, y: -2} 82 | physicsShape: 83 | - - {x: -2, y: -2} 84 | - {x: -2, y: 2} 85 | - {x: 2, y: 2} 86 | - {x: 2, y: -2} 87 | bones: [] 88 | spriteID: 5e97eb03825dee720800000000000000 89 | internalID: 0 90 | vertices: [] 91 | indices: 92 | edges: [] 93 | weights: [] 94 | secondaryTextures: [] 95 | spritePackingTag: 96 | pSDRemoveMatte: 0 97 | pSDShowRemoveMatteOption: 0 98 | userData: 99 | assetBundleName: 100 | assetBundleVariant: 101 | -------------------------------------------------------------------------------- /Assets/Prefabs/SnakeSegment.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &4726879341727194386 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 4726879341727194397} 12 | - component: {fileID: 4726879341727194398} 13 | - component: {fileID: 4726879341727194399} 14 | - component: {fileID: 4726879341727194384} 15 | m_Layer: 0 16 | m_Name: SnakeSegment 17 | m_TagString: Obstacle 18 | m_Icon: {fileID: 0} 19 | m_NavMeshLayer: 0 20 | m_StaticEditorFlags: 0 21 | m_IsActive: 1 22 | --- !u!4 &4726879341727194397 23 | Transform: 24 | m_ObjectHideFlags: 0 25 | m_CorrespondingSourceObject: {fileID: 0} 26 | m_PrefabInstance: {fileID: 0} 27 | m_PrefabAsset: {fileID: 0} 28 | m_GameObject: {fileID: 4726879341727194386} 29 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 30 | m_LocalPosition: {x: 0, y: 0, z: 0} 31 | m_LocalScale: {x: 0.9, y: 0.9, z: 0.9} 32 | m_Children: [] 33 | m_Father: {fileID: 0} 34 | m_RootOrder: 0 35 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 36 | --- !u!212 &4726879341727194398 37 | SpriteRenderer: 38 | m_ObjectHideFlags: 0 39 | m_CorrespondingSourceObject: {fileID: 0} 40 | m_PrefabInstance: {fileID: 0} 41 | m_PrefabAsset: {fileID: 0} 42 | m_GameObject: {fileID: 4726879341727194386} 43 | m_Enabled: 1 44 | m_CastShadows: 0 45 | m_ReceiveShadows: 0 46 | m_DynamicOccludee: 1 47 | m_MotionVectors: 1 48 | m_LightProbeUsage: 1 49 | m_ReflectionProbeUsage: 1 50 | m_RayTracingMode: 0 51 | m_RenderingLayerMask: 1 52 | m_RendererPriority: 0 53 | m_Materials: 54 | - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} 55 | m_StaticBatchInfo: 56 | firstSubMesh: 0 57 | subMeshCount: 0 58 | m_StaticBatchRoot: {fileID: 0} 59 | m_ProbeAnchor: {fileID: 0} 60 | m_LightProbeVolumeOverride: {fileID: 0} 61 | m_ScaleInLightmap: 1 62 | m_ReceiveGI: 1 63 | m_PreserveUVs: 0 64 | m_IgnoreNormalsForChartDetection: 0 65 | m_ImportantGI: 0 66 | m_StitchLightmapSeams: 1 67 | m_SelectedEditorRenderState: 0 68 | m_MinimumChartSize: 4 69 | m_AutoUVMaxDistance: 0.5 70 | m_AutoUVMaxAngle: 89 71 | m_LightmapParameters: {fileID: 0} 72 | m_SortingLayerID: 0 73 | m_SortingLayer: 0 74 | m_SortingOrder: 0 75 | m_Sprite: {fileID: 21300000, guid: b032c5177ca43c04dafb570388ade875, type: 3} 76 | m_Color: {r: 0, g: 1, b: 0, a: 1} 77 | m_FlipX: 0 78 | m_FlipY: 0 79 | m_DrawMode: 0 80 | m_Size: {x: 1, y: 1} 81 | m_AdaptiveModeThreshold: 0.5 82 | m_SpriteTileMode: 0 83 | m_WasSpriteAssigned: 1 84 | m_MaskInteraction: 0 85 | m_SpriteSortPoint: 0 86 | --- !u!50 &4726879341727194399 87 | Rigidbody2D: 88 | serializedVersion: 4 89 | m_ObjectHideFlags: 0 90 | m_CorrespondingSourceObject: {fileID: 0} 91 | m_PrefabInstance: {fileID: 0} 92 | m_PrefabAsset: {fileID: 0} 93 | m_GameObject: {fileID: 4726879341727194386} 94 | m_BodyType: 1 95 | m_Simulated: 1 96 | m_UseFullKinematicContacts: 0 97 | m_UseAutoMass: 0 98 | m_Mass: 1 99 | m_LinearDrag: 0 100 | m_AngularDrag: 0.05 101 | m_GravityScale: 1 102 | m_Material: {fileID: 0} 103 | m_Interpolate: 0 104 | m_SleepingMode: 1 105 | m_CollisionDetection: 1 106 | m_Constraints: 0 107 | --- !u!61 &4726879341727194384 108 | BoxCollider2D: 109 | m_ObjectHideFlags: 0 110 | m_CorrespondingSourceObject: {fileID: 0} 111 | m_PrefabInstance: {fileID: 0} 112 | m_PrefabAsset: {fileID: 0} 113 | m_GameObject: {fileID: 4726879341727194386} 114 | m_Enabled: 1 115 | m_Density: 1 116 | m_Material: {fileID: 0} 117 | m_IsTrigger: 1 118 | m_UsedByEffector: 0 119 | m_UsedByComposite: 0 120 | m_Offset: {x: 0, y: 0} 121 | m_SpriteTilingProperty: 122 | border: {x: 0, y: 0, z: 0, w: 0} 123 | pivot: {x: 0.5, y: 0.5} 124 | oldSize: {x: 1, y: 1} 125 | newSize: {x: 1, y: 1} 126 | adaptiveTilingThreshold: 0.5 127 | drawMode: 0 128 | adaptiveTiling: 0 129 | m_AutoTiling: 0 130 | serializedVersion: 2 131 | m_Size: {x: 0.75, y: 0.75} 132 | m_EdgeRadius: 0 133 | -------------------------------------------------------------------------------- /Assets/Scripts/Snake.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using UnityEngine; 3 | 4 | [RequireComponent(typeof(BoxCollider2D))] 5 | public class Snake : MonoBehaviour 6 | { 7 | public Transform segmentPrefab; 8 | public Vector2Int direction = Vector2Int.right; 9 | public float speed = 20f; 10 | public float speedMultiplier = 1f; 11 | public int initialSize = 4; 12 | public bool moveThroughWalls = false; 13 | 14 | private readonly List segments = new List(); 15 | private Vector2Int input; 16 | private float nextUpdate; 17 | 18 | private void Start() 19 | { 20 | ResetState(); 21 | } 22 | 23 | private void Update() 24 | { 25 | // Only allow turning up or down while moving in the x-axis 26 | if (direction.x != 0f) 27 | { 28 | if (Input.GetKeyDown(KeyCode.W) || Input.GetKeyDown(KeyCode.UpArrow)) { 29 | input = Vector2Int.up; 30 | } else if (Input.GetKeyDown(KeyCode.S) || Input.GetKeyDown(KeyCode.DownArrow)) { 31 | input = Vector2Int.down; 32 | } 33 | } 34 | // Only allow turning left or right while moving in the y-axis 35 | else if (direction.y != 0f) 36 | { 37 | if (Input.GetKeyDown(KeyCode.D) || Input.GetKeyDown(KeyCode.RightArrow)) { 38 | input = Vector2Int.right; 39 | } else if (Input.GetKeyDown(KeyCode.A) || Input.GetKeyDown(KeyCode.LeftArrow)) { 40 | input = Vector2Int.left; 41 | } 42 | } 43 | } 44 | 45 | private void FixedUpdate() 46 | { 47 | // Wait until the next update before proceeding 48 | if (Time.time < nextUpdate) { 49 | return; 50 | } 51 | 52 | // Set the new direction based on the input 53 | if (input != Vector2Int.zero) { 54 | direction = input; 55 | } 56 | 57 | // Set each segment's position to be the same as the one it follows. We 58 | // must do this in reverse order so the position is set to the previous 59 | // position, otherwise they will all be stacked on top of each other. 60 | for (int i = segments.Count - 1; i > 0; i--) { 61 | segments[i].position = segments[i - 1].position; 62 | } 63 | 64 | // Move the snake in the direction it is facing 65 | // Round the values to ensure it aligns to the grid 66 | int x = Mathf.RoundToInt(transform.position.x) + direction.x; 67 | int y = Mathf.RoundToInt(transform.position.y) + direction.y; 68 | transform.position = new Vector2(x, y); 69 | 70 | // Set the next update time based on the speed 71 | nextUpdate = Time.time + (1f / (speed * speedMultiplier)); 72 | } 73 | 74 | public void Grow() 75 | { 76 | Transform segment = Instantiate(segmentPrefab); 77 | segment.position = segments[segments.Count - 1].position; 78 | segments.Add(segment); 79 | } 80 | 81 | public void ResetState() 82 | { 83 | direction = Vector2Int.right; 84 | transform.position = Vector3.zero; 85 | 86 | // Start at 1 to skip destroying the head 87 | for (int i = 1; i < segments.Count; i++) { 88 | Destroy(segments[i].gameObject); 89 | } 90 | 91 | // Clear the list but add back this as the head 92 | segments.Clear(); 93 | segments.Add(transform); 94 | 95 | // -1 since the head is already in the list 96 | for (int i = 0; i < initialSize - 1; i++) { 97 | Grow(); 98 | } 99 | } 100 | 101 | public bool Occupies(int x, int y) 102 | { 103 | foreach (Transform segment in segments) 104 | { 105 | if (Mathf.RoundToInt(segment.position.x) == x && 106 | Mathf.RoundToInt(segment.position.y) == y) { 107 | return true; 108 | } 109 | } 110 | 111 | return false; 112 | } 113 | 114 | private void OnTriggerEnter2D(Collider2D other) 115 | { 116 | if (other.gameObject.CompareTag("Food")) 117 | { 118 | Grow(); 119 | } 120 | else if (other.gameObject.CompareTag("Obstacle")) 121 | { 122 | ResetState(); 123 | } 124 | else if (other.gameObject.CompareTag("Wall")) 125 | { 126 | if (moveThroughWalls) { 127 | Traverse(other.transform); 128 | } else { 129 | ResetState(); 130 | } 131 | } 132 | } 133 | 134 | private void Traverse(Transform wall) 135 | { 136 | Vector3 position = transform.position; 137 | 138 | if (direction.x != 0f) { 139 | position.x = Mathf.RoundToInt(-wall.position.x + direction.x); 140 | } else if (direction.y != 0f) { 141 | position.y = Mathf.RoundToInt(-wall.position.y + direction.y); 142 | } 143 | 144 | transform.position = position; 145 | } 146 | 147 | } 148 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 3 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Very Low 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | blendWeights: 1 22 | textureQuality: 1 23 | anisotropicTextures: 0 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 0 30 | lodBias: 0.3 31 | maximumLODLevel: 0 32 | particleRaycastBudget: 4 33 | asyncUploadTimeSlice: 2 34 | asyncUploadBufferSize: 16 35 | resolutionScalingFixedDPIFactor: 1 36 | excludedTargetPlatforms: [] 37 | - serializedVersion: 2 38 | name: Low 39 | pixelLightCount: 0 40 | shadows: 0 41 | shadowResolution: 0 42 | shadowProjection: 1 43 | shadowCascades: 1 44 | shadowDistance: 20 45 | shadowNearPlaneOffset: 3 46 | shadowCascade2Split: 0.33333334 47 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 48 | shadowmaskMode: 0 49 | blendWeights: 2 50 | textureQuality: 0 51 | anisotropicTextures: 0 52 | antiAliasing: 0 53 | softParticles: 0 54 | softVegetation: 0 55 | realtimeReflectionProbes: 0 56 | billboardsFaceCameraPosition: 0 57 | vSyncCount: 0 58 | lodBias: 0.4 59 | maximumLODLevel: 0 60 | particleRaycastBudget: 16 61 | asyncUploadTimeSlice: 2 62 | asyncUploadBufferSize: 16 63 | resolutionScalingFixedDPIFactor: 1 64 | excludedTargetPlatforms: [] 65 | - serializedVersion: 2 66 | name: Medium 67 | pixelLightCount: 1 68 | shadows: 0 69 | shadowResolution: 0 70 | shadowProjection: 1 71 | shadowCascades: 1 72 | shadowDistance: 20 73 | shadowNearPlaneOffset: 3 74 | shadowCascade2Split: 0.33333334 75 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 76 | shadowmaskMode: 0 77 | blendWeights: 2 78 | textureQuality: 0 79 | anisotropicTextures: 0 80 | antiAliasing: 0 81 | softParticles: 0 82 | softVegetation: 0 83 | realtimeReflectionProbes: 0 84 | billboardsFaceCameraPosition: 0 85 | vSyncCount: 1 86 | lodBias: 0.7 87 | maximumLODLevel: 0 88 | particleRaycastBudget: 64 89 | asyncUploadTimeSlice: 2 90 | asyncUploadBufferSize: 16 91 | resolutionScalingFixedDPIFactor: 1 92 | excludedTargetPlatforms: [] 93 | - serializedVersion: 2 94 | name: High 95 | pixelLightCount: 2 96 | shadows: 0 97 | shadowResolution: 1 98 | shadowProjection: 1 99 | shadowCascades: 2 100 | shadowDistance: 40 101 | shadowNearPlaneOffset: 3 102 | shadowCascade2Split: 0.33333334 103 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 104 | shadowmaskMode: 1 105 | blendWeights: 2 106 | textureQuality: 0 107 | anisotropicTextures: 0 108 | antiAliasing: 0 109 | softParticles: 0 110 | softVegetation: 1 111 | realtimeReflectionProbes: 0 112 | billboardsFaceCameraPosition: 0 113 | vSyncCount: 1 114 | lodBias: 1 115 | maximumLODLevel: 0 116 | particleRaycastBudget: 256 117 | asyncUploadTimeSlice: 2 118 | asyncUploadBufferSize: 16 119 | resolutionScalingFixedDPIFactor: 1 120 | excludedTargetPlatforms: [] 121 | - serializedVersion: 2 122 | name: Very High 123 | pixelLightCount: 3 124 | shadows: 0 125 | shadowResolution: 2 126 | shadowProjection: 1 127 | shadowCascades: 2 128 | shadowDistance: 70 129 | shadowNearPlaneOffset: 3 130 | shadowCascade2Split: 0.33333334 131 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 132 | shadowmaskMode: 1 133 | blendWeights: 4 134 | textureQuality: 0 135 | anisotropicTextures: 0 136 | antiAliasing: 0 137 | softParticles: 0 138 | softVegetation: 1 139 | realtimeReflectionProbes: 0 140 | billboardsFaceCameraPosition: 0 141 | vSyncCount: 1 142 | lodBias: 1.5 143 | maximumLODLevel: 0 144 | particleRaycastBudget: 1024 145 | asyncUploadTimeSlice: 2 146 | asyncUploadBufferSize: 16 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Ultra 151 | pixelLightCount: 4 152 | shadows: 0 153 | shadowResolution: 0 154 | shadowProjection: 1 155 | shadowCascades: 4 156 | shadowDistance: 150 157 | shadowNearPlaneOffset: 3 158 | shadowCascade2Split: 0.33333334 159 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 160 | shadowmaskMode: 1 161 | blendWeights: 4 162 | textureQuality: 0 163 | anisotropicTextures: 0 164 | antiAliasing: 0 165 | softParticles: 0 166 | softVegetation: 1 167 | realtimeReflectionProbes: 0 168 | billboardsFaceCameraPosition: 0 169 | vSyncCount: 1 170 | lodBias: 2 171 | maximumLODLevel: 0 172 | particleRaycastBudget: 4096 173 | asyncUploadTimeSlice: 2 174 | asyncUploadBufferSize: 16 175 | resolutionScalingFixedDPIFactor: 1 176 | excludedTargetPlatforms: [] 177 | m_PerPlatformDefaultQuality: 178 | Android: 2 179 | Nintendo 3DS: 5 180 | Nintendo Switch: 5 181 | PS4: 5 182 | PSM: 5 183 | PSP2: 2 184 | Stadia: 5 185 | Standalone: 5 186 | Tizen: 2 187 | WebGL: 3 188 | WiiU: 5 189 | Windows Store Apps: 5 190 | XboxOne: 5 191 | iPhone: 2 192 | tvOS: 2 193 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /Packages/packages-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.2d.animation": { 4 | "version": "3.2.18", 5 | "depth": 0, 6 | "source": "registry", 7 | "dependencies": { 8 | "com.unity.2d.common": "2.1.2", 9 | "com.unity.mathematics": "1.1.0", 10 | "com.unity.2d.sprite": "1.0.0", 11 | "com.unity.modules.animation": "1.0.0", 12 | "com.unity.modules.uielements": "1.0.0" 13 | }, 14 | "url": "https://packages.unity.com" 15 | }, 16 | "com.unity.2d.common": { 17 | "version": "2.1.2", 18 | "depth": 1, 19 | "source": "registry", 20 | "dependencies": { 21 | "com.unity.2d.sprite": "1.0.0", 22 | "com.unity.modules.uielements": "1.0.0" 23 | }, 24 | "url": "https://packages.unity.com" 25 | }, 26 | "com.unity.2d.path": { 27 | "version": "2.1.1", 28 | "depth": 1, 29 | "source": "registry", 30 | "dependencies": {}, 31 | "url": "https://packages.unity.com" 32 | }, 33 | "com.unity.2d.pixel-perfect": { 34 | "version": "2.1.0", 35 | "depth": 0, 36 | "source": "registry", 37 | "dependencies": {}, 38 | "url": "https://packages.unity.com" 39 | }, 40 | "com.unity.2d.psdimporter": { 41 | "version": "2.1.11", 42 | "depth": 0, 43 | "source": "registry", 44 | "dependencies": { 45 | "com.unity.2d.common": "2.1.2", 46 | "com.unity.2d.animation": "3.2.17", 47 | "com.unity.2d.sprite": "1.0.0" 48 | }, 49 | "url": "https://packages.unity.com" 50 | }, 51 | "com.unity.2d.sprite": { 52 | "version": "1.0.0", 53 | "depth": 0, 54 | "source": "builtin", 55 | "dependencies": {} 56 | }, 57 | "com.unity.2d.spriteshape": { 58 | "version": "3.0.18", 59 | "depth": 0, 60 | "source": "registry", 61 | "dependencies": { 62 | "com.unity.mathematics": "1.1.0", 63 | "com.unity.2d.common": "2.1.0", 64 | "com.unity.2d.path": "2.1.1" 65 | }, 66 | "url": "https://packages.unity.com" 67 | }, 68 | "com.unity.2d.tilemap": { 69 | "version": "1.0.0", 70 | "depth": 0, 71 | "source": "builtin", 72 | "dependencies": {} 73 | }, 74 | "com.unity.ext.nunit": { 75 | "version": "1.0.6", 76 | "depth": 2, 77 | "source": "registry", 78 | "dependencies": {}, 79 | "url": "https://packages.unity.com" 80 | }, 81 | "com.unity.ide.visualstudio": { 82 | "version": "2.0.22", 83 | "depth": 0, 84 | "source": "registry", 85 | "dependencies": { 86 | "com.unity.test-framework": "1.1.9" 87 | }, 88 | "url": "https://packages.unity.com" 89 | }, 90 | "com.unity.mathematics": { 91 | "version": "1.1.0", 92 | "depth": 1, 93 | "source": "registry", 94 | "dependencies": {}, 95 | "url": "https://packages.unity.com" 96 | }, 97 | "com.unity.test-framework": { 98 | "version": "1.1.31", 99 | "depth": 1, 100 | "source": "registry", 101 | "dependencies": { 102 | "com.unity.ext.nunit": "1.0.6", 103 | "com.unity.modules.imgui": "1.0.0", 104 | "com.unity.modules.jsonserialize": "1.0.0" 105 | }, 106 | "url": "https://packages.unity.com" 107 | }, 108 | "com.unity.textmeshpro": { 109 | "version": "2.1.6", 110 | "depth": 0, 111 | "source": "registry", 112 | "dependencies": { 113 | "com.unity.ugui": "1.0.0" 114 | }, 115 | "url": "https://packages.unity.com" 116 | }, 117 | "com.unity.ugui": { 118 | "version": "1.0.0", 119 | "depth": 0, 120 | "source": "builtin", 121 | "dependencies": { 122 | "com.unity.modules.ui": "1.0.0", 123 | "com.unity.modules.imgui": "1.0.0" 124 | } 125 | }, 126 | "com.unity.modules.ai": { 127 | "version": "1.0.0", 128 | "depth": 0, 129 | "source": "builtin", 130 | "dependencies": {} 131 | }, 132 | "com.unity.modules.androidjni": { 133 | "version": "1.0.0", 134 | "depth": 0, 135 | "source": "builtin", 136 | "dependencies": {} 137 | }, 138 | "com.unity.modules.animation": { 139 | "version": "1.0.0", 140 | "depth": 0, 141 | "source": "builtin", 142 | "dependencies": {} 143 | }, 144 | "com.unity.modules.assetbundle": { 145 | "version": "1.0.0", 146 | "depth": 0, 147 | "source": "builtin", 148 | "dependencies": {} 149 | }, 150 | "com.unity.modules.audio": { 151 | "version": "1.0.0", 152 | "depth": 0, 153 | "source": "builtin", 154 | "dependencies": {} 155 | }, 156 | "com.unity.modules.cloth": { 157 | "version": "1.0.0", 158 | "depth": 0, 159 | "source": "builtin", 160 | "dependencies": { 161 | "com.unity.modules.physics": "1.0.0" 162 | } 163 | }, 164 | "com.unity.modules.director": { 165 | "version": "1.0.0", 166 | "depth": 0, 167 | "source": "builtin", 168 | "dependencies": { 169 | "com.unity.modules.audio": "1.0.0", 170 | "com.unity.modules.animation": "1.0.0" 171 | } 172 | }, 173 | "com.unity.modules.imageconversion": { 174 | "version": "1.0.0", 175 | "depth": 0, 176 | "source": "builtin", 177 | "dependencies": {} 178 | }, 179 | "com.unity.modules.imgui": { 180 | "version": "1.0.0", 181 | "depth": 0, 182 | "source": "builtin", 183 | "dependencies": {} 184 | }, 185 | "com.unity.modules.jsonserialize": { 186 | "version": "1.0.0", 187 | "depth": 0, 188 | "source": "builtin", 189 | "dependencies": {} 190 | }, 191 | "com.unity.modules.particlesystem": { 192 | "version": "1.0.0", 193 | "depth": 0, 194 | "source": "builtin", 195 | "dependencies": {} 196 | }, 197 | "com.unity.modules.physics": { 198 | "version": "1.0.0", 199 | "depth": 0, 200 | "source": "builtin", 201 | "dependencies": {} 202 | }, 203 | "com.unity.modules.physics2d": { 204 | "version": "1.0.0", 205 | "depth": 0, 206 | "source": "builtin", 207 | "dependencies": {} 208 | }, 209 | "com.unity.modules.screencapture": { 210 | "version": "1.0.0", 211 | "depth": 0, 212 | "source": "builtin", 213 | "dependencies": { 214 | "com.unity.modules.imageconversion": "1.0.0" 215 | } 216 | }, 217 | "com.unity.modules.subsystems": { 218 | "version": "1.0.0", 219 | "depth": 1, 220 | "source": "builtin", 221 | "dependencies": { 222 | "com.unity.modules.jsonserialize": "1.0.0" 223 | } 224 | }, 225 | "com.unity.modules.terrain": { 226 | "version": "1.0.0", 227 | "depth": 0, 228 | "source": "builtin", 229 | "dependencies": {} 230 | }, 231 | "com.unity.modules.terrainphysics": { 232 | "version": "1.0.0", 233 | "depth": 0, 234 | "source": "builtin", 235 | "dependencies": { 236 | "com.unity.modules.physics": "1.0.0", 237 | "com.unity.modules.terrain": "1.0.0" 238 | } 239 | }, 240 | "com.unity.modules.tilemap": { 241 | "version": "1.0.0", 242 | "depth": 0, 243 | "source": "builtin", 244 | "dependencies": { 245 | "com.unity.modules.physics2d": "1.0.0" 246 | } 247 | }, 248 | "com.unity.modules.ui": { 249 | "version": "1.0.0", 250 | "depth": 0, 251 | "source": "builtin", 252 | "dependencies": {} 253 | }, 254 | "com.unity.modules.uielements": { 255 | "version": "1.0.0", 256 | "depth": 0, 257 | "source": "builtin", 258 | "dependencies": { 259 | "com.unity.modules.imgui": "1.0.0", 260 | "com.unity.modules.jsonserialize": "1.0.0" 261 | } 262 | }, 263 | "com.unity.modules.umbra": { 264 | "version": "1.0.0", 265 | "depth": 0, 266 | "source": "builtin", 267 | "dependencies": {} 268 | }, 269 | "com.unity.modules.unityanalytics": { 270 | "version": "1.0.0", 271 | "depth": 0, 272 | "source": "builtin", 273 | "dependencies": { 274 | "com.unity.modules.unitywebrequest": "1.0.0", 275 | "com.unity.modules.jsonserialize": "1.0.0" 276 | } 277 | }, 278 | "com.unity.modules.unitywebrequest": { 279 | "version": "1.0.0", 280 | "depth": 0, 281 | "source": "builtin", 282 | "dependencies": {} 283 | }, 284 | "com.unity.modules.unitywebrequestassetbundle": { 285 | "version": "1.0.0", 286 | "depth": 0, 287 | "source": "builtin", 288 | "dependencies": { 289 | "com.unity.modules.assetbundle": "1.0.0", 290 | "com.unity.modules.unitywebrequest": "1.0.0" 291 | } 292 | }, 293 | "com.unity.modules.unitywebrequestaudio": { 294 | "version": "1.0.0", 295 | "depth": 0, 296 | "source": "builtin", 297 | "dependencies": { 298 | "com.unity.modules.unitywebrequest": "1.0.0", 299 | "com.unity.modules.audio": "1.0.0" 300 | } 301 | }, 302 | "com.unity.modules.unitywebrequesttexture": { 303 | "version": "1.0.0", 304 | "depth": 0, 305 | "source": "builtin", 306 | "dependencies": { 307 | "com.unity.modules.unitywebrequest": "1.0.0", 308 | "com.unity.modules.imageconversion": "1.0.0" 309 | } 310 | }, 311 | "com.unity.modules.unitywebrequestwww": { 312 | "version": "1.0.0", 313 | "depth": 0, 314 | "source": "builtin", 315 | "dependencies": { 316 | "com.unity.modules.unitywebrequest": "1.0.0", 317 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 318 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 319 | "com.unity.modules.audio": "1.0.0", 320 | "com.unity.modules.assetbundle": "1.0.0", 321 | "com.unity.modules.imageconversion": "1.0.0" 322 | } 323 | }, 324 | "com.unity.modules.vehicles": { 325 | "version": "1.0.0", 326 | "depth": 0, 327 | "source": "builtin", 328 | "dependencies": { 329 | "com.unity.modules.physics": "1.0.0" 330 | } 331 | }, 332 | "com.unity.modules.video": { 333 | "version": "1.0.0", 334 | "depth": 0, 335 | "source": "builtin", 336 | "dependencies": { 337 | "com.unity.modules.audio": "1.0.0", 338 | "com.unity.modules.ui": "1.0.0", 339 | "com.unity.modules.unitywebrequest": "1.0.0" 340 | } 341 | }, 342 | "com.unity.modules.vr": { 343 | "version": "1.0.0", 344 | "depth": 0, 345 | "source": "builtin", 346 | "dependencies": { 347 | "com.unity.modules.jsonserialize": "1.0.0", 348 | "com.unity.modules.physics": "1.0.0", 349 | "com.unity.modules.xr": "1.0.0" 350 | } 351 | }, 352 | "com.unity.modules.wind": { 353 | "version": "1.0.0", 354 | "depth": 0, 355 | "source": "builtin", 356 | "dependencies": {} 357 | }, 358 | "com.unity.modules.xr": { 359 | "version": "1.0.0", 360 | "depth": 0, 361 | "source": "builtin", 362 | "dependencies": { 363 | "com.unity.modules.physics": "1.0.0", 364 | "com.unity.modules.jsonserialize": "1.0.0", 365 | "com.unity.modules.subsystems": "1.0.0" 366 | } 367 | } 368 | } 369 | } 370 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 20 7 | productGUID: 7a6575cf57b1e864e980b7f5a6e8f603 8 | AndroidProfiler: 0 9 | AndroidFilterTouchesWhenObscured: 0 10 | AndroidEnableSustainedPerformanceMode: 0 11 | defaultScreenOrientation: 4 12 | targetDevice: 2 13 | useOnDemandResources: 0 14 | accelerometerFrequency: 60 15 | companyName: Zigurous 16 | productName: Snake 17 | defaultCursor: {fileID: 0} 18 | cursorHotspot: {x: 0, y: 0} 19 | m_SplashScreenBackgroundColor: {r: 0, g: 0, b: 0, a: 1} 20 | m_ShowUnitySplashScreen: 1 21 | m_ShowUnitySplashLogo: 1 22 | m_SplashScreenOverlayOpacity: 1 23 | m_SplashScreenAnimation: 1 24 | m_SplashScreenLogoStyle: 1 25 | m_SplashScreenDrawMode: 0 26 | m_SplashScreenBackgroundAnimationZoom: 1 27 | m_SplashScreenLogoAnimationZoom: 1 28 | m_SplashScreenBackgroundLandscapeAspect: 1 29 | m_SplashScreenBackgroundPortraitAspect: 1 30 | m_SplashScreenBackgroundLandscapeUvs: 31 | serializedVersion: 2 32 | x: 0 33 | y: 0 34 | width: 1 35 | height: 1 36 | m_SplashScreenBackgroundPortraitUvs: 37 | serializedVersion: 2 38 | x: 0 39 | y: 0 40 | width: 1 41 | height: 1 42 | m_SplashScreenLogos: [] 43 | m_VirtualRealitySplashScreen: {fileID: 0} 44 | m_HolographicTrackingLossScreen: {fileID: 0} 45 | defaultScreenWidth: 1024 46 | defaultScreenHeight: 768 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 0 51 | m_MTRendering: 1 52 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 53 | iosShowActivityIndicatorOnLoading: -1 54 | androidShowActivityIndicatorOnLoading: -1 55 | iosUseCustomAppBackgroundBehavior: 0 56 | iosAllowHTTPDownload: 1 57 | allowedAutorotateToPortrait: 1 58 | allowedAutorotateToPortraitUpsideDown: 1 59 | allowedAutorotateToLandscapeRight: 1 60 | allowedAutorotateToLandscapeLeft: 1 61 | useOSAutorotation: 1 62 | use32BitDisplayBuffer: 1 63 | preserveFramebufferAlpha: 0 64 | disableDepthAndStencilBuffers: 0 65 | androidStartInFullscreen: 1 66 | androidRenderOutsideSafeArea: 1 67 | androidUseSwappy: 0 68 | androidBlitType: 0 69 | defaultIsNativeResolution: 1 70 | macRetinaSupport: 1 71 | runInBackground: 1 72 | captureSingleScreen: 0 73 | muteOtherAudioSources: 0 74 | Prepare IOS For Recording: 0 75 | Force IOS Speakers When Recording: 0 76 | deferSystemGesturesMode: 0 77 | hideHomeButton: 0 78 | submitAnalytics: 1 79 | usePlayerLog: 1 80 | bakeCollisionMeshes: 0 81 | forceSingleInstance: 0 82 | useFlipModelSwapchain: 1 83 | resizableWindow: 0 84 | useMacAppStoreValidation: 0 85 | macAppStoreCategory: public.app-category.games 86 | gpuSkinning: 0 87 | xboxPIXTextureCapture: 0 88 | xboxEnableAvatar: 0 89 | xboxEnableKinect: 0 90 | xboxEnableKinectAutoTracking: 0 91 | xboxEnableFitness: 0 92 | visibleInBackground: 1 93 | allowFullscreenSwitch: 1 94 | fullscreenMode: 1 95 | xboxSpeechDB: 0 96 | xboxEnableHeadOrientation: 0 97 | xboxEnableGuest: 0 98 | xboxEnablePIXSampling: 0 99 | metalFramebufferOnly: 0 100 | xboxOneResolution: 0 101 | xboxOneSResolution: 0 102 | xboxOneXResolution: 3 103 | xboxOneMonoLoggingLevel: 0 104 | xboxOneLoggingLevel: 1 105 | xboxOneDisableEsram: 0 106 | xboxOneEnableTypeOptimization: 0 107 | xboxOnePresentImmediateThreshold: 0 108 | switchQueueCommandMemory: 0 109 | switchQueueControlMemory: 16384 110 | switchQueueComputeMemory: 262144 111 | switchNVNShaderPoolsGranularity: 33554432 112 | switchNVNDefaultPoolsGranularity: 16777216 113 | switchNVNOtherPoolsGranularity: 16777216 114 | switchNVNMaxPublicTextureIDCount: 0 115 | switchNVNMaxPublicSamplerIDCount: 0 116 | stadiaPresentMode: 0 117 | stadiaTargetFramerate: 0 118 | vulkanNumSwapchainBuffers: 3 119 | vulkanEnableSetSRGBWrite: 0 120 | vulkanEnableLateAcquireNextImage: 0 121 | m_SupportedAspectRatios: 122 | 4:3: 1 123 | 5:4: 1 124 | 16:10: 1 125 | 16:9: 1 126 | Others: 1 127 | bundleVersion: 1.0 128 | preloadedAssets: [] 129 | metroInputSource: 0 130 | wsaTransparentSwapchain: 0 131 | m_HolographicPauseOnTrackingLoss: 1 132 | xboxOneDisableKinectGpuReservation: 1 133 | xboxOneEnable7thCore: 1 134 | vrSettings: 135 | cardboard: 136 | depthFormat: 0 137 | enableTransitionView: 0 138 | daydream: 139 | depthFormat: 0 140 | useSustainedPerformanceMode: 0 141 | enableVideoLayer: 0 142 | useProtectedVideoMemory: 0 143 | minimumSupportedHeadTracking: 0 144 | maximumSupportedHeadTracking: 1 145 | hololens: 146 | depthFormat: 1 147 | depthBufferSharingEnabled: 1 148 | lumin: 149 | depthFormat: 0 150 | frameTiming: 2 151 | enableGLCache: 0 152 | glCacheMaxBlobSize: 524288 153 | glCacheMaxFileSize: 8388608 154 | oculus: 155 | sharedDepthBuffer: 1 156 | dashSupport: 1 157 | lowOverheadMode: 0 158 | protectedContext: 0 159 | v2Signing: 1 160 | enable360StereoCapture: 0 161 | isWsaHolographicRemotingEnabled: 0 162 | enableFrameTimingStats: 0 163 | useHDRDisplay: 0 164 | D3DHDRBitDepth: 0 165 | m_ColorGamuts: 00000000 166 | targetPixelDensity: 30 167 | resolutionScalingMode: 0 168 | androidSupportedAspectRatio: 1 169 | androidMaxAspectRatio: 2.1 170 | applicationIdentifier: 171 | Standalone: com.zigurous.snake 172 | buildNumber: {} 173 | AndroidBundleVersionCode: 1 174 | AndroidMinSdkVersion: 19 175 | AndroidTargetSdkVersion: 0 176 | AndroidPreferredInstallLocation: 1 177 | aotOptions: 178 | stripEngineCode: 1 179 | iPhoneStrippingLevel: 0 180 | iPhoneScriptCallOptimization: 0 181 | ForceInternetPermission: 0 182 | ForceSDCardPermission: 0 183 | CreateWallpaper: 0 184 | APKExpansionFiles: 0 185 | keepLoadedShadersAlive: 0 186 | StripUnusedMeshComponents: 1 187 | VertexChannelCompressionMask: 4054 188 | iPhoneSdkVersion: 988 189 | iOSTargetOSVersionString: 10.0 190 | tvOSSdkVersion: 0 191 | tvOSRequireExtendedGameController: 0 192 | tvOSTargetOSVersionString: 10.0 193 | uIPrerenderedIcon: 0 194 | uIRequiresPersistentWiFi: 0 195 | uIRequiresFullScreen: 1 196 | uIStatusBarHidden: 1 197 | uIExitOnSuspend: 0 198 | uIStatusBarStyle: 0 199 | appleTVSplashScreen: {fileID: 0} 200 | appleTVSplashScreen2x: {fileID: 0} 201 | tvOSSmallIconLayers: [] 202 | tvOSSmallIconLayers2x: [] 203 | tvOSLargeIconLayers: [] 204 | tvOSLargeIconLayers2x: [] 205 | tvOSTopShelfImageLayers: [] 206 | tvOSTopShelfImageLayers2x: [] 207 | tvOSTopShelfImageWideLayers: [] 208 | tvOSTopShelfImageWideLayers2x: [] 209 | iOSLaunchScreenType: 0 210 | iOSLaunchScreenPortrait: {fileID: 0} 211 | iOSLaunchScreenLandscape: {fileID: 0} 212 | iOSLaunchScreenBackgroundColor: 213 | serializedVersion: 2 214 | rgba: 0 215 | iOSLaunchScreenFillPct: 100 216 | iOSLaunchScreenSize: 100 217 | iOSLaunchScreenCustomXibPath: 218 | iOSLaunchScreeniPadType: 0 219 | iOSLaunchScreeniPadImage: {fileID: 0} 220 | iOSLaunchScreeniPadBackgroundColor: 221 | serializedVersion: 2 222 | rgba: 0 223 | iOSLaunchScreeniPadFillPct: 100 224 | iOSLaunchScreeniPadSize: 100 225 | iOSLaunchScreeniPadCustomXibPath: 226 | iOSUseLaunchScreenStoryboard: 0 227 | iOSLaunchScreenCustomStoryboardPath: 228 | iOSDeviceRequirements: [] 229 | iOSURLSchemes: [] 230 | iOSBackgroundModes: 0 231 | iOSMetalForceHardShadows: 0 232 | metalEditorSupport: 1 233 | metalAPIValidation: 1 234 | iOSRenderExtraFrameOnPause: 0 235 | iosCopyPluginsCodeInsteadOfSymlink: 0 236 | appleDeveloperTeamID: 237 | iOSManualSigningProvisioningProfileID: 238 | tvOSManualSigningProvisioningProfileID: 239 | iOSManualSigningProvisioningProfileType: 0 240 | tvOSManualSigningProvisioningProfileType: 0 241 | appleEnableAutomaticSigning: 0 242 | iOSRequireARKit: 0 243 | iOSAutomaticallyDetectAndAddCapabilities: 1 244 | appleEnableProMotion: 0 245 | clonedFromGUID: 5f34be1353de5cf4398729fda238591b 246 | templatePackageId: com.unity.template.2d@3.3.2 247 | templateDefaultScene: Assets/Scenes/SampleScene.unity 248 | AndroidTargetArchitectures: 1 249 | AndroidSplashScreenScale: 0 250 | androidSplashScreen: {fileID: 0} 251 | AndroidKeystoreName: 252 | AndroidKeyaliasName: 253 | AndroidBuildApkPerCpuArchitecture: 0 254 | AndroidTVCompatibility: 0 255 | AndroidIsGame: 1 256 | AndroidEnableTango: 0 257 | androidEnableBanner: 1 258 | androidUseLowAccuracyLocation: 0 259 | androidUseCustomKeystore: 0 260 | m_AndroidBanners: 261 | - width: 320 262 | height: 180 263 | banner: {fileID: 0} 264 | androidGamepadSupportLevel: 0 265 | AndroidValidateAppBundleSize: 1 266 | AndroidAppBundleSizeToValidate: 150 267 | m_BuildTargetIcons: [] 268 | m_BuildTargetPlatformIcons: [] 269 | m_BuildTargetBatching: [] 270 | m_BuildTargetGraphicsJobs: 271 | - m_BuildTarget: MacStandaloneSupport 272 | m_GraphicsJobs: 0 273 | - m_BuildTarget: Switch 274 | m_GraphicsJobs: 0 275 | - m_BuildTarget: MetroSupport 276 | m_GraphicsJobs: 0 277 | - m_BuildTarget: AppleTVSupport 278 | m_GraphicsJobs: 0 279 | - m_BuildTarget: BJMSupport 280 | m_GraphicsJobs: 0 281 | - m_BuildTarget: LinuxStandaloneSupport 282 | m_GraphicsJobs: 0 283 | - m_BuildTarget: PS4Player 284 | m_GraphicsJobs: 0 285 | - m_BuildTarget: iOSSupport 286 | m_GraphicsJobs: 0 287 | - m_BuildTarget: WindowsStandaloneSupport 288 | m_GraphicsJobs: 0 289 | - m_BuildTarget: XboxOnePlayer 290 | m_GraphicsJobs: 0 291 | - m_BuildTarget: LuminSupport 292 | m_GraphicsJobs: 0 293 | - m_BuildTarget: AndroidPlayer 294 | m_GraphicsJobs: 0 295 | - m_BuildTarget: WebGLSupport 296 | m_GraphicsJobs: 0 297 | m_BuildTargetGraphicsJobMode: 298 | - m_BuildTarget: PS4Player 299 | m_GraphicsJobMode: 0 300 | - m_BuildTarget: XboxOnePlayer 301 | m_GraphicsJobMode: 0 302 | m_BuildTargetGraphicsAPIs: 303 | - m_BuildTarget: AndroidPlayer 304 | m_APIs: 150000000b000000 305 | m_Automatic: 0 306 | m_BuildTargetVRSettings: [] 307 | openGLRequireES31: 0 308 | openGLRequireES31AEP: 0 309 | openGLRequireES32: 0 310 | m_TemplateCustomTags: {} 311 | mobileMTRendering: 312 | Android: 1 313 | iPhone: 1 314 | tvOS: 1 315 | m_BuildTargetGroupLightmapEncodingQuality: [] 316 | m_BuildTargetGroupLightmapSettings: [] 317 | playModeTestRunnerEnabled: 0 318 | runPlayModeTestAsEditModeTest: 0 319 | actionOnDotNetUnhandledException: 1 320 | enableInternalProfiler: 0 321 | logObjCUncaughtExceptions: 1 322 | enableCrashReportAPI: 0 323 | cameraUsageDescription: 324 | locationUsageDescription: 325 | microphoneUsageDescription: 326 | switchNetLibKey: 327 | switchSocketMemoryPoolSize: 6144 328 | switchSocketAllocatorPoolSize: 128 329 | switchSocketConcurrencyLimit: 14 330 | switchScreenResolutionBehavior: 2 331 | switchUseCPUProfiler: 0 332 | switchApplicationID: 0x01004b9000490000 333 | switchNSODependencies: 334 | switchTitleNames_0: 335 | switchTitleNames_1: 336 | switchTitleNames_2: 337 | switchTitleNames_3: 338 | switchTitleNames_4: 339 | switchTitleNames_5: 340 | switchTitleNames_6: 341 | switchTitleNames_7: 342 | switchTitleNames_8: 343 | switchTitleNames_9: 344 | switchTitleNames_10: 345 | switchTitleNames_11: 346 | switchTitleNames_12: 347 | switchTitleNames_13: 348 | switchTitleNames_14: 349 | switchTitleNames_15: 350 | switchPublisherNames_0: 351 | switchPublisherNames_1: 352 | switchPublisherNames_2: 353 | switchPublisherNames_3: 354 | switchPublisherNames_4: 355 | switchPublisherNames_5: 356 | switchPublisherNames_6: 357 | switchPublisherNames_7: 358 | switchPublisherNames_8: 359 | switchPublisherNames_9: 360 | switchPublisherNames_10: 361 | switchPublisherNames_11: 362 | switchPublisherNames_12: 363 | switchPublisherNames_13: 364 | switchPublisherNames_14: 365 | switchPublisherNames_15: 366 | switchIcons_0: {fileID: 0} 367 | switchIcons_1: {fileID: 0} 368 | switchIcons_2: {fileID: 0} 369 | switchIcons_3: {fileID: 0} 370 | switchIcons_4: {fileID: 0} 371 | switchIcons_5: {fileID: 0} 372 | switchIcons_6: {fileID: 0} 373 | switchIcons_7: {fileID: 0} 374 | switchIcons_8: {fileID: 0} 375 | switchIcons_9: {fileID: 0} 376 | switchIcons_10: {fileID: 0} 377 | switchIcons_11: {fileID: 0} 378 | switchIcons_12: {fileID: 0} 379 | switchIcons_13: {fileID: 0} 380 | switchIcons_14: {fileID: 0} 381 | switchIcons_15: {fileID: 0} 382 | switchSmallIcons_0: {fileID: 0} 383 | switchSmallIcons_1: {fileID: 0} 384 | switchSmallIcons_2: {fileID: 0} 385 | switchSmallIcons_3: {fileID: 0} 386 | switchSmallIcons_4: {fileID: 0} 387 | switchSmallIcons_5: {fileID: 0} 388 | switchSmallIcons_6: {fileID: 0} 389 | switchSmallIcons_7: {fileID: 0} 390 | switchSmallIcons_8: {fileID: 0} 391 | switchSmallIcons_9: {fileID: 0} 392 | switchSmallIcons_10: {fileID: 0} 393 | switchSmallIcons_11: {fileID: 0} 394 | switchSmallIcons_12: {fileID: 0} 395 | switchSmallIcons_13: {fileID: 0} 396 | switchSmallIcons_14: {fileID: 0} 397 | switchSmallIcons_15: {fileID: 0} 398 | switchManualHTML: 399 | switchAccessibleURLs: 400 | switchLegalInformation: 401 | switchMainThreadStackSize: 1048576 402 | switchPresenceGroupId: 403 | switchLogoHandling: 0 404 | switchReleaseVersion: 0 405 | switchDisplayVersion: 1.0.0 406 | switchStartupUserAccount: 0 407 | switchTouchScreenUsage: 0 408 | switchSupportedLanguagesMask: 0 409 | switchLogoType: 0 410 | switchApplicationErrorCodeCategory: 411 | switchUserAccountSaveDataSize: 0 412 | switchUserAccountSaveDataJournalSize: 0 413 | switchApplicationAttribute: 0 414 | switchCardSpecSize: -1 415 | switchCardSpecClock: -1 416 | switchRatingsMask: 0 417 | switchRatingsInt_0: 0 418 | switchRatingsInt_1: 0 419 | switchRatingsInt_2: 0 420 | switchRatingsInt_3: 0 421 | switchRatingsInt_4: 0 422 | switchRatingsInt_5: 0 423 | switchRatingsInt_6: 0 424 | switchRatingsInt_7: 0 425 | switchRatingsInt_8: 0 426 | switchRatingsInt_9: 0 427 | switchRatingsInt_10: 0 428 | switchRatingsInt_11: 0 429 | switchRatingsInt_12: 0 430 | switchLocalCommunicationIds_0: 431 | switchLocalCommunicationIds_1: 432 | switchLocalCommunicationIds_2: 433 | switchLocalCommunicationIds_3: 434 | switchLocalCommunicationIds_4: 435 | switchLocalCommunicationIds_5: 436 | switchLocalCommunicationIds_6: 437 | switchLocalCommunicationIds_7: 438 | switchParentalControl: 0 439 | switchAllowsScreenshot: 1 440 | switchAllowsVideoCapturing: 1 441 | switchAllowsRuntimeAddOnContentInstall: 0 442 | switchDataLossConfirmation: 0 443 | switchUserAccountLockEnabled: 0 444 | switchSystemResourceMemory: 16777216 445 | switchSupportedNpadStyles: 22 446 | switchNativeFsCacheSize: 32 447 | switchIsHoldTypeHorizontal: 0 448 | switchSupportedNpadCount: 8 449 | switchSocketConfigEnabled: 0 450 | switchTcpInitialSendBufferSize: 32 451 | switchTcpInitialReceiveBufferSize: 64 452 | switchTcpAutoSendBufferSizeMax: 256 453 | switchTcpAutoReceiveBufferSizeMax: 256 454 | switchUdpSendBufferSize: 9 455 | switchUdpReceiveBufferSize: 42 456 | switchSocketBufferEfficiency: 4 457 | switchSocketInitializeEnabled: 1 458 | switchNetworkInterfaceManagerInitializeEnabled: 1 459 | switchPlayerConnectionEnabled: 1 460 | switchUseMicroSleepForYield: 1 461 | switchMicroSleepForYieldTime: 25 462 | ps4NPAgeRating: 12 463 | ps4NPTitleSecret: 464 | ps4NPTrophyPackPath: 465 | ps4ParentalLevel: 11 466 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 467 | ps4Category: 0 468 | ps4MasterVersion: 01.00 469 | ps4AppVersion: 01.00 470 | ps4AppType: 0 471 | ps4ParamSfxPath: 472 | ps4VideoOutPixelFormat: 0 473 | ps4VideoOutInitialWidth: 1920 474 | ps4VideoOutBaseModeInitialWidth: 1920 475 | ps4VideoOutReprojectionRate: 60 476 | ps4PronunciationXMLPath: 477 | ps4PronunciationSIGPath: 478 | ps4BackgroundImagePath: 479 | ps4StartupImagePath: 480 | ps4StartupImagesFolder: 481 | ps4IconImagesFolder: 482 | ps4SaveDataImagePath: 483 | ps4SdkOverride: 484 | ps4BGMPath: 485 | ps4ShareFilePath: 486 | ps4ShareOverlayImagePath: 487 | ps4PrivacyGuardImagePath: 488 | ps4ExtraSceSysFile: 489 | ps4NPtitleDatPath: 490 | ps4RemotePlayKeyAssignment: -1 491 | ps4RemotePlayKeyMappingDir: 492 | ps4PlayTogetherPlayerCount: 0 493 | ps4EnterButtonAssignment: 1 494 | ps4ApplicationParam1: 0 495 | ps4ApplicationParam2: 0 496 | ps4ApplicationParam3: 0 497 | ps4ApplicationParam4: 0 498 | ps4DownloadDataSize: 0 499 | ps4GarlicHeapSize: 2048 500 | ps4ProGarlicHeapSize: 2560 501 | playerPrefsMaxSize: 32768 502 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 503 | ps4pnSessions: 1 504 | ps4pnPresence: 1 505 | ps4pnFriends: 1 506 | ps4pnGameCustomData: 1 507 | playerPrefsSupport: 0 508 | enableApplicationExit: 0 509 | resetTempFolder: 1 510 | restrictedAudioUsageRights: 0 511 | ps4UseResolutionFallback: 0 512 | ps4ReprojectionSupport: 0 513 | ps4UseAudio3dBackend: 0 514 | ps4UseLowGarlicFragmentationMode: 1 515 | ps4SocialScreenEnabled: 0 516 | ps4ScriptOptimizationLevel: 0 517 | ps4Audio3dVirtualSpeakerCount: 14 518 | ps4attribCpuUsage: 0 519 | ps4PatchPkgPath: 520 | ps4PatchLatestPkgPath: 521 | ps4PatchChangeinfoPath: 522 | ps4PatchDayOne: 0 523 | ps4attribUserManagement: 0 524 | ps4attribMoveSupport: 0 525 | ps4attrib3DSupport: 0 526 | ps4attribShareSupport: 0 527 | ps4attribExclusiveVR: 0 528 | ps4disableAutoHideSplash: 0 529 | ps4videoRecordingFeaturesUsed: 0 530 | ps4contentSearchFeaturesUsed: 0 531 | ps4CompatibilityPS5: 0 532 | ps4GPU800MHz: 1 533 | ps4attribEyeToEyeDistanceSettingVR: 0 534 | ps4IncludedModules: [] 535 | ps4attribVROutputEnabled: 0 536 | ps5ParamFilePath: 537 | ps5VideoOutPixelFormat: 0 538 | ps5VideoOutInitialWidth: 1920 539 | ps5VideoOutOutputMode: 1 540 | ps5BackgroundImagePath: 541 | ps5StartupImagePath: 542 | ps5Pic2Path: 543 | ps5StartupImagesFolder: 544 | ps5IconImagesFolder: 545 | ps5SaveDataImagePath: 546 | ps5SdkOverride: 547 | ps5BGMPath: 548 | ps5ShareOverlayImagePath: 549 | ps5NPConfigZipPath: 550 | ps5Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 551 | ps5UseResolutionFallback: 0 552 | ps5UseAudio3dBackend: 0 553 | ps5ScriptOptimizationLevel: 2 554 | ps5Audio3dVirtualSpeakerCount: 14 555 | ps5UpdateReferencePackage: 556 | ps5disableAutoHideSplash: 0 557 | ps5OperatingSystemCanDisableSplashScreen: 0 558 | ps5IncludedModules: [] 559 | ps5SharedBinaryContentLabels: [] 560 | ps5SharedBinarySystemFolders: [] 561 | monoEnv: 562 | splashScreenBackgroundSourceLandscape: {fileID: 0} 563 | splashScreenBackgroundSourcePortrait: {fileID: 0} 564 | blurSplashScreenBackground: 1 565 | spritePackerPolicy: 566 | webGLMemorySize: 16 567 | webGLExceptionSupport: 1 568 | webGLNameFilesAsHashes: 0 569 | webGLDataCaching: 1 570 | webGLDebugSymbols: 0 571 | webGLEmscriptenArgs: 572 | webGLModulesDirectory: 573 | webGLTemplate: APPLICATION:Default 574 | webGLAnalyzeBuildSize: 0 575 | webGLUseEmbeddedResources: 0 576 | webGLCompressionFormat: 1 577 | webGLLinkerTarget: 1 578 | webGLThreadsSupport: 0 579 | webGLWasmStreaming: 0 580 | scriptingDefineSymbols: {} 581 | platformArchitecture: {} 582 | scriptingBackend: {} 583 | il2cppCompilerConfiguration: {} 584 | managedStrippingLevel: {} 585 | incrementalIl2cppBuild: {} 586 | suppressCommonWarnings: 1 587 | allowUnsafeCode: 0 588 | additionalIl2CppArgs: 589 | scriptingRuntimeVersion: 1 590 | gcIncremental: 0 591 | assemblyVersionValidation: 1 592 | gcWBarrierValidation: 0 593 | apiCompatibilityLevelPerPlatform: {} 594 | m_RenderingPath: 1 595 | m_MobileRenderingPath: 1 596 | metroPackageName: Template_2D 597 | metroPackageVersion: 598 | metroCertificatePath: 599 | metroCertificatePassword: 600 | metroCertificateSubject: 601 | metroCertificateIssuer: 602 | metroCertificateNotAfter: 0000000000000000 603 | metroApplicationDescription: Template_2D 604 | wsaImages: {} 605 | metroTileShortName: 606 | metroTileShowName: 0 607 | metroMediumTileShowName: 0 608 | metroLargeTileShowName: 0 609 | metroWideTileShowName: 0 610 | metroSupportStreamingInstall: 0 611 | metroLastRequiredScene: 0 612 | metroDefaultTileSize: 1 613 | metroTileForegroundText: 2 614 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 615 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 616 | a: 1} 617 | metroSplashScreenUseBackgroundColor: 0 618 | platformCapabilities: {} 619 | metroTargetDeviceFamilies: {} 620 | metroFTAName: 621 | metroFTAFileTypes: [] 622 | metroProtocolName: 623 | XboxOneProductId: 624 | XboxOneUpdateKey: 625 | XboxOneSandboxId: 626 | XboxOneContentId: 627 | XboxOneTitleId: 628 | XboxOneSCId: 629 | XboxOneGameOsOverridePath: 630 | XboxOnePackagingOverridePath: 631 | XboxOneAppManifestOverridePath: 632 | XboxOneVersion: 1.0.0.0 633 | XboxOnePackageEncryption: 0 634 | XboxOnePackageUpdateGranularity: 2 635 | XboxOneDescription: 636 | XboxOneLanguage: 637 | - enus 638 | XboxOneCapability: [] 639 | XboxOneGameRating: {} 640 | XboxOneIsContentPackage: 0 641 | XboxOneEnhancedXboxCompatibilityMode: 0 642 | XboxOneEnableGPUVariability: 1 643 | XboxOneSockets: {} 644 | XboxOneSplashScreen: {fileID: 0} 645 | XboxOneAllowedProductIds: [] 646 | XboxOnePersistentLocalStorageSize: 0 647 | XboxOneXTitleMemory: 8 648 | XboxOneOverrideIdentityName: 649 | XboxOneOverrideIdentityPublisher: 650 | vrEditorSettings: 651 | daydream: 652 | daydreamIconForeground: {fileID: 0} 653 | daydreamIconBackground: {fileID: 0} 654 | cloudServicesEnabled: 655 | UNet: 1 656 | luminIcon: 657 | m_Name: 658 | m_ModelFolderPath: 659 | m_PortalFolderPath: 660 | luminCert: 661 | m_CertPath: 662 | m_SignPackage: 1 663 | luminIsChannelApp: 0 664 | luminVersion: 665 | m_VersionCode: 1 666 | m_VersionName: 667 | apiCompatibilityLevel: 6 668 | cloudProjectId: 669 | framebufferDepthMemorylessMode: 0 670 | projectName: 671 | organizationId: 672 | cloudEnabled: 0 673 | enableNativePlatformBackendsForNewInputSystem: 0 674 | disableOldInputManagerSupport: 0 675 | legacyClampBlendShapeWeights: 0 676 | -------------------------------------------------------------------------------- /Assets/Scenes/Snake.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 3 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 0 55 | m_EnableRealtimeLightmaps: 0 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 0 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 500 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 2 83 | m_PVRDenoiserTypeDirect: 0 84 | m_PVRDenoiserTypeIndirect: 0 85 | m_PVRDenoiserTypeAO: 0 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 0 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ExportTrainingData: 0 98 | m_TrainingDataDestination: TrainingData 99 | m_LightProbeSampleCountMultiplier: 4 100 | m_LightingDataAsset: {fileID: 0} 101 | m_UseShadowmask: 1 102 | --- !u!196 &4 103 | NavMeshSettings: 104 | serializedVersion: 2 105 | m_ObjectHideFlags: 0 106 | m_BuildSettings: 107 | serializedVersion: 2 108 | agentTypeID: 0 109 | agentRadius: 0.5 110 | agentHeight: 2 111 | agentSlope: 45 112 | agentClimb: 0.4 113 | ledgeDropHeight: 0 114 | maxJumpAcrossDistance: 0 115 | minRegionArea: 2 116 | manualCellSize: 0 117 | cellSize: 0.16666667 118 | manualTileSize: 0 119 | tileSize: 256 120 | accuratePlacement: 0 121 | debug: 122 | m_Flags: 0 123 | m_NavMeshData: {fileID: 0} 124 | --- !u!1 &519420028 125 | GameObject: 126 | m_ObjectHideFlags: 0 127 | m_CorrespondingSourceObject: {fileID: 0} 128 | m_PrefabInstance: {fileID: 0} 129 | m_PrefabAsset: {fileID: 0} 130 | serializedVersion: 6 131 | m_Component: 132 | - component: {fileID: 519420032} 133 | - component: {fileID: 519420031} 134 | - component: {fileID: 519420029} 135 | m_Layer: 0 136 | m_Name: Main Camera 137 | m_TagString: MainCamera 138 | m_Icon: {fileID: 0} 139 | m_NavMeshLayer: 0 140 | m_StaticEditorFlags: 0 141 | m_IsActive: 1 142 | --- !u!81 &519420029 143 | AudioListener: 144 | m_ObjectHideFlags: 0 145 | m_CorrespondingSourceObject: {fileID: 0} 146 | m_PrefabInstance: {fileID: 0} 147 | m_PrefabAsset: {fileID: 0} 148 | m_GameObject: {fileID: 519420028} 149 | m_Enabled: 1 150 | --- !u!20 &519420031 151 | Camera: 152 | m_ObjectHideFlags: 0 153 | m_CorrespondingSourceObject: {fileID: 0} 154 | m_PrefabInstance: {fileID: 0} 155 | m_PrefabAsset: {fileID: 0} 156 | m_GameObject: {fileID: 519420028} 157 | m_Enabled: 1 158 | serializedVersion: 2 159 | m_ClearFlags: 2 160 | m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} 161 | m_projectionMatrixMode: 1 162 | m_GateFitMode: 2 163 | m_FOVAxisMode: 0 164 | m_SensorSize: {x: 36, y: 24} 165 | m_LensShift: {x: 0, y: 0} 166 | m_FocalLength: 50 167 | m_NormalizedViewPortRect: 168 | serializedVersion: 2 169 | x: 0 170 | y: 0 171 | width: 1 172 | height: 1 173 | near clip plane: 0.3 174 | far clip plane: 1000 175 | field of view: 60 176 | orthographic: 1 177 | orthographic size: 15 178 | m_Depth: -1 179 | m_CullingMask: 180 | serializedVersion: 2 181 | m_Bits: 4294967295 182 | m_RenderingPath: -1 183 | m_TargetTexture: {fileID: 0} 184 | m_TargetDisplay: 0 185 | m_TargetEye: 0 186 | m_HDR: 1 187 | m_AllowMSAA: 0 188 | m_AllowDynamicResolution: 0 189 | m_ForceIntoRT: 0 190 | m_OcclusionCulling: 0 191 | m_StereoConvergence: 10 192 | m_StereoSeparation: 0.022 193 | --- !u!4 &519420032 194 | Transform: 195 | m_ObjectHideFlags: 0 196 | m_CorrespondingSourceObject: {fileID: 0} 197 | m_PrefabInstance: {fileID: 0} 198 | m_PrefabAsset: {fileID: 0} 199 | m_GameObject: {fileID: 519420028} 200 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 201 | m_LocalPosition: {x: 0, y: 0, z: -10} 202 | m_LocalScale: {x: 1, y: 1, z: 1} 203 | m_Children: [] 204 | m_Father: {fileID: 0} 205 | m_RootOrder: 0 206 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 207 | --- !u!1 &864387894 208 | GameObject: 209 | m_ObjectHideFlags: 0 210 | m_CorrespondingSourceObject: {fileID: 0} 211 | m_PrefabInstance: {fileID: 0} 212 | m_PrefabAsset: {fileID: 0} 213 | serializedVersion: 6 214 | m_Component: 215 | - component: {fileID: 864387896} 216 | - component: {fileID: 864387895} 217 | m_Layer: 0 218 | m_Name: Grid Area 219 | m_TagString: Untagged 220 | m_Icon: {fileID: 0} 221 | m_NavMeshLayer: 0 222 | m_StaticEditorFlags: 0 223 | m_IsActive: 1 224 | --- !u!61 &864387895 225 | BoxCollider2D: 226 | m_ObjectHideFlags: 0 227 | m_CorrespondingSourceObject: {fileID: 0} 228 | m_PrefabInstance: {fileID: 0} 229 | m_PrefabAsset: {fileID: 0} 230 | m_GameObject: {fileID: 864387894} 231 | m_Enabled: 1 232 | m_Density: 1 233 | m_Material: {fileID: 0} 234 | m_IsTrigger: 1 235 | m_UsedByEffector: 0 236 | m_UsedByComposite: 0 237 | m_Offset: {x: 0, y: 0} 238 | m_SpriteTilingProperty: 239 | border: {x: 0, y: 0, z: 0, w: 0} 240 | pivot: {x: 0, y: 0} 241 | oldSize: {x: 0, y: 0} 242 | newSize: {x: 0, y: 0} 243 | adaptiveTilingThreshold: 0 244 | drawMode: 0 245 | adaptiveTiling: 0 246 | m_AutoTiling: 0 247 | serializedVersion: 2 248 | m_Size: {x: 1, y: 1} 249 | m_EdgeRadius: 0 250 | --- !u!4 &864387896 251 | Transform: 252 | m_ObjectHideFlags: 0 253 | m_CorrespondingSourceObject: {fileID: 0} 254 | m_PrefabInstance: {fileID: 0} 255 | m_PrefabAsset: {fileID: 0} 256 | m_GameObject: {fileID: 864387894} 257 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 258 | m_LocalPosition: {x: 0, y: 0, z: 0} 259 | m_LocalScale: {x: 42, y: 22, z: 1} 260 | m_Children: [] 261 | m_Father: {fileID: 0} 262 | m_RootOrder: 1 263 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 264 | --- !u!1 &962302026 265 | GameObject: 266 | m_ObjectHideFlags: 0 267 | m_CorrespondingSourceObject: {fileID: 0} 268 | m_PrefabInstance: {fileID: 0} 269 | m_PrefabAsset: {fileID: 0} 270 | serializedVersion: 6 271 | m_Component: 272 | - component: {fileID: 962302029} 273 | - component: {fileID: 962302028} 274 | - component: {fileID: 962302027} 275 | m_Layer: 0 276 | m_Name: Wall 277 | m_TagString: Wall 278 | m_Icon: {fileID: 0} 279 | m_NavMeshLayer: 0 280 | m_StaticEditorFlags: 0 281 | m_IsActive: 1 282 | --- !u!61 &962302027 283 | BoxCollider2D: 284 | m_ObjectHideFlags: 0 285 | m_CorrespondingSourceObject: {fileID: 0} 286 | m_PrefabInstance: {fileID: 0} 287 | m_PrefabAsset: {fileID: 0} 288 | m_GameObject: {fileID: 962302026} 289 | m_Enabled: 1 290 | m_Density: 1 291 | m_Material: {fileID: 0} 292 | m_IsTrigger: 1 293 | m_UsedByEffector: 0 294 | m_UsedByComposite: 0 295 | m_Offset: {x: 0, y: 0} 296 | m_SpriteTilingProperty: 297 | border: {x: 0, y: 0, z: 0, w: 0} 298 | pivot: {x: 0.5, y: 0.5} 299 | oldSize: {x: 1, y: 1} 300 | newSize: {x: 1, y: 1} 301 | adaptiveTilingThreshold: 0.5 302 | drawMode: 0 303 | adaptiveTiling: 0 304 | m_AutoTiling: 0 305 | serializedVersion: 2 306 | m_Size: {x: 1, y: 1} 307 | m_EdgeRadius: 0 308 | --- !u!212 &962302028 309 | SpriteRenderer: 310 | m_ObjectHideFlags: 0 311 | m_CorrespondingSourceObject: {fileID: 0} 312 | m_PrefabInstance: {fileID: 0} 313 | m_PrefabAsset: {fileID: 0} 314 | m_GameObject: {fileID: 962302026} 315 | m_Enabled: 1 316 | m_CastShadows: 0 317 | m_ReceiveShadows: 0 318 | m_DynamicOccludee: 1 319 | m_MotionVectors: 1 320 | m_LightProbeUsage: 1 321 | m_ReflectionProbeUsage: 1 322 | m_RayTracingMode: 0 323 | m_RenderingLayerMask: 1 324 | m_RendererPriority: 0 325 | m_Materials: 326 | - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} 327 | m_StaticBatchInfo: 328 | firstSubMesh: 0 329 | subMeshCount: 0 330 | m_StaticBatchRoot: {fileID: 0} 331 | m_ProbeAnchor: {fileID: 0} 332 | m_LightProbeVolumeOverride: {fileID: 0} 333 | m_ScaleInLightmap: 1 334 | m_ReceiveGI: 1 335 | m_PreserveUVs: 0 336 | m_IgnoreNormalsForChartDetection: 0 337 | m_ImportantGI: 0 338 | m_StitchLightmapSeams: 1 339 | m_SelectedEditorRenderState: 0 340 | m_MinimumChartSize: 4 341 | m_AutoUVMaxDistance: 0.5 342 | m_AutoUVMaxAngle: 89 343 | m_LightmapParameters: {fileID: 0} 344 | m_SortingLayerID: 0 345 | m_SortingLayer: 0 346 | m_SortingOrder: 1 347 | m_Sprite: {fileID: 21300000, guid: b032c5177ca43c04dafb570388ade875, type: 3} 348 | m_Color: {r: 0.2, g: 0.2, b: 0.2, a: 1} 349 | m_FlipX: 0 350 | m_FlipY: 0 351 | m_DrawMode: 0 352 | m_Size: {x: 1, y: 1} 353 | m_AdaptiveModeThreshold: 0.5 354 | m_SpriteTileMode: 0 355 | m_WasSpriteAssigned: 1 356 | m_MaskInteraction: 0 357 | m_SpriteSortPoint: 0 358 | --- !u!4 &962302029 359 | Transform: 360 | m_ObjectHideFlags: 0 361 | m_CorrespondingSourceObject: {fileID: 0} 362 | m_PrefabInstance: {fileID: 0} 363 | m_PrefabAsset: {fileID: 0} 364 | m_GameObject: {fileID: 962302026} 365 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 366 | m_LocalPosition: {x: 22, y: 0, z: 0} 367 | m_LocalScale: {x: 1, y: 25, z: 1} 368 | m_Children: [] 369 | m_Father: {fileID: 0} 370 | m_RootOrder: 7 371 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 372 | --- !u!1 &1161375261 373 | GameObject: 374 | m_ObjectHideFlags: 0 375 | m_CorrespondingSourceObject: {fileID: 0} 376 | m_PrefabInstance: {fileID: 0} 377 | m_PrefabAsset: {fileID: 0} 378 | serializedVersion: 6 379 | m_Component: 380 | - component: {fileID: 1161375263} 381 | - component: {fileID: 1161375262} 382 | - component: {fileID: 1161375265} 383 | - component: {fileID: 1161375266} 384 | - component: {fileID: 1161375264} 385 | m_Layer: 0 386 | m_Name: Snake 387 | m_TagString: Player 388 | m_Icon: {fileID: 0} 389 | m_NavMeshLayer: 0 390 | m_StaticEditorFlags: 0 391 | m_IsActive: 1 392 | --- !u!212 &1161375262 393 | SpriteRenderer: 394 | m_ObjectHideFlags: 0 395 | m_CorrespondingSourceObject: {fileID: 0} 396 | m_PrefabInstance: {fileID: 0} 397 | m_PrefabAsset: {fileID: 0} 398 | m_GameObject: {fileID: 1161375261} 399 | m_Enabled: 1 400 | m_CastShadows: 0 401 | m_ReceiveShadows: 0 402 | m_DynamicOccludee: 1 403 | m_MotionVectors: 1 404 | m_LightProbeUsage: 1 405 | m_ReflectionProbeUsage: 1 406 | m_RayTracingMode: 0 407 | m_RenderingLayerMask: 1 408 | m_RendererPriority: 0 409 | m_Materials: 410 | - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} 411 | m_StaticBatchInfo: 412 | firstSubMesh: 0 413 | subMeshCount: 0 414 | m_StaticBatchRoot: {fileID: 0} 415 | m_ProbeAnchor: {fileID: 0} 416 | m_LightProbeVolumeOverride: {fileID: 0} 417 | m_ScaleInLightmap: 1 418 | m_ReceiveGI: 1 419 | m_PreserveUVs: 0 420 | m_IgnoreNormalsForChartDetection: 0 421 | m_ImportantGI: 0 422 | m_StitchLightmapSeams: 1 423 | m_SelectedEditorRenderState: 0 424 | m_MinimumChartSize: 4 425 | m_AutoUVMaxDistance: 0.5 426 | m_AutoUVMaxAngle: 89 427 | m_LightmapParameters: {fileID: 0} 428 | m_SortingLayerID: 0 429 | m_SortingLayer: 0 430 | m_SortingOrder: 2 431 | m_Sprite: {fileID: 21300000, guid: b032c5177ca43c04dafb570388ade875, type: 3} 432 | m_Color: {r: 0, g: 1, b: 0, a: 1} 433 | m_FlipX: 0 434 | m_FlipY: 0 435 | m_DrawMode: 0 436 | m_Size: {x: 1, y: 1} 437 | m_AdaptiveModeThreshold: 0.5 438 | m_SpriteTileMode: 0 439 | m_WasSpriteAssigned: 1 440 | m_MaskInteraction: 0 441 | m_SpriteSortPoint: 0 442 | --- !u!4 &1161375263 443 | Transform: 444 | m_ObjectHideFlags: 0 445 | m_CorrespondingSourceObject: {fileID: 0} 446 | m_PrefabInstance: {fileID: 0} 447 | m_PrefabAsset: {fileID: 0} 448 | m_GameObject: {fileID: 1161375261} 449 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 450 | m_LocalPosition: {x: 0, y: 0, z: 0} 451 | m_LocalScale: {x: 1, y: 1, z: 1} 452 | m_Children: [] 453 | m_Father: {fileID: 0} 454 | m_RootOrder: 2 455 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 456 | --- !u!114 &1161375264 457 | MonoBehaviour: 458 | m_ObjectHideFlags: 0 459 | m_CorrespondingSourceObject: {fileID: 0} 460 | m_PrefabInstance: {fileID: 0} 461 | m_PrefabAsset: {fileID: 0} 462 | m_GameObject: {fileID: 1161375261} 463 | m_Enabled: 1 464 | m_EditorHideFlags: 0 465 | m_Script: {fileID: 11500000, guid: b875c4e64261bcb479b7e67869e417e8, type: 3} 466 | m_Name: 467 | m_EditorClassIdentifier: 468 | segmentPrefab: {fileID: 4726879341727194397, guid: a20ea67b69b1572478630ab80ef547fd, 469 | type: 3} 470 | direction: {x: 1, y: 0} 471 | speed: 20 472 | speedMultiplier: 1 473 | initialSize: 4 474 | moveThroughWalls: 1 475 | --- !u!50 &1161375265 476 | Rigidbody2D: 477 | serializedVersion: 4 478 | m_ObjectHideFlags: 0 479 | m_CorrespondingSourceObject: {fileID: 0} 480 | m_PrefabInstance: {fileID: 0} 481 | m_PrefabAsset: {fileID: 0} 482 | m_GameObject: {fileID: 1161375261} 483 | m_BodyType: 1 484 | m_Simulated: 1 485 | m_UseFullKinematicContacts: 1 486 | m_UseAutoMass: 0 487 | m_Mass: 1 488 | m_LinearDrag: 0 489 | m_AngularDrag: 0.05 490 | m_GravityScale: 1 491 | m_Material: {fileID: 0} 492 | m_Interpolate: 0 493 | m_SleepingMode: 1 494 | m_CollisionDetection: 1 495 | m_Constraints: 0 496 | --- !u!61 &1161375266 497 | BoxCollider2D: 498 | m_ObjectHideFlags: 0 499 | m_CorrespondingSourceObject: {fileID: 0} 500 | m_PrefabInstance: {fileID: 0} 501 | m_PrefabAsset: {fileID: 0} 502 | m_GameObject: {fileID: 1161375261} 503 | m_Enabled: 1 504 | m_Density: 1 505 | m_Material: {fileID: 0} 506 | m_IsTrigger: 1 507 | m_UsedByEffector: 0 508 | m_UsedByComposite: 0 509 | m_Offset: {x: 0, y: 0} 510 | m_SpriteTilingProperty: 511 | border: {x: 0, y: 0, z: 0, w: 0} 512 | pivot: {x: 0.5, y: 0.5} 513 | oldSize: {x: 1, y: 1} 514 | newSize: {x: 1, y: 1} 515 | adaptiveTilingThreshold: 0.5 516 | drawMode: 0 517 | adaptiveTiling: 0 518 | m_AutoTiling: 0 519 | serializedVersion: 2 520 | m_Size: {x: 0.5, y: 0.5} 521 | m_EdgeRadius: 0 522 | --- !u!1 &1406060357 523 | GameObject: 524 | m_ObjectHideFlags: 0 525 | m_CorrespondingSourceObject: {fileID: 0} 526 | m_PrefabInstance: {fileID: 0} 527 | m_PrefabAsset: {fileID: 0} 528 | serializedVersion: 6 529 | m_Component: 530 | - component: {fileID: 1406060360} 531 | - component: {fileID: 1406060359} 532 | - component: {fileID: 1406060358} 533 | - component: {fileID: 1406060361} 534 | m_Layer: 0 535 | m_Name: Food 536 | m_TagString: Food 537 | m_Icon: {fileID: 0} 538 | m_NavMeshLayer: 0 539 | m_StaticEditorFlags: 0 540 | m_IsActive: 1 541 | --- !u!61 &1406060358 542 | BoxCollider2D: 543 | m_ObjectHideFlags: 0 544 | m_CorrespondingSourceObject: {fileID: 0} 545 | m_PrefabInstance: {fileID: 0} 546 | m_PrefabAsset: {fileID: 0} 547 | m_GameObject: {fileID: 1406060357} 548 | m_Enabled: 1 549 | m_Density: 1 550 | m_Material: {fileID: 0} 551 | m_IsTrigger: 1 552 | m_UsedByEffector: 0 553 | m_UsedByComposite: 0 554 | m_Offset: {x: 0, y: 0} 555 | m_SpriteTilingProperty: 556 | border: {x: 0, y: 0, z: 0, w: 0} 557 | pivot: {x: 0.5, y: 0.5} 558 | oldSize: {x: 1, y: 1} 559 | newSize: {x: 1, y: 1} 560 | adaptiveTilingThreshold: 0.5 561 | drawMode: 0 562 | adaptiveTiling: 0 563 | m_AutoTiling: 0 564 | serializedVersion: 2 565 | m_Size: {x: 0.5, y: 0.5} 566 | m_EdgeRadius: 0 567 | --- !u!212 &1406060359 568 | SpriteRenderer: 569 | m_ObjectHideFlags: 0 570 | m_CorrespondingSourceObject: {fileID: 0} 571 | m_PrefabInstance: {fileID: 0} 572 | m_PrefabAsset: {fileID: 0} 573 | m_GameObject: {fileID: 1406060357} 574 | m_Enabled: 1 575 | m_CastShadows: 0 576 | m_ReceiveShadows: 0 577 | m_DynamicOccludee: 1 578 | m_MotionVectors: 1 579 | m_LightProbeUsage: 1 580 | m_ReflectionProbeUsage: 1 581 | m_RayTracingMode: 0 582 | m_RenderingLayerMask: 1 583 | m_RendererPriority: 0 584 | m_Materials: 585 | - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} 586 | m_StaticBatchInfo: 587 | firstSubMesh: 0 588 | subMeshCount: 0 589 | m_StaticBatchRoot: {fileID: 0} 590 | m_ProbeAnchor: {fileID: 0} 591 | m_LightProbeVolumeOverride: {fileID: 0} 592 | m_ScaleInLightmap: 1 593 | m_ReceiveGI: 1 594 | m_PreserveUVs: 0 595 | m_IgnoreNormalsForChartDetection: 0 596 | m_ImportantGI: 0 597 | m_StitchLightmapSeams: 1 598 | m_SelectedEditorRenderState: 0 599 | m_MinimumChartSize: 4 600 | m_AutoUVMaxDistance: 0.5 601 | m_AutoUVMaxAngle: 89 602 | m_LightmapParameters: {fileID: 0} 603 | m_SortingLayerID: 0 604 | m_SortingLayer: 0 605 | m_SortingOrder: 1 606 | m_Sprite: {fileID: 21300000, guid: b032c5177ca43c04dafb570388ade875, type: 3} 607 | m_Color: {r: 1, g: 0, b: 0, a: 1} 608 | m_FlipX: 0 609 | m_FlipY: 0 610 | m_DrawMode: 0 611 | m_Size: {x: 1, y: 1} 612 | m_AdaptiveModeThreshold: 0.5 613 | m_SpriteTileMode: 0 614 | m_WasSpriteAssigned: 1 615 | m_MaskInteraction: 0 616 | m_SpriteSortPoint: 0 617 | --- !u!4 &1406060360 618 | Transform: 619 | m_ObjectHideFlags: 0 620 | m_CorrespondingSourceObject: {fileID: 0} 621 | m_PrefabInstance: {fileID: 0} 622 | m_PrefabAsset: {fileID: 0} 623 | m_GameObject: {fileID: 1406060357} 624 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 625 | m_LocalPosition: {x: 0, y: 0, z: 0} 626 | m_LocalScale: {x: 1, y: 1, z: 1} 627 | m_Children: [] 628 | m_Father: {fileID: 0} 629 | m_RootOrder: 3 630 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 631 | --- !u!114 &1406060361 632 | MonoBehaviour: 633 | m_ObjectHideFlags: 0 634 | m_CorrespondingSourceObject: {fileID: 0} 635 | m_PrefabInstance: {fileID: 0} 636 | m_PrefabAsset: {fileID: 0} 637 | m_GameObject: {fileID: 1406060357} 638 | m_Enabled: 1 639 | m_EditorHideFlags: 0 640 | m_Script: {fileID: 11500000, guid: 83fcf82957452fc45895f6c8b0732d37, type: 3} 641 | m_Name: 642 | m_EditorClassIdentifier: 643 | gridArea: {fileID: 864387895} 644 | --- !u!1 &1431457602 645 | GameObject: 646 | m_ObjectHideFlags: 0 647 | m_CorrespondingSourceObject: {fileID: 0} 648 | m_PrefabInstance: {fileID: 0} 649 | m_PrefabAsset: {fileID: 0} 650 | serializedVersion: 6 651 | m_Component: 652 | - component: {fileID: 1431457605} 653 | - component: {fileID: 1431457604} 654 | - component: {fileID: 1431457603} 655 | m_Layer: 0 656 | m_Name: Wall 657 | m_TagString: Wall 658 | m_Icon: {fileID: 0} 659 | m_NavMeshLayer: 0 660 | m_StaticEditorFlags: 0 661 | m_IsActive: 1 662 | --- !u!61 &1431457603 663 | BoxCollider2D: 664 | m_ObjectHideFlags: 0 665 | m_CorrespondingSourceObject: {fileID: 0} 666 | m_PrefabInstance: {fileID: 0} 667 | m_PrefabAsset: {fileID: 0} 668 | m_GameObject: {fileID: 1431457602} 669 | m_Enabled: 1 670 | m_Density: 1 671 | m_Material: {fileID: 0} 672 | m_IsTrigger: 1 673 | m_UsedByEffector: 0 674 | m_UsedByComposite: 0 675 | m_Offset: {x: 0, y: 0} 676 | m_SpriteTilingProperty: 677 | border: {x: 0, y: 0, z: 0, w: 0} 678 | pivot: {x: 0.5, y: 0.5} 679 | oldSize: {x: 1, y: 1} 680 | newSize: {x: 1, y: 1} 681 | adaptiveTilingThreshold: 0.5 682 | drawMode: 0 683 | adaptiveTiling: 0 684 | m_AutoTiling: 0 685 | serializedVersion: 2 686 | m_Size: {x: 1, y: 1} 687 | m_EdgeRadius: 0 688 | --- !u!212 &1431457604 689 | SpriteRenderer: 690 | m_ObjectHideFlags: 0 691 | m_CorrespondingSourceObject: {fileID: 0} 692 | m_PrefabInstance: {fileID: 0} 693 | m_PrefabAsset: {fileID: 0} 694 | m_GameObject: {fileID: 1431457602} 695 | m_Enabled: 1 696 | m_CastShadows: 0 697 | m_ReceiveShadows: 0 698 | m_DynamicOccludee: 1 699 | m_MotionVectors: 1 700 | m_LightProbeUsage: 1 701 | m_ReflectionProbeUsage: 1 702 | m_RayTracingMode: 0 703 | m_RenderingLayerMask: 1 704 | m_RendererPriority: 0 705 | m_Materials: 706 | - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} 707 | m_StaticBatchInfo: 708 | firstSubMesh: 0 709 | subMeshCount: 0 710 | m_StaticBatchRoot: {fileID: 0} 711 | m_ProbeAnchor: {fileID: 0} 712 | m_LightProbeVolumeOverride: {fileID: 0} 713 | m_ScaleInLightmap: 1 714 | m_ReceiveGI: 1 715 | m_PreserveUVs: 0 716 | m_IgnoreNormalsForChartDetection: 0 717 | m_ImportantGI: 0 718 | m_StitchLightmapSeams: 1 719 | m_SelectedEditorRenderState: 0 720 | m_MinimumChartSize: 4 721 | m_AutoUVMaxDistance: 0.5 722 | m_AutoUVMaxAngle: 89 723 | m_LightmapParameters: {fileID: 0} 724 | m_SortingLayerID: 0 725 | m_SortingLayer: 0 726 | m_SortingOrder: 1 727 | m_Sprite: {fileID: 21300000, guid: b032c5177ca43c04dafb570388ade875, type: 3} 728 | m_Color: {r: 0.2, g: 0.2, b: 0.2, a: 1} 729 | m_FlipX: 0 730 | m_FlipY: 0 731 | m_DrawMode: 0 732 | m_Size: {x: 1, y: 1} 733 | m_AdaptiveModeThreshold: 0.5 734 | m_SpriteTileMode: 0 735 | m_WasSpriteAssigned: 1 736 | m_MaskInteraction: 0 737 | m_SpriteSortPoint: 0 738 | --- !u!4 &1431457605 739 | Transform: 740 | m_ObjectHideFlags: 0 741 | m_CorrespondingSourceObject: {fileID: 0} 742 | m_PrefabInstance: {fileID: 0} 743 | m_PrefabAsset: {fileID: 0} 744 | m_GameObject: {fileID: 1431457602} 745 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 746 | m_LocalPosition: {x: -22, y: 0, z: 0} 747 | m_LocalScale: {x: 1, y: 25, z: 1} 748 | m_Children: [] 749 | m_Father: {fileID: 0} 750 | m_RootOrder: 6 751 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 752 | --- !u!1 &1487117391 753 | GameObject: 754 | m_ObjectHideFlags: 0 755 | m_CorrespondingSourceObject: {fileID: 0} 756 | m_PrefabInstance: {fileID: 0} 757 | m_PrefabAsset: {fileID: 0} 758 | serializedVersion: 6 759 | m_Component: 760 | - component: {fileID: 1487117394} 761 | - component: {fileID: 1487117393} 762 | - component: {fileID: 1487117392} 763 | m_Layer: 0 764 | m_Name: Wall 765 | m_TagString: Wall 766 | m_Icon: {fileID: 0} 767 | m_NavMeshLayer: 0 768 | m_StaticEditorFlags: 0 769 | m_IsActive: 1 770 | --- !u!61 &1487117392 771 | BoxCollider2D: 772 | m_ObjectHideFlags: 0 773 | m_CorrespondingSourceObject: {fileID: 0} 774 | m_PrefabInstance: {fileID: 0} 775 | m_PrefabAsset: {fileID: 0} 776 | m_GameObject: {fileID: 1487117391} 777 | m_Enabled: 1 778 | m_Density: 1 779 | m_Material: {fileID: 0} 780 | m_IsTrigger: 1 781 | m_UsedByEffector: 0 782 | m_UsedByComposite: 0 783 | m_Offset: {x: 0, y: 0} 784 | m_SpriteTilingProperty: 785 | border: {x: 0, y: 0, z: 0, w: 0} 786 | pivot: {x: 0.5, y: 0.5} 787 | oldSize: {x: 1, y: 1} 788 | newSize: {x: 1, y: 1} 789 | adaptiveTilingThreshold: 0.5 790 | drawMode: 0 791 | adaptiveTiling: 0 792 | m_AutoTiling: 0 793 | serializedVersion: 2 794 | m_Size: {x: 1, y: 1} 795 | m_EdgeRadius: 0 796 | --- !u!212 &1487117393 797 | SpriteRenderer: 798 | m_ObjectHideFlags: 0 799 | m_CorrespondingSourceObject: {fileID: 0} 800 | m_PrefabInstance: {fileID: 0} 801 | m_PrefabAsset: {fileID: 0} 802 | m_GameObject: {fileID: 1487117391} 803 | m_Enabled: 1 804 | m_CastShadows: 0 805 | m_ReceiveShadows: 0 806 | m_DynamicOccludee: 1 807 | m_MotionVectors: 1 808 | m_LightProbeUsage: 1 809 | m_ReflectionProbeUsage: 1 810 | m_RayTracingMode: 0 811 | m_RenderingLayerMask: 1 812 | m_RendererPriority: 0 813 | m_Materials: 814 | - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} 815 | m_StaticBatchInfo: 816 | firstSubMesh: 0 817 | subMeshCount: 0 818 | m_StaticBatchRoot: {fileID: 0} 819 | m_ProbeAnchor: {fileID: 0} 820 | m_LightProbeVolumeOverride: {fileID: 0} 821 | m_ScaleInLightmap: 1 822 | m_ReceiveGI: 1 823 | m_PreserveUVs: 0 824 | m_IgnoreNormalsForChartDetection: 0 825 | m_ImportantGI: 0 826 | m_StitchLightmapSeams: 1 827 | m_SelectedEditorRenderState: 0 828 | m_MinimumChartSize: 4 829 | m_AutoUVMaxDistance: 0.5 830 | m_AutoUVMaxAngle: 89 831 | m_LightmapParameters: {fileID: 0} 832 | m_SortingLayerID: 0 833 | m_SortingLayer: 0 834 | m_SortingOrder: 1 835 | m_Sprite: {fileID: 21300000, guid: b032c5177ca43c04dafb570388ade875, type: 3} 836 | m_Color: {r: 0.2, g: 0.2, b: 0.2, a: 1} 837 | m_FlipX: 0 838 | m_FlipY: 0 839 | m_DrawMode: 0 840 | m_Size: {x: 1, y: 1} 841 | m_AdaptiveModeThreshold: 0.5 842 | m_SpriteTileMode: 0 843 | m_WasSpriteAssigned: 1 844 | m_MaskInteraction: 0 845 | m_SpriteSortPoint: 0 846 | --- !u!4 &1487117394 847 | Transform: 848 | m_ObjectHideFlags: 0 849 | m_CorrespondingSourceObject: {fileID: 0} 850 | m_PrefabInstance: {fileID: 0} 851 | m_PrefabAsset: {fileID: 0} 852 | m_GameObject: {fileID: 1487117391} 853 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 854 | m_LocalPosition: {x: 0, y: -12, z: 0} 855 | m_LocalScale: {x: 45, y: 1, z: 1} 856 | m_Children: [] 857 | m_Father: {fileID: 0} 858 | m_RootOrder: 5 859 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 860 | --- !u!61 &8791851091651076915 861 | BoxCollider2D: 862 | m_ObjectHideFlags: 0 863 | m_CorrespondingSourceObject: {fileID: 0} 864 | m_PrefabInstance: {fileID: 0} 865 | m_PrefabAsset: {fileID: 0} 866 | m_GameObject: {fileID: 8791851091651076918} 867 | m_Enabled: 1 868 | m_Density: 1 869 | m_Material: {fileID: 0} 870 | m_IsTrigger: 1 871 | m_UsedByEffector: 0 872 | m_UsedByComposite: 0 873 | m_Offset: {x: 0, y: 0} 874 | m_SpriteTilingProperty: 875 | border: {x: 0, y: 0, z: 0, w: 0} 876 | pivot: {x: 0.5, y: 0.5} 877 | oldSize: {x: 1, y: 1} 878 | newSize: {x: 1, y: 1} 879 | adaptiveTilingThreshold: 0.5 880 | drawMode: 0 881 | adaptiveTiling: 0 882 | m_AutoTiling: 0 883 | serializedVersion: 2 884 | m_Size: {x: 1, y: 1} 885 | m_EdgeRadius: 0 886 | --- !u!4 &8791851091651076916 887 | Transform: 888 | m_ObjectHideFlags: 0 889 | m_CorrespondingSourceObject: {fileID: 0} 890 | m_PrefabInstance: {fileID: 0} 891 | m_PrefabAsset: {fileID: 0} 892 | m_GameObject: {fileID: 8791851091651076918} 893 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 894 | m_LocalPosition: {x: 0, y: 12, z: 0} 895 | m_LocalScale: {x: 45, y: 1, z: 1} 896 | m_Children: [] 897 | m_Father: {fileID: 0} 898 | m_RootOrder: 4 899 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 900 | --- !u!212 &8791851091651076917 901 | SpriteRenderer: 902 | m_ObjectHideFlags: 0 903 | m_CorrespondingSourceObject: {fileID: 0} 904 | m_PrefabInstance: {fileID: 0} 905 | m_PrefabAsset: {fileID: 0} 906 | m_GameObject: {fileID: 8791851091651076918} 907 | m_Enabled: 1 908 | m_CastShadows: 0 909 | m_ReceiveShadows: 0 910 | m_DynamicOccludee: 1 911 | m_MotionVectors: 1 912 | m_LightProbeUsage: 1 913 | m_ReflectionProbeUsage: 1 914 | m_RayTracingMode: 0 915 | m_RenderingLayerMask: 1 916 | m_RendererPriority: 0 917 | m_Materials: 918 | - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} 919 | m_StaticBatchInfo: 920 | firstSubMesh: 0 921 | subMeshCount: 0 922 | m_StaticBatchRoot: {fileID: 0} 923 | m_ProbeAnchor: {fileID: 0} 924 | m_LightProbeVolumeOverride: {fileID: 0} 925 | m_ScaleInLightmap: 1 926 | m_ReceiveGI: 1 927 | m_PreserveUVs: 0 928 | m_IgnoreNormalsForChartDetection: 0 929 | m_ImportantGI: 0 930 | m_StitchLightmapSeams: 1 931 | m_SelectedEditorRenderState: 0 932 | m_MinimumChartSize: 4 933 | m_AutoUVMaxDistance: 0.5 934 | m_AutoUVMaxAngle: 89 935 | m_LightmapParameters: {fileID: 0} 936 | m_SortingLayerID: 0 937 | m_SortingLayer: 0 938 | m_SortingOrder: 1 939 | m_Sprite: {fileID: 21300000, guid: b032c5177ca43c04dafb570388ade875, type: 3} 940 | m_Color: {r: 0.2, g: 0.2, b: 0.2, a: 1} 941 | m_FlipX: 0 942 | m_FlipY: 0 943 | m_DrawMode: 0 944 | m_Size: {x: 1, y: 1} 945 | m_AdaptiveModeThreshold: 0.5 946 | m_SpriteTileMode: 0 947 | m_WasSpriteAssigned: 1 948 | m_MaskInteraction: 0 949 | m_SpriteSortPoint: 0 950 | --- !u!1 &8791851091651076918 951 | GameObject: 952 | m_ObjectHideFlags: 0 953 | m_CorrespondingSourceObject: {fileID: 0} 954 | m_PrefabInstance: {fileID: 0} 955 | m_PrefabAsset: {fileID: 0} 956 | serializedVersion: 6 957 | m_Component: 958 | - component: {fileID: 8791851091651076916} 959 | - component: {fileID: 8791851091651076917} 960 | - component: {fileID: 8791851091651076915} 961 | m_Layer: 0 962 | m_Name: Wall 963 | m_TagString: Wall 964 | m_Icon: {fileID: 0} 965 | m_NavMeshLayer: 0 966 | m_StaticEditorFlags: 0 967 | m_IsActive: 1 968 | --------------------------------------------------------------------------------