top of page
Coding Station

PROGRAMMING

Some of my programming work

Work: Services

PLAYER COLLISION

Quarantine 2

Just a Quick Glimpse of how i programmed the player collision for almost all collidable, collectable, and interactable items in the game. basically just a buch of CompareTags in their own if statements. This code is attatched to the player and will trigger if it collides with any object of the representitive tags.

Collision Trigger.jpg
Player Rotation Code.jpg

PLAYER ROTATION

Quarantine 2

Since Quarantine 2 is a 2D topdown shooter game, this was the way i handled the rotation. Initially I wanted the player to rotate according to its movement but then since it is a shooter game as well i thought it might be better to come up with a rotation method which follows where the mouse is. So the player just rotates towards the mouse.


This way the player can easily move in a direction with the WASD keys while also facing the oposite direction to shoot enemies in any direction the enemies are coming from without actually stopping the movement.

CAMERA FOLLOW PLAYER

Quarantine 2

This is just a simple code where i implemented the camera to follow the player. Instead of just making the camera a child to the player for it to just follow the player, these simple lines of codes actually make the camera follow the player in a smoother looking way.

Camera follow.jpg
bottom of page