博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
HTML5 game engines
阅读量:6593 次
发布时间:2019-06-24

本文共 4425 字,大约阅读时间需要 14 分钟。

 

The following are few examples of game engines implemented with HTML5 and JavaScript:

  • : One of the first WebGL enabled HTML5 game engines. Exports purely to HTML5 and JavaScript. Uses Canvas only and is extensible with JavaScript plugins.
  • : One of the most promising engines out there today. Massively multiplayer networking built in, uses Node.js and MongoDB, and has canvas or DOM-based graphics.
  • : Lightweight, fast, interactable 2D HTML5 rendering engine for game development. Open-source and cross-platform.
  • : A collaborative, cloud-hosted game engine with a visual editor, in-browser code editing and one click publishing.
  • : 2D game engine supporting Web, Android, iOS platforms. Build in editor to manage projects, assets, maps.
  • : A game development software exporting to native and HTML5 games. Uses Pixi.js to render using WebGL or canvas.
  • : A simple Javascript framework for creating 2D and 3D HTML5 games. Has good documentation and easy to follow tutorials for getting started
  • : A video game platform that eases the creation, publication and monetization processes of HTML5 games, using a cloud based editor.
  • : 2D game enginge supporting Web, Android, IOS platforms

HTML5 game tools

  • : Distribution, Retention, Social and Monetization tools. Easy integration of user accounts, high scores, achievements, cross promotion, in-game payments, analytics etc...
  • : 2D rendering engine using WebGL with a canvas fallback.
  • : Simple JavaScript performance monitor

Useful technologies

The following can be useful in developing games based on Web technologies.

  • : 2-D graphics.
  • : 3-D graphics.
  • Audio: HTML5 element,
  • : can be used for real-time communication between a player and the game server, to support multi-player games.
  • : Node is often used as a multiplayer game server, controlling the logic and handling the WebSockets connections to the players. It can be used for player authentication and the storage of data so game play can persist over multiple game sessions. This is all made relatively easy with great third-party modules, like Socket.IO for WebSockets, and others that handle Redis and MongoDB for storage, for example.
  • is great for storing data locally on the player's device. This way you can cache game data and allow the game to pick up where the player left off.
  • The allows you to expand any HTML element to fill the user's screen, even if the browser isn’t running full-screen itself.
  •  and the : One of the main differences between Web apps and native apps is that native apps can be run offline. Technologies such as Application Cache and Service Worker allow for a website or a Web app to cache necessary assets so it can still run while offline. This includes things like JavaScript files, CSS and images. Combining this technique with intelligent use of things like localStorage will allow your game to continue working even if the Internet connection goes down. You just sync up all the changes when it gets connected again.
  • enables you to port a game written in C or C++ over to JavaScript. The demo used Emscripten.
  • The  is available in latest versions of Firefox and Chrome. What is most interesting about the Gamepad API is that it might be just what finally justifies HTML5 gaming on a TV or console. Who wants to use a keyboard and mouse while sitting on the sofa?
  • The  is an attempt to improve the mouse as an input device, used in situations such as games and 3D visualizations where the mouse position rotates or moves you around a 3D space. As it stands, there would still be a cursor moving around the screen causing all sorts of trouble when you want to click on something in your game. With this API, you can lock your mouse position and stop it from getting in the way and being a nuisance.

Not every browser supports every part of HTML5. For example, Canvas isn’t supported out of the box by any Internet Explorer below version 9. However, you can use Explorer Canvas to replicate canvas functionality (but that is not ideal and does not perform as well). WebSockets is supported by IE only in IE 10, and it isn’t supported in the stock browser of Android. But again, you can fake this by using Flash for the sockets, such as with Socket.IO. While supported in the latest versions of every other browser, WebGL in Internet Explorer requires at least version 11.

Game template

You can use the template to get a quick start on an HTML5 game, or you can use it to get ideas on best practices.

转载地址:http://bnjio.baihongyu.com/

你可能感兴趣的文章
我的友情链接
查看>>
javascript不可用的问题探究
查看>>
[置顶] jQuery乱谈(五)
查看>>
have sth done/doing的区别
查看>>
我的友情链接
查看>>
Java程序如何不产生垃圾
查看>>
h5页面制作
查看>>
喝酒后世界变和蔼了
查看>>
CRC32用途及写法
查看>>
生活中android应用开发有很广阔的天地
查看>>
Maven_命令
查看>>
配置yum源
查看>>
paste用法
查看>>
数据库学习
查看>>
ACCESS数据库的局限性及解决办法
查看>>
数据库查询中的技巧
查看>>
MySQL创建自定义哈希索引
查看>>
使用平台的风格和主题
查看>>
细说Android开发环境的搭建
查看>>
排序 归并排序 分配排序
查看>>