Commit 8f3ce47a authored by 18손재민's avatar 18손재민

Merge branch 'map'

parents f635cd4d 03403988
...@@ -52,7 +52,7 @@ MonoBehaviour: ...@@ -52,7 +52,7 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
grid: {fileID: 0} grid: {fileID: 0}
tetrisMapSize: 1 tetrisMapSize: 24
tetrisMapCoord: {x: 0, y: 0, z: 0} tetrisMapCoord: {x: 0, y: 0, z: 0}
speed: 0 speed: 0
gravity: 0 gravity: 0
...@@ -62,5 +62,12 @@ MonoBehaviour: ...@@ -62,5 +62,12 @@ MonoBehaviour:
spawnBossTetrimino: 0 spawnBossTetrimino: 0
tetrisMap: {fileID: 0} tetrisMap: {fileID: 0}
currentTetrimino: {fileID: 0} currentTetrimino: {fileID: 0}
halfRoomList: normalRoomList:
- {fileID: 114931030853536078, guid: 279f5b34ed5c53545990e499c74cbbe7, type: 2} - {fileID: 114608209787691684, guid: 702a2175c3762fd4b9bc1fac0357a1a0, type: 2}
itemRoomList: []
specialRoomList:
- {fileID: 114076836714455396, guid: 1ec0004bbafe6764d9462251b866e6e6, type: 2}
- {fileID: 114589998919791384, guid: fe17cba28f910e54faf7b866f86bfd3e, type: 2}
- {fileID: 114834209009617488, guid: f6834170b7152ee4db0dc7e165dcca70, type: 2}
- {fileID: 114310635400106216, guid: 7da800d1a4355fd4aa02e3518cd9e1fb, type: 2}
- {fileID: 114495009210863316, guid: 4b147f1162668f44aa55982681399aec, type: 2}
fileFormatVersion: 2
guid: 0aa1c86779a88b84fb24b8cbe899753a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 1bf0932fb2e139643a2c515c3dadb44e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: 702a2175c3762fd4b9bc1fac0357a1a0
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 100100000
userData:
assetBundleName:
assetBundleVariant:
...@@ -26,7 +26,7 @@ GameObject: ...@@ -26,7 +26,7 @@ GameObject:
- component: {fileID: 66289433936503254} - component: {fileID: 66289433936503254}
- component: {fileID: 2113883504774285740} - component: {fileID: 2113883504774285740}
m_Layer: 8 m_Layer: 8
m_Name: Room0 m_Name: Room 0(half)
m_TagString: Untagged m_TagString: Untagged
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
......
fileFormatVersion: 2
guid: fb0a6fe7d068d17429ca06fa11f93057
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: 7da800d1a4355fd4aa02e3518cd9e1fb
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 100100000
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: 1ec0004bbafe6764d9462251b866e6e6
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 100100000
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: fe17cba28f910e54faf7b866f86bfd3e
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 100100000
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: f6834170b7152ee4db0dc7e165dcca70
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 100100000
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: 4b147f1162668f44aa55982681399aec
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 100100000
userData:
assetBundleName:
assetBundleVariant:
...@@ -180,7 +180,7 @@ MonoBehaviour: ...@@ -180,7 +180,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!114 &114323397412866622 --- !u!114 &114323397412866622
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
...@@ -197,7 +197,7 @@ MonoBehaviour: ...@@ -197,7 +197,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!114 &114753577101051656 --- !u!114 &114753577101051656
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
...@@ -214,7 +214,7 @@ MonoBehaviour: ...@@ -214,7 +214,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!114 &114851979720776072 --- !u!114 &114851979720776072
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
...@@ -252,7 +252,7 @@ MonoBehaviour: ...@@ -252,7 +252,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!212 &212152418876382836 --- !u!212 &212152418876382836
SpriteRenderer: SpriteRenderer:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
......
...@@ -180,7 +180,7 @@ MonoBehaviour: ...@@ -180,7 +180,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!114 &114163463770396558 --- !u!114 &114163463770396558
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
...@@ -197,7 +197,7 @@ MonoBehaviour: ...@@ -197,7 +197,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!114 &114466843507187060 --- !u!114 &114466843507187060
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
...@@ -214,7 +214,7 @@ MonoBehaviour: ...@@ -214,7 +214,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!114 &114787691033818184 --- !u!114 &114787691033818184
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
...@@ -231,7 +231,7 @@ MonoBehaviour: ...@@ -231,7 +231,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!114 &114826030636358216 --- !u!114 &114826030636358216
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
......
...@@ -180,7 +180,7 @@ MonoBehaviour: ...@@ -180,7 +180,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!114 &114135637264954520 --- !u!114 &114135637264954520
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
...@@ -197,7 +197,7 @@ MonoBehaviour: ...@@ -197,7 +197,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!114 &114317610525364840 --- !u!114 &114317610525364840
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
...@@ -214,7 +214,7 @@ MonoBehaviour: ...@@ -214,7 +214,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!114 &114346591663730294 --- !u!114 &114346591663730294
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
...@@ -231,7 +231,7 @@ MonoBehaviour: ...@@ -231,7 +231,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!114 &114568813863931164 --- !u!114 &114568813863931164
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
......
...@@ -180,7 +180,7 @@ MonoBehaviour: ...@@ -180,7 +180,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!114 &114213829136544718 --- !u!114 &114213829136544718
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
...@@ -197,7 +197,7 @@ MonoBehaviour: ...@@ -197,7 +197,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!114 &114426654816215182 --- !u!114 &114426654816215182
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
...@@ -235,7 +235,7 @@ MonoBehaviour: ...@@ -235,7 +235,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!114 &114908975501692068 --- !u!114 &114908975501692068
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
...@@ -252,7 +252,7 @@ MonoBehaviour: ...@@ -252,7 +252,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!212 &212207191686043862 --- !u!212 &212207191686043862
SpriteRenderer: SpriteRenderer:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
......
...@@ -180,7 +180,7 @@ MonoBehaviour: ...@@ -180,7 +180,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!114 &114184053320687194 --- !u!114 &114184053320687194
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
...@@ -197,7 +197,7 @@ MonoBehaviour: ...@@ -197,7 +197,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!114 &114316302151506316 --- !u!114 &114316302151506316
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
...@@ -214,7 +214,7 @@ MonoBehaviour: ...@@ -214,7 +214,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!114 &114491658978157548 --- !u!114 &114491658978157548
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
...@@ -252,7 +252,7 @@ MonoBehaviour: ...@@ -252,7 +252,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!212 &212368084699848572 --- !u!212 &212368084699848572
SpriteRenderer: SpriteRenderer:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
......
...@@ -180,7 +180,7 @@ MonoBehaviour: ...@@ -180,7 +180,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!114 &114250342630536598 --- !u!114 &114250342630536598
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
...@@ -197,7 +197,7 @@ MonoBehaviour: ...@@ -197,7 +197,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!114 &114555629497930862 --- !u!114 &114555629497930862
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
...@@ -214,7 +214,7 @@ MonoBehaviour: ...@@ -214,7 +214,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!114 &114609423914388260 --- !u!114 &114609423914388260
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
...@@ -231,7 +231,7 @@ MonoBehaviour: ...@@ -231,7 +231,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!114 &114813872723638092 --- !u!114 &114813872723638092
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
......
...@@ -180,7 +180,7 @@ MonoBehaviour: ...@@ -180,7 +180,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!114 &114116348516849362 --- !u!114 &114116348516849362
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
...@@ -218,7 +218,7 @@ MonoBehaviour: ...@@ -218,7 +218,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!114 &114930072884505966 --- !u!114 &114930072884505966
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
...@@ -235,7 +235,7 @@ MonoBehaviour: ...@@ -235,7 +235,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!114 &114970417993025404 --- !u!114 &114970417993025404
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
...@@ -252,7 +252,7 @@ MonoBehaviour: ...@@ -252,7 +252,7 @@ MonoBehaviour:
stage: 0 stage: 0
roomConcept: 0 roomConcept: 0
itemRoomType: 0 itemRoomType: 0
specialRoomType: 0 specialRoomType: 5
--- !u!212 &212024274712184554 --- !u!212 &212024274712184554
SpriteRenderer: SpriteRenderer:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
......
...@@ -5,6 +5,13 @@ using UnityEngine; ...@@ -5,6 +5,13 @@ using UnityEngine;
public class CameraController : MonoBehaviour { public class CameraController : MonoBehaviour {
/*
* If camera is in Tetris view, ideal position is (108, 240, -2)
* size 300
* */
GameManager.GameState lastGameState; GameManager.GameState lastGameState;
Vector3 destination; Vector3 destination;
......
...@@ -14,7 +14,13 @@ public class GameManager : MonoBehaviour { ...@@ -14,7 +14,13 @@ public class GameManager : MonoBehaviour {
// Use this for initialization // Use this for initialization
void Start () { void Start () {
gameState = GameState.Ingame; gameState = GameState.Tetris;
var TS = GameObject.Find("TetriminoSpawner").GetComponent<TetriminoSpawner>();
TS.MakeInitialTetrimino();
Vector2 coord = GameObject.Find("MapManager").GetComponent<MapManager>().startRoom.transform.position;
GameObject.Find("Player").transform.position = new Vector2(coord.x, coord.y) + new Vector2(3, 3);
} }
// Update is called once per frame // Update is called once per frame
......
This diff is collapsed.
...@@ -35,7 +35,7 @@ public class Room : MonoBehaviour ...@@ -35,7 +35,7 @@ public class Room : MonoBehaviour
/// <summary> /// <summary>
/// Enum for special room types. /// Enum for special room types.
/// </summary> /// </summary>
public enum SpecialRoomType { Normal, Boss, BothSide, Gold, Amethyst }; public enum SpecialRoomType { Boss, BothSide, Gold, Amethyst, Start, Normal };
/// <summary> /// <summary>
/// Special room types. /// Special room types.
/// </summary> /// </summary>
...@@ -48,10 +48,4 @@ public class Room : MonoBehaviour ...@@ -48,10 +48,4 @@ public class Room : MonoBehaviour
{ {
} }
void Awake()
{
doorInfo = new int[2] { 0, 0 };
}
} }
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
public class HalfRoom : MonoBehaviour { public class RoomInGame : MonoBehaviour {
/// <summary> /// <summary>
/// The enum for door information. /// The enum for door information.
......
...@@ -7,22 +7,22 @@ public class Test : MonoBehaviour { ...@@ -7,22 +7,22 @@ public class Test : MonoBehaviour {
public void ChangeTetrimino() public void ChangeTetrimino()
{ {
var MM = GameObject.FindGameObjectWithTag("MapManager").GetComponent<MapManager>(); var MM = GameObject.Find("MapManager").GetComponent<MapManager>();
var TS = GameObject.FindGameObjectWithTag("TetriminoSpawner").GetComponent<TetriminoSpawner>(); var TS = GameObject.Find("TetriminoSpawner").GetComponent<TetriminoSpawner>();
Destroy(MM.currentTetrimino.gameObject); Destroy(MM.currentTetrimino.gameObject);
TS.MakeTetrimino(); TS.MakeTetrimino();
} }
public void SpawnBossTetrimino() public void SpawnBossTetrimino()
{ {
var MM = GameObject.FindGameObjectWithTag("MapManager").GetComponent<MapManager>(); var MM = GameObject.Find("MapManager").GetComponent<MapManager>();
MM.spawnBossTetrimino = true; MM.spawnBossTetrimino = true;
} }
// Use this for initialization // Use this for initialization
void Start () { void Start () {
} }
// Update is called once per frame // Update is called once per frame
void Update () { void Update () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment