WeatherGuess is a fun temperature prediction game for HarmonyOS devices. Powered by ArkGraphics 3D and Sensor Kit, it starts with a simple wrist shake and challenges you with random city temperatures. Your final score appears on a clean results page, making weather guessing playful and engaging.
- Start with Wrist Shake: Begin the game by shaking your wrist using Sensor Kit.
- Random Temperature Guess: Predict the temperature of a randomly selected city.
- 3D Visual Experience: ArkGraphics 3D models enhance the UI during gameplay.
- Score and Results Page: View total points and accuracy on the final results screen.
- Replay Challenge: Instantly restart with new random cities.
- Languages: ArkTS (Ark TypeScript)
- Frameworks: HarmonyOS SDK 5.1.0 (API Version 18)
- Tools: DevEco Studio Version 5.1.0.842
- Libraries & Kits:
- @kit.ArkGraphics3D Used for rendering 3D models and enhancing the game’s visual experience.
- @kit.SensorKit Detects wrist shake gestures to start the game.
- @kit.PerformanceAnalysisKit Provides logging and debugging support via hilog.
- @kit.ArkUI Delivers interactive UI components and smooth user experience.
- ohos.permission.ACCELEROMETER
- ohos.permission.GYROSCOPE
|---constants
| |---Constants.ets # Application constants and config values
|---model
| |---CityModel.ets # Represents city data for random selection
|---pages
| |---GameScreen.ets # Main gameplay screen with 3D UI and temperature guessing
| |---HomeScreen.ets # Entry screen with game intro and start option
| |---Index.ets # Entry point for routing and initialization
|---utils
| |---Logger.ets # Logging and debugging helper
- Huawei Watch 5
- Devices running HarmonyOS 5.1.0 (API 18) and above
WeatherGuess is distributed under the terms of the MIT License See the LICENSE for more information.



