diff options
author | bnewbold <bryan@octopart.com> | 2012-01-29 15:59:10 -0500 |
---|---|---|
committer | bnewbold <bryan@octopart.com> | 2012-01-29 15:59:10 -0500 |
commit | 71bb443c2b5d234095365f2c9b5f7286cb7e096d (patch) | |
tree | caf22c96546cc1036fdbaca593650d58d59a575f /src/draft/draft.pde | |
parent | 73f557b7b909bd6a6d15625a8fdbb57bba7e8540 (diff) | |
download | sistema_de_aguas-71bb443c2b5d234095365f2c9b5f7286cb7e096d.tar.gz sistema_de_aguas-71bb443c2b5d234095365f2c9b5f7286cb7e096d.zip |
backup
Diffstat (limited to 'src/draft/draft.pde')
-rw-r--r-- | src/draft/draft.pde | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/draft/draft.pde b/src/draft/draft.pde index 0852cb5..526faea 100644 --- a/src/draft/draft.pde +++ b/src/draft/draft.pde @@ -1,15 +1,17 @@ #include <SPI.h> #include <GD.h> -#include "allsewage.h" // http://gameduino.com/results/b2f4c588/ -#include "sprites.h" // http://gameduino.com/results/16fe50de/ +#include "background.h" // http://gameduino.com/results/3514e886/ +#include "splash.h" // http://gameduino.com/results/fe36d9fd/ +#include "allsewage.h" // http://gameduino.com/results/b2f4c588/ +#include "sprites.h" // http://gameduino.com/results/16fe50de/ #define SWIM_SPEED 1 #define WEAPON_GROUP 0 #define TARGET_GROUP 1 -#define NUM_TRASH 20 +#define NUM_TRASH 32 // ugh, redefined #define KEY_UP(x) ((x >> 7) & 0x01) #define KEY_DOWN(x) ((x >> 6) & 0x01) @@ -89,6 +91,9 @@ void setup() narcoy = 150; narcovy = -1; trash_rate = 100; + scrollx = 0; + scrolly = 3; + t = 0; delay(250); GD.begin(); @@ -125,10 +130,11 @@ void loop() // scroll background GD.wr16(SCROLL_X, scrollx); + GD.wr16(SCROLL_Y, scrolly); GD.__wstartspr(0); //draw_standing_all(10,270); draw_all_trash(); - if (t > 72 * 30) { + if (t > (72 * 30)) { draw_narco(narcox, narcoy, narco_sunk); if (narco_sunk) { for (uint8 i = 0; i < 5; i++) { |