Skip to content

Commit

Permalink
(speedtest) bump version to 0.1.0; adjust hover color
Browse files Browse the repository at this point in the history
  • Loading branch information
purple4pur committed Oct 24, 2023
1 parent 11ec8ca commit d4b793f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions speedtest/speedtest.zig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const Kps = @import("kps.zig").Kps;
const Chart = @import("chart.zig").Chart;
const Binding = union(enum) { keyboard: rl.KeyboardKey, mouse: rl.MouseButton };

const versionString = "0.1.0";
const homepageURL = "https://github.com/purple4pur/minigame-raylib/wiki/Homepage:-Speedtest";

pub fn main() !void {
Expand All @@ -16,7 +17,7 @@ pub fn main() !void {

const screenWidth = 450;
const screenHeight = 420;
rl.initWindow(screenWidth, screenHeight, "Speedtest [purple4pur]");
rl.initWindow(screenWidth, screenHeight, "Speedtest " ++ versionString);
defer rl.closeWindow();

rl.setTargetFPS(360);
Expand Down Expand Up @@ -519,7 +520,7 @@ pub fn main() !void {
.width = k1Rectangle.rectangle.width,
.height = k1Rectangle.rectangle.height,
})) {
k1BgProp.color = rl.Color.green;
k1BgProp.color = rl.Color.yellow;
if (rl.isMouseButtonReleased(rl.MouseButton.mouse_button_left)) {
currentScreen = .k1_binding;
}
Expand All @@ -532,7 +533,7 @@ pub fn main() !void {
.width = k2Rectangle.rectangle.width,
.height = k2Rectangle.rectangle.height,
})) {
k2BgProp.color = rl.Color.green;
k2BgProp.color = rl.Color.yellow;
if (rl.isMouseButtonReleased(rl.MouseButton.mouse_button_left)) {
currentScreen = .k2_binding;
}
Expand Down

0 comments on commit d4b793f

Please sign in to comment.