Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified Demon Empire/.vs/Demon Empire/v14/.suo
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using UnityEngine;
using System.Collections;

public class Position : MonoBehaviour {
public class FieldColorChange : MonoBehaviour {

// Use this for initialization
void Start () {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 0 additions & 27 deletions Demon Empire/Assets/Grid.cs

This file was deleted.

Binary file removed Demon Empire/Assets/Scene1.unity
Binary file not shown.
9 changes: 9 additions & 0 deletions Demon Empire/Assets/_scenes.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Demon Empire/Assets/_scenes/SceneU.unity
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Demon Empire/Assets/materials.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Demon Empire/Assets/models.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Demon Empire/Assets/prefabs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Demon Empire/Assets/scripts.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 45 additions & 0 deletions Demon Empire/Assets/scripts/CameraController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
using UnityEngine;
using UnityEditor;
using System.Collections;

public class CameraController : MonoBehaviour
{

public float camAngle = 20;
public float scrollDistance = 5;
public float scrollSpeed = 40;

// Use this for initialization
void Start()
{

}

// Update is called once per frame
void Update()
{

float correct = Mathf.Sin(camAngle) * 5;
float mousePosX = Input.mousePosition.x;
float mousePosY = Input.mousePosition.y;
if (mousePosX < scrollDistance && this.transform.position.x > 0) //linker Rand
{
transform.Translate(Vector3.right * (-scrollSpeed) * Time.deltaTime);
}

if (mousePosX >= Screen.width - scrollDistance && this.transform.position.x < 500)
{
transform.Translate(Vector3.right * scrollSpeed *Time.deltaTime);
}

if (mousePosY < scrollDistance && this.transform.position.z > 0)
{
transform.Translate(Vector3.forward * (-scrollSpeed) * Time.deltaTime, Space.World);
}

if (mousePosY >= Screen.height - scrollDistance && this.transform.position.z < 500)
{
transform.Translate(Vector3.forward * scrollSpeed * Time.deltaTime, Space.World);
}
}
}
12 changes: 12 additions & 0 deletions Demon Empire/Assets/scripts/CameraController.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions Demon Empire/Assets/scripts/Grid.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using UnityEngine;
using System.Collections;

public class Grid : MonoBehaviour
{

public GameObject plane;
public int width;
public int height;

private GameObject[,] grid = new GameObject[50, 50];

void Awake()
{

for (int x = 0; x < width; x++)
{
for (int z = 0; z < height; z++)
{
GameObject gridPlane = (GameObject)Instantiate(plane);
gridPlane.transform.position = new Vector3(gridPlane.transform.position.x + (10 * x),
gridPlane.transform.position.y, gridPlane.transform.position.z + (10 * z));
grid[x, z] = gridPlane;
}
}
}


}
25 changes: 25 additions & 0 deletions Demon Empire/Assets/scripts/MouseOver.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
 using UnityEngine;
using System.Collections;

public class MouseOver : MonoBehaviour
{
Ray ray;
RaycastHit hit;
GameObject last;

void Update()
{
ray = Camera.main.ScreenPointToRay(Input.mousePosition);
if(last != null) {
// last.GetComponent<Renderer>().material.color = Color.clear;
last.GetComponent<MeshRenderer>().enabled = false;
}
if (Physics.Raycast(ray, out hit))
{
// hit.transform.position = new Vector3(hit.transform.position.x , hit.transform.position.y + 5, hit.transform.position.z);
hit.transform.gameObject.GetComponent<MeshRenderer>().enabled = true;
hit.transform.gameObject.GetComponent<Renderer>().material.color = new Color(255, 0, 0, 1);
last = hit.transform.gameObject;
}
}
}
12 changes: 12 additions & 0 deletions Demon Empire/Assets/scripts/MouseOver.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Demon Empire/Assets/terrains.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

83 changes: 83 additions & 0 deletions Demon Empire/Demon Empire.CSharp.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>10.0.20506</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{E7FCCF8C-4492-D819-C852-147D6C68B7DC}</ProjectGuid>
<OutputType>Library</OutputType>
<AssemblyName>Assembly-CSharp</AssemblyName>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<TargetFrameworkIdentifier>.NETFramework</TargetFrameworkIdentifier>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkProfile>Unity Subset v3.5</TargetFrameworkProfile>
<CompilerResponseFile></CompilerResponseFile>
<UnityProjectType>Game:1</UnityProjectType>
<UnityBuildTarget>StandaloneWindows:5</UnityBuildTarget>
<UnityVersion>5.2.1f1</UnityVersion>
<RootNamespace></RootNamespace>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>false</Optimize>
<OutputPath>Temp\UnityVS_bin\Debug\</OutputPath>
<IntermediateOutputPath>Temp\UnityVS_obj\Debug\</IntermediateOutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DefineConstants>DEBUG;TRACE;UNITY_5_2_1;UNITY_5_2;UNITY_5;ENABLE_NEW_BUGREPORTER;ENABLE_2D_PHYSICS;ENABLE_4_6_FEATURES;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_FRAME_DEBUGGER;ENABLE_GENERICS;ENABLE_HOME_SCREEN;ENABLE_IMAGEEFFECTS;ENABLE_LIGHT_PROBES_LEGACY;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_PLUGIN_INSPECTOR;ENABLE_SHADOWS;ENABLE_SINGLE_INSTANCE_BUILD_SETTING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_UNET;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_METRICS;ENABLE_REFLECTION_BUFFERS;INCLUDE_DYNAMIC_GI;INCLUDE_GI;INCLUDE_IL2CPP;INCLUDE_DIRECTX12;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_LOCALIZATION;ENABLE_ANDROID_ATLAS_ETC1_COMPRESSION;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_TEXTUREID_MAP;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_LOG_MIXED_STACKTRACE;ENABLE_UNITYWEBREQUEST;ENABLE_EVENT_QUEUE;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN</DefineConstants>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>false</Optimize>
<OutputPath>Temp\UnityVS_bin\Release\</OutputPath>
<IntermediateOutputPath>Temp\UnityVS_obj\Release\</IntermediateOutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DefineConstants>TRACE;UNITY_5_2_1;UNITY_5_2;UNITY_5;ENABLE_NEW_BUGREPORTER;ENABLE_2D_PHYSICS;ENABLE_4_6_FEATURES;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_FRAME_DEBUGGER;ENABLE_GENERICS;ENABLE_HOME_SCREEN;ENABLE_IMAGEEFFECTS;ENABLE_LIGHT_PROBES_LEGACY;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_PLUGIN_INSPECTOR;ENABLE_SHADOWS;ENABLE_SINGLE_INSTANCE_BUILD_SETTING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_UNET;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_METRICS;ENABLE_REFLECTION_BUFFERS;INCLUDE_DYNAMIC_GI;INCLUDE_GI;INCLUDE_IL2CPP;INCLUDE_DIRECTX12;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_LOCALIZATION;ENABLE_ANDROID_ATLAS_ETC1_COMPRESSION;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_TEXTUREID_MAP;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_LOG_MIXED_STACKTRACE;ENABLE_UNITYWEBREQUEST;ENABLE_EVENT_QUEUE;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;ENABLE_PROFILER;DEBUG;TRACE;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN</DefineConstants>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib" />
<Reference Include="System" />
<Reference Include="System.XML" />
<Reference Include="System.Core" />
<Reference Include="Boo.Lang" />
<Reference Include="UnityScript.Lang" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Xml.Linq" />
<Reference Include="UnityEngine">
<HintPath>Library\UnityAssemblies\UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.Advertisements">
<HintPath>Library\UnityAssemblies\UnityEngine.Advertisements.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UI">
<HintPath>Library\UnityAssemblies\UnityEngine.UI.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.Networking">
<HintPath>Library\UnityAssemblies\UnityEngine.Networking.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.Analytics">
<HintPath>Library\UnityAssemblies\UnityEngine.Analytics.dll</HintPath>
</Reference>
<Reference Include="UnityEditor">
<HintPath>Library\UnityAssemblies\UnityEditor.dll</HintPath>
</Reference>
<Reference Include="Mono.Cecil">
<HintPath>Library\UnityAssemblies\Mono.Cecil.dll</HintPath>
</Reference>
<Reference Include="UnityEditor.iOS.Extensions.Xcode">
<HintPath>Library\UnityAssemblies\UnityEditor.iOS.Extensions.Xcode.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Assets\FieldColorChange.cs" />
<Compile Include="Assets\scripts\CameraController.cs" />
<Compile Include="Assets\scripts\Grid.cs" />
<Compile Include="Assets\scripts\MouseOver.cs" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\SyntaxTree\UnityVS\2015\UnityVS.CSharp.targets" />
</Project>
36 changes: 8 additions & 28 deletions Demon Empire/Demon Empire.sln
Original file line number Diff line number Diff line change
@@ -1,40 +1,20 @@
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2008

Project("{E02BD3AB-021F-FCCA-7035-C92913A4CD31}") = "Demon Empire", "Assembly-CSharp.csproj", "{3059E4BA-BCAC-9B94-3C8E-8AD8FDA84915}"

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2015
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Demon Empire.CSharp", "Demon Empire.CSharp.csproj", "{E7FCCF8C-4492-D819-C852-147D6C68B7DC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3059E4BA-BCAC-9B94-3C8E-8AD8FDA84915}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3059E4BA-BCAC-9B94-3C8E-8AD8FDA84915}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3059E4BA-BCAC-9B94-3C8E-8AD8FDA84915}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3059E4BA-BCAC-9B94-3C8E-8AD8FDA84915}.Release|Any CPU.Build.0 = Release|Any CPU
{E7FCCF8C-4492-D819-C852-147D6C68B7DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E7FCCF8C-4492-D819-C852-147D6C68B7DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E7FCCF8C-4492-D819-C852-147D6C68B7DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E7FCCF8C-4492-D819-C852-147D6C68B7DC}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = Assembly-CSharp.csproj
Policies = $0
$0.TextStylePolicy = $1
$1.inheritsSet = null
$1.scope = text/x-csharp
$0.CSharpFormattingPolicy = $2
$2.inheritsSet = Mono
$2.inheritsScope = text/x-csharp
$2.scope = text/x-csharp
$0.TextStylePolicy = $3
$3.FileWidth = 120
$3.TabWidth = 4
$3.IndentWidth = 4
$3.EolMarker = Unix
$3.inheritsSet = Mono
$3.inheritsScope = text/plain
$3.scope = text/plain
EndGlobalSection

EndGlobal
Binary file modified Demon Empire/Library/AssetServerCacheV3
Binary file not shown.
Binary file modified Demon Empire/Library/CurrentLayout.dwlt
Binary file not shown.
Binary file added Demon Empire/Library/CurrentMaximizeLayout.dwlt
Binary file not shown.
Binary file modified Demon Empire/Library/InspectorExpandedItems.asset
Binary file not shown.
Binary file modified Demon Empire/Library/ProjectSettings.asset
Binary file not shown.
Binary file modified Demon Empire/Library/ScriptAssemblies/Assembly-CSharp.dll
Binary file not shown.
Binary file modified Demon Empire/Library/ScriptAssemblies/Assembly-CSharp.dll.mdb
Binary file not shown.
4 changes: 2 additions & 2 deletions Demon Empire/Library/ScriptAssemblies/BuiltinAssemblies.stamp
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
0000.56490e5e.0000
0000.56490e86.0000
0000.56004218.0000
0000.56004234.0000
Binary file modified Demon Empire/Library/ScriptMapper
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading