cost 121 ms
Rust Amethyst Pong 教程示例給出“錯誤:沒有名為 `pong_tutorial_01` 的示例目標”

[英]Rust Amethyst Pong Tutorial Examples give “error: no example target named `pong_tutorial_01`”

我剛剛克隆了 github 存儲庫 amethyst/amethyst,這是一個用 rust 編寫的游戲引擎,以便遵循文檔和教程。 Amethyst 文檔中有關 pong 教程的文檔告訴我們,您可以使用...運行示例 ...但是當我嘗試這個時,我得到一個錯誤... 錯誤:沒有名為“pong_t ...

為什么特征沒有實現?

[英]Why is the trait not implemented?

我想嘗試使用amethyst_physics庫來制作游戲。 (Duh)我按照示例進行操作,但不知何故我不工作:use amethyst::GameDataBuilder; use amethyst_physics::{PhysicsBundle}; use amethyst_nphysics:: ...

如何在 Rust SPECS 中從組件讀取並寫入具有相同組件的新實體?

[英]How can I read from a component and write to a new entity with that same component in Rust SPECS?

我有一個正在生成其他實體的實體。 例如,生成器有一個位置組件,我希望生成的實體與生成器具有相同的位置。 在生成系統中,好像需要讀寫一個組件,這聽起來不太可能。 唯一的選擇似乎是LazyUpdate ,但我想避免這種情況,因為它需要調用world::maintain ,並且我想在同一框架內的另一個系 ...

如何獲得關聯實體的轉換?

[英]How do I get an associated entity's transform?

想象一下,我用變換創建了一個實體:let entity = world.create_entity().with(Transform::default()); 以后如何獲得實體實例的轉換? 例如(偽代碼):let transform = entity.get_associated::<Tr ...

在 Amethyst ECS 架構中添加事件通道

[英]Adding Event channels in Amethyst ECS architecture

在Amethyst Pong 教程中,實體/組件/系統 (ECS) 架構的解釋讓我覺得系統是在main function 中添加到游戲中的東西,不能在運行時添加或刪除。 在同一本書中,我按照這一部分添加了一個Producer系統和一個Receiver系統,它們都與自定義的EventChannel相關 ...

無法設置按鈕顏色

[英]Can't set button color

基於這個 UI 示例,我在on_start方法的末尾添加了一個自定義按鈕。 但是當我運行游戲時,按鈕主體是不可見的,只顯示它的文本(“1234567”)。 我添加到示例中的代碼:// ... use amethyst::assets::AssetStorage; use amethyst::ass ...

如何使用 Rust 和 Amethyst 運行可執行文件

[英]How to run the executable with Rust and Amethyst

所以我遵循了 Amethyst Pong 教程,現在正在構建一個小的生命游戲程序。 如果我使用cargo run運行它,它工作正常,但如果我先進行cargo build然后運行$ .\target\debug\game_of_life.exe 我得到錯誤:Error: Error { inner: ...

Amethyst Rust:'在運行 pong 教程時不能插入多個同名系統(“parent_hierarchy_system”)

[英]Amethyst Rust: 'Cannot insert multiple systems with the same name ("parent_hierarchy_system") when running pong tutorial

我正在學習 Rust 的 Amethyst 框架。 現在我在這里學習乒乓球教程。 在第 3 步(移動槳)教程中,將教您如何設置用於移動槳的System 。 我遵循了所有步驟,但是當我cargo run我的應用程序時,我收到一個錯誤: 我試圖只是從教程的 GitHub 存儲庫中復制,但得到了相同的 ...

如何從紫水晶引擎的內存中加載紋理?

[英]How to load a texture from memory in amethyst engine?

我已經閱讀了官方文檔,但找不到直接從內存中加載紋理的任何方法。 它目前確實具有從文件中加載紋理的API,但是我想要的確切是從&[u8]加載紋理,該&[u8]表示具有固定大小的RGBA格式的圖像。 ...

使用Rust和Amethyst的Linux上缺少的庫

[英]Missing Libraries on Linux with Rust and Amethyst

當我嘗試在Ubuntu 18.04上cargo build 紫水晶的“ hello world”時,出現關於lxbcb缺少庫的錯誤。 我不確定此錯誤試圖告訴我什么或如何解決。 似乎我缺少庫-lxcb-render , -lxcb-shap -lxcb-xfixes和-lxcb-xfixes ...

Amethyst的Loader無法找到資產文件

[英]Amethyst's Loader can't find an asset file

我使用Rust Amethyst游戲引擎加載名為ground.png的紋理,但Loader似乎找不到該文件: 我的assets_dir是項目的根文件夾,在加載我的文件時,我附加了textures/ground.png : 我的文件目錄如下所示: ├── src │ └── ...


排序:
質量:
 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM