Commit cd94a1c5 authored by PET's avatar PET

Fase terminada

parent c5a7d0b5

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

<?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>
<RootNamespace></RootNamespace>
<ProjectGuid>{3887FA39-057A-6A0F-6813-944155B2FE46}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<AssemblyName>Assembly-UnityScript</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<BaseDirectory>Assets</BaseDirectory>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>Temp\bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;UNITY_5_3_OR_NEWER;UNITY_5_3_5;UNITY_5_3;UNITY_5;ENABLE_NEW_BUGREPORTER;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_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_SPRITE_POLYGON;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_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;INCLUDE_IL2CPP;INCLUDE_DIRECTX12;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_LOCALIZATION;ENABLE_ANDROID_ATLAS_ETC1_COMPRESSION;ENABLE_EDITOR_TESTS_RUNNER;UNITY_STANDALONE_LINUX;UNITY_STANDALONE;UNITY_STANDALONE_LINUX_API;ENABLE_SUBSTANCE;ENABLE_TEXTUREID_MAP;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_UNITYWEBREQUEST;ENABLE_CLUSTERINPUT;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_LINUX;UNITY_TEAM_LICENSE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoWarn>0169</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>Temp\bin\Release\</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoWarn>0169</NoWarn>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.XML" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="UnityEngine">
<HintPath>/opt/Unity/Editor/Data/Managed/UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEditor">
<HintPath>/opt/Unity/Editor/Data/Managed/UnityEditor.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Assets\CaiLetras.js" />
<Compile Include="Assets\Letra.js" />
<Compile Include="Assets\NewBehaviourScript.js" />
<Compile Include="Assets\letraFita.js" />
<Compile Include="Assets\maquina.js" />
<Compile Include="Assets\pontos.js" />
<Compile Include="Assets\raposa.js" />
<Reference Include="UnityEngine.UI">
<HintPath>/opt/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.Networking">
<HintPath>/opt/Unity/Editor/Data/UnityExtensions/Unity/Networking/UnityEngine.Networking.dll</HintPath>
</Reference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
#pragma strict
public var myCamera : Camera;
// Use this for initialization
function Start () {
}
// Update is called once per frame
function Update () {
var vec : Vector3 = myCamera.ScreenToWorldPoint(Input.mousePosition);
vec.z = 0.0;
vec.y = -3.83;
vec.x = Mathf.Clamp(vec.x, -10.3, 10.3);
transform.position = vec;
}
/*#pragma strict
public var speed = 1.5f;
function Start () {
}
function Update () {
if ((Input.GetKeyDown("a")) && (-11 <= transform.position.x))
transform.position += Vector3.left * speed * Time.deltaTime;
else if ((Input.GetKeyDown("d")) && (transform.position.x <= 11))
transform.position += Vector3.right * speed * Time.deltaTime;
}
*/
#pragma strict
var letras: GameObject[];
var ultima : int;
static var tamTela : Vector2;
function Start () {
tamTela.y = Camera.main.orthographicSize;
tamTela.x = tamTela.y*Screen.width/Screen.height;
ultima = -1;
// a cada meio segundo, chama essa função
InvokeRepeating("selecionaLetra", 0, 1);
}
function Update () {
}
function selecionaLetra(){
var aleatorius: int;
var l: GameObject;
aleatorius = Random.Range(0,5);
while (ultima == aleatorius)
aleatorius = Random.Range(0,5);
ultima = aleatorius;
l = letras[aleatorius];
//var auxScript : letra = l.GetComponent("letra");
//letra.id = aleatorius;
// instancia uma letra nesse mundo, numa posição aleatória
aleatorius = Random.Range (screenPosi_to_worldPosix(Screen.width) * -1, screenPosi_to_worldPosix(Screen.width) * 0.83);
var aux = Instantiate (l, Vector3 (aleatorius, 10*Screen.height/Screen.width, 4), transform.rotation);
}
static function screenPosi_to_worldPosix(x : float) : float{
var retorno : float;
var auxX = x/Screen.width;
retorno = (-tamTela.x) + auxX*2*tamTela.x;
return retorno;
}
fileFormatVersion: 2
guid: 15bf05b93935440dda8aeb66153a5e27
timeCreated: 1467982422
guid: 2d45cc271b514431184e52f691aaa2f7
timeCreated: 1468415801
licenseType: Free
MonoImporter:
serializedVersion: 2
......
#pragma strict
var letras: GameObject[]; // Vetor com os objetos das letras instanciáveis
var aleatorius: int; // Carrega um valor aleatório gerado em código
var l: GameObject; // Usada para pegar letra do vetor e instanciar
var aux : GameObject[]; // Recebe a instância atual
var tamFita: int;
static var atual: int; // Letra atual do DNA (está na maquina)
static var ready: int; // Indica quando fita esta pronta e jogo pode começar
static var andar: int; // Variável que indica se a fita pode andar ou não
static var tamTela : Vector2;
var fita: int[]; // Vetor com a fita de DNA gerada para a fase, int pq ID é um int
static var letraAtual : int;
public static var lRNA : int; // Usada para saber qual a letra coletada pelo jogador
var scriptUltimo : letraDNA = null;
function Start () {
/*
Gerar fita de DNA (done)
Instanciar a fita fora da tela (firula)
*/
tamTela.y = Camera.main.orthographicSize;
tamTela.x = tamTela.y*Screen.width/Screen.height;
var i : int;
andar = 0;
tamFita = 21;
atual = 0;
ready = 0;