Move side to side with the [arrow keys] or [A,D] there are powerups to collect, but they do not react right now. Currently this is more of a "loop simulator" than a game.
You should start by adding a new component to the player:
you want to have a (box) collider there, otherwise your OnCollisionEnter(Collision collision) method in the MovementController.cs will not be called ;) ...or instead implement the method in the colliderController class - as this is attached to the Cube (child object of Player). Only the object with the colliders will get the respective messages/callbacks.
As others have mentioned, your "loop simulator" title fits well. It could definitely benefit from having obstacles, but the art is pretty dang cool! I like the rectangles peeking out from the clouds at the bottom of the loop.
Yeah, it feels like an exciting idea! But definitely needs some more goal for the player. Maybe it could steadily speed up, and have obstacles to avoid that would cause game over?
Comments5
As you said, it's a loop simulator... for now.
You should start by adding a new component to the player:
you want to have a (box) collider there, otherwise your OnCollisionEnter(Collision collision) method in the MovementController.cs will not be called ;)
...or instead implement the method in the colliderController class - as this is attached to the Cube (child object of Player). Only the object with the colliders will get the respective messages/callbacks.
see also https://docs.unity3d.com/ScriptReference/Collider.html :
> OnCollisionEnter is called when this collider/rigidbody has begun touching another rigidbody/collider.