diff options
author | Laurent Bernabe <laurent.bernabe@gmail.com> | 2014-01-27 09:25:13 (GMT) |
---|---|---|
committer | Laurent Bernabe <laurent.bernabe@gmail.com> | 2014-01-27 09:25:13 (GMT) |
commit | 744e67a81e016a45ba122a2d0d69426cfdb585a6 (patch) | |
tree | 0fa971a529f0d8f61b094dd2f622e9cc2734359f | |
parent | 306b5c4dea14a5f4ea76de22a1ae5f4bd79a6a5a (diff) |
Added the activity icon as a test image
-rw-r--r-- | js/activity.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/js/activity.js b/js/activity.js index 8ebc55f..28ff10a 100644 --- a/js/activity.js +++ b/js/activity.js @@ -25,15 +25,18 @@ define(function (require) { $("#gameZone").width(gameZone_dim[0]); $("#gameZone").height(gameZone_dim[1]); - - var text = new createjs.Text("Size is "+gameZone_dim[0]+" x "+gameZone_dim[1], "16px Arial", "#000"), background = new createjs.Shape(); background.graphics.beginFill("#F00").drawRect(0, 0, gameZone_dim[0], gameZone_dim[1]); + var test_picture = new createjs.Bitmap("../activity/activity-icon.svg"); + stage.addChild(background); stage.addChild(text); + + stage.addChild(test_picture); + stage.update(); }); |