2024年6月1日发(作者:)

---文档均为word文档,下载后可直接编辑使用亦可打印---

摘要

随着现代生活、工作节奏不断地加快,人们也逐渐开始重视在闲暇

时间怎么去放松和娱乐,手机游戏便是其中的一大分支。自智能手机面

世后,各类休闲娱乐的游戏APP便层出不穷;但相比于传统的游戏APP,

微信小游戏一方面可以减少用户下载的操作,大大增加易用性,做到一

点即用;另一方面在微信小游戏开发方面相比传统游戏APP也能够做到

低成本和易开发;此外,微信还拥有庞大的用户群体,能够较易地提高

使用率以及获得良好的推广度。

本文设计实现的是基于微信web开发者工具的“消消块”小游戏,

基于JavaScript + 微信小程序API进行游戏相关功能的开发,编写游戏

代码使用Visual Studio Code,并且适当参考了HTML5游戏设计与开发的

相关代码逻辑、游戏原理与技术。微信小游戏“消消块”包括游戏主体、

微信小游戏开放数据域、后台管理三个部分。游戏主体实现的是:登录

页面、游玩页面、结束页面;微信小游戏开放数据域实现的功能是:玩

家授权、存储玩家游戏信息、获取玩家游戏信息、分享玩家信息、玩家

排行榜信息;后台管理展现的是:在微信小程序后台管理对小游戏进行

相关设置。

关键词:小游戏 消消块 JavaScript API Visual Studio Code

广东东软学院本科生毕业设计(论文)

Abstract

With the continuous acceleration of the pace of modern life and work,

people are gradually beginning to pay attention to how to relax and

entertain in their leisure time. Mobile game is one of the branches. Since the

advent of smartphones, all kinds of leisure and entertainment game apps

have emerged endlessly; but compared to traditional game apps, on the one

hand, WeChat mini games can reduce user download operations, greatly

increasing the ease of use, and playing it with one click. On the other hand,

compared with traditional game APPs, WeChat mini games can also be

developed at low cost and easy to develop; in addition, WeChat also has a

large user group, which can easily increase the utilization rate and obtain

good promotion.

This article designs and implements a "Eliminate Blocks" mini game

based on WeChat web developer tools, based on JavaScript + WeChat mini

program API for game-related function development, using Visual Studio

Code for game code writing, And appropriate reference to the relevant code

logic, game principles and technologies of HTML5 games ’s design and

development. WeChat mini game "Eliminate Blocks" includes three parts:

game main body, WeChat mini game open data domain, and backstage

management. The main content of the game is: login page, play page, end

page. The functions implemented in the open data domain of WeChat mini

games are: player authorization, storing player game information, obtaining

player game information, sharing player information, player leaderboard

information. The backstage management shows that: WeChat mini program

backstage management sets related settings for mini games.

Key words: Mini games Eliminate Blocks JavaScript API

Visual Studio Code