top of page

Introduction 

It is year 2310. The world has been taken over by Aliens and it is up to you to save the world! You awake and find yourself stuck in a dungeon. You peek out of the door and there is an Alien roaming the hallways, making sure the prisoners don't escape. But luckily, you know the alien's biggest weakness: the silver dagger. The silver dagger has the power to kill any alien, even the one roaming the hallways!

 

Objective: Find the sword, and kill the monster!!

 

Game Rules

 

Move using the common WASD game keys. Look around by using your mouse.

W - move forward

A - move left

S - move backwards 

D - move right

 

If you get too close to the monster, you will start spinning and your health bar on the left side will go down. Find the sword, and  kill the monster before you die!  To kill the monster, you have to run into the monster with the sword.

 

Features

Collision Detection - for collision detection, I used sphere bounding boxes. It was really easy to calculate and it made more sense since the monster has more of a rounder appearance. I played around with some values and got good values for the monster colliding with me.

The three instances I used collision detection:

1. camera with the walls (to make sure you can't walk through walls)

2. camera with the silver dagger (to grab the knife)

3. camera with the moving monster (to kill the monster or to be attacked by it)

Attenuation - With the help of professor Sueda's code, I was able to apply attenuation, which is the darkening of objects as you get farther away. I chose some arbitrary hard coded values and figured out just the right attenuation to make the game have an eerie feeling. You can notice the attenuation when you look at a wall, and back away from it.

Textures - I loaded multiple textures and created a transformation matrix that repeats the texture over and over mutliple times. I have 7 textures loaded. From left to right 

1. Mirror texture - for the dagger

2. floor texture - for the dead aliens on the ground and the ground itself

3. fire texture - I used this for the monster 

4. ceiling texture -I used this for the ceiling

5. The brick wall texture - I used this for the walls

6. The game won texture - wrapped around a box to let the user know they won

7. The game lost texture - wrapped around a bo to let the user know they lost

I downloaded all of these textures from google and I downloaded the obj files from http://tf3dm.com/3d-models/file/1/obj

 

 

 

 

Music - I found an audio player from a person with the github account name: scoopr. He uploaded it onto github and I got his audio player from here. I used it to play the creepy music in the background music (from insidious the movie "Creepy Violin music") and then freed the background music to play  "turn down for what" by Lil John. It really adds to the game.   https://github.com/scoopr/auplay

Alien Movement - The alien moves in a square pattern. I chosed to do this because it was easy to implement but still made the game a litle difficult. I couldn' get the alien to follow me because I started off with the monster before hand and didn't add collision detection until later. If I had done collision detection beforehand, I would have had the monster follow me.

Randomized Sword Positioning - When the game starts, it asks you for a a seed. There are only 4 positions that the sword can be in, so the number you seed is modded by 4, and then the sword is positioned. I always try to put a really random number so even I don't know where it is.

Health Bar - I added a green health bar on the left side of the game.  If you are around the enemy, your health bar goes down. If you run out of health, you die!

bottom of page