diff options
author | tom <tom@ground-control> | 2015-11-23 17:05:27 -0600 |
---|---|---|
committer | tom <tom@ground-control> | 2015-11-23 17:05:27 -0600 |
commit | 9d9c1d29dbcd802c89641b70b5574361e775c0e4 (patch) | |
tree | bd66508d2db620db21db51c15276055d492297ea /src/main.cpp | |
parent | 8228cd7ef6156d87ccf33335466c86fa30dadd8b (diff) |
added collision of trees and map border
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index c0d59af..8f5208f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -6,14 +6,13 @@ int main() Frame map("scripts/map.txt",0,0); Frame view(map,s.getHeight(),s.getWidth(),0,0); - List L; - Location l; - l.x =150; - l.y =150; + Location l(150,150); Character cursor('X',3,l); map.fillWindow(); + List L(map.getImpassable()); + L.draw(map.getWin()); cursor.draw(map.getWin()); |