set window title

This commit is contained in:
LordMZTE 2021-07-16 22:27:04 +02:00
parent 9974bf611b
commit ea5322a96b
3 changed files with 56 additions and 0 deletions

3
.vim/coc-settings.json Normal file
View file

@ -0,0 +1,3 @@
{
"haxe.hxml": "hl.hxml"
}

51
hxformat.json Normal file
View file

@ -0,0 +1,51 @@
{
"wrapping": {
"arrayWrap": {
"defaultWrap": "onePerLine",
"rules": [
{
"conditions": [
{
"cond": "totalItemLength <= n",
"value": 50
}
],
"type": "noWrap"
}
]
},
"methodChain": {
"rules": [
{
"conditions": [
{
"cond": "itemCount >= n",
"value": 3
}
],
"type": "onePerLine"
}
]
},
"callParameter": {
"rules": [
{
"conditions": [
{
"cond": "itemCount >= n",
"value": 3
},
{
"cond": "totalItemLength >= n",
"value": 50
}
],
"type": "onePerLine"
}
]
}
},
"indentation": {
"character": " "
}
}

View file

@ -2,6 +2,7 @@ import tink.color.Color;
import h2d.Tile;
import h2d.Bitmap;
import hxd.BitmapData;
import hxd.Window;
using StringTools;
@ -13,6 +14,7 @@ class Main extends hxd.App {
var hue:Float;
override function init() {
Window.getInstance().title = "rainbowant";
map = new BitmapData(s2d.width, s2d.height);
ant = new Ant(s2d.width, s2d.height);
bitmap = new Bitmap(tile = Tile.fromBitmap(map), s2d);