diff options
author | root <bryan@olenepal.org> | 2009-09-03 06:56:41 (GMT) |
---|---|---|
committer | root <bryan@olenepal.org> | 2009-09-03 06:56:41 (GMT) |
commit | 52ece8d0c40d993fca8f8f51518de39895f4d196 (patch) | |
tree | 4af0198525b5722e42598fe3d385aa91e8d31505 /examples/adding_up_to_10/js/index1.js | |
parent | f05b800a5fbd9bbfa2ab4f38717b7f27e7ad66ef (diff) |
working on an example
Diffstat (limited to 'examples/adding_up_to_10/js/index1.js')
-rw-r--r-- | examples/adding_up_to_10/js/index1.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/examples/adding_up_to_10/js/index1.js b/examples/adding_up_to_10/js/index1.js new file mode 100644 index 0000000..f4789b6 --- /dev/null +++ b/examples/adding_up_to_10/js/index1.js @@ -0,0 +1,28 @@ +$(document).ready(function () { + var k = $.karma({container: "#karma-main"}); +y + //k.size(200,200); + + k.init({images: [ + {id: "ball", file: "ball.png", localized : false }, + {id: "ballon", file: "ballon.png", localized : false }, + {id: "banana", file: "banana.png", localized : false }, + {id: "chilli", file: "chilli.png", localized : false }, + {id: "fish" , file: "fish.png", localized : false }, + {id: "flower", file: "flower.png", localized : false } + ], sounds: [ + {id: "correct", file: "correct.ogg" }, + {id: "incorrect",file: "incorrect.ogg" }] + }); + + var imgNames = ["ball", "balloon", "banana", "chilli", "fish", "flower" ]; + var canvases = ["leftBox", "rightBox", "bottomLeftBox", "bottomMiddleBox", + "bottomRightBox", "timer", "scorebox", "monkey"]; + + var leftCanvas = document.getElementById('left'); + var ltCtx = leftCanvas.getContext('2d'); + + k.library.images[""].draw(20, 30); + +}); + |