我使用按钮助手来允许单击显示框和文本区域。如果您用鼠标将鼠标悬停在框上,则只能点击框的2/3左右。 而选定的区域被允许在右侧的框外。如何正确设置可点击区域?只是盒子是可以点击的 Game Link to see example - 灰色方向框在链接的第二页。 self.stage.addChild(titleText);
var directionsbox = new createj
首先,我工作的一个本地 EaselJS/CreateJS项目,只测试一些精灵和鼠标交互。 我添加了一个简单的精灵形象舞台上,然后我把它叫做“enemy1”: //Create the enemy sprite and add it to the stage
var enemy_image = new Image();
enemy_image .src = "enemy_sprite.png";
我使用createjs使HTML5游戏BU有在这部分代码存在问题: function createGameObj(){
var text = new createjs.Text("Some Text","16px Arial","white");
var container = new createjs.Container();
container.addChild(