[英]Rust Amethyst Pong Tutorial Examples give “error: no example target named `pong_tutorial_01`”
我剛剛克隆了 github 存儲庫 amethyst/amethyst,這是一個用 rust 編寫的游戲引擎,以便遵循文檔和教程。 Amethyst 文檔中有關 pong 教程的文檔告訴我們,您可以使用...運行示例 ...但是當我嘗試這個時,我得到一個錯誤... 錯誤:沒有名為“pong_t ...
[英]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 `std::time::Instant` "panicked at 'supplied instant is later than self"
我正在嘗試在 Rust 中設置一個簡單的計時器,該計時器以特定頻率返回 true。 #[derive(Clone, Debug)] pub struct IntervalTimer { pub period: Duration, pub delta: Instant, } impl ...
[英]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 create a UiWidget at runtime as an entity?
想象一下我創建了一個容器let created = UiWidget::Container::<NoCustomUi, String, ()> { transform: UiTransformData::default(), background: None, ...
[英]How do I get an associated entity's transform?
想象一下,我用變換創建了一個實體:let entity = world.create_entity().with(Transform::default()); 以后如何獲得實體實例的轉換? 例如(偽代碼):let transform = entity.get_associated::<Tr ...
[英]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 ...
[英]How to run the executable with Rust and Amethyst
所以我遵循了 Amethyst Pong 教程,現在正在構建一個小的生命游戲程序。 如果我使用cargo run運行它,它工作正常,但如果我先進行cargo build然后運行$ .\target\debug\game_of_life.exe 我得到錯誤:Error: Error { inner: ...
[英]gcc.exe fail when building cloudflare-zlib-sys.rs
我正在嘗試為Amethyst.rs游戲引擎安裝sheep_cli 。 我安裝了x86_64-8.1.0-posix-seh-rt_v6-rev0 MinGW。 也許目標是錯誤的? ...
[英]Rust & Amethyst - Error [E0433]: failed to resolve: could not find `__rt` in `quote`
我正在從 Shing Lyu 的“Practical Rust Projects”中學習 Rust。 我現在正在嘗試按照第 4 章中的步驟構建游戲。我正在 Ubuntu 18.04 LTS 上工作。 安裝 Rust 和 Amethyst 命令行后,我通過amethyst new cat_volle ...
[英]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格式的圖像。 ...
[英]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's Loader can't find an asset file
我使用Rust Amethyst游戲引擎加載名為ground.png的紋理,但Loader似乎找不到該文件: 我的assets_dir是項目的根文件夾,在加載我的文件時,我附加了textures/ground.png : 我的文件目錄如下所示: ├── src │ └── ...