mirror of
https://github.com/Xevion/Rebirth.git
synced 2025-12-09 20:08:10 -06:00
Switch to regrowth game
This commit is contained in:
5
.vscode/extensions.json
vendored
Normal file
5
.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"recommendations": [
|
||||
"visualstudiotoolsforunity.vstuc"
|
||||
]
|
||||
}
|
||||
10
.vscode/launch.json
vendored
Normal file
10
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Attach to Unity",
|
||||
"type": "vstuc",
|
||||
"request": "attach"
|
||||
}
|
||||
]
|
||||
}
|
||||
60
.vscode/settings.json
vendored
Normal file
60
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"files.exclude": {
|
||||
"**/.DS_Store": true,
|
||||
"**/.git": true,
|
||||
"**/.vs": true,
|
||||
"**/.gitmodules": true,
|
||||
"**/.vsconfig": true,
|
||||
"**/*.booproj": true,
|
||||
"**/*.pidb": true,
|
||||
"**/*.suo": true,
|
||||
"**/*.user": true,
|
||||
"**/*.userprefs": true,
|
||||
"**/*.unityproj": true,
|
||||
"**/*.dll": true,
|
||||
"**/*.exe": true,
|
||||
"**/*.pdf": true,
|
||||
"**/*.mid": true,
|
||||
"**/*.midi": true,
|
||||
"**/*.wav": true,
|
||||
"**/*.gif": true,
|
||||
"**/*.ico": true,
|
||||
"**/*.jpg": true,
|
||||
"**/*.jpeg": true,
|
||||
"**/*.png": true,
|
||||
"**/*.psd": true,
|
||||
"**/*.tga": true,
|
||||
"**/*.tif": true,
|
||||
"**/*.tiff": true,
|
||||
"**/*.3ds": true,
|
||||
"**/*.3DS": true,
|
||||
"**/*.fbx": true,
|
||||
"**/*.FBX": true,
|
||||
"**/*.lxo": true,
|
||||
"**/*.LXO": true,
|
||||
"**/*.ma": true,
|
||||
"**/*.MA": true,
|
||||
"**/*.obj": true,
|
||||
"**/*.OBJ": true,
|
||||
"**/*.asset": true,
|
||||
"**/*.cubemap": true,
|
||||
"**/*.flare": true,
|
||||
"**/*.mat": true,
|
||||
"**/*.meta": true,
|
||||
"**/*.prefab": true,
|
||||
"**/*.unity": true,
|
||||
"build/": true,
|
||||
"Build/": true,
|
||||
"Library/": true,
|
||||
"library/": true,
|
||||
"obj/": true,
|
||||
"Obj/": true,
|
||||
"Logs/": true,
|
||||
"logs/": true,
|
||||
"ProjectSettings/": true,
|
||||
"UserSettings/": true,
|
||||
"temp/": true,
|
||||
"Temp/": true
|
||||
},
|
||||
"dotnet.defaultSolution": "Quest.sln"
|
||||
}
|
||||
248
Assets/BasePlanet.prefab
Normal file
248
Assets/BasePlanet.prefab
Normal file
@@ -0,0 +1,248 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &7154824257338098917
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 7161697913015591788}
|
||||
- component: {fileID: -2170283451010205844}
|
||||
- component: {fileID: -5258542714815234591}
|
||||
m_Layer: 0
|
||||
m_Name: BasePlanet
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &7161697913015591788
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7154824257338098917}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &-2170283451010205844
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7154824257338098917}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 5e5a2958b00708d4bacd5703ef7b2b50, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
Size: 95
|
||||
Bulbs: 1
|
||||
edgeColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
edgeWidth: 0.0369
|
||||
--- !u!120 &-5258542714815234591
|
||||
LineRenderer:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7154824257338098917}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 0
|
||||
m_LightProbeUsage: 0
|
||||
m_ReflectionProbeUsage: 0
|
||||
m_RayTracingMode: 0
|
||||
m_RayTraceProcedural: 0
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 0}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 1
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_Positions:
|
||||
- {x: 0, y: 0.95, z: 0}
|
||||
- {x: 0.06278606, y: 0.94792295, z: 0}
|
||||
- {x: 0.12529755, y: 0.9417008, z: 0}
|
||||
- {x: 0.18726118, y: 0.93136096, z: 0}
|
||||
- {x: 0.24840592, y: 0.91694844, z: 0}
|
||||
- {x: 0.3084645, y: 0.8985264, z: 0}
|
||||
- {x: 0.3671742, y: 0.8761752, z: 0}
|
||||
- {x: 0.42427838, y: 0.8499929, z: 0}
|
||||
- {x: 0.47952724, y: 0.8200937, z: 0}
|
||||
- {x: 0.53267926, y: 0.7866084, z: 0}
|
||||
- {x: 0.58350205, y: 0.7496835, z: 0}
|
||||
- {x: 0.63177335, y: 0.7094804, z: 0}
|
||||
- {x: 0.67728204, y: 0.66617495, z: 0}
|
||||
- {x: 0.71982914, y: 0.6199565, z: 0}
|
||||
- {x: 0.7592286, y: 0.57102716, z: 0}
|
||||
- {x: 0.7953082, y: 0.5196008, z: 0}
|
||||
- {x: 0.82791, y: 0.4659024, z: 0}
|
||||
- {x: 0.8568917, y: 0.41016662, z: 0}
|
||||
- {x: 0.8821263, y: 0.3526374, z: 0}
|
||||
- {x: 0.9035037, y: 0.29356614, z: 0}
|
||||
- {x: 0.92093027, y: 0.23321122, z: 0}
|
||||
- {x: 0.9343298, y: 0.17183656, z: 0}
|
||||
- {x: 0.9436438, y: 0.109710395, z: 0}
|
||||
- {x: 0.94883144, y: 0.047104605, z: 0}
|
||||
- {x: 0.94987017, y: -0.015707277, z: 0}
|
||||
- {x: 0.94675523, y: -0.07845037, z: 0}
|
||||
- {x: 0.93950045, y: -0.14085041, z: 0}
|
||||
- {x: 0.9281375, y: -0.20263465, z: 0}
|
||||
- {x: 0.912716, y: -0.26353273, z: 0}
|
||||
- {x: 0.8933034, y: -0.32327855, z: 0}
|
||||
- {x: 0.8699847, y: -0.38161063, z: 0}
|
||||
- {x: 0.8428617, y: -0.43827406, z: 0}
|
||||
- {x: 0.81205314, y: -0.493021, z: 0}
|
||||
- {x: 0.77769357, y: -0.5456123, z: 0}
|
||||
- {x: 0.7399334, y: -0.59581757, z: 0}
|
||||
- {x: 0.6989377, y: -0.6434175, z: 0}
|
||||
- {x: 0.65488577, y: -0.6882039, z: 0}
|
||||
- {x: 0.6079702, y: -0.72998095, z: 0}
|
||||
- {x: 0.5583959, y: -0.7685662, z: 0}
|
||||
- {x: 0.50638014, y: -0.8037905, z: 0}
|
||||
- {x: 0.45215005, y: -0.83550006, z: 0}
|
||||
- {x: 0.39594284, y: -0.86355615, z: 0}
|
||||
- {x: 0.33800426, y: -0.8878362, z: 0}
|
||||
- {x: 0.27858746, y: -0.908234, z: 0}
|
||||
- {x: 0.2179527, y: -0.92466027, z: 0}
|
||||
- {x: 0.15636489, y: -0.93704325, z: 0}
|
||||
- {x: 0.09409333, y: -0.9453288, z: 0}
|
||||
- {x: 0.03141032, y: -0.9494806, z: 0}
|
||||
- {x: -0.031410262, y: -0.9494806, z: 0}
|
||||
- {x: -0.09409327, y: -0.9453288, z: 0}
|
||||
- {x: -0.15636483, y: -0.93704325, z: 0}
|
||||
- {x: -0.21795264, y: -0.92466027, z: 0}
|
||||
- {x: -0.2785874, y: -0.908234, z: 0}
|
||||
- {x: -0.3380042, y: -0.8878362, z: 0}
|
||||
- {x: -0.39594278, y: -0.8635562, z: 0}
|
||||
- {x: -0.45215, y: -0.83550006, z: 0}
|
||||
- {x: -0.5063801, y: -0.80379057, z: 0}
|
||||
- {x: -0.55839586, y: -0.7685662, z: 0}
|
||||
- {x: -0.6079701, y: -0.729981, z: 0}
|
||||
- {x: -0.6548857, y: -0.68820393, z: 0}
|
||||
- {x: -0.6989377, y: -0.64341754, z: 0}
|
||||
- {x: -0.7399333, y: -0.59581757, z: 0}
|
||||
- {x: -0.7776935, y: -0.54561234, z: 0}
|
||||
- {x: -0.81205297, y: -0.49302122, z: 0}
|
||||
- {x: -0.8428616, y: -0.43827432, z: 0}
|
||||
- {x: -0.86998475, y: -0.38161048, z: 0}
|
||||
- {x: -0.89330345, y: -0.3232784, z: 0}
|
||||
- {x: -0.912716, y: -0.26353267, z: 0}
|
||||
- {x: -0.9281375, y: -0.2026346, z: 0}
|
||||
- {x: -0.93950045, y: -0.14085047, z: 0}
|
||||
- {x: -0.94675523, y: -0.07845042, z: 0}
|
||||
- {x: -0.94987017, y: -0.015707338, z: 0}
|
||||
- {x: -0.9488315, y: 0.04710443, z: 0}
|
||||
- {x: -0.9436438, y: 0.109710224, z: 0}
|
||||
- {x: -0.93432987, y: 0.17183627, z: 0}
|
||||
- {x: -0.9209302, y: 0.23321138, z: 0}
|
||||
- {x: -0.90350366, y: 0.29356626, z: 0}
|
||||
- {x: -0.8821263, y: 0.35263747, z: 0}
|
||||
- {x: -0.85689163, y: 0.41016665, z: 0}
|
||||
- {x: -0.82791, y: 0.46590233, z: 0}
|
||||
- {x: -0.7953082, y: 0.51960075, z: 0}
|
||||
- {x: -0.75922865, y: 0.57102704, z: 0}
|
||||
- {x: -0.71982926, y: 0.6199564, z: 0}
|
||||
- {x: -0.67728215, y: 0.6661748, z: 0}
|
||||
- {x: -0.63177353, y: 0.7094802, z: 0}
|
||||
- {x: -0.58350194, y: 0.7496836, z: 0}
|
||||
- {x: -0.5326792, y: 0.78660846, z: 0}
|
||||
- {x: -0.47952718, y: 0.8200937, z: 0}
|
||||
- {x: -0.42427835, y: 0.84999293, z: 0}
|
||||
- {x: -0.3671742, y: 0.8761752, z: 0}
|
||||
- {x: -0.30846456, y: 0.8985264, z: 0}
|
||||
- {x: -0.24840604, y: 0.91694844, z: 0}
|
||||
- {x: -0.18726131, y: 0.93136096, z: 0}
|
||||
- {x: -0.12529776, y: 0.9417008, z: 0}
|
||||
- {x: -0.062786296, y: 0.9479229, z: 0}
|
||||
m_Parameters:
|
||||
serializedVersion: 3
|
||||
widthMultiplier: 0.0369
|
||||
widthCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0.0019989014
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
colorGradient:
|
||||
serializedVersion: 2
|
||||
key0: {r: 1, g: 1, b: 1, a: 1}
|
||||
key1: {r: 1, g: 1, b: 1, a: 1}
|
||||
key2: {r: 0, g: 0, b: 0, a: 0}
|
||||
key3: {r: 0, g: 0, b: 0, a: 0}
|
||||
key4: {r: 0, g: 0, b: 0, a: 0}
|
||||
key5: {r: 0, g: 0, b: 0, a: 0}
|
||||
key6: {r: 0, g: 0, b: 0, a: 0}
|
||||
key7: {r: 0, g: 0, b: 0, a: 0}
|
||||
ctime0: 0
|
||||
ctime1: 65535
|
||||
ctime2: 0
|
||||
ctime3: 0
|
||||
ctime4: 0
|
||||
ctime5: 0
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 65535
|
||||
atime2: 0
|
||||
atime3: 0
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_ColorSpace: -1
|
||||
m_NumColorKeys: 2
|
||||
m_NumAlphaKeys: 2
|
||||
numCornerVertices: 0
|
||||
numCapVertices: 0
|
||||
alignment: 0
|
||||
textureMode: 0
|
||||
textureScale: {x: 1, y: 1}
|
||||
shadowBias: 0.5
|
||||
generateLightingData: 0
|
||||
m_MaskInteraction: 0
|
||||
m_UseWorldSpace: 1
|
||||
m_Loop: 1
|
||||
m_ApplyActiveColorSpace: 1
|
||||
7
Assets/BasePlanet.prefab.meta
Normal file
7
Assets/BasePlanet.prefab.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 65fefe6556140d6479259b34ecece44c
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 5.8 KiB |
File diff suppressed because it is too large
Load Diff
43
Assets/Network.cs
Normal file
43
Assets/Network.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
public class Network : MonoBehaviour
|
||||
{
|
||||
private List<Planet> _planets;
|
||||
public Planet planetPrefab;
|
||||
|
||||
public void AddPlanet()
|
||||
{
|
||||
var planet = Instantiate(planetPrefab);
|
||||
planet.GenerateLine();
|
||||
planet.name = $"Planet {_planets.Count + 1}";
|
||||
planet.transform.parent = transform;
|
||||
_planets.Add(planet);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Signal that a planet has been destroyed
|
||||
/// </summary>
|
||||
/// <param name="destroyed"></param>
|
||||
public void Destroyed(Planet destroyed)
|
||||
{
|
||||
_planets.Remove(destroyed);
|
||||
foreach (var planet in _planets)
|
||||
{
|
||||
if (planet != destroyed) continue;
|
||||
planet.neighbors.Remove(destroyed);
|
||||
}
|
||||
}
|
||||
|
||||
void Start()
|
||||
{
|
||||
_planets = new List<Planet>(FindObjectsOfType<Planet>());
|
||||
|
||||
AddPlanet();
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
}
|
||||
}
|
||||
11
Assets/Network.cs.meta
Normal file
11
Assets/Network.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9960b3a7a4c8979429961d8fee1619f2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
42
Assets/NetworkEditor.cs
Normal file
42
Assets/NetworkEditor.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using UnityEditor;
|
||||
using UnityEditor.UIElements;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
[CustomEditor(typeof(Network))]
|
||||
public class NetworkEditor : Editor
|
||||
{
|
||||
Network network;
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
network = target as Network;
|
||||
}
|
||||
|
||||
// public override VisualElement CreateInspectorGUI()
|
||||
// {
|
||||
// VisualElement root = new();
|
||||
|
||||
// addPlanetButton = new Button(() => { network.AddPlanet(); }) { text = "Add Planet" };
|
||||
// // var planetList = new TreeView() { style = { flexGrow = 1 } };
|
||||
// // planetList.Bind()
|
||||
|
||||
// // planetList.makeItem = () => new Label();
|
||||
// // planetList.bindItem = (element, i) => (element as Label).text = planetList.itemsSource[i].ToString();
|
||||
|
||||
// // root.Add(planetList);
|
||||
// root.Add(addPlanetButton);
|
||||
|
||||
// return root;
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
|
||||
if (GUILayout.Button("Add Planet"))
|
||||
{
|
||||
network.AddPlanet();
|
||||
}
|
||||
|
||||
DrawDefaultInspector();
|
||||
}
|
||||
}
|
||||
11
Assets/NetworkEditor.cs.meta
Normal file
11
Assets/NetworkEditor.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9d6453473dbe3314f8e47fd55431bbdb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,14 +0,0 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!612988286 &1
|
||||
SpriteAtlasAsset:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name:
|
||||
serializedVersion: 2
|
||||
m_MasterAtlas: {fileID: 0}
|
||||
m_ImporterData:
|
||||
packables: []
|
||||
m_IsVariant: 0
|
||||
@@ -1,30 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cbac1033773cabc498cdb0e6e033472e
|
||||
SpriteAtlasImporter:
|
||||
externalObjects: {}
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
anisoLevel: 1
|
||||
compressionQuality: 50
|
||||
maxTextureSize: 2048
|
||||
textureCompression: 0
|
||||
filterMode: 1
|
||||
generateMipMaps: 0
|
||||
readable: 0
|
||||
crunchedCompression: 0
|
||||
sRGB: 1
|
||||
platformSettings: []
|
||||
packingSettings:
|
||||
serializedVersion: 2
|
||||
padding: 4
|
||||
blockOffset: 1
|
||||
allowAlphaSplitting: 0
|
||||
enableRotation: 1
|
||||
enableTightPacking: 1
|
||||
enableAlphaDilation: 0
|
||||
secondaryTextureSettings: {}
|
||||
variantMultiplier: 1
|
||||
bindAsDefault: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
86
Assets/Planet.cs
Normal file
86
Assets/Planet.cs
Normal file
@@ -0,0 +1,86 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Planet : MonoBehaviour
|
||||
{
|
||||
private PolygonCollider2D _collider;
|
||||
private LineRenderer _lineRenderer;
|
||||
private Network _network;
|
||||
|
||||
[SerializeField] public HashSet<Planet> neighbors;
|
||||
|
||||
[HideInInspector] public float Size; // 1.0 -
|
||||
[HideInInspector] public int Bulbs; // 0 - 5+
|
||||
public Color edgeColor = Color.white;
|
||||
[HideInInspector] public float edgeWidth = 0.2f;
|
||||
|
||||
void Awake()
|
||||
{
|
||||
_collider = gameObject.GetComponent<PolygonCollider2D>();
|
||||
_lineRenderer = gameObject.GetComponent<LineRenderer>();
|
||||
_network = FindObjectOfType<Network>();
|
||||
}
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
}
|
||||
|
||||
bool IsConnected(Planet other)
|
||||
{
|
||||
return neighbors.Contains(other);
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
{
|
||||
_network.Destroyed(this);
|
||||
}
|
||||
|
||||
void Connect(params Planet[] others)
|
||||
{
|
||||
foreach (var other in others)
|
||||
{
|
||||
if (other == this) continue;
|
||||
neighbors.Add(other);
|
||||
}
|
||||
}
|
||||
|
||||
public void GenerateLine()
|
||||
{
|
||||
_lineRenderer = gameObject.GetComponent<LineRenderer>();
|
||||
|
||||
_lineRenderer.widthMultiplier = edgeWidth;
|
||||
_lineRenderer.positionCount = 0;
|
||||
_lineRenderer.loop = true;
|
||||
_lineRenderer.startColor = edgeColor;
|
||||
_lineRenderer.endColor = edgeColor;
|
||||
_lineRenderer.material = new Material(Shader.Find("Sprites/Default"));
|
||||
|
||||
// Calculate points for circle
|
||||
int pointCount = Math.Max((int)Size, 16);
|
||||
_lineRenderer.positionCount = pointCount;
|
||||
var points = new Vector3[pointCount];
|
||||
|
||||
// Generate points
|
||||
for (var i = 0; i < pointCount; i++)
|
||||
{
|
||||
var rad = Mathf.Deg2Rad * (i * 360f / pointCount);
|
||||
points[i] = new Vector3(Mathf.Sin(rad) * Size / 100f, Mathf.Cos(rad) * Size / 100f, 0);
|
||||
}
|
||||
|
||||
// Add points to LineRenderer
|
||||
_lineRenderer.SetPositions(points);
|
||||
|
||||
// Use the line-renderer's Vector3's to create vector2 collider path
|
||||
var path = new Vector2[_lineRenderer.positionCount + 1];
|
||||
for (var i = 0; i < pointCount; i++)
|
||||
{
|
||||
// Convert Vector3 to Vector2
|
||||
path[i] = points[i];
|
||||
}
|
||||
|
||||
path[_lineRenderer.positionCount] = path[0];
|
||||
// _collider.SetPath(0, path);
|
||||
}
|
||||
}
|
||||
11
Assets/Planet.cs.meta
Normal file
11
Assets/Planet.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5e5a2958b00708d4bacd5703ef7b2b50
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
51
Assets/PlanetEditor.cs
Normal file
51
Assets/PlanetEditor.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
using UnityEditor;
|
||||
using UnityEditor.UIElements;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
[CustomEditor(typeof(Planet))]
|
||||
public class PlanetEditor : Editor
|
||||
{
|
||||
Planet planet;
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
planet = target as Planet;
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
|
||||
if (GUILayout.Button("Delete Planet"))
|
||||
{
|
||||
DestroyImmediate(planet.gameObject);
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if size changed
|
||||
var newSize = EditorGUILayout.Slider("Size", planet.Size, 1f, 300f);
|
||||
if (newSize != planet.Size)
|
||||
{
|
||||
planet.Size = newSize;
|
||||
planet.GenerateLine();
|
||||
}
|
||||
|
||||
// Check if bulbs changed
|
||||
var newBulbs = EditorGUILayout.IntSlider("Bulbs", planet.Bulbs, 0, 5);
|
||||
if (newBulbs != planet.Bulbs)
|
||||
{
|
||||
planet.Bulbs = newBulbs;
|
||||
planet.GenerateLine();
|
||||
}
|
||||
|
||||
// Check if edge width changed
|
||||
var newEdgeWidth = EditorGUILayout.Slider("Edge Width", planet.edgeWidth, 0.001f, 0.2f);
|
||||
if (newEdgeWidth != planet.edgeWidth)
|
||||
{
|
||||
planet.edgeWidth = newEdgeWidth;
|
||||
planet.GenerateLine();
|
||||
}
|
||||
|
||||
DrawDefaultInspector();
|
||||
}
|
||||
}
|
||||
11
Assets/PlanetEditor.cs.meta
Normal file
11
Assets/PlanetEditor.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dac449cc3e1349f47afb01b28c87254e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -122,7 +122,7 @@ NavMeshSettings:
|
||||
debug:
|
||||
m_Flags: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &519420028
|
||||
--- !u!1 &148725817
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
@@ -130,10 +130,55 @@ GameObject:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 519420032}
|
||||
- component: {fileID: 519420031}
|
||||
- component: {fileID: 519420029}
|
||||
- component: {fileID: 519420030}
|
||||
- component: {fileID: 148725819}
|
||||
- component: {fileID: 148725818}
|
||||
m_Layer: 0
|
||||
m_Name: Network
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &148725818
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 148725817}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 9960b3a7a4c8979429961d8fee1619f2, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
planets: []
|
||||
--- !u!4 &148725819
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 148725817}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0.8548327, y: -0.0065352265, z: 0.03795021}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &517509222
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 517509225}
|
||||
- component: {fileID: 517509224}
|
||||
- component: {fileID: 517509223}
|
||||
- component: {fileID: 517509226}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
@@ -141,21 +186,87 @@ GameObject:
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &519420029
|
||||
--- !u!81 &517509223
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 519420028}
|
||||
m_GameObject: {fileID: 517509222}
|
||||
m_Enabled: 1
|
||||
--- !u!114 &519420030
|
||||
--- !u!20 &517509224
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 517509222}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
||||
m_projectionMatrixMode: 1
|
||||
m_GateFitMode: 2
|
||||
m_FOVAxisMode: 0
|
||||
m_Iso: 200
|
||||
m_ShutterSpeed: 0.005
|
||||
m_Aperture: 16
|
||||
m_FocusDistance: 10
|
||||
m_FocalLength: 50
|
||||
m_BladeCount: 5
|
||||
m_Curvature: {x: 2, y: 11}
|
||||
m_BarrelClipping: 0.25
|
||||
m_Anamorphism: 0
|
||||
m_SensorSize: {x: 36, y: 24}
|
||||
m_LensShift: {x: 0, y: 0}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 1
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 1
|
||||
m_AllowMSAA: 1
|
||||
m_AllowDynamicResolution: 0
|
||||
m_ForceIntoRT: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
--- !u!4 &517509225
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 517509222}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &517509226
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 519420028}
|
||||
m_GameObject: {fileID: 517509222}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: a79441f348de89743a2939f4d699eac1, type: 3}
|
||||
@@ -193,157 +304,9 @@ MonoBehaviour:
|
||||
m_MipBias: 0
|
||||
m_VarianceClampScale: 0.9
|
||||
m_ContrastAdaptiveSharpening: 0
|
||||
--- !u!20 &519420031
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 519420028}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 2
|
||||
m_BackGroundColor: {r: 0.14150941, g: 0.14150941, b: 0.14150941, a: 0}
|
||||
m_projectionMatrixMode: 1
|
||||
m_GateFitMode: 2
|
||||
m_FOVAxisMode: 0
|
||||
m_Iso: 200
|
||||
m_ShutterSpeed: 0.005
|
||||
m_Aperture: 16
|
||||
m_FocusDistance: 10
|
||||
m_FocalLength: 50
|
||||
m_BladeCount: 5
|
||||
m_Curvature: {x: 2, y: 11}
|
||||
m_BarrelClipping: 0.25
|
||||
m_Anamorphism: 0
|
||||
m_SensorSize: {x: 36, y: 24}
|
||||
m_LensShift: {x: 0, y: 0}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 34
|
||||
orthographic: 1
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 0
|
||||
m_HDR: 1
|
||||
m_AllowMSAA: 0
|
||||
m_AllowDynamicResolution: 0
|
||||
m_ForceIntoRT: 0
|
||||
m_OcclusionCulling: 0
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
--- !u!4 &519420032
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 519420028}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &619394800
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 619394802}
|
||||
- component: {fileID: 619394801}
|
||||
m_Layer: 0
|
||||
m_Name: Global Light 2D
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &619394801
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 619394800}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 073797afb82c5a1438f328866b10b3f0, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_ComponentVersion: 1
|
||||
m_LightType: 4
|
||||
m_BlendStyleIndex: 0
|
||||
m_FalloffIntensity: 0.5
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_Intensity: 1
|
||||
m_LightVolumeIntensity: 1
|
||||
m_LightVolumeIntensityEnabled: 0
|
||||
m_ApplyToSortingLayers: 00000000
|
||||
m_LightCookieSprite: {fileID: 0}
|
||||
m_DeprecatedPointLightCookieSprite: {fileID: 0}
|
||||
m_LightOrder: 0
|
||||
m_AlphaBlendOnOverlap: 0
|
||||
m_OverlapOperation: 0
|
||||
m_NormalMapDistance: 3
|
||||
m_NormalMapQuality: 2
|
||||
m_UseNormalMap: 0
|
||||
m_ShadowIntensityEnabled: 0
|
||||
m_ShadowIntensity: 0.75
|
||||
m_ShadowVolumeIntensityEnabled: 0
|
||||
m_ShadowVolumeIntensity: 0.75
|
||||
m_LocalBounds:
|
||||
m_Center: {x: 0, y: -0.00000011920929, z: 0}
|
||||
m_Extent: {x: 0.9985302, y: 0.99853027, z: 0}
|
||||
m_PointLightInnerAngle: 360
|
||||
m_PointLightOuterAngle: 360
|
||||
m_PointLightInnerRadius: 0
|
||||
m_PointLightOuterRadius: 1
|
||||
m_ShapeLightParametricSides: 5
|
||||
m_ShapeLightParametricAngleOffset: 0
|
||||
m_ShapeLightParametricRadius: 1
|
||||
m_ShapeLightFalloffSize: 0.5
|
||||
m_ShapeLightFalloffOffset: {x: 0, y: 0}
|
||||
m_ShapePath:
|
||||
- {x: -0.5, y: -0.5, z: 0}
|
||||
- {x: 0.5, y: -0.5, z: 0}
|
||||
- {x: 0.5, y: 0.5, z: 0}
|
||||
- {x: -0.5, y: 0.5, z: 0}
|
||||
--- !u!4 &619394802
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 619394800}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1660057539 &9223372036854775807
|
||||
SceneRoots:
|
||||
m_ObjectHideFlags: 0
|
||||
m_Roots:
|
||||
- {fileID: 519420032}
|
||||
- {fileID: 619394802}
|
||||
- {fileID: 517509225}
|
||||
- {fileID: 148725819}
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8c9cfa26abfee488c85f1582747f6a02
|
||||
guid: ecb82996865903549b73c627ca78642b
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
8
Assets/Sprites.meta
Normal file
8
Assets/Sprites.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f6c7ac88abe42964692191d6437d0cbe
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
49
Assets/Sprites/Default.mat
Normal file
49
Assets/Sprites/Default.mat
Normal file
@@ -0,0 +1,49 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Default
|
||||
m_Shader: {fileID: 4800000, guid: e260cfa7296ee7642b167f1eb5be5023, type: 3}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _AlphaTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MaskTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _NormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _EnableExternalAlpha: 0
|
||||
m_Colors:
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _Flip: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _RendererColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
8
Assets/Sprites/Default.mat.meta
Normal file
8
Assets/Sprites/Default.mat.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9435572d88e255e4c8dccdfa581d9598
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -12,6 +12,7 @@ AudioManager:
|
||||
m_DSPBufferSize: 1024
|
||||
m_VirtualVoiceCount: 512
|
||||
m_RealVoiceCount: 32
|
||||
m_EnableOutputSuspension: 1
|
||||
m_SpatializerPlugin:
|
||||
m_AmbisonicDecoderPlugin:
|
||||
m_DisableAudio: 0
|
||||
|
||||
31
README.md
31
README.md
@@ -1,20 +1,15 @@
|
||||
# Quest
|
||||
# Rebirth
|
||||
|
||||
A generic, Unity-based dungeon-crawler, with a focus on procedural maps & multiplayer support.
|
||||
A simple puzzle game about growth.
|
||||
|
||||
- [ ] Graphics
|
||||
- [ ] Simple Sprites
|
||||
- [ ] Basic Shaders
|
||||
- [ ] Gameplay
|
||||
- [ ] Combat
|
||||
- [ ] Melee Combat
|
||||
- [ ] Ranged Combat
|
||||
- [ ] Aura Skills
|
||||
- [ ] Item Pickups
|
||||
- [ ] Limited Damage Boost
|
||||
- [ ] Health Boost
|
||||
- [ ] Speed Boost
|
||||
- [ ] Multiplayer
|
||||
- [ ] Self Hosted Server-Client
|
||||
- [ ] Simple Chat System
|
||||
- [ ] Map Generation
|
||||
## Control Design
|
||||
|
||||
- Camera
|
||||
- WASD, Arrow keys to move.
|
||||
- Right click, drag to move.
|
||||
- Scroll wheel to zoom. Mouse position dictates zoom center.
|
||||
- Units
|
||||
- Left click on/nearby a planet.
|
||||
- Scroll to lower/raise the total percentage of units.
|
||||
- Drag to another planet, release to send units.
|
||||
- Until units arrive, they won't be selectable or part of the usable population on a planet.
|
||||
|
||||
Reference in New Issue
Block a user