Simple tile engine with html5 canvas
I simple tile engine using html5 canvas: http://jsfiddle.net/fFsBu/18/
The code should be self explanatory since it's so short. The image on the right is for the reference for getting numbers of tile images.
For unknown reason the image is not loaded sometimes (just click run in jsfiddle). Some advice would be helpful on that. :)
Written by Matjaz Muhic
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Canvas
Authors
Did you know?
JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.
Security insights from Cside
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#