Permalink
Browse files

added basic tile editor resources and a shitty demo lvl 4

  • Loading branch information...
Nicolaskdc committed Oct 12, 2017
1 parent caaf93b commit ac5084fa176ad777a784055a64522f55147e9934
Showing with 9,754 additions and 244 deletions.
  1. +2 −2 Assets/Materials/Floor_tile.png.meta
  2. +33 −0 Assets/Prefabs/BurritoSpawnPoint.prefab
  3. +35 −2 Assets/Prefabs/ObjectSpawnArea.prefab
  4. +9 −0 Assets/Prefabs/Powerups.meta
  5. +0 −1 Assets/Scripts/Meta Scripts/_preloader.cs
  6. +4 −0 Assets/Scripts/Misc Scripts/IngredientSet.cs
  7. +9 −0 Assets/TileDraw.meta
  8. +9 −0 Assets/TileDraw/Editor.meta
  9. +9 −0 Assets/TileDraw/Editor/Assets.meta
  10. +69 −0 Assets/TileDraw/Editor/Assets/EntitySetManager.cs
  11. +11 −0 Assets/TileDraw/Editor/Assets/EntitySetManager.cs.meta
  12. +280 −0 Assets/TileDraw/Editor/Assets/ResourceManager.cs
  13. +11 −0 Assets/TileDraw/Editor/Assets/ResourceManager.cs.meta
  14. +71 −0 Assets/TileDraw/Editor/Assets/TileSetManager.cs
  15. +11 −0 Assets/TileDraw/Editor/Assets/TileSetManager.cs.meta
  16. +9 −0 Assets/TileDraw/Editor/Map.meta
  17. +219 −0 Assets/TileDraw/Editor/Map/MapDrawing.cs
  18. +11 −0 Assets/TileDraw/Editor/Map/MapDrawing.cs.meta
  19. +9 −0 Assets/TileDraw/Editor/Map/MapDrawingStates.meta
  20. +113 −0 Assets/TileDraw/Editor/Map/MapDrawingStates/EntityMapDrawState.cs
  21. +11 −0 Assets/TileDraw/Editor/Map/MapDrawingStates/EntityMapDrawState.cs.meta
  22. +23 −0 Assets/TileDraw/Editor/Map/MapDrawingStates/MapDrawState.cs
  23. +11 −0 Assets/TileDraw/Editor/Map/MapDrawingStates/MapDrawState.cs.meta
  24. +110 −0 Assets/TileDraw/Editor/Map/MapDrawingStates/TextureMapDrawState.cs
  25. +11 −0 Assets/TileDraw/Editor/Map/MapDrawingStates/TextureMapDrawState.cs.meta
  26. +77 −0 Assets/TileDraw/Editor/Map/MapDrawingStates/VertexDrawState.cs
  27. +11 −0 Assets/TileDraw/Editor/Map/MapDrawingStates/VertexDrawState.cs.meta
  28. +150 −0 Assets/TileDraw/Editor/Map/MapManagerEditor.cs
  29. +11 −0 Assets/TileDraw/Editor/Map/MapManagerEditor.cs.meta
  30. +84 −0 Assets/TileDraw/Editor/Map/MapManagerWizard.cs
  31. +11 −0 Assets/TileDraw/Editor/Map/MapManagerWizard.cs.meta
  32. BIN Assets/TileDraw/Editor/Map/x.png
  33. +73 −0 Assets/TileDraw/Editor/Map/x.png.meta
  34. +9 −0 Assets/TileDraw/Editor/Menu.meta
  35. +29 −0 Assets/TileDraw/Editor/Menu/Menu.cs
  36. +11 −0 Assets/TileDraw/Editor/Menu/Menu.cs.meta
  37. +9 −0 Assets/TileDraw/Editor/Util.meta
  38. +30 −0 Assets/TileDraw/Editor/Util/EditorUtil.cs
  39. +11 −0 Assets/TileDraw/Editor/Util/EditorUtil.cs.meta
  40. +9 −0 Assets/TileDraw/Resources.meta
  41. +9 −0 Assets/TileDraw/Resources/EntitySet.meta
  42. +24 −0 Assets/TileDraw/Resources/EntitySet/DefaultEntity.asset
  43. +9 −0 Assets/TileDraw/Resources/EntitySet/DefaultEntity.asset.meta
  44. +9 −0 Assets/TileDraw/Resources/TileSet.meta
  45. +15 −0 Assets/TileDraw/Resources/TileSet/DefaultTileSet.asset
  46. +9 −0 Assets/TileDraw/Resources/TileSet/DefaultTileSet.asset.meta
  47. +9 −0 Assets/TileDraw/Scripts.meta
  48. +9 −0 Assets/TileDraw/Scripts/Assets.meta
  49. +33 −0 Assets/TileDraw/Scripts/Assets/Entity.cs
  50. +11 −0 Assets/TileDraw/Scripts/Assets/Entity.cs.meta
  51. +28 −0 Assets/TileDraw/Scripts/Assets/EntitySet.cs
  52. +11 −0 Assets/TileDraw/Scripts/Assets/EntitySet.cs.meta
  53. +9 −0 Assets/TileDraw/Scripts/Assets/IAsset.cs
  54. +11 −0 Assets/TileDraw/Scripts/Assets/IAsset.cs.meta
  55. +14 −0 Assets/TileDraw/Scripts/Assets/Set.cs
  56. +11 −0 Assets/TileDraw/Scripts/Assets/Set.cs.meta
  57. +32 −0 Assets/TileDraw/Scripts/Assets/TextureAsset.cs
  58. +11 −0 Assets/TileDraw/Scripts/Assets/TextureAsset.cs.meta
  59. +27 −0 Assets/TileDraw/Scripts/Assets/TileSet.cs
  60. +11 −0 Assets/TileDraw/Scripts/Assets/TileSet.cs.meta
  61. +9 −0 Assets/TileDraw/Scripts/Map.meta
  62. +45 −0 Assets/TileDraw/Scripts/Map/Cell.cs
  63. +11 −0 Assets/TileDraw/Scripts/Map/Cell.cs.meta
  64. +73 −0 Assets/TileDraw/Scripts/Map/CellFactory.cs
  65. +11 −0 Assets/TileDraw/Scripts/Map/CellFactory.cs.meta
  66. +195 −0 Assets/TileDraw/Scripts/Map/MapEditing.cs
  67. +11 −0 Assets/TileDraw/Scripts/Map/MapEditing.cs.meta
  68. +275 −0 Assets/TileDraw/Scripts/Map/MapManager.cs
  69. +11 −0 Assets/TileDraw/Scripts/Map/MapManager.cs.meta
  70. +33 −0 Assets/TileDraw/Scripts/Map/Tile.cs
  71. +11 −0 Assets/TileDraw/Scripts/Map/Tile.cs.meta
  72. +9 −0 Assets/TileDraw/Scripts/Util.meta
  73. +125 −0 Assets/TileDraw/Scripts/Util/CreatePlane.cs
  74. +11 −0 Assets/TileDraw/Scripts/Util/CreatePlane.cs.meta
  75. +18 −0 Assets/TileDraw/Scripts/Util/Enums.cs
  76. +11 −0 Assets/TileDraw/Scripts/Util/Enums.cs.meta
  77. +104 −0 Assets/TileDraw/Scripts/Util/Util.cs
  78. +11 −0 Assets/TileDraw/Scripts/Util/Util.cs.meta
  79. +1 −0 Assets/TileDraw/readme.txt
  80. +7 −0 Assets/TileDraw/readme.txt.meta
  81. +6,656 −237 Assets/_Scenes/Level_4.unity
  82. +199 −2 Assets/_Scenes/_preload.unity

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -22,6 +22,7 @@ GameObject:
- component: {fileID: 33348903209362004}
- component: {fileID: 65003330544570044}
- component: {fileID: 114993288630323100}
- component: {fileID: 23897707693728552}
m_Layer: 0
m_Name: BurritoSpawnPoint
m_TagString: SpawnArea
@@ -42,6 +43,38 @@ Transform:
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!23 &23897707693728552
MeshRenderer:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1222307406735012}
m_Enabled: 0
m_CastShadows: 1
m_ReceiveShadows: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
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_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
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
--- !u!33 &33348903209362004
MeshFilter:
m_ObjectHideFlags: 1
@@ -22,6 +22,7 @@ GameObject:
- component: {fileID: 33534725316247090}
- component: {fileID: 65372911929603560}
- component: {fileID: 114518617242926320}
- component: {fileID: 23869971278929466}
m_Layer: 0
m_Name: ObjectSpawnArea
m_TagString: SpawnArea
@@ -36,12 +37,44 @@ Transform:
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1175849715299252}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 100, y: 0.1, z: 100}
m_LocalPosition: {x: -17.079624, y: 0, z: 2.933604}
m_LocalScale: {x: 7, y: 0.1, z: 7}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!23 &23869971278929466
MeshRenderer:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1175849715299252}
m_Enabled: 0
m_CastShadows: 1
m_ReceiveShadows: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_Materials:
- {fileID: 2100000, guid: 4b43412a6b38bff41abf54713f5bf1a0, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
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
--- !u!33 &33534725316247090
MeshFilter:
m_ObjectHideFlags: 1

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -7,7 +7,6 @@ public class _preloader : MonoBehaviour {
void Awake () {
SceneManager.LoadScene ("LevelSelection");
Debug.Log("hi");
LoggingManager.instance.Initialize(094, 1, true);
LoggingManager.instance.RecordPageLoad();
@@ -61,6 +61,10 @@ public enum Ingredients {
// Formats the ingredient set as a string
override public string ToString(){
if (ingredients.Length == 0) {
return "Empty ingredient set";
}
string result = "";
for (int i = 0; i < ingredients.Length; i++) {
if (ingredients[i] != 0) {
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1,69 @@
using System;
using UnityEditor;
using UnityEngine;
using Object = UnityEngine.Object;
using TileDraw;
[Serializable]
public class EntitySetManager : ResourceManager
{
public override void Init()
{
Path += @"EntitySet/";
}
protected override Set LoadSet(string file)
{
var asset = AssetDatabase.LoadAssetAtPath(file, typeof(EntitySet)) as Set;
return asset;
}
protected override Set CreateSet()
{
return CreateInstance(typeof(EntitySet)) as Set;
}
protected override Object GetAssetField(Rect rect, Object obj)
{
rect.width = 128;
return EditorGUI.ObjectField(rect, obj, typeof(GameObject), false);
}
protected override void AddNewAsset(Object o)
{
var t = new Entity((GameObject)o);
((EntitySet)CurrentSet).AddAsset(t);
}
protected override void RemoveAsset(IAsset o)
{
var t = (Entity)o;
((EntitySet)CurrentSet).RemoveAsset(t);
}
protected override void ShiftLeft(int index)
{
var assets = ((EntitySet)CurrentSet).Assets;
if (index <= 0 || index >= assets.Count) return;
var a = assets[index];
assets[index] = assets[index - 1];
assets[index - 1] = a;
}
protected override void ShiftRight(int index)
{
var assets = ((EntitySet)CurrentSet).Assets;
if (index < 0 || index >= assets.Count - 1) return;
var a = assets[index];
assets[index] = assets[index + 1];
assets[index + 1] = a;
}
}

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit ac5084f

Please sign in to comment.