Skip to content

polako-rs/polako

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Polako

About

polako is the big rethink of the application framework architecture in general and the one plugin for bevy in particular. polako is built on the top of constructivism.

The polako is at the proof-of-concept state. It is possible to define the scene and its behavior with eml! macro (complete example):

fn hello_world(mut commands: Commands) {
    commands.spawn(Camera2dBundle::default());
    commands.add(eml! {
        resource(time, Time);
        bind(time.elapsed_seconds.fmt("{:0.2}") => elapsed.text);
        bind(time.elapsed_seconds * 0.5 - 0.5 => content.bg.r);
        bind(content.bg.hex => color.text);
        Body + Name { .value: "body" } [
            content: Column { .bg: #9d9d9d, .s.padding: [25, 50] }[
                Div { .bg: #dedede, .s.padding: 50 } [
                    "Hello world!"
                ],
                Row [
                    "Elapsed: ", elapsed: Label { .text: "0.00" }
                ],
                Row [
                    "Color: ", color: Label
                ]
            ]
        ]
    })
}

Polako MVP Sample

All elements (Div, Label, Row, etc) are implemented in the example. The eml! is designed as tool-friendly-first macro, so a lot of autocomplete, doc strings, goto things are just works. Some of them not (yet).

There is no polako_ui crate yet. Only some parts of the bevy are implemented as Elements, see bridge.rs.

Meaning

Polako is the identity, the lifestyle and the answer to every question of the Serbian people. It also can be translated from one as yet unknown ancient language as 42.

License

The polako is dual-licensed under either:

This means you can select the license you prefer! This dual-licensing approach is the de-facto standard in the Rust ecosystem and there are very good reasons to include both.

About

Open app & game engine on the top of the `bevy` with all the good.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE.md
MIT
LICENSE-MIT.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages