Skip to content

Commit

Permalink
Add space-shooter game to showcase (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
krig authored May 20, 2024
1 parent 58a59a8 commit 8200d6b
Show file tree
Hide file tree
Showing 5 changed files with 749 additions and 0 deletions.
1 change: 1 addition & 0 deletions showcase/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const carts = .{
.{ "raytracer", @import("raytracer") },
.{ "neopixelpuzzle", @import("neopixelpuzzle") },
.{ "dvd", @import("dvd") },
.{ "space-shooter", @import("space-shooter") },
};

pub fn build(b: *std.Build) void {
Expand Down
1 change: 1 addition & 0 deletions showcase/build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
.raytracer = .{ .path = "carts/raytracer" },
.neopixelpuzzle = .{ .path = "carts/neopixelpuzzle" },
.dvd = .{ .path = "carts/dvd" },
.@"space-shooter" = .{ .path = "carts/space-shooter" },
},
.paths = .{
"README.md",
Expand Down
19 changes: 19 additions & 0 deletions showcase/carts/space-shooter/build.zig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const std = @import("std");
const sycl_badge = @import("sycl_badge");

pub const author_name = "Kristoffer Gronlund";
pub const author_handle = "krig";
pub const cart_title = "space-shooter";
pub const description = "A basic bullet hell side scrolling arcade game";

pub fn build(b: *std.Build) void {
const optimize = b.standardOptimizeOption(.{});
const sycl_badge_dep = b.dependency("sycl_badge", .{});

const cart = sycl_badge.add_cart(sycl_badge_dep, b, .{
.name = "space-shooter",
.optimize = optimize,
.root_source_file = b.path("src/main.zig"),
});
cart.install(b);
}
12 changes: 12 additions & 0 deletions showcase/carts/space-shooter/build.zig.zon
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.{
.name = "space-shooter",
.version = "0.0.0",
.dependencies = .{
.sycl_badge = .{ .path = "../../../" },
},
.paths = .{
"build.zig",
"build.zig.zon",
"src",
},
}
Loading

0 comments on commit 8200d6b

Please sign in to comment.