hjr-MUD游戏(一):开发的几种方式

文章目录

我做了个demo http://114.116.188.201/hjr-mud/

几种方式

  1. 零技术的人,可以尝试Evennia这个框架
  2. 手写的h5网页客户端,后台使用现有的一些服务端框架或源码
  3. 使用原生android开发,可以用sqlite(ormlite框架)作为数据库
  4. 使用Egret引擎做h5版的,通信方式用websocket,后端自己写

我尝试了几种方式,觉得还是第四种潜力大,可操作的空间多些

这个专栏主要介绍使用Egret引擎做H5的客户端,后台使用springboot与mongodb数据库,从零开始开发一个MUD游戏。

也可以根据自己选择其余的方式,后文也会简单介绍其余方式

以下是一个简单的 HTML 代码示例,可以用来制作类似于 iPhone 的网页: ```html <!DOCTYPE html> <html> <head> <title>iPhone 网页示例</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> body { background-color: #f2f2f2; font-family: Arial, Helvetica, sans-serif; } .container { margin: 20px auto; max-width: 400px; background-color: #fff; border-radius: 10px; padding: 20px; box-shadow: 0px 0px 10px rgba(0,0,0,0.2); } .header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; } .header img { height: 30px; } .navbar { display: flex; background-color: #eee; border-radius: 5px; overflow: hidden; margin-bottom: 20px; } .navbar a { display: block; padding: 10px; text-align: center; flex: 1; text-decoration: none; color: #555; font-weight: bold; } .navbar a.active { background-color: #007aff; color: #fff; } .content { text-align: center; margin-bottom: 20px; } .content img { max-width: 100%; height: auto; margin-bottom: 10px; } .footer { text-align: center; font-size: 12px; color: #aaa; } </style> </head> <body> <div class="container"> <div class="header"> <img src="https://i.imgur.com/6f8yvRP.png" alt="iPhone" /> <button>搜索</button> </div> <div class="navbar"> <a href="#" class="active">主页</a> <a href="#">新闻</a> <a href="#">社交</a> <a href="#">设置</a> </div> <div class="content"> <img src="https://i.imgur.com/4a74HJr.jpg" alt="iPhone" /> <h2>欢迎来到 iPhone 网页示例</h2> <p>这是一个简单的 HTML 示例,用于展示如何制作类似于 iPhone 的网页。</p> </div> <div class="footer"> <p>©2021 iPhone 网页示例</p> </div> </div> </body> </html> ``` 在浏览器中打开该 HTML 文件,即可看到类似于 iPhone 的网页效果。可以根据需要进行修改和调整。
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

架构师小侯

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值