-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboat.cpp
28 lines (22 loc) · 814 Bytes
/
boat.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// #include "boat.hpp"
// #include<vector>
// #include<list>
// #include<SDL.h>
// // pigeon implementation will go here.
// // vector<Pigeon*> pigeons;
// void Shark::draw(){
// SDL_RenderCopy(Drawing::gRenderer, Drawing::assets, &srcRect, &moverRect);
// // SDL_RenderCopy(gRenderer, assets, &pigeon.srcRect, &pigeon.moverRect);
// }
// void Shark::swim(){
// // you have to do flying animations here
// moverRect.x+=5;
// // pigeons[i].moverRect.y-=5;
// // moverRect.x += 5;
// }
// Shark::Shark(){
// // src coorinates from assets.png file, they have been found using spritecow.com
// srcRect = {834, 51, 224, 107};
// // it will display pigeon on x = 30, y = 40 location, the size of pigeon is 50 width, 60 height
// moverRect = {30, 40, 100, 100};
// }