.


:




:

































 

 

 

 


Digital Media Lab

 

 

  11-307
()

 

:
 
- ..
(, , ...)

 

:
 
- ..
(, , ...)

 

 


 

 

. 3

. 4

.. 5

. 6

() 7

. 8

.. 11

. 11

. 12

. 13

. 14

HUD.. 15

. 15

. 15

. 17

. 18

. 19

 

 

 

, , . . Doom, 1993- Doom2016- ., .

. , . (n(n-1)/2). , . , , , . . , . .

, , , , - , .

, .

 

DigitalMediaLab, , Unity Unreal Engine. : , , , , , 3D-, , AutodeskMaya, Blender, FoundryNuke.

Unity, , , , .

:

- ;

- ;

- ;

, . . .

, , . , . , . , .

.

 

Unity.

. Photoshop .

1. Photoshop

, , .

Project 4 :

- Textures, ;

- Scripts C# ;

- Prefabs, ;

- Scenes .

"Textures", . Textures Hierarchy.

. .

2.

, #. , Update :

transform.position += new Vector3 (tiltAroundY * x, moveY * y, 0);

transform.position += new Vector3 (Input.GetAxis ("Horizontal") * x, Input.GetAxis ("Vertical") * y, 0);

transform.position = new Vector2 (Mathf.Clamp(transform.position.x, -6.76f, 6.76f), Mathf.Clamp(transform.position.y, -3.5f, 2));

. Scripts .

, , , , . , , . Y.

(SpriteSheet). , . . , . . , . , . .

.

Y .

, 100.

()

, . . . , . . Y . .

3. ()

, . , . , :

if ((Input.GetKey ("space") || Input.GetButton ("Fire1")) &&Time.time>nextfire) {

nextfire = Time.time + tempoffire;

Instantiate (bullet, transform.position, Quaternion.identity);

}

.

, , , . Textures Hierarchy , , . . , 10. , .

4.

, , , . . , . .

5.

, . , , "boxcollider". "istrigger" -. Unity OnTriggerEnter2D -.

. , , , , . , , , , 100, , .

, .

 

 

, , . . , . , , , , , .

. . OnAudioFilterRead . :

data[i] = (float)(gain * Math.Sign(Math.Sin(phase)));

Update , , , . ( ), rate, , .

, , AudioSource( ) . .

, .

6.

, , .

. . OnAudioFilterRead :

for (inti = 0; i<data.Length; i++){

data[i] = offset -1.0f + (float)RandomNumber.NextDouble()*2.0f;

}

. . , . . . . , . , . , .

7.



<== | ==>
4. , . |
:


: 2018-10-14; !; : 254 |


:

:

, ; , .
==> ...

1881 - | 1665 -


© 2015-2024 lektsii.org - -

: 0.017 .