jrockett6 / bevy_godot4

Bring Bevy's ECS to Godot4
MIT License
39 stars 8 forks source link

Github version of gdext doesn't generate BevyApp Node #4

Closed rapushka closed 2 months ago

rapushka commented 2 months ago

According to the 2nd step of the Setup section in the readme file – you could use the github link to the dgext crate for dependency

[dependencies]
godot = { git = "https://github.com/godot-rust/gdext", branch = "master" }

but, at least in my case (linux, godot 4.3) – it just doesn't work, cuz the BevyApp node just won't appear! even considering that the gdextension is set up correctly, for example: i could write this code and the Player node will work just fine!

#[derive(GodotClass)]
#[class(base=Sprite2D)]
struct Player {
    speed: f64,
    angular_speed: f64,

    base: Base<Sprite2D>,
}

#[godot_api]
impl ISprite2D for Player {
    fn init(base: Base<Sprite2D>) -> Self {
        Self {
            speed: 400.0,
            angular_speed: std::f64::consts::PI,
            base,
        }
    }
}

meanwhile the simple example uses crates.io version of the godot crate as dependency. so did i, and it just works!

[dependencies]
godot = "0.1.3"
jrockett6 commented 2 months ago

Thanks!