Compare commits
4 Commits
c127cd2d61
...
218074d204
Author | SHA1 | Date | |
---|---|---|---|
218074d204 | |||
02e2919035 | |||
57d9a0b227 | |||
65c31824fc |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
hanafuda_hachi_hachi_linux
|
hanafuda_hachi_hachi_linux
|
||||||
|
hanafuda_hachi_hachi_mac
|
||||||
hanafuda_hachi_hachi_windows.exe
|
hanafuda_hachi_hachi_windows.exe
|
||||||
*.zip
|
*.zip
|
12
Makefile
12
Makefile
@ -24,6 +24,9 @@ $(GAME)_linux: *.c
|
|||||||
$(GAME)_windows.exe: $(DATA_C) *.c
|
$(GAME)_windows.exe: $(DATA_C) *.c
|
||||||
$(WIN_CC) *.c $(WIN_LIB) $(WIN_CFLAGS) -o $(GAME)_windows.exe
|
$(WIN_CC) *.c $(WIN_LIB) $(WIN_CFLAGS) -o $(GAME)_windows.exe
|
||||||
|
|
||||||
|
$(GAME)_mac: $(DATA_C) *.c
|
||||||
|
$(CC) *.c $(CFLAGS) -o $(GAME)_mac
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f ./$(GAME)_linux
|
rm -f ./$(GAME)_linux
|
||||||
rm -f ./$(GAME)_linux.zip
|
rm -f ./$(GAME)_linux.zip
|
||||||
@ -36,8 +39,15 @@ $(GAME)_linux.zip: $(GAME)_linux
|
|||||||
|
|
||||||
$(GAME)_windows.zip: $(GAME)_windows.exe
|
$(GAME)_windows.zip: $(GAME)_windows.exe
|
||||||
rm -f ./$(GAME)_windows.zip
|
rm -f ./$(GAME)_windows.zip
|
||||||
zip -r $(GAME)_windows.zip $(GAME)_windows.exe img/*.png
|
zip -r $(GAME)_windows.zip $(GAME)_windows.exe COPYING img/*.png img/LICENSE
|
||||||
|
|
||||||
|
$(GAME)_mac.zip: $(GAME)_mac
|
||||||
|
rm -f ./$(GAME)_mac.zip
|
||||||
|
zip -r $(GAME)_mac.zip $(GAME)_mac COPYING img/*.png img/LICENSE
|
||||||
|
|
||||||
butler_upload: $(GAME)_linux.zip $(GAME)_windows.zip
|
butler_upload: $(GAME)_linux.zip $(GAME)_windows.zip
|
||||||
$(BUTLER) push ./$(GAME)_linux.zip bassguitarbill/$(ITCH_CHANNEL):$(ITCH_CHANNEL_LINUX)
|
$(BUTLER) push ./$(GAME)_linux.zip bassguitarbill/$(ITCH_CHANNEL):$(ITCH_CHANNEL_LINUX)
|
||||||
$(BUTLER) push ./$(GAME)_windows.zip bassguitarbill/$(ITCH_CHANNEL):$(ITCH_CHANNEL_WINDOWS)
|
$(BUTLER) push ./$(GAME)_windows.zip bassguitarbill/$(ITCH_CHANNEL):$(ITCH_CHANNEL_WINDOWS)
|
||||||
|
|
||||||
|
butler_upload_mac: $(GAME)_mac.zip
|
||||||
|
$(BUTLER) push ./$(GAME)_mac.zip bassguitarbill/$(ITCH_CHANNEL):$(ITCH_CHANNEL_MAC)
|
||||||
|
BIN
cover.aseprite
BIN
cover.aseprite
Binary file not shown.
1
dialog.h
1
dialog.h
@ -14,6 +14,7 @@ typedef struct DialogOption DialogOption;
|
|||||||
typedef struct Dialog Dialog;
|
typedef struct Dialog Dialog;
|
||||||
|
|
||||||
#include "game.h"
|
#include "game.h"
|
||||||
|
#include "options.h"
|
||||||
|
|
||||||
#define DIALOG_OUTER_RECTANGLE (Rectangle) { 200, 200, 1000, 500 }
|
#define DIALOG_OUTER_RECTANGLE (Rectangle) { 200, 200, 1000, 500 }
|
||||||
#define DIALOG_INNER_RECTANGLE (Rectangle) { 220, 220, 960, 460 }
|
#define DIALOG_INNER_RECTANGLE (Rectangle) { 220, 220, 960, 460 }
|
||||||
|
8
intro.c
8
intro.c
@ -56,12 +56,12 @@ void intro_display(Intro *intro) {
|
|||||||
alpha = 0;
|
alpha = 0;
|
||||||
|
|
||||||
BeginDrawing();
|
BeginDrawing();
|
||||||
DrawRectangle(0, 0, GetRenderWidth(), GetRenderHeight(), (Color) { 34, 32, 52, 255 });
|
DrawRectangle(0, 0, GetScreenWidth(), GetScreenHeight(), (Color) { 34, 32, 52, 255 });
|
||||||
DrawTexture(intro->textures[i],
|
DrawTexture(intro->textures[i],
|
||||||
GetRenderWidth() / 2 - intro->textures->width / 2,
|
(GetScreenWidth() / 2) - (intro->textures->width / 2),
|
||||||
GetRenderHeight() / 2 - intro->textures->height / 2,
|
(GetScreenHeight() / 2) - (intro->textures->height / 2),
|
||||||
WHITE);
|
WHITE);
|
||||||
DrawRectangle(0, 0, GetRenderWidth(), GetRenderHeight(), (Color) { 0, 0, 0, alpha });
|
DrawRectangle(0, 0, GetScreenWidth(), GetScreenHeight(), (Color) { 0, 0, 0, alpha });
|
||||||
EndDrawing();
|
EndDrawing();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,5 +33,6 @@ void load_options_from_game(Game *g);
|
|||||||
void save_options_to_game(Game *g);
|
void save_options_to_game(Game *g);
|
||||||
void options_handle_input(Game *g);
|
void options_handle_input(Game *g);
|
||||||
void options_draw(Game *g);
|
void options_draw(Game *g);
|
||||||
|
void DrawTextCentered(char *text, int center_x, int y, int point, Color color);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user