0

I want to display a thin rounded corner border around my game. Can I leverage the RoundedRect for this, or do I have to do something else? I see it doesn't come natively, so I was wondering how it's done.

Thanks.

Brian Mains
  • 50,520
  • 35
  • 148
  • 257

2 Answers2

1

I'm not familiar with LimeJS but you could try using border-radius as a CSS property on the element the game renders to.

art0rz
  • 111
  • 6
1

You can put the entire game into a lime.RoundedRect and add a border to it.

// requirements
goog.require('lime.RoundedRect');

// in your main function
var gameContainer = new lime.RoundedRect();
gameContainer.setStroke(12,'#000000');
gameContainer.appendChild(/* the rest of your code here */);
caltrop
  • 364
  • 1
  • 6
  • 15