summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2021-03-02 23:23:44 +0300
committerAleksey Veresov <aleksey@veresov.pro>2021-03-02 23:23:44 +0300
commita6ccade24bc7cf85bd8aa36c3851001325e17978 (patch)
treee1560f61e0eb2c6e4ad5b6a58e30151c4eb41cf8
parentd68c730efef80a95682c986f586c35fde1254e76 (diff)
downloadtakethis-a6ccade24bc7cf85bd8aa36c3851001325e17978.tar
takethis-a6ccade24bc7cf85bd8aa36c3851001325e17978.tar.xz
takethis-a6ccade24bc7cf85bd8aa36c3851001325e17978.zip
Special HADOUKEN gribs!
-rw-r--r--data/txr.bmpbin245898 -> 245898 bytes
-rw-r--r--src/game.c10
2 files changed, 6 insertions, 4 deletions
diff --git a/data/txr.bmp b/data/txr.bmp
index 5f74b89..5ed928f 100644
--- a/data/txr.bmp
+++ b/data/txr.bmp
Binary files differ
diff --git a/src/game.c b/src/game.c
index cf2d415..0ab96d6 100644
--- a/src/game.c
+++ b/src/game.c
@@ -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;