Questions tagged [amethyst]

For questions about the amethyst game engine for the rust programming language.

These principles are what make amethyst unique and competitive in the world of game engines.

  • Massively parallel architecture.
  • Powered by a correct Entity Component System model.
  • Rapid prototyping with RON files for prefabs and an abstract scripting API.
  • Strong focus on encouraging reusability and clean interfaces.
20 questions
5
votes
2 answers

Rust `std::time::Instant` "panicked at 'supplied instant is later than self"

I'm trying to get a simple timer set up in rust that returns true at a certain frequency. #[derive(Clone, Debug)] pub struct IntervalTimer { pub period: Duration, pub delta: Instant, } impl IntervalTimer { pub fn new(period: Duration)…
Michael
  • 507
  • 4
  • 11
4
votes
1 answer

Yanked subdependency - Error [E0433]: failed to resolve: could not find `__rt` in `quote`

I'm learning Rust from "Practical Rust Projects" by Shing Lyu. I'm now trying to build a game following the steps in Chapter 4. I'm working on Ubuntu 18.04 LTS. After installing Rust and the Amethyst command line, I created a new project via…
albus_c
  • 6,292
  • 14
  • 36
  • 77
3
votes
1 answer

Amethyst's Loader can't find an asset file

I am using the Rust Amethyst game engine to load a texture named ground.png, but the Loader does not seem to find the file: //... let assets_dir = format!("{}", env!("CARGO_MANIFEST_DIR")); let mut game = Application::build(assets_dir,…
KuSpa
  • 325
  • 4
  • 14
2
votes
2 answers

Rust Amethyst Pong Tutorial Examples give "error: no example target named `pong_tutorial_01`"

I just cloned the github repository amethyst/amethyst, which is a game engine written in rust, in order to follow the docs and tutorials. The document at Amethyst documentation about the pong tutorial tells us that you can run examples…
Sam
  • 33
  • 3
2
votes
1 answer

Why is the trait not implemented?

I wanted to try the amethyst_physics library to make a game. (Duh) I followed to Example, but somhow I does not work: use amethyst::GameDataBuilder; use amethyst_physics::{PhysicsBundle}; use amethyst_nphysics::NPhysicsBackend; fn main() ->…
Voß
  • 103
  • 9
2
votes
1 answer

gcc.exe fail when building cloudflare-zlib-sys.rs

I am trying to install sheep_cli for Amethyst.rs game engine. I have x86_64-8.1.0-posix-seh-rt_v6-rev0 MinGW installed. Maybe target is wrong? error: failed to run custom build command for `cloudflare-zlib-sys v0.2.0` Caused by: process didn't…
user263096
  • 135
  • 5
2
votes
1 answer

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

I am learning Amethyst framework for Rust. And now I follow pong tutorial here. On step 3 (Moving paddles) tutorial teaches how to set up System for moving paddles. I followed all the steps, however when I cargo run my application i get an…
FirePapaya
  • 509
  • 5
  • 21
2
votes
1 answer

How to load a texture from memory in amethyst engine?

I have read the offical docs but can't find any way to load a texture from memory directly. It currently do have the APIs to load textures from files but what I want exactly is to load a texture from a &[u8] which respresents an RGBA formatted image…
skypitcher
  • 109
  • 7
2
votes
0 answers

Unable to Run Amethyst Starter Template: 'VkError(ERROR_INCOMPATIBLE_DRIVER)'

I'm trying to run an Amethyst project, however I keep coming across an error that prevents me from getting a window to open. I have installed the dependencies mentioned in the official Amethyst GitHub page and am using the 2D starter template. I did…
usummon
  • 41
  • 1
  • 3
2
votes
1 answer

Missing Libraries on Linux with Rust and Amethyst

When I try to cargo build the 'hello world' of amethyst on Ubuntu 18.04, I get an error about missing libraries from lxbcb. I'm not sure what this error is trying to tell me or how to fix it. It seems like I'm missing libraries -lxcb-render,…
neogeek23
  • 813
  • 1
  • 12
  • 23
1
vote
1 answer

How do I create a UiWidget at runtime as an entity?

Imagine I've created a container let created = UiWidget::Container:: { transform: UiTransformData::default(), background: None, children: Vec::new(), }; How do I add it to the world and get its entity back?…
Aunmag
  • 852
  • 12
  • 17
1
vote
1 answer

Adding Event channels in Amethyst ECS architecture

In the Amethyst Pong tutorial, The Entity/Component/System (ECS) architecture is explained in a way that makes me think that systems are something added to the game in the main function, and cannot be added or removed at runtime. In the same book, I…
nyarlathotep108
  • 5,275
  • 2
  • 26
  • 64
1
vote
0 answers

Canvas for Rust's Amethyst?

Is there any possibility to draw primitives on some kind of canvas in Amethyst game engine? Let's say I want to draw pixel points, lines, circles etc? I did not find anything straightforward for that, though I admit that my task can be done with a…
Nikolai Shalakin
  • 1,349
  • 2
  • 13
  • 25
1
vote
0 answers

How to load a GLTF asset without ron file

I want to load a gltf file without ron files. I have followed their official example for gltf. But they are loading the GLTF file from a ron file in that example. How to change this example to load gltf without a ron file?
0
votes
0 answers

Amethyst display.ron compiling issue

I am attempting to learn to use Rust and Amethyst. As a starter project, I am creating a simple text adventure. I am attempting to create a "welcome" initialization page with a background image located at "/assets/images/Background.png". Without the…
1
2