In tutorial (2.2) we looked at how to launch projectiles, in this case food, at animals. This is done by writing script that makes the object go forwards, by using prefabs we can make that motion occur whenever the player presses a certain button, in this case the spacebar, a pretty cool mechanic with plenty of uses. We also looked at how to create boundaries on the edge of the map, which deletes/removes any objects that go past them and leave the map.
In the final tutorial (2.3) we pretty much spawned animals by pressing a button and made them walk around. All of this was done with random values so the animals spawned randomly at different points in the map. This was done similarly to what we did in the previous tutorial. We also messed with the camera a bit and flipped between isometric view and perspective view. When complete the final version is pretty much space invaders but you have random animals trying to kill you, unique stuff.
Source Unity
No comments:
Post a Comment