Pong made using Godot and Rust using the Godot Rust Bindings. Initial setup done using a shell script from here.
I posted a writeup on Reddit here.
Follow the instructions here.
You will need to set up the .gdnlib paths again during initial setup. This is both to avoid errors and because the path is only setup for OSX.
If you are using VSCode along with the Rust extension, you will need to place a .gdignore
file in the generated rls/ directory. If you don't, Godot will try to import everything in that directory and subsequently hang.
Run the default scene to play.
[W][S] and [Up][Down] to move the paddles. [Enter] to hide the left paddle's sprite. [Space] to reset the scene.
If errors are showing up in the Godot editor output, your gdnative paths are probably messed up. Manually set the paths again and then restart the editor.
If your script properties aren't showing up in the editor, you need to either
restart the editor or run cargo build
and then restart the editor.
When in doubt, restart the editor.