Texturing the stars and finishing the work overall.
Interaction menus created and the first star successfully instantiated!

We are working on a better-looking camera transition, correcting some home screen bugs and preparing the pitch.
| usingSystem.Collections; | |
| usingSystem.Collections.Generic; | |
| usingUnityEngine; | |
| publicclassCameraScript:MonoBehaviour | |
| { | |
| floatspeed=50.0f; | |
| publicGameObjectgo; | |
| Vector3lookAt; | |
| // Use this for initialization | |
| voidStart() | |
| { | |
| lookAt=newVector3(0,0,0); | |
| transform.LookAt(lookAt); | |
| } | |
| voidUpdate() | |
| { | |
| if(Input.GetMouseButtonDown(0)) | |
| { | |
| RaycastHithit; | |
| Rayray=Camera.main.ScreenPointToRay(Input.mousePosition); | |
| if(Physics.Raycast(ray,outhit,10000.0f)) | |
| { | |
| if(hit.transform!=null) | |
| { | |
| go=hit.transform.gameObject; | |
| lookAt=hit.transform.gameObject.transform.position; | |
| transform.LookAt(lookAt); | |
| } | |
| } | |
| } | |
| transform.position+=go.transform.position-lookAt; | |
| lookAt=go.transform.position; | |
| if(Input.GetMouseButton(1)) | |
| { | |
| floatmX=Input.GetAxis("Mouse X"); | |
| floatmY=Input.GetAxis("Mouse Y"); | |
| transform.position+=speed*Time.deltaTime*mX*(Vector3.Cross(transform.up,transform.forward).normalized)*Vector3.Magnitude(transform.position-lookAt)/100; | |
| transform.position+=transform.up*speed*Time.deltaTime*mY; | |
| transform.LookAt(lookAt); | |
| } | |
| floatscroll=Input.GetAxis("Mouse ScrollWheel"); | |
| transform.position+=scroll*Time.deltaTime*speed*300*transform.forward; | |
| } | |
| } |
We have made moving stars and planets as models and a camera that follows each one when you click on it (code snippet). Now we'll begin designing and programming the home screen and the menus in which the user will be able to select the planets and stars characteristics.
We also came up with the name of the game "Universe It!"
We chose this theme because we are devs and would like to develop a game to put in use our programming skills. And in the meantime, we'll also be learning about planets, stars and physics.