Skip to content

Commit

Permalink
wip: project metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchantey committed Jul 28, 2024
1 parent 686e899 commit 93363d2
Show file tree
Hide file tree
Showing 5 changed files with 135 additions and 127 deletions.
134 changes: 133 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,143 @@ features = [
"IdbVersionChangeEventInit",
]

[[package.metadata.project]]
name = "app"
thumb-text = "🔨"
description = "Basic Beet App with debugging, camera, and UI."
app.js-url = "https://storage.googleapis.com/beet-examples/app_basics/main.js"
app.wasm-url = "https://storage.googleapis.com/beet-examples/app_basics/main_bg.wasm"

[[package.metadata.project]]
name = "app-ml"
thumb-text = "🔨"
description = "Full Beet App with machine learning, networking, and UI."
app.js-url = "https://storage.googleapis.com/beet-examples/app_full/main.js"
app.wasm-url = "https://storage.googleapis.com/beet-examples/app_full/main_bg.wasm"

[[package.metadata.project]]
name = "beet-debug"
thumb-text = "🐛"
description = "Enable debugging for printing to the console, and screen if used with beetmash/ui-terminal."
scene.path = "scenes/beet-debug.ron"

[[package.metadata.project]]
name = "hello-world"
thumb-text = "🌍"
thumb-url = "https://storage.googleapis.com/beet-examples/screenshots/hello-world.png"
description = "A simple behavior that prints 'Hello' then 'World' to the console."
app = "app"
scene.path = "scenes/hello-world.ron"
scene.dependencies = ["beet-debug", "camera-2d", "ui-terminal"]
scene.dependencies = [
"beet-debug",
"beetmash/camera-2d",
"beetmash/ui-terminal",
]


[[package.metadata.project]]
name = "flock"
description = "Demonstration of flocking behaviors."
thumb-url = "https://storage.googleapis.com/beet-examples/screenshots/flock.png"
app = "app"
scene.path = "scenes/flock.ron"
scene.dependencies = ["beet-debug", "beetmash/camera-2d", "space-scene"]

[[package.metadata.project]]
name = "seek"
description = "Demonstration of the seek behavior."
thumb-url = "https://storage.googleapis.com/beet-examples/screenshots/seek.png"
app = "app"
scene.path = "scenes/seek.ron"
scene.dependencies = ["beet-debug", "beetmash/camera-2d", "space-scene"]

[[package.metadata.project]]
name = "seek-3d"
description = "A 3D demonstration of the seek behavior."
thumb-url = "https://storage.googleapis.com/beet-examples/screenshots/seek-3d.png"
app = "app"
scene.path = "scenes/seek-3d.ron"
scene.dependencies = [
"beet-debug",
"beetmash/lighting-3d",
"beetmash/ground-3d",
]


[[package.metadata.project]]
name = "hello-animation"
description = "A simple behavior demonstrating animation control."
thumb-url = "https://storage.googleapis.com/beet-examples/screenshots/hello-animation.png"
app = "app"
scene.path = "scenes/hello-animation.ron"
scene.dependencies = [
"beetmash/ui-terminal",
"beetmash/lighting-3d",
"beetmash/ground-3d",
"beet-debug",
]

[[package.metadata.project]]
name = "hello-ml"
description = "A behavior that uses a Sentence Selector to score child behaviors, deciding which will run next."
thumb-url = "https://storage.googleapis.com/beet-examples/screenshots/hello-llm.png"
scene.path = "scenes/hello-ml.ron"
scene.dependencies = [
"beetmash/camera-2d",
"beetmash/ui-terminal",
"beet-debug",
]

[[package.metadata.project]]
name = "fetch-scene"
thumb-text = "🏠"
description = "A camera and the items that the fetch character can go to."
scene.path = "scenes/fetch-scene.ron"

[[package.metadata.project]]
name = "fetch"
description = "Combining LLM, steering and animation behaviors."
thumb-url = "https://storage.googleapis.com/beet-examples/screenshots/fetch.png"
app = "app-ml"
scene.path = "scenes/fetch-npc.ron"
scene.dependencies = [
"beetmash/ui-terminal-input",
"beetmash/lighting-3d",
"beetmash/ground-3d",
"fetch-scene",
"fetch-scene",
]
events.playerMessage.initial = "I'm hungry!"

[[package.metadata.project]]
name = "frozen-lake-scene"
thumb-text = "❄️"
description = "The static scene for the frozen lake environment."
scene.path = "scenes/frozen-lake-scene.ron"


[[package.metadata.project]]
name = "frozen-lake-train"
description = "Train a Q-learning agent to navigate the frozen lake environment."
thumb-url = "https://storage.googleapis.com/beet-examples/screenshots/frozen-lake-run.png"
app = "app-ml"
scene.path = "scenes/frozen-lake-train.ron"
scene.dependencies = [
"beetmash/ui-terminal",
"beetmash/lighting-3d",
"beet-debug",
"frozen-lake-scene",
]

[[package.metadata.project]]
name = "frozen-lake-run"
description = "Use a trained Q-learning agent to navigate the frozen lake environment."
thumb-url = "https://storage.googleapis.com/beet-examples/screenshots/frozen-lake-run.png"
app = "app-ml"
scene.path = "scenes/frozen-lake-run.ron"
scene.dependencies = [
"beetmash/ui-terminal",
"beetmash/lighting-3d",
"beet-debug",
"frozen-lake-scene",
]
29 changes: 1 addition & 28 deletions crates/beet_examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,31 +30,4 @@ anyhow.workspace = true

[[example]]
name = "export_scenes"
path = "./examples/export_scenes.rs"


