Skip to content

Commit

Permalink
level file
Browse files Browse the repository at this point in the history
  • Loading branch information
cy137 committed Dec 5, 2011
1 parent 1dd7725 commit 2c84fa3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 1 addition & 3 deletions dude.cpp
Expand Up @@ -82,8 +82,6 @@ void dude::drop()
// + Pick up a box if not already carrying
// + Drop box if currently carrying one
void dude::doSomething(){
cout<<"doSomething"<<endl;

// Parameters for activation zone
double radius=0.1;
double dis=1;
Expand Down Expand Up @@ -154,7 +152,7 @@ void dude::goForward(){

int dx=fx-(x/20);
int dy=fy-(y/20);

cout << fx << ", " << fy << endl;
if(wall & 4 && (dx<0 || x>((w->x*20)-2)))
{
x=ox;
Expand Down
12 changes: 8 additions & 4 deletions level.txt
@@ -1,7 +1,11 @@
3 4
3 1 1 9
2 0 0 8
6 4 4 12
7 7
3 1 5 1 5 5 9
10 2 13 10 3 9 10
10 10 7 4 4 12 10
10 6 5 5 1 5 8
2 13 3 5 12 11 10
10 7 4 5 5 12 10
6 5 5 5 5 5 12
3
0.4 0.3
0.4 0.5
Expand Down

0 comments on commit 2c84fa3

Please sign in to comment.