From a6ccade24bc7cf85bd8aa36c3851001325e17978 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Tue, 2 Mar 2021 23:23:44 +0300 Subject: Special HADOUKEN gribs! --- data/txr.bmp | Bin 245898 -> 245898 bytes src/game.c | 10 ++++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/data/txr.bmp b/data/txr.bmp index 5f74b89..5ed928f 100644 Binary files a/data/txr.bmp and b/data/txr.bmp 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; -- cgit v1.2.3