[[package.metadata.project]]
name = "app-basic"
thumb-text = "🔨"
description = "Basic Beet App with debugging, camera, and UI."
app.js-url = "https://storage.googleapis.com/beet-examples/app_basics/main.js"
app.wasm-url = "https://storage.googleapis.com/beet-examples/app_basics/main_bg.wasm"

[[package.metadata.project]]
name = "app-full"
thumb-text = "🔨"
description = "Full Beet App with machine learning, networking, and UI."
app.js-url = "https://storage.googleapis.com/beet-examples/app_full/main.js"
app.wasm-url = "https://storage.googleapis.com/beet-examples/app_full/main_bg.wasm"

[[package.metadata.project]]
name = "beet-debug"
thumb-text = "🐛"
description = "Enable debugging for printing to the console, and screen if used with ui-terminal."
scene.path = "scenes/beet-debug.ron"

[[package.metadata.project]]
name = "space-scene"
thumb-text = "🌌"
description = "A 2D space scene with a starry background and transform wrap-around."
scene.path = "scenes/space-scene.ron"
path = "./examples/export_scenes.rs"
66 changes: 0 additions & 66 deletions crates/beet_ml/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,69 +62,3 @@ sweet.workspace = true

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
tokio.workspace = true


[[package.metadata.project]]
name = "hello-llm"
description = "A behavior that uses a Sentence Selector to score child behaviors, deciding which will run next."
thumb-url = "https://storage.googleapis.com/beet-examples/screenshots/hello-llm.png"
scene.path = "scenes/hello-llm.ron"
scene.dependencies = ["beet-debug", "camera-2d", "ui-terminal"]

[[package.metadata.project]]
name = "fetch-npc"
description = "The fetch character that will interact with the player."
thumb-url = "https://storage.googleapis.com/beet-examples/screenshots/fetch.png"
scene.path = "scenes/fetch-npc.ron"
app = "app-full"

[[package.metadata.project]]
name = "fetch-scene"
thumb-text = "🏠"
description = "A camera and the items that the fetch character can go to."
scene.path = "scenes/fetch-scene.ron"

[[package.metadata.project]]
name = "fetch"
description = "Combining LLM, steering and animation behaviors."
scene.path = "scenes/fetch.ron"
scene.dependencies = [
"beet-debug",
"fetch-scene",
"ui-terminal-input",
"lighting-3d",
"ground-3d",
"fetch-npc",
]
events.playerMessage.initial = "I'm hungry!"

[[package.metadata.project]]
name = "frozen-lake-scene"
thumb-text = "❄️"
description = "The static scene for the frozen lake environment."
scene.path = "scenes/frozen-lake-scene.ron"


[[package.metadata.project]]
name = "train"
description = "Train a Q-learning agent to navigate the frozen lake environment."
thumb-url = "https://storage.googleapis.com/beet-examples/screenshots/frozen-lake-run.png"
scene.path = "scenes/frozen-lake-train.ron"
scene.dependencies = [
"beet-debug",
"frozen-lake-scene",
"ui-terminal",
"lighting-3d",
]

[[package.metadata.project]]
name = "infer"
description = "Use a trained Q-learning agent to navigate the frozen lake environment."
thumb-url = "https://storage.googleapis.com/beet-examples/screenshots/frozen-lake-run.png"
scene.path = "scenes/frozen-lake-run.ron"
scene.dependencies = [
"beet-debug",
"frozen-lake-scene",
"ui-terminal",
"lighting-3d",
]
31 changes: 0 additions & 31 deletions crates/beet_spatial/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,34 +36,3 @@ pretty_env_logger.workspace = true

[dev-dependencies]
sweet.workspace = true


[[package.metadata.project]]
name = "flock"
description = "Demonstration of flocking behaviors."
thumb-url = "https://storage.googleapis.com/beet-examples/screenshots/flock.png"
scene.path = "scenes/flock.ron"
scene.dependencies = ["beet-debug", "camera-2d", "space-scene"]
app = "app-basic"

[[package.metadata.project]]
name = "seek"
description = "Demonstration of the seek behavior."
thumb-url = "https://storage.googleapis.com/beet-examples/screenshots/seek.png"
scene.path = "scenes/seek.ron"
scene.dependencies = ["beet-debug", "camera-2d", "space-scene"]

[[package.metadata.project]]
name = "seek-3d"
description = "A 3D demonstration of the seek behavior."
thumb-url = "https://storage.googleapis.com/beet-examples/screenshots/seek-3d.png"
scene.path = "scenes/seek-3d.ron"
scene.dependencies = ["beet-debug", "lighting-3d", "ground-3d"]


[[package.metadata.project]]
name = "hello-animation"
description = "A simple behavior demonstrating animation control."
thumb-url = "https://storage.googleapis.com/beet-examples/screenshots/hello-animation.png"
scene.path = "scenes/hello-animation.ron"
scene.dependencies = ["beet-debug", "ui-terminal", "lighting-3d", "ground-3d"]
2 changes: 1 addition & 1 deletion examples/build_scenes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ fn main() -> Result<()> {
.without_clear_target()
.with_query::<(Without<ObserverState>, Without<Observer<OnLogMessage, ()>>)>(
)
.add_scene("hello-ml", beet_examples::scenes::ml::hello_ml)
.add_scene("fetch-scene", beet_examples::scenes::ml::fetch_scene)
.add_scene("fetch-npc", beet_examples::scenes::ml::fetch_npc)
.add_scene("sentence-selector", beet_examples::scenes::ml::hello_ml)
// frozen-lake
.add_scene(
"frozen-lake-scene",
Expand Down

0 comments on commit 93363d2

Please sign in to comment.