def render = Seq( Graphic(32, 32, Material.Bitmap(HelloIndigo.playerAssetName)) .moveTo(position.toPoint), Shape.Box(hitbox, Fill.Color(RGBA.Red), Stroke(5, RGBA.Red)) )
indigoRun- assuming you have electron installed (
npm install -g electron) because Electron uses Chrome, and Chromes WebGL 2.0 support is pretty consistent.
noooo, why is
Shape.Boxa square instead of a rectangle?
Congratulations, as the first user of shapes in the wild, you've found the first embarrassing bug. 😭
QA is hard...
I have a partial workaround for you, a bit unsatisfying but scaling works:
Shape.Box(Rectangle(50, 50, 50, 50), Fill.Color(RGBA.Red)) .withRef(-25, -25) .scaleBy(1.0, 0.5)