-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more things to deal with the letters
- Loading branch information
1 parent
f6f193f
commit 63e162c
Showing
8 changed files
with
219 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
// new module header | ||
#define TRASH 3 | ||
#define TRASH 3 | ||
#define GAMEW 224 | ||
#define GAMEH 320 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// new module script | ||
void ThrowLetter(int x, int y, CharacterDirection direction){ | ||
if(direction == eDirectionLeft){ | ||
|
||
} else { | ||
// must be right | ||
|
||
} | ||
|
||
} | ||
|
||
void repeatedly_execute_always(){ | ||
if(cLetter1.Room == player.Room && (cLetter1.x < 0 || cLetter1.x > GAMEW || cLetter1.y < 0 || cLetter1.y > GAMEH)){ | ||
cLetter1.ChangeRoom(TRASH); | ||
} | ||
if(cLetter2.Room == player.Room && (cLetter2.x < 0 || cLetter2.x > GAMEW || cLetter2.y < 0 || cLetter2.y > GAMEH)){ | ||
cLetter2.ChangeRoom(TRASH); | ||
} | ||
if(cLetter3.Room == player.Room && (cLetter3.x < 0 || cLetter3.x > GAMEW || cLetter3.y < 0 || cLetter3.y > GAMEH)){ | ||
cLetter3.ChangeRoom(TRASH); | ||
} | ||
if(cLetter4.Room == player.Room && (cLetter4.x < 0 || cLetter4.x > GAMEW || cLetter4.y < 0 || cLetter4.y > GAMEH)){ | ||
cLetter4.ChangeRoom(TRASH); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// new module header |