Since I see the famouse "sheep.exe" I wanted to create something like a virtual pet... finally 2 decades later I found the time to do it.
This is a cockroach that roam the screen. It run outside the screen when touched with the cursor and if computer is left idle for certain time, start spawning more cockroachs until certain limit.
Animation of every limb and movement is made with detail and looks very realistic.
Also this code can be usefull te see how to interact with the mouse, how to calculate angles, idle detection , creating a systray and draw 8 bits transparency forms (32bpp)
![Name: VirtPet_Snap1.jpg
Views: 169
Size: 15.2 KB]()
Running wild over desktop windows
![Name: VirtPet_Snap2.jpg
Views: 172
Size: 40.0 KB]()
Debug movement screen enabled
PD: Also got a cool about screen effect.
Download: prjVirtualPet_v1.2_Src.zip
v1.1 - Memory leak completely fixed!!!!
v1.2 - Fixed display on HighDPI screen
TODO: Multi monitor support
This is a cockroach that roam the screen. It run outside the screen when touched with the cursor and if computer is left idle for certain time, start spawning more cockroachs until certain limit.
Animation of every limb and movement is made with detail and looks very realistic.
Also this code can be usefull te see how to interact with the mouse, how to calculate angles, idle detection , creating a systray and draw 8 bits transparency forms (32bpp)
Running wild over desktop windows
Debug movement screen enabled
PD: Also got a cool about screen effect.
Download: prjVirtualPet_v1.2_Src.zip
v1.1 - Memory leak completely fixed!!!!
v1.2 - Fixed display on HighDPI screen
TODO: Multi monitor support