diff options
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); + +}); + |