资 源 简 介
K.js Canvas Engine
K is a 2D js canvas engine is created from scratch to explore the optimum way porting my flash game to HTML5. I want it as simple as we can but easy for flash developers to understand and having all important flash platform features.
While it is still in betha version, the examples includes all items you need. Actually the examples is a testing tool for me to assure engine functionality.
You can download it in download-page.
preloader
I have created a simple preloader to avoid unloaded problems so we can create image and loading it than continue the code without worry". Call preloader.start() at the end of the code. It is not suspending the loading, just to assure our code will be called as expected.
Initializing k-js
Easy, just like this:
K.init(document.getElementById("yourCanvasId");
Working with Sprite
The following code examples explain it-self