Jump to content

Games Powered by HTML5?

Mint Berry Crunch

Recommended Posts

I am actually building my game based on the HTML5 canvas,

It is a lot easier to implement then if you where to use JavaScript alone, you can render directly into the browser.

You do require a server environment to run all the features, however it isn't 'essential'.

As I say, I am using it for my game which you can read here: http://makewebgames.io/showthread.php/42729-Project-Echo-An-Online-City-Role-Playing-Game

In it I have briefly covered the possibilities with HTML5, such as easily rendering 625 images in less than 500 ms... it is rather powerful for what it is.


In terms of server side, you don't need PHP to run the game, the only thing PHP or AJAX would be required to do is communicate with a database and thus allowing you to save, or login but then this is the same for any game so there isn't a difference.

Edited by Octet
Link to comment
Share on other sites

No, it certainly isn't replacing PHP.

PHP is a server side language whereas JavaScript is primarily a client side language, a huge difference and they both have critical and unique roles. You can have a small lapse between the two sides however they won't be replacing each other any time soon.

Happy Coding!

Edited by Octet
Link to comment
Share on other sites

  • 4 weeks later...

HTML5 is a term used to describe a specification, or a collection of APIs.

Most HTML5 elements themselves are markup related to Javascript objects.


In particular, HTML5 adds many new syntactic features. These include the new <video>, <audio> and <canvas> elements, as well as the integration of scalable vector graphics (SVG) content (that replaces the uses of generic <object> tags) and MathML for mathematical formulas. These features are designed to make it easy to include and handle multimedia and graphical content on the web without having to resort to proprietary plugins and APIs.

Source: http://en.wikipedia.org/wiki/HTML5

For the two features asked about previously within this thread with relation to file storage and databases, I'll shed some light.

Firstly, Node.js and HTML5 is not related, and have nothing in common with eachother.

Node.js is a server-side programming language interpreter able to compile Javascript to executable bytecode.

HTML5 is a markup language in itself, but the APIs commonly connected to it is pure Javascript, that are objects that "may" be connected to the DOM(Document Object Model).

Writing and reading files is a genuine possibility, HTML5 spec's the FileAPI, and is "technically" supported by all popular browsers.

Creating and storing a database on the client-side has been possible for a long time, but the method of doing so has been refined to a few APIs. These are WebSQL, others and IndexedDB, the latter being the leader from a spec's standpoint. Browsers that support this are IE10, Mozilla, Chome and BB10.

Theoretically, a single player game written in HTML5 would be playable even without a connection to any network.

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.

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.

  • Create New...