diff options
author | quou <quou@disroot.org> | 2023-05-07 20:40:56 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2023-05-07 20:40:56 +1000 |
commit | f3ee0b0b2ddcf4484cd61aa2b33e49d9cc35779a (patch) | |
tree | c5a58cc00741e82de16e66e7e12a380a3f16a841 | |
parent | 97e79598aa3fbbf7e7b69894964ccb232dfc0347 (diff) |
Work on random things.
-rw-r--r-- | collision_system.c | 4 | ||||
-rwxr-xr-x | distrib.sh | 9 | ||||
-rw-r--r-- | enemy.c | 1 | ||||
-rw-r--r-- | game.c | 2 | ||||
-rw-r--r-- | wave.c | 45 |
5 files changed, 50 insertions, 11 deletions
diff --git a/collision_system.c b/collision_system.c index 6d8368c..ca319f2 100644 --- a/collision_system.c +++ b/collision_system.c @@ -8,6 +8,7 @@ #include "fx.h" #include "game_config.h" #include "rect.h" +#include "sound.h" #include "standard.h" #include "world.h" @@ -185,7 +186,6 @@ void collision_system(World* world) { unsigned bits; CPosition* pos0, * pos1; const CCollider* col0, * col1; - const CEnemy* e0, * e1; Collision_Side side; for (i = 0; i < world->entity_count; i++) { @@ -268,7 +268,6 @@ void collision_system(World* world) { ) { continue; } pos0 = &world->positions[i]; - e0 = &world->enemies[i]; for (j = i + 1; j < world->entity_count; j++) { bits = world->bitmask[j]; @@ -278,7 +277,6 @@ void collision_system(World* world) { ) { continue; } pos1 = &world->positions[j]; - e1 = &world->enemies[j]; dx = (pos0->x - pos1->x) >> 4; dy = (pos0->y - pos1->y) >> 4; @@ -1,9 +1,10 @@ #!/bin/bash mkdir -p distrib +rm distrib/* make clean -make -j6 config=release_gnu64 +make config=release_gnu64 zip distrib/gnu64.zip mallocbullet pack make emscripten @@ -13,13 +14,13 @@ zip ../../distrib/emscripten.zip index.html mallocbullet.js mallocbullet.wasm cd ../../ make clean -make -j6 config=release_gnu32 +make config=release_gnu32 zip distrib/gnu32.zip mallocbullet pack make clean -make -j6 config=release_win32 +make config=release_win32 zip distrib/win32.zip mallocbullet.exe pack SDL2.dll make clean -make -j6 config=release_win64 +make config=release_win64 zip distrib/win64.zip mallocbullet.exe pack SDL2.dll @@ -2,6 +2,7 @@ #include "components.h" #include "debris.h" #include "game_config.h" +#include "sound.h" #include "sprite.h" #include "standard.h" #include "world.h" @@ -286,7 +286,7 @@ static void credits_update(Game* game) { rfont_text(font, 0, 10, "Design: quou"); rfont_text(font, 0, 20, "Sound: quou"); rfont_text(font, 0, 30, "Graphics: quou"); - rfont_text(font, 0, 20, "Music: tejeez"); + rfont_text(font, 0, 40, "Music: tejeez"); rfont_text(font, 0, 50, "Source Code: git.quou.xyz"); } @@ -11,7 +11,7 @@ static const Wave waves[] = { 2, { { 3, 5 }, - { 15, 15 }, + { 15, 15 } } } }, @@ -25,7 +25,7 @@ static const Wave waves[] = { 2, { { 3, 5 }, - { 15, 15 }, + { 15, 15 } } }, { @@ -35,12 +35,50 @@ static const Wave waves[] = { { 30, 30 }, { 15, 20 }, { 23, 5 }, - { 6, 4 }, + { 6, 4 } } }, }, 2, 6 + }, + { + { + { + 30, + 2, + { + { 6, 16 }, + { 18, 8 } + } + }, + { + 100, + 2, + { + { 12, 4 }, + { 27, 7 } + } + }, + { + 100, + 2, + { + { 11, 7 }, + { 21, 26 } + } + }, + { + 100, + 2, + { + { 2, 24 }, + { 14, 22 } + } + }, + }, + 4, + 8 } }; @@ -86,6 +124,7 @@ void update_waver(Waver* waver, World* world) { (spawn->y * map_tile_size) << fbits ); } + waver->timer = 0; waver->sidx++; } } |