@@ -16,9 +16,9 @@ For this project, i wrote simple small codes for minor functionaliteis of the ga
...
@@ -16,9 +16,9 @@ For this project, i wrote simple small codes for minor functionaliteis of the ga
This made it easy for me to write good codes. I was following a coding method which i used before in previous projects.
This made it easy for me to write good codes. I was following a coding method which i used before in previous projects.
I thought that keeping each code separate and dedicated to specific game objects is easier to understand and track these small functionalities.
I thought that keeping each code separate and dedicated to specific game objects is easier to understand and track these small functionalities.
An example of a good code is the code responsible of the movement of the object, i started with just simple movement in one direction and i learned myself up to move in 3D.
An example of a good code is the code responsible of the movement of the object, i started with just simple movement in one direction and i learned myself up to move in 3D.
Some of the codes i wrote were functioning but not in the way i wanted. Example of a bad code i wrote is the Markmine code, which marks a tile that has a mine under to avoid explosion. The marking opject's position depends on the character's position, which is hard to get it exactly in the centre of the tile, so the marking object does not alway appear in the perfect position to cover the tile.
Some of the codes i wrote were functioning but not in the way i wanted. Example of a bad code i wrote is the Markmine code, which marks a tile that has a mine under to avoid explosion. The marking opject's position depends on the character's position, which is hard to get it exactly in the centre of the tile, so the marking object does not alway appear in the perfect position to cover the tile.
Another bad code is the code i wrote for the winning criteria, as i wrote a code that only counts the number of the marking object without checking if the marked tile does have a mine or not. We considered this as a bug that needs to be solved in future work.
Another bad code is the code i wrote for the winning criteria, as i wrote a code that only counts the number of the marking object without checking if the marked tile does have a mine or not. We considered this as a bug that needs to be solved in future work.