Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions global_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void end_game(bool successful) {
fill_triangle(COLOR_BLACK, 414, 165, 404, 175, 424, 175);
fill_triangle(COLOR_BLACK, 414, 240, 404, 230, 424, 230);
}
draw_text("Press 1 to submit", COLOR_BLACK, font_named("default"), 30, 260, 280);
draw_text("Press B1 to submit", COLOR_BLACK, font_named("default"), 30, 260, 280);

// Handle initials entry
if (key_typed(UP)) {
Expand Down Expand Up @@ -135,6 +135,6 @@ void end_game(bool successful) {
draw_text("score: " + score, COLOR_WHITE, font_named("default"), 18, 370, 80 + 45 * i);
}
draw_text("Press start to play again", COLOR_BLACK, font_named("default"), 18, 275, 530);
draw_text("Press 2 to exit", COLOR_BLACK, font_named("default"), 18, 275, 550);
draw_text("Press B2 to exit", COLOR_BLACK, font_named("default"), 18, 275, 550);
}
}
6 changes: 3 additions & 3 deletions include/global_constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ constexpr key_code UP = UP_KEY;
constexpr key_code DOWN = DOWN_KEY;
constexpr key_code LEFT = LEFT_KEY;
constexpr key_code RIGHT = RIGHT_KEY;
constexpr key_code START = SPACE_KEY;
constexpr key_code P1_B1 = Z_KEY;
constexpr key_code P1_B2 = X_KEY;
constexpr key_code START = NUM_1_KEY;
constexpr key_code P1_B1 = LEFT_CTRL_KEY;
constexpr key_code P1_B2 = LEFT_ALT_KEY;
4 changes: 2 additions & 2 deletions rendering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ void draw_game() {
draw_bitmap("ball", ball.x, ball.y);
}

// Draw the "Press 1 to start" text if the ball is held
// Draw the "Press B1 to start" text if the ball is held
if (game_data.ball_is_held) {
draw_text("Press 1 to start", COLOR_WHITE, font_named("default"), 35, 230, (screen_height() / 2) + 50);
draw_text("Press B1 to start", COLOR_WHITE, font_named("default"), 35, 230, (screen_height() / 2) + 50);
}

// Draw the power-up drops
Expand Down