babalgame 0.5.1

Babal game library, wraps up everything, linkable as a gdnative component.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use gdnative::prelude::*;

#[derive(NativeClass)]
#[inherit(Label)]
pub struct Copyright;

#[methods]
impl Copyright {
    fn new(_owner: &Label) -> Self {
        Copyright
    }

    #[export]
    fn _ready(&self, owner: &Label) {
        owner.set_text("Babal (c) 2020-2021 Christian Mauduit");
    }
}