Skip to content

Commit

Permalink
Return gameover state
Browse files Browse the repository at this point in the history
  • Loading branch information
ringtailsoftware committed Dec 7, 2024
1 parent c6cc951 commit 8ea8788
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ const io = std.io;

const mibu = @import("mibu");
const events = mibu.events;
const term = mibu.term;
const utils = mibu.utils;
const color = mibu.color;
const cursor = mibu.cursor;

const time = @import("time.zig");

Expand Down Expand Up @@ -97,8 +93,7 @@ pub fn gameloop(writer:anytype, now:u32, next:mibu.events.Event) !bool {
try stage.paint(&display, STAGE_OFF_X, STAGE_OFF_Y);
try decor.paint(&display, (STAGE_OFF_X + Stage.STAGEW) * 2 + 1, 1, player.level, player.numLines, player.score, player.nextTimo);
try display.paint(writer);
return true;

return !gameOver;
}

pub fn main() !void {
Expand Down

0 comments on commit 8ea8788

Please sign in to comment.