Laila Al Badwawi 200906179 SpaceInvaders I declare this my own independent work and understand the university rules on plagiarism.

Dependencies:   mbed

Changes

RevisionDateWhoCommit message
150:bd02678bfdb1 2019-05-09 fy14lkaa finished the games and the last formatting default tip
149:bd0f37008f5a 2019-05-09 fy14lkaa last formatting
148:83e5a4dedffd 2019-05-09 fy14lkaa formatting the SpaceEngine.cpp
147:c008c0a32d23 2019-05-09 fy14lkaa formatting the SpaceEngine.cpp.
146:5014ef83d4e6 2019-05-09 fy14lkaa added more comments for SpaceEngine.cpp
145:e060e890c725 2019-05-09 fy14lkaa formatting the SpaceEngine.cpp
144:0473845a4aaa 2019-05-09 fy14lkaa added more comments on spaceship.h
143:171bd2687a03 2019-05-09 fy14lkaa added more comments on bullet.cpp
142:92f277a3e7e6 2019-05-09 fy14lkaa publish the docs
141:02858e82c9cc 2019-05-09 fy14lkaa added more comments on the alien.cpp
140:e389918735a7 2019-05-09 fy14lkaa added comments in spaceship.cpp
139:c46a2cef7e09 2019-05-09 fy14lkaa adding printf statement.
138:66befaefb27e 2019-05-09 fy14lkaa created Spaceship folder and copied the Spaceship.h and Spaceship.cpp from revision as by mistake i deleted the folder instead of spaceman folder.
137:fe80c0f2da9d 2019-05-09 fy14lkaa deleted the spaceman folder.
136:58f393968aa3 2019-05-08 fy14lkaa formatting
135:cf08bb4bdee9 2019-05-08 fy14lkaa deleted the shape of the spaceship(rectangle) and added the sprite instead to make it more attractive.;
134:2da2db5871bd 2019-05-08 fy14lkaa deleted the shape of the bullet which used lcd.drawRect because i changed to draw it by sprite functio to look more attractive.
133:eed60548d170 2019-05-08 fy14lkaa choose the alien to move randomly by using srand function.
132:3021192deea0 2019-05-06 fy14lkaa added void functions in spaceship.cpp
131:2084e4a8338f 2019-05-06 fy14lkaa added void function (read input) , void function to add the score when the bullet hits the alien and an accessor method to return the scores spaceship.h
130:4ce67451d0c1 2019-05-06 fy14lkaa added printf statement to the spaceship.cpp
129:a5b90c497f9c 2019-05-06 fy14lkaa adding anew private variable which is hit_enemy and added if statement in Alien update function in Alien.cpp
128:a3f581b8461c 2019-05-06 fy14lkaa include Bullet header file in Alien.cpp
127:8bd8cf136f19 2019-05-05 fy14lkaa modified the main.cpp due to the previous changes.
126:c63c5ad39f73 2019-05-05 fy14lkaa re- write the Bullet.cpp remove some function and added new ones
125:b83378770171 2019-05-05 fy14lkaa added SpaceEngine update function using (Gamepad library).
124:77f379153715 2019-05-05 fy14lkaa added the new parameter to the void draw function such as ; _bullet.draw (lcd);...ect
123:d68eb9023d88 2019-05-05 fy14lkaa added more new parameters in void init functions into SpaceEngine.cpp
122:d1fd8cbe6633 2019-05-05 fy14lkaa remove the void init function and add the new one with the parameters
121:6d7f16af9e9c 2019-05-05 fy14lkaa remove the classes names with their objects.
120:53e47c1e58f3 2019-05-05 fy14lkaa include the new header file name on the SpaceEngine.cpp and the new constructor and destructor.
119:1fb32190a9a9 2019-05-05 fy14lkaa added more private members due to the previous changes.
118:500e223362e0 2019-05-05 fy14lkaa added the classes with their objects in SpaceEngine.h
117:cce7c501c94e 2019-05-05 fy14lkaa added a new private member to check space collision using Gamepad library.
116:5d9b7ade75f8 2019-05-05 fy14lkaa added more parameters into void init function in SpaceEngine such as ; speed_alien, speed_bullet, x_spaceship .....ect
115:0cf8a1caf3e9 2019-05-05 fy14lkaa change the class constructor and destructor due to the previous changes.
114:4933118ec012 2019-05-05 fy14lkaa include the libraries and headers files due to the previous changes which made earlier.
113:5474025e6baa 2019-05-05 fy14lkaa change the file's name of the SpaceInvadersEngine.cpp to SpaceEngine.cpp
112:d547e7d84017 2019-05-05 fy14lkaa change file's name of SpaceInvadersEngine.h to SpaceEngine.h to make it much easier.
111:e9a048d06690 2019-05-05 fy14lkaa added a mutator function to set the position of the spaceship at x-coordinate and y-coordinate
110:755a3a75d9b0 2019-05-05 fy14lkaa added accessors methods to get the position of spaceship at x_corridante and y_corridante .
109:2137a6a63840 2019-05-05 fy14lkaa added if statements to update the position of the spaceship where it moves to the north and the south using the joystick.
108:ca888bb3ed54 2019-05-05 fy14lkaa added a new void update function to update the positions of the spaceship.
107:83b0bc100600 2019-05-05 fy14lkaa deleted the void draw function that used lcd.drawSprite to void function to draw the spaceship by using lcd.draeRect.
106:73d5d818ae7d 2019-05-05 fy14lkaa change the class constructor and destructor and added a new void init function to include the new parameters as it has been modified.
105:b206078335a3 2019-05-05 fy14lkaa added private member in Spaceship.h speed_spaceship.
104:fe20457ef1a9 2019-05-05 fy14lkaa added some public members in Spacesship.h such as ; void set_pos(int x, int y);; int get_pos_y();; int get_pos_x();
103:cb05154d5025 2019-05-05 fy14lkaa change file's name from space_ship.h to spaceship.h
102:d5c235fb27fd 2019-05-05 fy14lkaa change file's name from space_ship.cpp to spaceship.cpp
101:2fd7a02535c6 2019-05-05 fy14lkaa change file's name from bullet.h to Bullet.h. in Bullet folder.
100:b0e9c067d80a 2019-05-05 fy14lkaa change file's name of bullet.cpp to Bullet.cpp
99:2fb516e8568d 2019-05-05 fy14lkaa added some private members in bullet.h (int get_pos_y(); and int get_pos_x();).; ;
98:663e584183bf 2019-05-05 fy14lkaa make some changes to bullet.h such as adding new variables (int fired_bullet,speed_bullet) also choose to initialize x and y coordinate of bullet in void init function.
97:58e5b454931f 2019-05-05 fy14lkaa added void draw function to draw the alien by using lcd.drawRect.
96:01434284987f 2019-05-05 fy14lkaa due to the changes in Alien.h i re-write the void init function into Alien.cpp.
95:1b43f9c332bc 2019-05-05 fy14lkaa change some of the variables of the void function such as x to x_alien and added new variables such as speed_alien and y_alien
94:48311116ff52 2019-05-05 fy14lkaa change folder name of class SpaceInvadersEngine to SpaceEngine to make it easier for me.
93:ab36428d0152 2019-05-05 fy14lkaa change folder name of class space_ship to spaceship.
92:8a1b14488ca5 2019-05-05 fy14lkaa change folder name of class bullet to Bullet.
91:f9e2ff484014 2019-04-28 fy14lkaa added draw sprite to draw the alien in Alien.cpp