3037 views|5 replies

1059

Posts

1

Resources
The OP
 

TouchGFX Design Whack-a-Mole [Copy link]

GUI is a good way to express products and is very popular. In the early days, everyone used ucgui. Gradually, GUI became more common. However, TouchGFX is the most beautiful, but it is charged. When ST acquired TouchGFX and announced that TouchGFX is free, we can use STM32 for free. I have always wanted to use GUI to make a game. I originally thought about how to add some fun and make a single-player and double-player whack-a-mole game. I wanted to play with my nephew, but I was too busy at work and didn't have time to continue. I will give you the basic components first. I will continue to complete it later.

Provide the pictures needed for the basic demo. If you are interested, you can do it yourself.

To put it simply, there are 3 types of moles, 5 in total from top to bottom, showing the status of moles in different positions. The hole positions of the 3 types of moles are randomly controlled, and they move up and down, so that the moles can be shown to go out of the hole and drill into the hole. Each hole has a corresponding X, Y, and the height of the mole position. The small hammer also has its own X and Y. If the difference is within a certain range, we will hit it. If it hits, we will add points. If it doesn't hit, we will reduce the time by 5s. The time is set to 1 minute. See the highest score.

This content is created by qwerghf, a netizen of EEWORLD forum. If you need to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source

BeatHamster.haozip01.zip

30 MB, downloads: 87

BeatHamster.haozip02.zip

27.81 MB, downloads: 74

This post is from stm32/stm8

Latest reply

Can I laugh at the word old fairy?   Details Published on 2019-6-7 22:21
 

1w

Posts

204

Resources
2
 
Haha, I look forward to your subsequent complete works. My nephew is so lucky to have such a great uncle.
This post is from stm32/stm8
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle
 
 

7452

Posts

2

Resources
3
 
It's so ugly it will scare the kids
This post is from stm32/stm8

Comments

Children are very receptive to it. There is a book called Fairies in the Bathhouse. I was scared of the old fairy when I first saw it, but this book is very popular with children.  Details Published on 2019-4-27 10:13
 
 

1w

Posts

204

Resources
4
 
freebsder posted on 2019-4-27 10:09 It's so ugly that it will scare children
Children are very receptive to it. There is a book called Fairies in the Bathhouse. I was scared of the old fairy when I first saw it, but this book is very popular with children.
This post is from stm32/stm8
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle

Comments

Can I laugh at the word old fairy?  Details Published on 2019-6-7 22:21
 
 
 

3414

Posts

0

Resources
5
 
My Fake
This post is from stm32/stm8
 
Personal signature

So TM what......?

 

 

424

Posts

8

Resources
6
 
okhxyyo posted on 2019-4-27 10:13 Children are very receptive to this book. There is a book called Fairies in the Bathhouse. I was scared of the old fairy when I first read it, but this book is very popular with children

Can I laugh at the word old fairy?

This post is from stm32/stm8
 
 
 

Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list