Abstract
With the official announcement of the HTML5 standard, the HTML5 game is in full swing. In
the we chat, the game named "trap the nerve cat" spreads such as viruses in the circle of friends.
Developers, ordinary users or other investors,they all feel HTML5 game will comeback will a wave
of game revolution at this time. In the market products are mixed with various quality and
light-weight single small games account for most. Most games can not take a real-time
communication, or invite friends to play together online. In order to break the technical barriers,
achieve a better user experience, design a more perfect shooting game engine, it designs and
realizes a plane shooting game engine based on HTML5 and Node.js in this thesis. Through this
game engine, you can develop the game more efficient and faster. And you can achieve a real-time
exchange between players and games together online to enhance the fun of the game.
In this thesis, it describes the source and background of the topic, introduces the current
development trend of HTML5 game, tells the future effect that HTML5 game will achieve, as well
as the development of the HTML5 game engine at home and abroad. Therefore, it is feasibility to
develop a plane shooting game engine based on HTML5 and Node.js. The game engine is based on
Browser/Sever mode architecture to achieve collocation between the browser and server. It is
convenient to build HTTP server by Node.js, and to achieve static file server through the Apache
software. Because to achieve a light-weight game engine using the fragmentation of time need not
with the development of database. However, to develop moderate HTML5 games, there is
unavoidable that the game would get support from database development to store data.
This game engine can provide a series of API and tools for all developers to develop plane
shooting games based on the HTML5, to make the development of the game more rapid and
convenient. In order to observe the function of the game engine, it instantiates a game "battle of
tanks". Through a series of tests, the game can be operated normally , and realize real-time
communication and invites online, basically reached the expected effect.
Key words: HTML5, Node.js, WebSocket, Game engine
万方数据
评论0
最新资源