This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <body> | |
| <p>There's an interaction in our game that looks like this:</p> | |
| <br/> | |
| <img src="https://i.imgur.com/gIixK0p.png" /> | |
| <br/> | |
| <p>You move a slider and the landscape changes with a nice noisy kind of movement until you get the plant in the right position.</p> | |
| <br/> | |
| <img src="https://i.imgur.com/8dRCevu.png"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma once | |
| #include <stdlib.h> | |
| #define NAME_NONE "NONE" | |
| #define U8_MAX 0xFF | |
| typedef signed char S8; | |
| typedef unsigned char U8; | |
| typedef signed short S16; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Key | Label | Icon | XOffset | YOffset | |
|---|---|---|---|---|---|
| BackSpace | |||||
| Tab | |||||
| Enter | |||||
| Pause | |||||
| CapsLock | CapsLk | -5 | |||
| Escape | Esc | ||||
| SpaceBar | |||||
| PageUp | PgUp | -5 | |||
| PageDown | PgDn | -5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright Feral Cat Den, LLC. All Rights Reserved. | |
| #include "MyComponentVisualizer.h" | |
| #include "ActorEditorUtils.h" | |
| #include "EditorViewportClient.h" | |
| #include "HitProxies.h" | |
| // Include your component here | |
| struct HMyPropertyHitProxy : HComponentVisProxy | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright Feral Cat Den, LLC. All Rights Reserved. | |
| #include "GNInputEventDebugger.h" | |
| #if WITH_GN_DEBUGGER && WITH_SLATE_DEBUGGING | |
| #include "Debugging/SlateDebugging.h" | |
| #include "Development/GNDebugImGuiCommon.h" | |
| #include "UI/GNWidgetStatics.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from math import * | |
| # a performant solution would store a prefix sum of line lengths to | |
| # a sidechannel and then use that to do a bsearch; on the GPU, | |
| # you'd do a sum tree / histopyramid as a preprocessing step | |
| def find_point(points, d): | |
| d = d | |
| for i in range(1, len(points)): | |
| x0,y0 = points[i-1] | |
| x1,y1 = points[i] |
OlderNewer