Tuesday, September 29, 2020

Activity # 4

 Activity # 4: 

John Lloyd B. Galvante

John Christian Caraga

BS-EMC 2A, INTRO TO GAMING DESIGN AND DEVELOPMENT

In this blog, we will show you how to create a coin counter using UNITY and use of UI and its components.

We start by doing the text script for coin counter and score board.


Here in the hierarchy we can see the canvas, in order to create a text right click in the hierarchy then > UI > Text therefore the Score Text is made. You can add another hierarchy to the Score text the image, click on the Score text then UI > Image.

Here is the Inspector tool for the Image, if you want to add an Image to the Coin or Score text counter. Simply drag an Image you want to add in the [Source Image].


This is what It will look like when you add an Image to the Score text.


Phase 1: How to increase and decrease a coin in your Unity game?

In the main camera, when you drag the coin in the scene it will also be added to the hierarchy, to simply increase and decrease the coin,


The script for the coins will be:


The components used to make the game, for player, coins and scoreboard.

For player:


For coins:


For Scoreboard:


What is U.I?

Unity UI is a UI toolkit for developing user interfaces for games and applications. It is a Game Object-based UI system that uses Components and the Game View to arrange, position, and style user interfaces. ​ You cannot use Unity UI to create or change user interfaces in the Unity Editor.

The script used in the making of the Activity 4:









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.
        
                                              

 
                

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...