-
Notifications
You must be signed in to change notification settings - Fork 360
Open
Description
I am trying to create a basic game in the Heaps. When I run it, I see Anti Aliasing not working. This is the screenshot and my sample code.
import h3d.Engine;
class Main extends hxd.App {
var bmp:h2d.Bitmap;
override function init() {
Engine.ANTIALIASING = 4;
var default_font = hxd.res.DefaultFont.get();
default_font.resizeTo(24);
var tf = new h2d.Text(default_font, s2d);
tf.text = "Hello World !";
var tile = h2d.Tile.fromColor(0xFF0000, 100, 100);
bmp = new h2d.Bitmap(tile, s2d);
bmp.x = s2d.width * 0.5;
bmp.y = s2d.height * 0.5;
}
override function update(dt:Float) {
super.update(dt);
bmp.rotation += 0.1 * dt;
}
static function main() {
new Main();
}
}
Metadata
Metadata
Assignees
Labels
No labels