diff options
author | Ludovic Pouzenc <lpouzenc@gmail.com> | 2013-07-23 21:04:12 +0200 |
---|---|---|
committer | Ludovic Pouzenc <lpouzenc@gmail.com> | 2013-07-23 21:04:12 +0200 |
commit | cbb47fe9dadd8e61cb082e39b12e96cf2614a94c (patch) | |
tree | 1a05d6da5976285f8702c0dc7587d00c0f60e732 | |
parent | b5ebd9d372aab20084b2fa521bbd0b92ea2d7f1a (diff) | |
download | mplemmings-cbb47fe9dadd8e61cb082e39b12e96cf2614a94c.tar.gz mplemmings-cbb47fe9dadd8e61cb082e39b12e96cf2614a94c.tar.bz2 mplemmings-cbb47fe9dadd8e61cb082e39b12e96cf2614a94c.zip |
Cosmetique : test sprite, le lemming creuse de 2. Tout est doulé par rapport au jeu original.
-rw-r--r-- | src/sandbox/sprite.c | 4 | ||||
-rw-r--r-- | src/sandbox/sprite_gif.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/sandbox/sprite.c b/src/sandbox/sprite.c index 0223997..dfddac7 100644 --- a/src/sandbox/sprite.c +++ b/src/sandbox/sprite.c @@ -70,8 +70,8 @@ int main(int argc, char *argv[]) { t1_src.y = (t1_src.y + t1_src.h) % t1_size.h; /* Change dest rectangle to move the sprite if the animation cycle restart */ if (t1_src.y == 0) { - t1_dst.x++; - t1_dst.y++; + t1_dst.x +=2; + t1_dst.y +=2; } SDL_Delay(50); diff --git a/src/sandbox/sprite_gif.c b/src/sandbox/sprite_gif.c index d2a3a70..713b007 100644 --- a/src/sandbox/sprite_gif.c +++ b/src/sandbox/sprite_gif.c @@ -72,8 +72,8 @@ int main(int argc, char *argv[]) { t1_src.y = (t1_src.y + t1_src.h) % t1_size.h; /* Change dest rectangle to move the sprite if the animation cycle restart */ if (t1_src.y == 0) { - t1_dst.x++; - t1_dst.y++; + t1_dst.x +=2; + t1_dst.y +=2; } SDL_Delay(50); |