Get the croc into the engine

This commit is contained in:
2024-02-27 15:57:37 -08:00
parent 57e025e6aa
commit 08f279e340
10 changed files with 67 additions and 108 deletions

View File

@ -2,12 +2,30 @@ load("@bazel_skylib//rules:run_binary.bzl", "run_binary")
cc_library(
name = "game",
srcs = glob(["*.c"]) + [":art/game_tiles.c", ":map/game_map.c"],
hdrs = glob(["*.h"]) + [":art/game_tiles.h", ":map/game_map.h"],
srcs = glob(["*.c"]) + [
"art/game_player.c",
"art/game_tiles.c",
"map/game_map.c",
],
hdrs = glob(["*.h", "art/*.h", "map/*.h"]),
visibility = ["//visibility:public"],
deps = ["//device:device", "//sys:sys"]
)
run_binary(
name = "game_player",
args = [
"game_player",
"64", # n sprites
"0", # key color
"$(location :art/game_player.png)",
"$(location :art/game_player.c)"
],
srcs = [":art/game_player.png"],
outs = [":art/game_player.c"],
tool = "//pytools:spritesheet",
)
run_binary(
name = "game_tiles",
args = [