Tuesday, September 15, 2020

Activity 2 & 3

John Lloyd B. Galvante                                                                                                              BS-EMC 2A

I created a game called Feed the snake, it's inspired game (snake). I followed some basic tutorials on internet on how to make the game because i'm pretty new to UNITY. This game is basically you expand your snake, you either lose when you hit the edge.

This show the process of how i created the game, the move, rotate are in below.



OBJECT ROTATION
The object color green is the main(Snake head), I named the project to head. In order for the snake to move to its position is i created a script. A gameObject first i add components to the object in the hierarchy then i choose Add components > Physics 2D > Box Collider 2D and i enabled Is Trigger.


OBJECT MOVEMENT

I tried doing arrow keys, i look up to the internet for helps. The script helps by controlling the movement of an object (Snake). Move function everything the arrow press.



I tweaked the movement speed, 500ms is slow i tried making it 300, its still low so i tweak it to 100ms then it would be really fast to catch up the food.
        
                                              

 
                

No comments:

Post a Comment

Activity 6

 Activity 6:  How to move a player? while shoot and point GROUPINGS: John Lloyd B. Galvante, John Christian Caraga December 14, 2020 In this...