Skip to content

Commit

Permalink
feat: transparent window example
Browse files Browse the repository at this point in the history
  • Loading branch information
load1n9 committed Nov 29, 2022
1 parent f19e5b1 commit bd80870
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions examples/transparent_window.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Atlas, AtlasSprite, Scene, World } from "../mod.ts";

class Game extends Scene {
test = new Atlas("assets/godot.json", "godot");
setup() {
this.setBackground([0, 0, 0, 0]);
this.addChild(new AtlasSprite(this.test, 0, 0, "sprite1"));
}
}

const test = new World({
title: "test",
width: 800,
height: 600,
resizable: false,
transparent: true,
removeDecorations: true,
floating: true,
}, [Game]);

await test.start();

0 comments on commit bd80870

Please sign in to comment.