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

Update Lama.md

parent ed92ae88
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,9 @@
For this project, i wrote simple small codes for minor functionaliteis of the game, as i had non previous knowledge nor experience in game making.
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.
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. 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.
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.
# 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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment