echofool Posted July 5, 2011 Share Posted July 5, 2011 Hey,Is it possible to create CSS menus in Canvas? Or is the only way to do it is by placing the divs "layered" on top of the canvas ? For example, lets say you click something in canvas which loads a list of options can a canvas draw interactive CSS menus like that or would it have to be placed on top to create the effect? Link to comment Share on other sites More sharing options...
Ingolme Posted July 5, 2011 Share Posted July 5, 2011 Technically, you can do absolutely anything with the canvas since it works with Javascript, but it's really difficult because you would basically be programming your site in Javascript. You should make all your links and menus with HTML and CSS. Link to comment Share on other sites More sharing options...
echofool Posted July 5, 2011 Author Share Posted July 5, 2011 Technically, you can do absolutely anything with the canvas since it works with Javascript, but it's really difficult because you would basically be programming your site in Javascript. You should make all your links and menus with HTML and CSS.So its just going to be best to make GUIs layered on top of the canvas and just make "appear" like its in the canvas? Link to comment Share on other sites More sharing options...
Ingolme Posted July 5, 2011 Share Posted July 5, 2011 Is there a specific reason why you need the canvas element? Link to comment Share on other sites More sharing options...
echofool Posted July 7, 2011 Author Share Posted July 7, 2011 Yes - the canvas is for the graphical output of the game, but i then need a user interface around it like player menus etc Link to comment Share on other sites More sharing options...
Ingolme Posted July 7, 2011 Share Posted July 7, 2011 If you're making a videogame, it might be worth it to just build your entire interface with the canvas. Link to comment Share on other sites More sharing options...
isttoptan Posted August 16, 2011 Share Posted August 16, 2011 thank you, nice sharing.. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.