video thumbnail 12:47
Introduction to Game Development (E14: falling blocks game 2/4)

2016-06-19

[public] 58.4K views, 1.44K likes, 11.0 dislikes audio only

Welcome to episode fourteen of this introduction to game development in Unity with C#.

In this episode we instantiate the falling blocks and randomize their rotation and scale.

Project files:

https://github.com/SebLague/Intro-to-Gamedev

If you'd like to support these videos, you can make a recurring monthly donation (cancellable at any time) through Patreon: http://bit.ly/sebPatreon

Or a once-off donation through PayPal:

http://bit.ly/SupportGamedevTutorials

Contribute subtitles here:

http://www.youtube.com/timedtext_video?v=5vov9H7RuF8&ref=share


calculate the screen size in world unit
/youtube/video/5vov9H7RuF8?t=120.549
spawn it in from the top of the screen
/youtube/video/5vov9H7RuF8?t=207.78999
give the fallen blocks a random size
/youtube/video/5vov9H7RuF8?t=363.01001
specify a minimum and a maximum size
/youtube/video/5vov9H7RuF8?t=386.12
set the scale of the newly instantiate an object
/youtube/video/5vov9H7RuF8?t=439.42999
get the blocks spawning in at an angle
/youtube/video/5vov9H7RuF8?t=553.88898
get a vector with spawn angle on the z axis
/youtube/video/5vov9H7RuF8?t=616.16998
add the full spawn size to the object's height
/youtube/video/5vov9H7RuF8?t=679.43903