Last Updated: February 25, 2016
·
2.936K
· depy

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. :)

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
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