Fixes
This commit is contained in:
parent
b9ea226344
commit
bc070a2d9c
8
dialog.c
8
dialog.c
@ -101,9 +101,11 @@ void init_dialogs(Game *g) {
|
||||
cancel_dialog->options[1].handle = &handle_click_cancel_no;
|
||||
|
||||
Dialog *shoubu_dialog = &dialogs[1];
|
||||
shoubu_dialog->text_count = 1;
|
||||
shoubu_dialog->text_count = 2;
|
||||
shoubu_dialog->text[0] = malloc(200);
|
||||
strcpy(shoubu_dialog->text[0], "You have dekiyaku! Sage or shoubu?");
|
||||
shoubu_dialog->text[1] = malloc(200);
|
||||
strcpy(shoubu_dialog->text[0], "You have dekiyaku!");
|
||||
strcpy(shoubu_dialog->text[1], "Sage or shoubu?");
|
||||
shoubu_dialog->text_size = 60;
|
||||
shoubu_dialog->options_count = 2;
|
||||
shoubu_dialog->game = g;
|
||||
@ -257,7 +259,7 @@ Rectangle dialog_option_inner_rectangle(Dialog *d, int i) {
|
||||
|
||||
void dialog_draw(Dialog *d) {
|
||||
Vector2 mouse_pos = GetMousePosition();
|
||||
DrawText("Hide Dialog", 1225, 850, 30, BLACK);
|
||||
DrawText("Hide Dialog", 1225, 870, 20, BLACK);
|
||||
if (mouse_pos.x > 1225 && mouse_pos.y > 850) return;
|
||||
|
||||
int text_width;
|
||||
|
5
game.c
5
game.c
@ -41,9 +41,9 @@ void initialize_game(Game *g) {
|
||||
g->dialog = NULL;
|
||||
|
||||
g->kan_value = 12;
|
||||
g->number_of_rounds = 1;
|
||||
g->number_of_rounds = 3;
|
||||
g->black_card_backs = true;
|
||||
g->deal_speed = 0.2;
|
||||
g->deal_speed = 0.4;
|
||||
g->options = malloc(sizeof(Options));
|
||||
initialize_title(g);
|
||||
load_options_from_game(g);
|
||||
@ -738,6 +738,7 @@ void calculate_exhausted_dekiyaku_score(Game *g) {
|
||||
|
||||
void run_frame_calculating_dekiyaku_score(Game *g) {
|
||||
dekiyaku_end_of_round_dialog(g);
|
||||
strcpy(g->dialog->text[3], "");
|
||||
if (g->player.dekiyaku_action == DEKIYAKU_ACTION_CANCEL || g->player.dekiyaku_action == DEKIYAKU_ACTION_SHOUBU) {
|
||||
calculate_dekiyaku_score(g, &g->player);
|
||||
} else if (g->right.dekiyaku_action == DEKIYAKU_ACTION_CANCEL || g->right.dekiyaku_action == DEKIYAKU_ACTION_SHOUBU) {
|
||||
|
@ -1,9 +0,0 @@
|
||||
// Copyright 2025 Bill Rossi
|
||||
//
|
||||
// This file is part of Hanafuda Hachi-Hachi.
|
||||
//
|
||||
// Hanafuda Hachi-Hachi is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
//
|
||||
// Hanafuda Hachi-Hachi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License along with Hanafuda Hachi-Hachi. If not, see <https://www.gnu.org/licenses/>.
|
Loading…
Reference in New Issue
Block a user