diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2021-03-02 23:02:35 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2021-03-02 23:02:35 +0300 |
commit | 0effd8a331b66c3e7ee2411e0675584215367feb (patch) | |
tree | a048f36867bfdafc99b3742cc5cc6a870a7a98a5 /src/main.c | |
parent | 75c4749d444921135de90960244d493bd0ddeb64 (diff) | |
download | takethis-0effd8a331b66c3e7ee2411e0675584215367feb.tar takethis-0effd8a331b66c3e7ee2411e0675584215367feb.tar.xz takethis-0effd8a331b66c3e7ee2411e0675584215367feb.zip |
HADOUKEN!!!
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 26 |
1 files changed, 14 insertions, 12 deletions
@@ -23,19 +23,20 @@ int main(int argc, char **argv) Mix_Init(MIX_INIT_OGG); Mix_OpenAudio(44100, AUDIO_S16SYS, 2, 4096); Mix_AllocateChannels(4); - ttwdw = SDL_CreateWindow("T A K E T H I S", SDL_WINDOWPOS_UNDEFINED, + ttwdw = SDL_CreateWindow("T A K E T H I S", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 950, 540, 0); - ttrdr = SDL_CreateRenderer(ttwdw, -1, SDL_RENDERER_ACCELERATED); - tttxr = loadtxr("data/txr.bmp"); - ttfont = TTF_OpenFont("data/font.otf", 24); - grib = Mix_LoadMUS("data/grib.ogg"); - ussr = Mix_LoadMUS("data/ussr.ogg"); - stalin = Mix_LoadMUS("data/stalin.ogg"); - lenin = Mix_LoadMUS("data/lenin.ogg"); - ttcoin = Mix_LoadWAV("data/coin.wav"); - ttdoor = Mix_LoadWAV("data/door.wav"); - ttlenin = Mix_LoadWAV("data/lenin.wav"); - curmus = 0; + ttrdr = SDL_CreateRenderer(ttwdw, -1, SDL_RENDERER_ACCELERATED); + tttxr = loadtxr("data/txr.bmp"); + ttfont = TTF_OpenFont("data/font.otf", 24); + grib = Mix_LoadMUS("data/grib.ogg"); + ussr = Mix_LoadMUS("data/ussr.ogg"); + stalin = Mix_LoadMUS("data/stalin.ogg"); + lenin = Mix_LoadMUS("data/lenin.ogg"); + ttcoin = Mix_LoadWAV("data/coin.wav"); + ttdoor = Mix_LoadWAV("data/door.wav"); + ttlenin = Mix_LoadWAV("data/lenin.wav"); + tthadouken = Mix_LoadWAV("data/hadouken.wav"); + curmus = 0; tt_map_load(); srand(time(0)); @@ -49,6 +50,7 @@ int main(int argc, char **argv) SDL_DestroyRenderer(ttrdr); SDL_DestroyWindow(ttwdw); Mix_HaltMusic(); + Mix_FreeChunk(tthadouken); Mix_FreeChunk(ttlenin); Mix_FreeChunk(ttcoin); Mix_FreeChunk(ttdoor); |