Game: World of Goo, made by 2D Boy
Replicated Feature: The shape and behavior of the mouse cursor
More Information: [Blog Post]
Using the Sample:
The most important element of the sample is the Cursor class. This is a DrawableGameComponent the handles the updating and drawing of the cursor. To add a cursor to your game, you simply add a cursor instance to your Components list.
By default, the cursor is made to look similar to the one in World of Goo, but I also provided plenty of customization points. There are several properties of this class that control how the cursor looks and behaves.
- Looks
- StartScale – the scale of the starting node in the cursor’s trail
- EndScale – the scale of the ending node in the cursor’s trail
- LerpExponent – controls how the transition from the StartScale to the EndScale is done
- FillColor – the color used for the inside area of the cursor
- BorderColor – the color used for the border of the cursor
- BorderSize – size (in pixels) of the border around the cursor
- Behavior
- TrailStiffness – controls the stiffness of the springs between trail nodes. A higher value causes the springs to be stiffer, so the cursor will have a shorter elongation. A lower value will cause the cursor to have a longer trails
- TrailDamping – controls the damping factor that affects the velocity of the trail nodes
- TrailNodeMass – specifies the mass of each node
Most properties are also modifiable using the keyboard at runtime, so you can experiment with different values.
To control the cursor, you can use either the mouse, or a gamepad.
Screenshots:
Download: GooCursor.zip


by Catalin’s XNA Experiments » World of Goo Cursor Sample Thought, on 02.02.09 @ 1:09 am
[...] I promised a while ago, I’m going to talk about how I built the World of Goo Cursor Sample. I’m not any sort of design analyst or critic, so I can’t give any in depth insight about [...]
by shane, on 02.15.09 @ 1:35 pm
Music is bliss on XNA forums, I was searching some stuff about the Viewport class you suggested I use, and ended up on your website through google, taking advantage of the irony, I decided to browse it, and I love how you replicated this cursor.
to be honest, the only 2 things i liked in world of goo was the cursor, and the actual goo placement programming. good job on the replication, and your programming amazes me. that is all.
by Catalin Zima, on 02.15.09 @ 11:16 pm
I’m glad you like it, and hope you find it useful.
I liked the idea for World of Goo (and the cursor, obviously), but it didn’t keep me interested enough to make it through to the last level. Maybe some other time, when I’m need of a quick gaming session
by f1sh, on 03.06.09 @ 6:21 pm
Hey mate, can I use this cursor in Windows ? Please reply. Many thanks
by Catalin Zima, on 03.13.09 @ 10:50 pm
@fish: No, you can only use it inside XNA applications.
by Windgate, on 03.22.09 @ 2:32 pm
I have programmed this cursor too, it is on my game, here you con download an play/edit it:
http://www.mediafire.com/file/4wbowzmomqv/JustFantasy!0.6a.zip
by Hotgoblin, on 03.23.09 @ 11:45 pm
i want use it on desktop
by Catalin Zima, on 03.24.09 @ 8:14 am
@Hotgoblin sorry, you can’t
by Sean McDirmid, on 04.12.09 @ 4:39 am
I replicated the Goo cursor in WPF using Bling’s physics support. Nice effect!
by Tomas Skelton, on 04.16.09 @ 8:41 am
@Catalin is it computationally impossible ? Is anyone able to make this cursor ? I would pay $4.99 for it no doubt.
by Catalin Zima, on 04.16.09 @ 8:58 am
@Tomas: It’s technically impossible to use this code for the cursor in Windows
by eslam_jazz, on 09.28.09 @ 7:23 pm
thaaaaaaaaaaaaaanks
by David, on 01.12.10 @ 3:28 pm
Just want to let you know that I was working on something similar. You can have a look on my website http://curltable.the-yard.net/curltable/mouse-trail
by superkk99, on 04.06.10 @ 10:36 am
DUDE’S I DID EVERTHING IT WONT WORK!!!!!!!!!!!!!!!!! PLEASE HELP ME *cry’s*
by Catalin Zima, on 04.06.10 @ 10:46 am
Did you try simply running the sample?
by superkk99, on 04.25.10 @ 9:15 am
no i dont know what that is.
by umar muzammil, on 05.07.10 @ 9:40 am
i had tried to use the ‘goocursor.zip’ but it is not a cur file.
now what can i do ??????????????
by Catalin Zima, on 05.07.10 @ 10:50 am
You can’t use this in windows. This is just for use in a game made with XNA
by Marco Sperling, on 05.10.10 @ 10:25 pm
Sorry I had to laugh when I read all the questions about an actual windows cursor implementation that a lot of commenters asked for.
An actual proof of how influential World of Goo was?
Good job on your sample, Catalin