commit f652141b01f7335177f68c06ca4093ffac65dd00
Author: brookjeynes <me@brookjeynes.dev>
Date: Wed, 29 Jul 2026 10:23:48 +1000
init
Signed-off-by: brookjeynes <me@brookjeynes.dev>
Diffstat:
5 files changed, 103 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -0,0 +1,19 @@
+# This file is for zig-specific build artifacts.
+# If you have OS-specific or editor-specific files to ignore,
+# such as *.swp or .DS_Store, put those in your global
+# ~/.gitignore and put this in your ~/.gitconfig:
+#
+# [core]
+# excludesfile = ~/.gitignore
+#
+# Cheers!
+# -andrewrk
+
+.zig-cache/
+zig-out/
+zig-pkg/
+/release/
+/debug/
+/build/
+/build-*/
+/docgen_tmp/
diff --git a/README.rst b/README.rst
@@ -0,0 +1,15 @@
+======
+1.44mb
+======
+
+This is my game for the `1.44mb game jam`_.
+
+.. _1.44mb game jam: https://2pgarcade.com/contest-144mb.html
+
+
+Idea
+----
+
+An endless bullet-hell game. The player attempts to survive as long as they
+can. After each round, points can be spent to buy upgrades to try survive
+longer.
diff --git a/build.zig b/build.zig
@@ -0,0 +1,35 @@
+const std = @import("std");
+
+pub fn build(b: *std.Build) void {
+ const target = b.standardTargetOptions(.{});
+ const optimize = b.standardOptimizeOption(.{});
+
+ const raylib = b.dependency("raylib", .{
+ .optimize = optimize,
+ .target = target,
+ });
+
+ const exe = b.addExecutable(.{
+ .name = "_144mb",
+ .use_lld = false,
+ .root_module = b.createModule(.{
+ .root_source_file = b.path("src/main.zig"),
+ .target = target,
+ .optimize = optimize,
+ .imports = &.{
+ .{ .name = "raylib", .module = raylib.module("raylib") },
+ },
+ }),
+ });
+
+ b.installArtifact(exe);
+
+ const run_step = b.step("run", "Run the app");
+ const run_cmd = b.addRunArtifact(exe);
+ run_step.dependOn(&run_cmd.step);
+
+ run_cmd.step.dependOn(b.getInstallStep());
+ if (b.args) |args| {
+ run_cmd.addArgs(args);
+ }
+}
diff --git a/build.zig.zon b/build.zig.zon
@@ -0,0 +1,17 @@
+.{
+ .name = ._144mb,
+ .version = "0.0.0",
+ .fingerprint = 0xff9fbd9315967ee1,
+ .minimum_zig_version = "0.16.0",
+ .dependencies = .{
+ .raylib = .{
+ .url = "git+https://github.com/raysan5/raylib#935f3da3ffd4b2e3eb4af1ee9826f45ae241a68c",
+ .hash = "raylib-6.0.0-whq8uHLbOwVT1ArFVrONca5sX7AICEVkYCoa6byD0Km-",
+ },
+ },
+ .paths = .{
+ "build.zig",
+ "build.zig.zon",
+ "src",
+ },
+}
diff --git a/src/main.zig b/src/main.zig
@@ -0,0 +1,17 @@
+const std = @import("std");
+const raylib = @import("raylib");
+
+pub fn main() !void {
+ raylib.InitWindow(800, 450, "1.44mb game jam");
+ raylib.SetTargetFPS(60);
+
+ while (!raylib.WindowShouldClose()) {
+ raylib.BeginDrawing();
+
+ raylib.ClearBackground(raylib.RAYWHITE);
+
+ raylib.EndDrawing();
+ }
+
+ raylib.CloseWindow();
+}