当前位置:网站首页>只是想虐下春丽,一不小心撸了台游戏机...
只是想虐下春丽,一不小心撸了台游戏机...
2021-08-08 15:41:53 【程序猿DD】
事情是这样的……
前天下午天太热,我在家看电视,换台突然就看到了正在播《西游记》,窗外蝉声特别响,我一下就有种穿越回小学暑假的感觉。当时,我就特别想把我那台小霸王翻出来,玩两盘街霸……虐一下春丽
翻了大半天,也没找到我的童年回忆...要么找找看有没有啥开源的可以玩玩吧!
作为一名野生程序员,搜索技能必须牛逼,一顿搜索之后,我发现最近阿里云有一个挺火的体验活动,这个活动是用 Serverless 部署掌上游戏机,完成后还送一台实物游戏掌机。这不跟我想一块去了,开整!整个过程确实简单,我先把链接放下面。
PC端体验好一点:
https://developer.aliyun.com/adc/series/activity/serverlessdevs
我的体验过程
本来我想撸完游戏机就走,后来我发现这个体验有点意思。这个体验的部署使用了 Serverless 产品阿里云函数计算和开发者工具 Serverless Devs,整个体验时间短,步骤清楚,使用资源免费,能真实感受到 Serverless 的优势。我先分享一下体验过程。
步骤一:函数计算入门-Hello World
首先按照文档要求开通函数计算服务,体验需要的函数计算资源免费。注意一定要用自己的阿里云账号,用子账号部署肯定失败。
接下来,要在函数计算控制台首页新建函数,看到函数运行成功,并返回:你好,世界!这一步才算完成,非常简单。
步骤二:一键部署掌上游戏机
这个步骤会使用到 Serverless Devs 命令行工具,这是一个组件化与插件化的 Serverless 开发者平台也是开源的,开发者可以在平台中可插拔式的使用不同 Serverless 的服务和框架,用它就不用学习市场上 Serverless 其他工具,简单、快能比较简单、快捷的上手主流 Serverless 服务和框架。
这个步骤有6个操作:
1、执行如下命令,在当前路径初始化一个掌上游戏机项目。
2、为要创建的项目输入一个名称,本示例中为:fc-nes-game。
fc-nes-game
3、选择默认凭据后按按回车。
返回结果如下,表示初始化完成。
4、执行如下命令,进入fc-nes-game目录。
5、执行如下命令,部署掌上游戏机项目。
返回结果如下,表示安装掌上游戏机项目部署完成,并复制 custom_domain->domain的url。
6、打开手机浏览器,在浏览器地址栏粘贴 url并访问。如果出现二维码页面,表示部署成功,用手机扫描二维码,就能玩掌上游戏机。
到这就完成全部体验了,接下来坐等每天早上10:00 秒游戏机就行了。
手机秒变游戏机
网上很多开源项目可以下载掌机游戏(nes 格式的),可以直接放在这个掌机里玩,让手机变成游戏机,可以搜索下载掌机游戏(nes格式的):
1)存放到 src/roms 目录下
2)修改 index.htm 的 91 行代码,自行添加游戏名称和存放的相对路径
版权声明
本文为[程序猿DD]所创,转载请带上原文链接,感谢
https://blog.51cto.com/u_14299052/3312924
边栏推荐
- Fourth in the world! Wang Sicong installed a server "readily". Netizen: trench is inhuman
- [Tencent classroom] creator zero foundation immortal practice is online!
- 跟着华为,学数字化转型(3):模式创新
- 记一次接口慢查排查
- Follow Huawei and learn digital transformation (3): mode innovation
- Record an interface slow check and troubleshooting
- @Autowired的这些骚操作,你都知道吗?
- ss -h命令
- @Do you know all these operations of Autowired?
- 使用Yolo v5进行目标检测
猜你喜欢
-
Yazid的新生舞会(线段树)
-
当creator遇上protobufjs|孕育
-
Identify and stop the process that‘s listening on port 8080 or configure this application to listen
-
为什么要推荐大家学习字节码?
-
揭秘!价值百万的像素填色解决方案,想开发绘本应用的有福了!
-
[PyTroch系列-11]:PyTorch基础 - 张量Tensor元素的排序
-
[PyTroch系列-12]:PyTorch基础 - 张量Tensor线性运算(点乘、叉乘)
-
【环境篇】第 3 节 • Navicat 环境安装
-
预训练语言模型的前世今生 - 从Word Embedding到BERT
-
讲道理,只要你是一个爱折腾的程序员,毕业找工作真的不需要再花钱培训!
随机推荐
- 华南理工 | 基于生成式的低比特无数据量化
- 微信小程序授权位置和用户信息权限(防止用户禁止后无法使用位置信息)
- 一行代码快速实现今日头条 网易新闻焦点图自动循环轮播效果
- 因果涌现:数学理论揭示整体怎样大于部分之和
- 年收入百万美元AI科学家的烦恼
- API《为什么奥运会以五色环为标志?》数据源接口
- 用一张草图创建GAN模型,新手也能玩转,朱俊彦团队新研究入选ICCV 2021
- UIUC | 用于语言模型的课程学习
- SS - H command
- Target detection using Yolo V5
- Yazid's freshman ball (thread tree)
- When creator meets protobufjs 𞓜
- 我敢肯定!你还没用过一款代码神器,只属于Creator的用户!
- 小程序页面跳转&&文章详情页的实现&&markdown格式转化为wxml显示在小程序页面里
- 49个项目管理过程ITTO整理(详细)
- 49个项目管理过程ITTO整理(详细-文字版)
- 只是想虐下春丽,一不小心撸了台游戏机...
- Cocos论坛九问九答
- Identify and stop the process that‘s listening on port 8080 or configure this application to listen
- 超详细的I/O多路复用概念、常用I/O模型、系统调用等介绍
- Why recommend learning bytecode?
- SAP Commerce Cloud UI 的用户会话管理
- 以太坊 交易 data字段 内容是什么
- SAP CRM Fiori 应用 My Note 里创建 Note 失败的一个原因分析
- 当creator遇上protobufjs|pbkiller填坑历险记
- Uncover the secret! Millions of pixel color filling solutions. Blessed are those who want to develop picture book applications!
- [pytroch series - 11]: pytorch basis - ordering of tensor tensor elements
- [pytroch series - 12]: pytorch basis tensor tensor linear operation (point multiplication, cross multiplication)
- [environment] section 3 • Navicat environment installation
- The past and present life of pre training language model - from word embedding to Bert
- Make sense, as long as you are a tossing programmer, you really don't need to spend money on training to find a job after graduation!
- South China Technology | low bit no data quantization based on generative
- Wechat applet authorizes location and user information permissions (to prevent users from being unable to use location information after prohibition)
- One line of code can quickly realize the automatic circular rotation effect of today's headlines and Netease News focus map
- Causal emergence: mathematical theory reveals how the whole is greater than the sum of parts
- The troubles of AI scientists with an annual income of millions of dollars
- API "why is the Olympic Games marked by five color rings?" Data source interface
- Create a GaN model with a sketch, which can be played by novices. The new research of Zhu Junyan's team was selected into iccv 2021
- UIUC | course learning for language model
- I'm sure! You haven't used a code artifact yet. It only belongs to creator users!