diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2021-03-02 23:23:44 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2021-03-02 23:23:44 +0300 |
commit | a6ccade24bc7cf85bd8aa36c3851001325e17978 (patch) | |
tree | e1560f61e0eb2c6e4ad5b6a58e30151c4eb41cf8 | |
parent | d68c730efef80a95682c986f586c35fde1254e76 (diff) | |
download | takethis-a6ccade24bc7cf85bd8aa36c3851001325e17978.tar takethis-a6ccade24bc7cf85bd8aa36c3851001325e17978.tar.xz takethis-a6ccade24bc7cf85bd8aa36c3851001325e17978.zip |
Special HADOUKEN gribs!
-rw-r--r-- | data/txr.bmp | bin | 245898 -> 245898 bytes | |||
-rw-r--r-- | src/game.c | 10 |
2 files changed, 6 insertions, 4 deletions
diff --git a/data/txr.bmp b/data/txr.bmp Binary files differindex 5f74b89..5ed928f 100644 --- a/data/txr.bmp +++ b/data/txr.bmp @@ -396,21 +396,23 @@ static void step(int d) b->xrem = 0; b->yrem = 0; b->rem = 0; - b->txrrow = 8; - b->txrcol = rand() % 4; b->anim = 4; b->collision_act = colact_instgulag; b->msg = 0; b->msglen = 0; if (!lenin_until_hadouken) { + b->txrrow = 7; + b->txrcol = 2 + rand() % 2; b->rate = 75 + (rand() % 50 - 25); b->yvel = rand() % 100 - 50; - b->yvel = b->yvel < 0 ? b->yvel - 150 : b->yvel + 150; + b->yvel = b->yvel < 0 ? b->yvel - 125 : b->yvel + 125; b->xvel = rand() % 100 - 50; - b->xvel = b->yvel < 0 ? b->yvel - 150 : b->yvel + 150; + b->xvel = b->yvel < 0 ? b->yvel - 125 : b->yvel + 125; Mix_PlayChannel(-1, tthadouken, 0); lenin_until_hadouken = 3; } else { + b->txrrow = 8; + b->txrcol = rand() % 4; b->rate = 150 + (rand() % 50 - 25); b->yvel = rand() % 100 - 50; b->yvel = b->yvel < 0 ? b->yvel - 50 : b->yvel + 50; |