@@ -17,11 +17,12 @@ This made it easy for me to write good codes. I was following a coding method wh
...
@@ -17,11 +17,12 @@ This made it easy for me to write good codes. I was following a coding method wh
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.