Open klownie opened 1 year ago
I can confirm that your code as well as the official examples I tried from the repos don't run on Fedora
A solution is to change the glutin
version in the Cargo.toml
of turtle.rs
to 0.28.0
. Using an even newer version of glutin requires some more work...
Ups I also had to comment the following lines out:
nah it's fine, I just coded the rust turtle with bevy
In two days? not bad - I actually started to rewrite (or rather reinterpret) turtle in bevy - I did not deem it "ready" yet… If I interpret your repositories correctly it is the one to draw the snowflake?
Would you be interested to help in a more general rewrite? If so I'd publish my status and you could give me feedback and contribute? If i recall correctly I had movement, turning, and circles, working (also animated) I was still working on filled shapes but they were also mostly working. I was hoping to do another sprint in August or so to get it polished a little and also to make it simpler to use, as turtle graphics are typically used by absolute beginners.
I just made the repos readable for the public If you would like to join I'd move it to github for better visibility: https://git.teilgedanken.de/Rust/turtlers/
Your project, @enaut, is truly impressive. Although the repository I created was initially intended for my school homework, please feel free to utilize it for your own purposes.
Tho @enaut, I dont understand why your are using such an old version of bevy ?
The version of bevy matches the commit time - it was recent back then... I didn't have time to continue for a year.
@enaut I made my own version (https://github.com/klownie/Burtle) of the bevy turtle but I dont see how we can setup bevy then run some commands before calling .run()
for example being able to run the programme like this :
fn main() { let mut burtle = Burtle::setup(); burtle.forward(100); burtle.right(40); burtle.forward(200); burtle.run() }
Yes that was one of the things that need more thought. I thought maybe the init stuff can be put into a macro creating all the extra things that beginners don't need. (like tokio::main
)
The other big issue is that turtle is not "finished" meaning when coding for example a hangman game the turtle graphics should be able to react to the inputs... so a run
method should not be necessary. Or at least it should not be "final". (Example: https://github.com/pythonanleitung/pythonanleitung.github.io/blob/mdbook/src/bsp/hangman.py)
ok figured out how to fix it im just stupid
Here is the implementation of turtle in rust with a script example: https://github.com/klownie/Burtle
I'm running a code using turtle and it seems to not compile because of a Wayland issue I'm guessing. I'm using arch with newm-atha-git as the wm. kernel : 6.3.5-zen1-1-zen with no NVIDIA drivers running. here's code :
here is error traceback :