Reduce audio quality of sound effects
BIN
ASSETS/MENU.ase
BIN
ASSETS/PROMOTION/thumbnail.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
ASSETS/SAF/bg.png
Executable file
After Width: | Height: | Size: 1.1 KiB |
BIN
ASSETS/SAF/menu.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
ASSETS/SAF/plr_idle0.png
Executable file
After Width: | Height: | Size: 1.2 KiB |
BIN
ASSETS/SAF/plr_idle1.png
Executable file
After Width: | Height: | Size: 1.2 KiB |
BIN
ASSETS/SAF/plr_idle2.png
Executable file
After Width: | Height: | Size: 1.2 KiB |
BIN
ASSETS/SAF/plr_idle3.png
Executable file
After Width: | Height: | Size: 1.2 KiB |
BIN
ASSETS/SAF/plr_idle4.png
Executable file
After Width: | Height: | Size: 1.2 KiB |
BIN
ASSETS/SAF/thing0.png
Executable file
After Width: | Height: | Size: 1.1 KiB |
BIN
ASSETS/SAF/thing1.png
Executable file
After Width: | Height: | Size: 1.1 KiB |
BIN
ASSETS/SAF/thing2.png
Executable file
After Width: | Height: | Size: 1.1 KiB |
BIN
ASSETS/SAF/thing3.png
Executable file
After Width: | Height: | Size: 1.1 KiB |
BIN
ASSETS/SAF/thing4.png
Executable file
After Width: | Height: | Size: 1.1 KiB |
BIN
ASSETS/SAF/thing5.png
Executable file
After Width: | Height: | Size: 1.1 KiB |
BIN
ASSETS/SAF/thing6.png
Executable file
After Width: | Height: | Size: 1.1 KiB |
BIN
ASSETS/fontmap.png
Executable file
After Width: | Height: | Size: 3.6 KiB |
|
@ -44,9 +44,7 @@ For compiling the SDL2 frontend of the game, you may type ``bash make.sh sdl`` o
|
|||
|
||||
You can easily install these with sudo apt-get install libsdl2-dev libsdl2-mixer-dev libsdl2-image-dev for Debian-based GNU/Linux distributions.
|
||||
|
||||
To compile the game, you will need a C compiler that supports C99.
|
||||
|
||||
Note that ``make.sh`` supports compiler flags as a 2nd argument, so you may do, e.g. ``bash make.sh sdl -DWTHCOMPULER_DEBUG`` for Debug Mode. ``-DWTHCOMPILER_NOOPTIONSMENU`` disables the Settings menu for frontends that don't need it, or if you want to sucklessly compile the game, at least to a degree.
|
||||
To compile the game, you will need a C compiler that supports C99. Be sure to check ``settings.h`` for regular options, debug options, etc.
|
||||
|
||||
**On Windows, you must have the respective .dll files in the same directory as the .exe to run the game!** Keep this in mind when packaging the game, as well.
|
||||
|
||||
|
|
8
game.h
|
@ -23,8 +23,6 @@ Made by blitzdoughnuts
|
|||
#define DRAW_CHECK2XSIZE 64
|
||||
#define DRAW_CHECKFULLSC 65
|
||||
|
||||
#define DRAW_UPDATEMENU 127 // for reducing rendering load
|
||||
|
||||
// misc calls
|
||||
#define MISC_PAUSEMUSIC 0
|
||||
#define MISC_RESUMEMUSIC 1
|
||||
|
@ -34,13 +32,13 @@ Made by blitzdoughnuts
|
|||
#define MISC_EXITGAME 127
|
||||
|
||||
#ifndef CAM_BOUNDS
|
||||
#define CAM_BOUNDS 160 // border size of cam_ra from both directions
|
||||
#define CAM_BOUNDS 160 // border size of camera from both directions
|
||||
#endif
|
||||
|
||||
#define INTER_LIMIT 32 // how many interactibles can be on a level at a time?
|
||||
|
||||
#define GAMETITLE "Wake to Hell"
|
||||
#define VERSION_NUMBER "0.3.1a"
|
||||
#define VERSION_NUMBER "0.4.0"
|
||||
|
||||
#ifndef WTH_PRINT
|
||||
#define WTH_PRINT(x...)
|
||||
|
@ -722,7 +720,7 @@ void step() {
|
|||
if (keyPressed(KEY_MENU)) {
|
||||
GAME_STATE = GSTATE_PAUSED;
|
||||
menu.menuselect = 0;
|
||||
menu.menulimit = 3;
|
||||
menu.menulimit = 2;
|
||||
signalMisc(MISC_PAUSEMUSIC);
|
||||
};
|
||||
|
||||
|
|
35
main_sdl.c
|
@ -415,21 +415,21 @@ void draw() {
|
|||
break;
|
||||
case GSTATE_PAUSED:
|
||||
//SDL_FillRect(winsurf, NULL, 400);
|
||||
if (plr.artifacts & 1 << ARTIFACT_BADGE)
|
||||
drawSpriteSheeted(sprites[WTH_SPR_ARTIFACTS], 248, 96, 0, 64, 64, 0);
|
||||
if (plr.artifacts & 1 << ARTIFACT_MIRROR)
|
||||
drawSpriteSheeted(sprites[WTH_SPR_ARTIFACTS], 312, 96, 1, 64, 64, 0);
|
||||
if (plr.artifacts & 1 << ARTIFACT_DONUT)
|
||||
drawSpriteSheeted(sprites[WTH_SPR_ARTIFACTS], 248, 144, 2, 64, 64, 0);
|
||||
if (plr.artifacts & 1 << ARTIFACT_KNIFE)
|
||||
drawSpriteSheeted(sprites[WTH_SPR_ARTIFACTS], 312, 144, 3, 64, 64, 0);
|
||||
if (plr.flags & FLAG_HASCOAT)
|
||||
drawSpriteSheeted(sprites[WTH_SPR_COATRACK], 376, 108, 0, 100, 100, 0);
|
||||
if (GAME_FLAGS & FLAG_HAMIEBOOK) // TODO: Proper sprite for Hamie's book
|
||||
drawTextString("Read Hamie's book", 312, 200, 0);
|
||||
switch (menu.menuindex)
|
||||
{
|
||||
case 0:
|
||||
if (plr.artifacts & 1 << ARTIFACT_BADGE)
|
||||
drawSpriteSheeted(sprites[WTH_SPR_ARTIFACTS], 248, 96, 0, 64, 64, 0);
|
||||
if (plr.artifacts & 1 << ARTIFACT_MIRROR)
|
||||
drawSpriteSheeted(sprites[WTH_SPR_ARTIFACTS], 312, 96, 1, 64, 64, 0);
|
||||
if (plr.artifacts & 1 << ARTIFACT_DONUT)
|
||||
drawSpriteSheeted(sprites[WTH_SPR_ARTIFACTS], 248, 144, 2, 64, 64, 0);
|
||||
if (plr.artifacts & 1 << ARTIFACT_KNIFE)
|
||||
drawSpriteSheeted(sprites[WTH_SPR_ARTIFACTS], 312, 144, 3, 64, 64, 0);
|
||||
if (plr.flags & FLAG_HASCOAT)
|
||||
drawSpriteSheeted(sprites[WTH_SPR_COATRACK], 376, 108, 0, 100, 100, 0);
|
||||
if (GAME_FLAGS & FLAG_HAMIEBOOK) // TODO: Proper sprite for Hamie's book
|
||||
drawTextString("Read Hamie's book", 312, 200, 0);
|
||||
drawTextString("PAUSED",80, 64, 0);
|
||||
drawTextString("Resume", 80, 120, menu.menuselect == 0 ? 1 : 0);
|
||||
drawTextString("Options", 80, 152, menu.menuselect == 1 ? 1 : 0);
|
||||
|
@ -700,17 +700,16 @@ int main(int argc, char *argv[]) {
|
|||
puts("This program is FREE SOFTWARE, licensed under the Creative Commons Zero plus a waiver of remaining rights. You should have gotten licensing information with the packaged game or source repository.\nSee readme.txt for more information.");
|
||||
return 0;
|
||||
};
|
||||
if (argv[i][0] == '-' && argv[i][1] == 's' && !argv[i][2]) { // WINDOW SCALE
|
||||
i++;
|
||||
if (argv[i] == NULL) {
|
||||
puts("Please give an argument to the -s parameter.\ne.g. -s 2");
|
||||
if (argv[i][0] == '-' && argv[i][1] == 's' && argv[i][2] && !argv[i][3]) { // WINDOW SCALE
|
||||
if (argv[i][2] < '0' || argv[i][2] > '9') {
|
||||
puts("Please give an argument to the -s parameter.\ne.g. -s2");
|
||||
return 0;
|
||||
};
|
||||
if (argv[i][0] == '0') {
|
||||
if (argv[i][2] == '0') {
|
||||
SDL_SetWindowFullscreen(win, SDL_WINDOW_FULLSCREEN_DESKTOP);
|
||||
continue;
|
||||
};
|
||||
SDL_SetWindowSize(win, WIDTH * (argv[i][0] - '0'), HEIGHT * (argv[i][0] - '0'));
|
||||
SDL_SetWindowSize(win, WIDTH * (argv[i][2] - '0'), HEIGHT * (argv[i][2] - '0'));
|
||||
SDL_SetWindowPosition(win, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED);
|
||||
};
|
||||
};
|
||||
|
|
3
make.sh
|
@ -44,6 +44,9 @@ elif [ $1 = "package" ]; then
|
|||
cp DOCS/LICENSE* ${BUILDDIR}
|
||||
cp readme_package.txt ${BUILDDIR}/readme.txt
|
||||
cp DOCS/MANUAL.md ${BUILDDIR}
|
||||
# package source code
|
||||
tar -cf ${BUILDDIR}/src.tar *.c *.h make.sh
|
||||
gzip ${BUILDDIR}/src.tar
|
||||
echo "The game (assuming your binary is named WakeToHell) and all required files for a *NIX build are now in the $BUILDDIR folder."
|
||||
elif [ $1 = "deb" ]; then
|
||||
DEBDIR="PACKAGING/usr/games/waketohell/"
|
||||
|
|
|
@ -15,7 +15,7 @@ CONTROLS:
|
|||
|
||||
CMD PARAMETERS:
|
||||
-h: Show some help and exit. Won't be too different from what you see in this readme.
|
||||
-s X: Multiply window size. Must be a number between 0 and 9. Setting it to 0 will enable fullscreen.
|
||||
-sX: Multiply window size by X. Must be a number between 0 and 9. Setting it to 0 will enable fullscreen.
|
||||
|
||||
See MANUAL.md for some gameplay tips and such.
|
||||
|
||||
|
@ -23,6 +23,7 @@ This is *FREE SOFTWARE*, all licensed under the Creative Commons 0 with an addit
|
|||
- https://git.coom.tech/blitzdoughnuts/WakeToHell
|
||||
- https://gitlab.com/ApplemunchFromDaDead/waketohell
|
||||
- https://git.disroot.org/blitzdoughnuts/WakeToHell
|
||||
- ./src.tar.gz
|
||||
|
||||
The waiver of rights is as follows:
|
||||
|
||||
|
|
BIN
sfx/artifact_badge.wav
Executable file → Normal file
BIN
sfx/artifact_donut.wav
Executable file → Normal file
BIN
sfx/artifact_knife.wav
Executable file → Normal file
BIN
sfx/artifact_mirror.wav
Executable file → Normal file
BIN
sfx/coatpickup.wav
Executable file → Normal file
BIN
sfx/jump.wav
BIN
sfx/paperclose.wav
Executable file → Normal file
BIN
sfx/paperopen.wav
Executable file → Normal file
BIN
sfx/slam.wav
BIN
sfx/step.wav
0
sprites/bg_hospital.png
Normal file → Executable file
Before Width: | Height: | Size: 3 KiB After Width: | Height: | Size: 3 KiB |
BIN
sprites/plr_walk-sheet.gif
Executable file
After Width: | Height: | Size: 5.6 KiB |
BIN
sprites/plr_walk-sheet.png
Normal file
After Width: | Height: | Size: 4.3 KiB |