2021-10-24 05:45 PM
I add three AnimatedImages in a screen, but only one can work normal.
I transplant 'Knight Hits Zombie Game' code and bring my own project, the Zombie and Head AnimatedImages can not play but the Knight AnimatedImage work normal. (The Zombie and Head show the first image but can not show the others).
2021-10-24 11:42 PM
Solved.
2021-10-25 02:15 AM
Hi,
Good to hear it works :thumbs_up:. What board were you using ? What was the issue and the fix ? Was it due to an issue with the external flash loader ?
/Romain
2021-10-25 02:23 AM
I ported the program to my own board used 320 * 170 touch screen.
I close the timestamp and the random function cannot work. (CortexMMCUInstrumentation.cpp)
2023-03-06 01:51 AM
Where can I get the source code of Knight Hit Zombie game?
2023-03-06 04:12 PM
Used "TouchGfx Desinger" could generate the source code of Knight Hit Zombie game.
2023-03-06 11:25 PM
Thanks you, I don't know it's an example already available in ToughGFX.
2023-03-06 11:28 PM
Hi,
You can find it in the Demos tab in TouchGFX Designer.
/Romain
2023-03-07 12:15 AM
Thanks you, I got it.
2023-03-07 02:20 AM
Hello, I use Random function in Utils.hpp but it's always return the same value. Can you help me?
class Utils
{
public:
static int randomNumberBetween(int lowest, int highest)
{
#ifdef SIMULATOR
return (int)(lowest + (highest - lowest) * (rand() / (float)RAND_MAX));
#else
uint32_t random = (touchgfx::HAL::getInstance()->getCPUCycles() * HAL::getInstance()->getCPUCycles());
return lowest + (random % (highest - lowest));
#endif
}
};