Sargen Posted February 4, 2014 Share Posted February 4, 2014 I am new here.I want to know..what is the difference between framework and canvas?what is the job of framework and canvas?what is the edge of framework to canvas(viceversa)?and why framework? why canvas?or I CAN DO GAME WITHOUT THOSE TWO?Need anwers. Quote Link to comment Share on other sites More sharing options...
Gio Posted February 4, 2014 Share Posted February 4, 2014 Canvas is just a HTML element that you can use to draw images. You can use that directly to make your games, however it's a bit complicated. There are many frameworks that use the Canvas to draw, and make your life easier (they make it easy to mange resources, rendering, AI, UI, etc). They are typically higher-level (but not all of them). So for example, if you are programming using the Canvas directly, you would think in terms of screen coordinates, image objects, and so on. With a framework, you normally think in terms of "Sprites" or "Game Objects", that live in a game world that you see through a camera. It's a different level of abstraction. Some frameworks don't use Canvas at all, just DOM objects. And yes, you can also use DOM objects directly (no frameworks and no canvas), although this is possibly the hardest route, depending on the type of game that you're looking to make. robertbrooks 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.