beuleal Posted September 9, 2015 Share Posted September 9, 2015 Hi guys, Im working in a game that let the player choose which background he wants based on a image library. So, basically, i transform the image to canvas and get the dataURI. How can i put it as background of my game? Tks. Link to comment Share on other sites More sharing options...
beuleal Posted September 9, 2015 Author Share Posted September 9, 2015 I found a topic that worked with sprite! I gonna try with background images. http://www.html5gamedevs.com/topic/11952-problem-with-dataurl-images-on-firefox/?hl=dataurl e.g. code pen: http://codepen.io/ianmcgregor/pen/qkvcj Link to comment Share on other sites More sharing options...
Recommended Posts