diff options
author | henriquelalves <henriquelalves@gmail.com> | 2025-05-11 14:37:53 +0300 |
---|---|---|
committer | henriquelalves <henriquelalves@gmail.com> | 2025-05-11 14:37:53 +0300 |
commit | 4b62024145f031c401315292576541e594440cfc (patch) | |
tree | de7c1f7b16893c238095932adf41c85aa738f039 /src | |
download | gamejam-slgj-2025-4b62024145f031c401315292576541e594440cfc.tar.gz gamejam-slgj-2025-4b62024145f031c401315292576541e594440cfc.tar.bz2 gamejam-slgj-2025-4b62024145f031c401315292576541e594440cfc.zip |
first commit
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..6b82d49 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,17 @@ +use macroquad::prelude::*; + + +#[macroquad::main("BasicShapes")] +async fn main() { + loop { + clear_background(RED); + + draw_line(40.0, 40.0, 100.0, 200.0, 15.0, BLUE); + draw_rectangle(screen_width() / 2.0 - 60.0, 100.0, 120.0, 60.0, GREEN); + draw_circle(screen_width() - 30.0, screen_height() - 30.0, 15.0, YELLOW); + + draw_text("IT WORKS!", 20.0, 20.0, 30.0, DARKGRAY); + + next_frame().await + } +} |