First real map with real tiles
This commit is contained in:
22
game/BUILD
22
game/BUILD
@ -2,23 +2,23 @@ load("@bazel_skylib//rules:run_binary.bzl", "run_binary")
|
||||
|
||||
cc_library(
|
||||
name = "game",
|
||||
srcs = glob(["*.c"]) + [":art/game_demo_sprites.c", ":map/game_map.c"],
|
||||
hdrs = glob(["*.h"]) + [":art/game_demo_sprites.h", ":map/game_map.h"],
|
||||
srcs = glob(["*.c"]) + [":art/game_tiles.c", ":map/game_map.c"],
|
||||
hdrs = glob(["*.h"]) + [":art/game_tiles.h", ":map/game_map.h"],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = ["//device:device", "//sys:sys"]
|
||||
)
|
||||
|
||||
run_binary(
|
||||
name = "game_demo_sprites",
|
||||
name = "game_tiles",
|
||||
args = [
|
||||
"game_demo_sprites",
|
||||
"256", # n sprites
|
||||
"game_tiles",
|
||||
"120", # n sprites
|
||||
"0", # key color
|
||||
"$(location :art/game_demo_sprites.png)",
|
||||
"$(location :art/game_demo_sprites.c)"
|
||||
"$(location :art/game_tiles.png)",
|
||||
"$(location :art/game_tiles.c)"
|
||||
],
|
||||
srcs = [":art/game_demo_sprites.png"],
|
||||
outs = [":art/game_demo_sprites.c"],
|
||||
srcs = [":art/game_tiles.png"],
|
||||
outs = [":art/game_tiles.c"],
|
||||
tool = "//pytools:spritesheet",
|
||||
)
|
||||
|
||||
@ -26,10 +26,10 @@ run_binary(
|
||||
name = "game_map",
|
||||
args = [
|
||||
"game_map",
|
||||
"$(location :map/crocparty.ldtk)",
|
||||
"$(location :map/game_map.ldtk)",
|
||||
"$(location :map/game_map.c)",
|
||||
],
|
||||
srcs = [":map/crocparty.ldtk"],
|
||||
srcs = [":map/game_map.ldtk"],
|
||||
outs = [":map/game_map.c"],
|
||||
tool = "//pytools:mapdata"
|
||||
)
|
Reference in New Issue
Block a user