Skip to content

Instantly share code, notes, and snippets.

@gw1108
gw1108 / PromptingClaudeToNudgePlayers
Last active April 16, 2026 20:57
The one prompt to get claude to nudge players. Also used /create_plan_greenunity to try to make it work well.
Create a new MonoBehaviour script which will be in charge of nudging the player. A nudge will be defined as the pointer object moving back and forth between 2 objects OR tapping a specific object. On movement tween loop, refetch both object locations to see if they have moved. This is similar to the tutorialManager's tutorials except we do not stop and focus on an object or display any text. A nudge will be activated if the player has not taken any meaningful action to progress the minigame in over 10 seconds. These only trigger on day 3 or less. If you need references to any object like detailing table or LintRoller tool create a private serialized field in the Monobehaviour and assume it has been setup in scene.
The following are describing nudge scenarios and meaningful actions the player needs to take:
The player has clothes in the DetailingTable placement zone that needs linting: display a moving nudge from the LintRoller to the clothes placed.
The player has clothes in the DetailingTable placement zone
@gw1108
gw1108 / gist:4e57de604e10aa25d5a4b543fbd749b5
Created February 1, 2018 20:24
Visual Studio Rebind UP/DOWN to VIM shortcuts. Used for intellisense navigation.
Tools->Options->Environment->Keyboard
Edit.LineUp
Edit.LineDown
@gw1108
gw1108 / keybindings.json
Created December 18, 2017 19:51
For use in keybindings.json in vscode and the vim plugin. Feel free to use this as reference.
// keybindings for VSCode and vim. Enables system clip board, classic cut, paste, copy, find, and select-all hotkeys.
{
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": true,
"vim.handleKeys": {
"<C-a>": false,
"<C-f>": false,
"<C-c>": false,
"<C-v>": false,
"<C-x>": false
@gw1108
gw1108 / keybindings.json
Created December 14, 2017 01:47
VSCode Keyboard Shortcuts
// Place your key bindings in this file to overwrite the defaults
// Need to Edit.LineUp in intellisense without using arrow keys? Want to navigate intellisense in VSCode without arrow keys?
// Add this to keybindings.json
[
{
"key": "ctrl+shift+s",
"command": "workbench.action.files.saveAll"
},
{
"key": "ctrl+k s",
@gw1108
gw1108 / PositionWidth
Last active August 29, 2015 13:59
The main body of the Slice Trail Effect.
private class PositionWidth
{
public const int timeToDisappear = 3000;
public Vector2 position { get; private set; }
public float width { get; private set; }
private float elapsedTime;
public PositionWidth(Vector2 position, float width)
{