Skip to content
Snippets Groups Projects
Commit 75b729c5 authored by Lama Amro's avatar Lama Amro :face_palm_tone3:
Browse files

Update Lama.md

parent c71ed0f9
No related branches found
No related tags found
No related merge requests found
...@@ -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.
![good_code_1](/uploads/f9a0e47a552165a05fb621ab1e6487c9/good_code_1.png)
Also the Playscene code, as it was just small functions as portions in the main code, and i just assigned each portion to whatever buttin i need.
Also the Playscene code, as it was just small functions as portions in the main code, and i just assigned each portion to whatever buttin i need.
![good_code_1](/uploads/f9a0e47a552165a05fb621ab1e6487c9/good_code_1.png)
# Bad code # Bad code
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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment