2_Auditorium-like
This musical-puzzle game was made during the 2nd week of 3WA Unity Training Course and inspired by the original Auditorium :
- Goal : Wake all the Music Boxes (grey rectangles) by redirecting the particle flow with the Effectors (oriented circles)
- Controls : Mouse + right click
- Move effector : right click on the center of the effector + move mouse
- Expand/Reduce effector attraction : right click on the edge of the effector + move mouse
Note: Touchscreen can be used but it's less precise than the mouse.
- Topics studied :
- 2D Project
- Attributes for inspector
- [Header("text")]
- [Range(min,max)]
- [Tooltip("text")]
- Gizmos
- OnDrawGizmos()
- Gizmos.DrawWireSphere()
- Gizmos.DrawRay()
- Audio
- AudioListener
- AudioSource
- AudioClip
- Particle Spawner
- Particle = a prefab composed of a SpriteRenderer with a sprite Circle + Rigidbody2D with Linear drag + CircleCollider2D with isTrigger checked + TrailRenderer
- Object Pooling
- Instatiate a certain amount of object instatiate (here particles) that can be reused by enabling/disabling them
- Physics2D => always use components or methods with 2D suffix
- Random class
- Random.InsindeUnitCircle()
- Random.Range()
- Mathf class
- Mathf.Clamp()
- Mathf.Clamp01()
- Mathf.FloorToInt()
- Mathf.Infinity
- AreaEffector2D
- [RequireComponent] to use on top of a class. Add the component in the inspector and protect the component to be removed
- Debug class
- Debug.DrawRay()
- Raycast
- Ray
- Physics2D.Raycast()
- Physics2D.GetRayIntersection()
- RaycastHit2D
- Mouse Input
- Input.GetMouseButtonDown()
- Input.GetMouseButtonUp()
- Input.GetMouseButton()
- Input.mousePosition
- Color class
- LayerMask class
- using Unity.Engine.SceneManagement;
- SceneManager.LoadScene()
- Add scenes to Build Settings
Leave a comment
Log in with itch.io to leave a comment.