编    号:           
  审定成绩:           
重庆邮电大学
毕业设计(论文)
设计(论文)题目:
基于HTML5的
    名  称
学  生  姓  名 :
专          业 :
班          级 :
学          号 :
指  导  教  师 :
答辩组  负责人 :
填表时间:  2015    6 
重庆邮电大学教务处制
 
如今社会是当之无愧的网络生活也正是计算机的蓬勃发展让我们的生活更进一步。无处不见的科技,让我们生活无论是精神方面还是物质方面都能得到满足。而网络游戏更是丰富了我们的精神生活,随着电脑的出现,我们也拥有了更多乐趣,从一开始的扫雷,直到如今的各种大型网络游戏,电脑游戏也逐渐成为生活中不可缺少的娱乐方式。在电脑游戏中,单机游戏则是可以不用联网则能玩耍,如今基于HTML5开发的游戏也多为单机游戏。
本文则是通过象棋游戏来实现基于HTML5的游戏开发的基本过程与方法。文中基于HTML5的则是将以前的娱乐生活移到的网络上,在网页上也能玩象棋游戏。通过HTML5的各种标签和功能来实现象棋游戏,例如通过canvas标签实现游戏部件操作。此象棋游戏能通过鼠标对棋子的控制实现游戏过程,可以选点击按钮开始游戏,能实现真实象棋游戏过程中的功能,吃子、悔棋、胜负判断等。其中行棋判断以及具体实现的方式例如行棋规
则、游戏策略则是由JavaScript编写实现,最后通过CSS来修饰游戏界面文字的风格和游戏部件的布局等。在Dreamweaver上编写、修改和运行游戏进行测试,最后,通过在不同的浏览器上进行在修改和测试,将象棋游戏所需要的功能完善。svg图形
【关键词】 网页游戏  HTML5 象棋  JavaScript
ABSTRACT
Today, the society is a well deserved network life, it is the booming computer to make our life more further. There the technology can be seed everywhere, so that we live whether the spirit or material aspects can be satisfied. And network games is to enrich our spiritual life, with the advent of the computer, we also have the more fun, from the beginning of the mine, until now all kinds of large-scale online games, computer games has gradually become indispensable in the life of entertainment. In computer games, the stand-alone game can play without Internet, and now the games development based on the HTML5 almost are stand-alone games.
This paper is to realize the basic process and method of game development based on HTML5 by chess game.In the paper, the chess game based on HTML5 is a way to move the previous entertainment of life onto the network, and can also play chess game on the web page.Through the various tags and functions of the HTML5 to achieve chess games, such as achieving operate the game parts by canvas tags . This chess game can through the mouse control of the pieces to achieve game process, can be selected, click on the button to start the game, can achieve real chess game in the process of function, eat, undo, determine the outcome of the other. The chess to the judgment and the concrete realization of the way such as chess rules, game strategy is by JavaScript prepared to achieve, finally through the CSS to modify the layout of the game interface text style and game components and so on.Write, modify, and run games on Dreamweaver, and finally, by modifying and testing on the different browsers, the game needs to be perfected.
【Key words】 web games  HTML5  Chinese chess  JavaScript

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。