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
0
votes
1 answer

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

I have an entity that is generating other entities. For example, the generator has a position component, and I want the generated entity to have the same position as the generator. In the generating system, it seems that I need to both read and…
Shizz
  • 43
  • 6
0
votes
1 answer

How do I get an associated entity's transform?

Imagine I've crated an entity with transform: let entity = world.create_entity().with(Transform::default()); How do I get its transform later having entity instance? E.g. (pseudo code): let transform = entity.get_associated::();
Aunmag
  • 852
  • 12
  • 17
0
votes
0 answers

How to generate a sphere and pass it to the asset loader

I found this code online which probably worked for a different version of the Amethyst Engine: let mesh = data.world.exec(|loader: AssetLoaderSystemData| { loader.load_from_data( Shape::Sphere(32,…
nyarlathotep108
  • 5,275
  • 2
  • 26
  • 64
0
votes
1 answer

Can't set button color

Based on this UI example I've add a custom button at the end of on_start method. But when I run the game the button body is invisible, only its text is shown ("1234567"). The code I added to the example: // ... use…
Aunmag
  • 852
  • 12
  • 17
0
votes
1 answer

How to run the executable with Rust and Amethyst

So I followed the Amethyst Pong tutorial and am now building a little Game of Life program. It works fine if I run it with cargo run but if I do cargo build and then run $ .\target\debug\game_of_life.exe I get the error: Error: Error { inner: Inner…
swishy_fishy
  • 13
  • 1
  • 4
1
2