This file contains 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
<body> | |
<canvas id="game" width="800" height="800"></canvas> | |
<script type="text/javascript"> | |
var canvas = document.getElementById("game"); | |
var ctx = canvas.getContext('2d'); | |
var w = 800, h = 800; | |
var c = 30; | |
var T_EMPTY = 0; |
This file contains 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
set mainfont {{Open Sans} 10} | |
set textfont {Consolas 9} | |
set uifont {Tahoma 9 bold} | |
set tabstop 8 | |
set findmergefiles 0 | |
set maxgraphpct 50 | |
set maxwidth 16 | |
set cmitmode patch | |
set wrapcomment none | |
set autoselect 1 |
This file contains 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
#include <stdio.h> | |
struct type_id_t | |
{ | |
const type_id_t *const parent; | |
const char *const name; | |
}; | |
struct parent_t | |
{ |
This file contains 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 XYZ. All Rights Reserved. | |
#include "YourActorDetailsCustomization.h" | |
#include "DetailLayoutBuilder.h" | |
void FYourActorClassDetailsCustomization::CustomizeDetails(IDetailLayoutBuilder& DetailLayout) | |
{ | |
// Category Name is display name of Category you want to move | |
// ECategoryPriority is "how high" it should be. | |
DetailLayout.EditCategory("Category Name", FText::GetEmpty(), ECategoryPriority::Important); |
This file contains 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
bool HumanBase::WalkTo(const Vector2& position) | |
{ | |
if (m_state == HumanState::Walking) { | |
return false; | |
} | |
m_currentWalkPath = GetWorld()->FindPath(m_position, position); | |
if (!m_currentWalkPath) { | |
return false; |
This file contains 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
bool HumanBase::WalkTo(const Vector2& position) | |
{ | |
if (m_state != HumanState::Walking) { | |
m_currentWalkPath = GetWorld()->FindPath(m_position, position); | |
if (m_currentWalkPath) { | |
if (!m_currentWalkPath->GetPointsCount()) { | |
m_position = position; | |
m_previousPosition = position; |
This file contains 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
// Before | |
if (m_planningMode == PLANNING_MODE_SHAFTS && hoveredCellY + 1 >= m_planningStartY) | |
// After | |
if ((m_planningMode == PLANNING_MODE_SHAFTS) && ((hoveredCellY + 1) >= m_planningStartY)) |
This file contains 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
using UnityEngine; | |
class GameManager : MonoBehaviour | |
{ | |
public static GameManager instance; | |
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] | |
private static Initialize() | |
{ | |
if (instance == null) |
This file contains 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
const float MaxObjectMassToGrabKg = 50.0f; | |
// Before | |
bool AJanuszCharacter::IsAbleToGrabComponent(UPrimitiveComponent* Component) const | |
{ | |
if (Component->CalculateMass() > MaxObjectMassToGrabKg) | |
{ | |
return false; | |
} | |
return true; |
This file contains 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
[/Script/RawInput.RawInputSettings] | |
+DeviceConfigurations=(VendorID="0x054C",ProductID="0x0CE6",AxisProperties=((Key=GenericUSBController_Axis1),(Key=GenericUSBController_Axis2),(Key=GenericUSBController_Axis3,bGamepadStick=True),(Key=GenericUSBController_Axis4,bGamepadStick=True),(Key=GenericUSBController_Axis5,bInverted=True,bGamepadStick=True),(Key=GenericUSBController_Axis6,bGamepadStick=True),(Key=GenericUSBController_Axis7),(Key=GenericUSBController_Axis8),(Key=GenericUSBController_Axis9),(Key=GenericUSBController_Axis10),(Key=GenericUSBController_Axis11),(Key=GenericUSBController_Axis12),(Key=GenericUSBController_Axis13),(Key=GenericUSBController_Axis14),(Key=GenericUSBController_Axis15),(Key=GenericUSBController_Axis16),(Key=GenericUSBController_Axis17),(Key=GenericUSBController_Axis18),(Key=GenericUSBController_Axis19),(Key=GenericUSBController_Axis20),(Key=GenericUSBController_Axis21),(Key=GenericUSBController_Axis22),(Key=GenericUSBController_Axis23),(Key=GenericUSBController_Axis24)),ButtonPropert |
OlderNewer