This week, is the submission week for this assignment, and the good news is, I have managed to get everything working!
From the previous week, I set a milestone to:
1 - Add at least one more effect to the game
2 - To get the turrets to work
EFFECT:
For the effect, I used a particle system for the enemies, so that whenever they get hit, it would seem as if they are crumbling. The particle effect I used was pretty simple, but it did require quite a lot of time to make. I have added this particle system to all of the enemies, however, one done side about this particle system is that I forgot to change the color of the particle systems to match to the enemy's color, meaning that all the enemies' particle system is yellow (the color of the medium enemy). However, the bright side of it, is that it makes the game look very nice.
TURRETS:
After a few weeks of attempting the turret mechanic, I have managed to get the turrets to work, with the help of my lecturer during class. All this while, I forgot to use the keyword GameObject.Find and GameObjectsWithTag.Find as well. All this while, I've been using...:
public GameObject Enemy;
or
public Transform Enemy;
...this would allow me to set the GameObject variable or Transform variable with the name of Enemy, to the Enemy prefab. However, my lecturer told me that this wouldn't work, as it would get the transform.position of the prefab, other than the one we need, the updated transform.position within the game scene. After understanding this issue, my lecturer told me to go the Unity Documentation online, and search for anything which can be of use. He guided me to look for GameObject.Find, which works, but not the way we need. And eventually, we found a keyword which went along the lines of GameObjectsWithTag.Find, which finds any GameObjects within the scene, with the a tag you have set it to. Implementing this in the code finally made sense to me, and to the program itself. All this time, the turret was looking at the transform.position of the prefab, other than the updated transform.position of the GameObject within the scene. After getting this turret mechanic done, it felt like a great deal of weight have been lifted off my shoulder.
ADDITIONAL EFFECTS/ACHIEVEMENTS:
Throughout the whole week, and last week, I managed to get a menu system working for the game. I have a main menu, the game scene itself, a game over screen and even a controls screen, which briefs the player with the objectives, the enemies and how to play the game as well. Alongside completing the UI and menu system as a whole, I also added a currency system, and assets from the assets store and the internet for the fonts that I have used. Having a different font other than Arial, and adding in some low poly trees, rocks and fences, made the game seem very cute and very simple, which reminds me of some games that have been published on the Google Play Store for Android, or the App Store for iOS.
RESULTS:
Overall, I feel very happy with the game I have made in the past few weeks. I have managed to make a game with more than one type of enemy, a currency system, a turret mechanic which work and an ability that the player can use. If I had more time to work on the game, maybe it would have been something better, but for what I have now, I am really happy with what I have.
From the previous week, I set a milestone to:
1 - Add at least one more effect to the game
2 - To get the turrets to work
EFFECT:
For the effect, I used a particle system for the enemies, so that whenever they get hit, it would seem as if they are crumbling. The particle effect I used was pretty simple, but it did require quite a lot of time to make. I have added this particle system to all of the enemies, however, one done side about this particle system is that I forgot to change the color of the particle systems to match to the enemy's color, meaning that all the enemies' particle system is yellow (the color of the medium enemy). However, the bright side of it, is that it makes the game look very nice.
TURRETS:
After a few weeks of attempting the turret mechanic, I have managed to get the turrets to work, with the help of my lecturer during class. All this while, I forgot to use the keyword GameObject.Find and GameObjectsWithTag.Find as well. All this while, I've been using...:
public GameObject Enemy;
or
public Transform Enemy;
...this would allow me to set the GameObject variable or Transform variable with the name of Enemy, to the Enemy prefab. However, my lecturer told me that this wouldn't work, as it would get the transform.position of the prefab, other than the one we need, the updated transform.position within the game scene. After understanding this issue, my lecturer told me to go the Unity Documentation online, and search for anything which can be of use. He guided me to look for GameObject.Find, which works, but not the way we need. And eventually, we found a keyword which went along the lines of GameObjectsWithTag.Find, which finds any GameObjects within the scene, with the a tag you have set it to. Implementing this in the code finally made sense to me, and to the program itself. All this time, the turret was looking at the transform.position of the prefab, other than the updated transform.position of the GameObject within the scene. After getting this turret mechanic done, it felt like a great deal of weight have been lifted off my shoulder.
ADDITIONAL EFFECTS/ACHIEVEMENTS:
Throughout the whole week, and last week, I managed to get a menu system working for the game. I have a main menu, the game scene itself, a game over screen and even a controls screen, which briefs the player with the objectives, the enemies and how to play the game as well. Alongside completing the UI and menu system as a whole, I also added a currency system, and assets from the assets store and the internet for the fonts that I have used. Having a different font other than Arial, and adding in some low poly trees, rocks and fences, made the game seem very cute and very simple, which reminds me of some games that have been published on the Google Play Store for Android, or the App Store for iOS.
RESULTS:
Overall, I feel very happy with the game I have made in the past few weeks. I have managed to make a game with more than one type of enemy, a currency system, a turret mechanic which work and an ability that the player can use. If I had more time to work on the game, maybe it would have been something better, but for what I have now, I am really happy with what I have.
No comments:
Post a Comment