我想在我的游戏周围显示一个细圆角边框。我可以利用RoundedRect来做这件事吗,或者我必须做一些其他的事情?我发现它不是原生的,所以我想知道它是怎么做到的。
谢谢。
发布于 2012-09-12 00:43:37
您可以将整个游戏放入一个lime.RoundedRect中,并为其添加一个边框。
// 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 */);发布于 2012-08-01 18:04:46
我不熟悉CSS,但您可以尝试使用border-radius作为游戏渲染到的元素的LimeJS属性。
https://stackoverflow.com/questions/11749804
复制相似问题