-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switched from plugin to embedded_asset macro
- Loading branch information
Showing
11 changed files
with
54 additions
and
40 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
use bevy::asset::embedded_asset; | ||
use bevy::prelude::*; | ||
|
||
pub(super) fn plugin(app: &mut App) { | ||
let prefix = "src/"; | ||
embedded_asset!(app, prefix, "../assets/base.glb"); | ||
embedded_asset!(app, prefix, "../assets/bubble.ogg"); | ||
embedded_asset!(app, prefix, "../assets/coral.glb"); | ||
embedded_asset!(app, prefix, "../assets/fish.glb"); | ||
embedded_asset!(app, prefix, "../assets/frame.glb"); | ||
embedded_asset!(app, prefix, "../assets/gravel.glb"); | ||
embedded_asset!(app, prefix, "../assets/off.ogg"); | ||
embedded_asset!(app, prefix, "../assets/on.ogg"); | ||
embedded_asset!(app, prefix, "../assets/rocks.glb"); | ||
embedded_asset!(app, prefix, "../assets/skeleton.glb"); | ||
embedded_asset!(app, prefix, "../assets/snail.glb"); | ||
embedded_asset!(app, prefix, "../assets/starfish.glb"); | ||
embedded_asset!(app, prefix, "../assets/tank.glb"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters