It's like this...

The day before yesterday afternoon, it was too hot. I was watching TV at home. When I changed the channel, I suddenly saw "Journey to the West" being broadcast. The cicadas outside the window were very loud, and I felt like traveling back to elementary school for summer vacation. At that time, I especially wanted to turn out my little bully and play two street fighters...to abuse Chunli

After flipping through it for a long time, I haven't found my childhood memories... Or find out if there is any open source to play with!

As a wild programmer, search skills must be awesome. After a search, I found that Alibaba Cloud recently had a very popular experience activity. This activity is to deploy handheld game consoles with Serverless. After completion, a physical game palm will be given. machine. I don’t want to go with this, open the whole! The whole process is really simple, I will put the link below first.

A better PC experience: https://developer.aliyun.com/adc/series/activity/serverlessdevs

My experience

Originally, I wanted to leave after playing the game console, but later I found this experience a bit interesting. The deployment of this experience uses the serverless product Alibaba Cloud Function Computing and the developer tool Serverless Devs. The entire experience time is short, the steps are clear, the use of resources is free, and you can truly feel the advantages of Serverless. Let me share the experience process first.

Step 1: Introduction to Function Calculation-Hello World

First, open the function computing service according to the document requirements, and experience the required function computing resources for free. Note that you must use your own Alibaba Cloud account, and deployment with sub-accounts will definitely fail.

Next, create a new function on the home page of the function computing console, see that the function runs successfully, and return: Hello, world! This step is considered complete, very simple.

Step 2: One-click deployment of handheld game console

This step will use the Serverless Devs command line tool. This is a componentized and plug-in serverless developer platform that is also open source. Developers can pluggable and use different serverless services and frameworks in the platform. You don’t need to learn other serverless tools on the market. It is simple and fast to get started with mainstream serverless services and frameworks.

There are 6 operations in this step:

1. Execute the following command to initialize a handheld game console project in the current path.

s init fc-nes-game

2. Enter a name for the project to be created, in this example: fc-nes-game.

fc-nes-game

file

3. After selecting the default credentials, press Enter.

The returned result is as follows, indicating that the initialization is complete.

4. Execute the following command to enter the fc-nes-game directory.

cd fc-nes-game

5. Execute the following commands to deploy the handheld game console project.

s deploy

The returned result is as follows, indicating that the deployment of the handheld game console project is completed, and the url of custom_domain->domain is copied.

6. Open the mobile browser, paste the url in the browser address bar and visit. If the QR code page appears, it means the deployment is successful. You can scan the QR code with your mobile phone to play the handheld game console.

to this is the end of the experience, and then wait for the game console at 10:00 seconds every morning.

Mobile phone becomes a game console in seconds

Many open source projects on the Internet can download handheld games (nes format), which can be played directly in this handheld, turning the phone into a game console, and you can search and download handheld games (nes format):

1) Store in the src/roms directory
2) Modify 91 lines of code in index.htm, add the game name and the relative path of storage by yourself

Waiting for the game console

The experience is smooth, and the prizes are very fragrant. Yesterday, one of them arrived in seconds and is now waiting for delivery! From July 28th to August 10th, 200 units will be distributed every working day. As long as you finish the experience, you can pick it up at 10:00 every morning and you can redeem it! Click "Read the original text" or copy the link directly to experience it.

Activity link, click directly: https://developer.aliyun.com/adc/series/activity/serverlessdevs

Welcome to pay attention to my public account: Program Ape DD, to share knowledge and thoughts that can not be seen elsewhere

程序猿DD
2.2k 声望2.8k 粉丝

作品:《Spring Cloud微服务实战》、SpringForAll社区、OpenWrite、Youtube中文配音