Jump to content

Basic 2D Context and Platformer


pdiddles03
 Share

Recommended Posts

I've been dabbling in a platform lately called Pico8.  The resolution of it is 128 x 128 and it seems to run just fine in web.  It got me thinking, is WebGL necessary for a game that is 240x136, and scaled up via CSS?   so far the performance i get seems just fine.  Obviously WebGL is superior. But for a basic platformer game that is pretty tiny, is it something i need?

Link to comment
Share on other sites

That's a good question. I have the impression that many people plunge into WebGL because it's the thing to do, without considering whether they really need it. They then present themselves with a steep learning curve which may well put them off the whole thing.

If you go to my home page, grelf.net, you will find links to several programs written in plain HTML5/JavaScript. They use the 2D canvas API and no external libraries or frameworks (not even jQuery).

My examples all use canvasses much larger than the 240x136 that you are contemplating. I am happy with their performance. Indeed I am impressed by how fast current browsers run such programs on all devices I have tried, even on phones.

 

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