Share four H5 nostalgic mini-games: Magic Tower + Demon Conquering + Three Kingdoms Hegemony + Xunxian Ji

Preface

Do you still remember when you were in middle school, you used the BBK learning machine to play Magic Tower, Conquer the Demons, and Three Kingdoms Hegemony? Do you still remember that during the 3G network, you used Nokia or other brand-name machines to play Jingwutang and Across the World in 3GQQ Home? That’s right, it’s you!

The games at that time were very rough and the network was very slow, but every game was so attractive. Studying strategies in order to pass levels, happiness was so simple. Unlike now, although the games are more cool and smooth, people's hearts are also impetuous.

This article explains how to set up four nostalgic mini-games: Magic Tower + Demon Slayer + Three Kingdoms Hegemony + Xunxian Ji. Children who want to study how to implement H5 games must not miss it if they want to experience the feelings of the past.

Insert image description here

Links to the four mini-games I set up:

Follow my WeChat public account echeverra and send the corresponding game name to get the game source code. Come and experience it.

If you like H5 games, you can also check out the other three games I set up:

Screenshot of the magic tower:

Screenshot of Conquering the Demon:

Screenshots of Three Kingdoms Hegemony:

Screenshot of Xunxian Ji:

erect

1. Erection conditions and environment

Erection conditions:

  1. For Linux servers, CentOs version 7.6 is recommended. Alibaba Cloud, Tencent Cloud, etc. can be considered.
  2. For the game source code, follow my public account echeverra and send the corresponding game name to get it.

2. Install the pagoda and environment

Pagoda is a server operation and maintenance management software. The installation command is:

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

After installation, follow the prompts to log in to Pagoda, and search for the following software to install in the Pagoda software store:

  1. web server: nginx 1.14
  2. Database: mysql 5.6
  3. Programming language: PHP 5.4
  4. Database management tool: phpMyAdmin 4.4

3. Upload source code

Upload a certain game source code file Magic Tower (mt.zip) / Demon Conquering Chronicles (fmj.zip) / Three Kingdoms Hegemony (sgby.zip) / Xunxian Ji (xxj.zip) to the directory www/wwwroot/. Take Magic Tower mt.zip as an example:

After successful upload, extract it to www/wwwroot/the directory.

After decompression is complete, grant 777 permissions:

4. Import database

Only Xian Xian Ji will use the database, and the other three games can ignore this step.

Pagoda sets the database root password to 123456, you can also pdo.phpmodify the database password in the file.

Open database remote permissions:

mysql -u root -p123456
GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.0.0.1' IDENTIFIED BY '123456' WITH GRANT OPTION;
FLUSH   PRIVILEGES;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '123456' WITH GRANT OPTION;
FLUSH   PRIVILEGES;
quit

Create game database:

Upload the database file game.sql and import:

5. Create a game website

Only by adding a game website can you access the game. Take Magic Tower as an example. Write your IP as the website domain name, root directory /www/wwwroot/mt, and select version 5.4 for PHP.

Other game root paths are:

  • Magic Tower:www/wwwroot/mt
  • Conquering the Demon:www/wwwroot/fmj
  • Three Kingdoms Hegemony:www/wwwroot/sgby
  • Xunxian Ji:www/wwwroot/xxj

If you want to run multiple games at the same time, Pagoda will prompt a conflict if all domain names use IP. You can use different second-level domain names, such as mt.echeverra.cn.

After the above is completed, you can enter the game by directly accessing the IP or domain name! Nice~

Follow-up

1. Game save

Except for Xunxian Ji, which uses a database for data storage, the archives of the other three Magic Towers, Demon Conquering Chronicles and Three Kingdoms Hegemony are all stored in the local browser, so once the browser cache is cleared, the archives will also be cleared localstorage. . If you want to keep the archive forever, you can export the key values ​​on your computer browser localstorage.

2. Game strategy

Although these four games are relatively simple, they are all playable.

I have completed the levels of Magic Tower, Conquering Demons, and Three Kingdoms on the BBK learning machine countless times. I have to say that BBK 4988 and these RPG games were really the pinnacle masterpieces of the year. When I was in middle school, I went to BBK to download games and e-books. Go to the business hall to queue up to download. Later, when I started working, I bought a second-hand BBK 4988 on Taobao. Since I couldn’t download games, I also bought a data cable with several needle-like ends to download games. Is this considered paying for feelings, haha.

The Magic Tower is more difficult than the 21-story BBK Magic Tower back then. It has 24 floors and requires level 200 to be cleared perfectly. It contains all the contents of the 21st floor of the BBK Magic Tower. I still remember that it took 90 seconds to clear the BBK Magic Tower. Go down from the 21st floor to the 0th floor. Press the direction keys quickly, otherwise you will fail. This requires being very familiar with the map of each floor. Your palms will be sweaty all the time, and you will soon form muscle memory. H5 Magic Tower cancels this mechanism because it can touch the screen. There are also store shortcuts, which is very convenient. The only regret is that the soundtrack is not the background music of the year.

I just tried out the game and haven't finished the game yet. I struggled to find the guide and found out that there are many hidden treasures. There is a tungsten dragon sword hidden in the grassland at the beginning of the game. Ganoderma lucidum in Shimeng City can be bought for money. Jianye Cheng's crescent knife throwing had a huge damage bug, and the last big boss turned out to be his master...

The Three Kingdoms Hegemony recruited troops and conquered cities and territories. Influenced by the Romance of the Three Kingdoms, I liked figures from the Shu Kingdom such as Liu Guanzhang and Zhuge Liang, so I chose the Shu Kingdom for development every time. In the end, all the generals surrendered and all the cities were captured. , I feel like the world belongs to me, haha.

Xunxian Ji is a text-based game. I remember that there were many similar games in 3GQQ Homeland back then. Although it only had text, I still enjoyed playing it. I set the alarm every 4 hours to collect experience, and even set the alarm when I went to bed at night. , it’s really crazy when I think about it. I still vaguely remember the name of the equipment +10の蓝色弯月刀, and it feels weird... The backend of this game is developed using PHP. I collected several versions and comprehensively processed them. The interface button backgrounds have been optimized. There should be more Some bugs exist and can be directly fixed and improved.

These games do not have a background GM, otherwise the playability of the game will be ruined. What you play for is feelings. If you really can’t pass the level, go find the guide to clear it~

3. Game thanks

I am very grateful to the producers of these H5 games. I just found the resources online and modified and processed them. Thanks to bgwp https://gitee.com/bgwp . In addition to the above games, there are also several other backgammon classic games such as Jin Yong's Legend of Heroes, Xia Ke Xing, etc. If you are interested, go and try it.

Okay, the above are all the installation tutorials for the Magic Tower + Demon Conquering + Three Kingdoms Hegemony + Xunxian Ji. I hope it will be helpful to you. If you have any questions, you can contact me through my blog https://echeverra.cn or WeChat official account echeverra contact me.

Have you learned to "waste"?


The article was first published on my blog https://echeverra.cn/hjyx . It is an original article. Please indicate the source when reprinting.

Welcome to follow my WeChat public account echeverra and learn and progress together! Resources and benefits will be given away from time to time!


Guess you like

Origin blog.csdn.net/weixin_41394875/article/details/122640571