Monday, December 14, 2020

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 gif you can see the demonstration of Point and shoot,


Here are the components above:

As you can see you see the sprite and object that has been used to create the game point and shoot.

-Crosshair - for the player cursor to shoot.
-Player - the turret itself for shooting.
-Projectile -The bullet for the turret.

SCRIPTS:



How it works?

The script is the base that will function for the objects to work.


The image above is the components of the main camera, i drag the script to the main camera.
As you can see the objects has been inserted to the script. The crosshair, turretholder, projectile and the prefab for the bullet.




Activity 8

 Activity 8: This activity in introduction of game development of creating a Level Unlock feature in your game using button function and scene manager.

GROUPINGS: John Lloyd B. Galvante, John Christian Caraga

December 14, 2020 INTRO TO GAME DESIGN AND DEVELOPMENT (LAB).



In this gif above is the game which shows the level unlock. How it works?

Game sprite: 
Orange (Player)
Apple (Lose Life)
Golden Apple (Life)

When the orange (player) either collides with golden apple the game pass on to another level. If the orange (player) collides with apple the game would show a game over text which means you will return in main menu to restart the level again.

The scripts of the game:


Cupscript is the golden apple which pass you on to the next level.


Skullscript is the apple which should not be passed otherwise you will get the Game over text and procceed to restart the level.

The hierarchy context.



The components used in making the game.




    

Monday, October 5, 2020

Act

 Activity 5:

Group: John Lloyd B. Galvante, John Christian Caraga

This is the presentation of how we created the activity 5, it was made using Unity 2D, the game mechanics is simple. 

1. Destroy the tomato (poison tomato)

2. Add life (Health lemon)

The goal of the game is to reach finish line without losing all the health bar. In order to win you need to pass the obstacle.

Overall:

When the player has reached the red line, the game will pause itself.

For the components:

Overall:


For player:

Script:

How to gain Life? and how to loss life?

Script for the skull (tomato), lemon (life)


Lemon:


How to destroy the enemy for being touch by the player?

Scripts:


When it touch the object the object will be destroyed.

How to pause the game when you pass the level?


The components for the game:

Lemon:



Tomato:



Heart UI/ GameOver:


Finish Line Script:






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