With the development of HTML5, more and more HTML5-based Web development frameworks are emerging. In today's article, we will introduce iio Engine, it is an open-source web framework for creating HTML5 applications.
The entire framework is very lightweight, only 45 KB in size, and is integrated with the debug system and supported across platforms.
Does not rely on any third-party class library, can support Box2D, with complete documentation support. Supports quick development.
To use this class library, you only need to use more than 10 lines of code to generate an tic-tac game. The Code is as follows:
TicTacToe = function (io) {var grid = io. addObj (new iio. ioGrid (120 ). setStrokeStyle ('white'); var xTurn = true; io. canvas. addEventListener ('mouseunder', function (event) {var c = grid. getCellAt (io. getEventPosition (event), true); if (typeof grid. cells [c. x] [c. y]. taken = 'undefined') {if (xTurn) io. addObj (new iio. ioX (grid. getCellCenter (c), 80 ). setStrokeStyle ('red', 2); elseio. addObj (new iio. ioCircle (grid. ge TCellCenter (c), 40). setStrokeStyle ('# 00baff', 2); grid. cells [c. x] [c. y]. taken = true; xTurn =! XTurn ;}}) ;}; iio. start (TicTacToe, 'canvasid ');
Source: open-source HTML5 application development framework based on javascript and canvas-iio Engine