请输入您要查询的百科知识:

 

词条 Gamvas
释义

  1. Licensing

  2. Example

  3. See also

  4. External links

{{Infobox software
| name = Gamvas
| developer = Heiko Irrgang
| released = 2012
| discontinued = Yes
| latest release version = 0.8.6
| latest release date = March 10, 2013
| repo = http://www.moddb.com/engines/gamvas-web
| status = Unmaintained
| programming language = JavaScript
| platform = HTML5
| genre = Game engine
}}

Gamvas is an 2D HTML5 game engine for the canvas element. Gamvas tries to reduce low level tasks for the developer by providing a general game programming framework with game states, actors, actor states, cameras and Box2D physics integration. It is developed by the author of the MIT licensed C/C++ game engine Sge2d and shares many ideas with it.

Licensing

As of June 7, 2012 Gamvas is available under open source MIT license without feature limitation. Before this it was available in a lite version free for non commercial use and a pro version with enhanced features and the right to use it in commercial projects.

Example

The following example is a very basic hello world running with a constant frame rate:

myState = gamvas.State.extend({

    draw: function(t) {        this.c.fillStyle = "#fff";        this.c.fillText("Hello World!", 0, 0);    }

});

gamvas.event.addOnLoad(function() {

    gamvas.state.addState(new myState('hello'));    gamvas.start('canvasid');

});

See also

  • List of game engines

External links

  • Dashplay, a visual game development tool using Gamvas

1 : Video game engines

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/11 19:27:50