Files
simian/scripts/game.as
nick 4a43160537
CI / build-and-test (push) Successful in 2m19s
feat: math and texture functions. update tests
2025-11-19 15:49:03 +13:00

11 lines
424 B
ActionScript 3

#include "update.as"
void Draw() {
Draw::FPS(10, 10);
Draw::Text(format("Hello from AngelScript - at x {} and y {}", int(x), int(y)), int(x), int(y), 20, 0xFF0000FF);
Draw::Rectangle(300, 200, 200, 100, 0x00FF00FF);
Draw::Pixel(250, 200, 0x0000FFFF);
Draw::Line(int(x), int(y), 400, 300, 0xFFFF00FF);
Draw::Circle(600, 400, 50.0f, 0xFF00FFFF);
Texture::Draw(tex, int(ix), int(iy), 0xFFFFFFFF);
}