Jump to content

Framework or Canvas? Differ and Similarities


Sargen
 Share

Recommended Posts

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.

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...