Skip to content
This repository was archived by the owner on Mar 31, 2023. It is now read-only.

open-ecosystem-development/2048-HarmonyOS-Watch

Repository files navigation

"This Project has been archived by the owner, who is no longer providing support. The project remains available to authorized users on a "read only" basis."

2048-HarmonyOS-Watch

Introduction

2048 is an easy and fun puzzle game. Number 2 or 4 will appear on two random squares at the start of the game. When swiping up, down, left and right to operate, the numbers on the screen will slide in the corresponding direction, the same numbers will be added together, and then randomly generate 2 or 4 on a blank grid. If the grid is full and the grid can no longer be merged by swiping, the game is over. You can play the game on Huawei HarmonyOS Watch 3.

Installation requirements

Install Huawei DevEco Studio 3.0 Beta2 and set up the DevEco Studio development environment. The DevEco Studio development environment needs to depend on the network environment. It needs to be connected to the network to ensure the normal use of the tool.The development environment can be configured according to the following two situations: 1) If you can directly access the Internet, just download the HarmonyOS SDK; 2) If the network cannot access the Internet directly, it can be accessed through a proxy server • Generate secret key and apply for certificate.

User guide

Download this Project and open DevEco Studio 3.0 Beta2, click File> Open> Then select and open this Project • Click Build> Build App(s)/Hap(s)>Build Debug Hap(s) to compile the hap package. Then Click Run> Run 'entry' to run the hap package. Note that you can choose to run the hap package on the local emulator or the Huawei Watch 3. If you run it on the watch, you need to configure the signature and certificate information in the project's File> Project Structure> Modules> Signing Configs.

HarmonyOS version

HarmonyOS 2.0 or later.

Support devices

Huawei Watch 3 and Watch 3 Pro.

License

The demo code is licensed under the Apache License version 2.0 and ISC License.

Acknowledgements

The code in this project has been modified from HarmonyOS open source demo and Huawei Analytics demo. Their contributions are greatly appreciated.

Questions

If you have a questions - Stack Overflow is the best place for any programming inquiries. Be sure to include the tag huawei-mobile-services.

Screenshots

Gif

Game2048e

Analytic Data

About

Enjoy to play the easy and fun 2048 puzzle game on watch. Try to beat your highest score!

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors