Crates.io | veebee |
lib.rs | veebee |
version | 1.1.1 |
source | src |
created_at | 2021-11-02 15:09:39.654176 |
updated_at | 2021-11-14 13:26:59.099936 |
description | A Simple Rust Game Engine For 2D |
homepage | https://github.com/TuNiman1/veebee |
repository | https://github.com/TuNiman1/veebee |
max_upload_size | |
id | 475741 |
size | 6,759,519 |
VeeBee Is A Nice And Simple Game Engine For 2D.
Sprites & Images!
Music & SFX!
Collision detection
Text
Input (Mouse & Keyboard)
Timers
Add 'veebee' As A Crate Dependency In 'Cargo.toml'
Like This:
# Put It On [dependencies] In Cargo.toml
veebee = "1.0.0"
First, Let's Code A Window:
use veebee::prelude::*;
fn main() {
let mut game = Game::new();
game.window_settings(WindowDescriptor {
width: 700.0,
height: 150.0,
resize_constraints: WindowResizeConstraints {
min_width: 700.0,
min_height: 150.0,
max_width: 900.0,
max_height: 300.0,
},
title: "Veebee Window".into(),
vsync: false,
resizable: true,
decorations: false,
cursor_visible: false,
..Default::default()
});
let _ = game.add_text_actor(
"message",
"This Is A Simple VeeBee Window\nPress Esc To Exit.",
);
game.run(|_| {});
}